(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62b87436","chunk-dbe2aac2","chunk-fac8b8de","chunk-02944f40","chunk-4247bbbd","chunk-c82a08a2","chunk-3ff81158","chunk-3e3283e6","chunk-5946313a","chunk-29c13a80","chunk-c971a4b6","chunk-f6a43c10","chunk-bda7db16","chunk-324672dc","chunk-9ea55b60","chunk-ab1040ea","chunk-56757093","chunk-e201cbfa","chunk-55530d3c","chunk-2d0f012d"],{"0046":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.createHashMap,o=i("4f85"),s=i("3301"),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var i=this.getSource();return c(i,this),s(i,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,i=this.getData(),n=[];return t.eachActiveState(i,(function(t,a){e===t&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function c(e,t){if(!e.encodeDefine){var i=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(i){var n=e.encodeDefine=r();a(i.dimensions,(function(e){var t=u(e);n.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},"004f":function(e,t,i){var n=i("6d8b"),a=i("72b6"),r=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("f934"),c=i("cbb0"),u=a.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),a=t.textStyleModel,o=a.getFont(),s=a.getTextColor(),c=this._getItemAlign(),u=t.itemSize,d=this._getViewData(),f=d.endsText,h=n.retrieve(t.get("showLabel",!0),!f);function p(a){var l=a.piece,d=new r.Group;d.onclick=n.bind(this._onItemClick,this,l),this._enableHoverLink(d,a.indexInModelPieceList);var f=t.getRepresentValue(l);if(this._createItemSymbol(d,f,[0,0,u[0],u[1]]),h){var p=this.visualMapModel.getValueState(f);d.add(new r.Text({style:{x:"right"===c?-i:u[0]+i,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:o,textFill:s,opacity:"outOfRange"===p?.5:1}}))}e.add(d)}f&&this._renderEndsText(e,f[0],u,h,c),n.each(d.viewPieceList,p,this),f&&this._renderEndsText(e,f[1],u,h,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function i(e){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(i.findTargetDataIndices(t),i)})}e.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(e,t,i,n,a){if(t){var o=new r.Group,s=this.visualMapModel.textStyleModel;o.add(new r.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(o)}},_getViewData:function(){var e=this.visualMapModel,t=n.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),i=e.get("text"),a=e.get("orient"),r=e.get("inverse");return("horizontal"===a?r:!r)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},_createItemSymbol:function(e,t,i){e.add(s(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,i=t.option,a=n.clone(i.selected),r=t.getSelectedMapKey(e);"single"===i.selectedMode?(a[r]=!0,n.each(a,(function(e,t){a[t]=t===r}))):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),d=u;e.exports=d},"0067":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"问题1",prop:"name"}},[i("el-input",{model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"问题2",prop:"region"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleForm.region,callback:function(t){e.$set(e.ruleForm,"region",t)},expression:"ruleForm.region"}},[i("el-option",{attrs:{label:"区域一",value:"shanghai"}}),e._v(" "),i("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"问题3",required:""}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期"},model:{value:e.ruleForm.date1,callback:function(t){e.$set(e.ruleForm,"date1",t)},expression:"ruleForm.date1"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"问题4",prop:"delivery"}},[i("el-switch",{model:{value:e.ruleForm.delivery,callback:function(t){e.$set(e.ruleForm,"delivery",t)},expression:"ruleForm.delivery"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)},a=[],r={data:function(){return{ruleForm:{name:"",region:"",date1:"",delivery:!1}}},methods:{submitForm:function(e){this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;alert("submit!")}))},resetForm:function(e){this.$refs[e].resetFields()}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"007d":function(e,t,i){var n=i("3eba");i("cb8f"),i("a96b"),i("42f6"),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ac":function(e,t,i){"use strict";i("6f59")},"00ba":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("e46b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("0f99"),c=l.makeSeriesEncodeForNameBased,u=i("c4a3"),d=n.extendSeriesModel({type:"series.funnel",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new u(a.bind(this.getData,this),a.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(c,this)})},_defaultLabelLine:function(e){s(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),i=d.superCall(this,"getDataParams",e),n=t.mapDimension("value"),a=t.getSum(n);return i.percent=a?+(t.get(n,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),f=d;e.exports=f},"00d8":function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map([0,1],(function(i){var n=t[i],a=e[i]/2,r=[],o=[];return r[i]=n-a,o[i]=n+a,r[1-i]=o[1-i]=t[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(o)[i])}),this)}function r(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},"00fd":function(e,t,i){var n=i("9e69"),a=Object.prototype,r=a.hasOwnProperty,o=a.toString,s=n?n.toStringTag:void 0;function l(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(l){}var a=o.call(e);return n&&(t?e[s]=i:delete e[s]),a}e.exports=l},"0108":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):[1===e.question.ShowQuestion&&e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o={name:"FormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("5c90"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"1ad78524",null);t["default"]=c.exports},"011b":function(e,t,i){e.exports=i.p+"static/img/CRC.74ed00c3.png"},"0141":function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("6cc5"),o=i("5b87");function s(e,t,i,n){r.call(this,e),this.map=t;var a=o.load(t,i);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=null==n||n,this.regions=a.regions,this._rect=a.boundingRect}function l(e,t,i,n){var a=i.geoModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[e](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,i=0;i0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("TotalUSD"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}if("TotalCNY"===e.property){var r=i.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(n[t]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},export:function(){var e=this,t="".concat(this.listQuery.BeginMonth,"--").concat(this.listQuery.EndMonth),i=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:15},{key:"ReviewerCode",width:20},{key:"TotalUSD",width:15},{key:"TotalCNY",width:15}],n="Type:Payment Beginning Month:".concat(this.listQuery.BeginMonth," End Month:").concat(this.listQuery.EndMonth),a=["","Surname","Given Name","Name CN","Reviewer ID","Total($)","Total(¥)"],r=[{colIndex:6,format:"#,##0.00"},{colIndex:7,format:"#,##0.00"}],s=0,l=0,c=this.list.filter((function(t){return e.arrID.indexOf(t.ReviewerId)>-1})),u=1;c.forEach((function(e){s+=e.TotalCNY,l+=e.TotalUSD,e.Index=u++}));var d=["","Total","","","",l,s];Object(o["a"])(t,i,"Payment History",n,a,c,d,r)}}},u=c,d=(i("63a2"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"2bdf6672",null);t["default"]=f.exports},"027d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"question-form-wrapper"},[i("div",{staticClass:"header-wrapper"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(e.$t("trials:researchForm:title:question"))+"\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:submit"))+"\n ")]):e._e(),e._v(" "),1===e.state&&e.hasPermi(["role:spm","role:cpm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditPasses"))+"\n ")]):e._e(),e._v(" "),2===e.state&&e.hasPermi(["role:pm","role:apm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.generateAccount}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditPasses"))+"\n ")]):e._e(),e._v(" "),1===e.state&&e.hasPermi(["role:spm","role:cpm"])||2===e.state&&e.hasPermi(["role:pm","role:apm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleReject}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditRejected"))+"\n ")]):e._e(),e._v(" "),0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleBack}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:loginOut"))+"\n ")]):e._e()],1)]),e._v(" "),i("div",{staticClass:"center-wrapper"},[i("el-card",{attrs:{shadow:"hover"}},[i("BaseInfo",{ref:"baseResearchInfo"})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:staffResearch:title:staff")))]),e._v(" "),i("ParticipantList",{ref:"researchParticipants",on:{refreshPage:e.refreshPage,getList:e.initPage}})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:equiptResearch:title:equiptResearch")))]),e._v(" "),i("EquipmentList",{ref:"researchEquipments"})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:equiptResearch:form:precautions")))]),e._v(" "),i("ol",[i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item1")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item2")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item3")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item4")))])])])],1),e._v(" "),e.rejectVisible?i("el-dialog",{attrs:{visible:e.rejectVisible,"close-on-click-modal":!1,title:e.$t("trials:researchForm:dialogTitle:reject"),width:"600px","custom-class":"base-dialog-wrapper","append-to-body":0!==e.userTypeEnumInt},on:{"update:visible":function(t){e.rejectVisible=t}}},[i("el-form",{ref:"rejectForm",attrs:{model:e.rejectForm,"label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:rejectReson"),prop:"reason",rules:[{required:!0,message:e.$t("trials:researchForm:formRule:specify")}]}},[i("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.rejectForm.reason,callback:function(t){e.$set(e.rejectForm,"reason",t)},expression:"rejectForm.reason"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.rejectVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.reject}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],1)},a=[],r=i("896b"),o=i("cd95"),s=i("6bdc"),l=i("b853"),c=i("a599"),u={name:"QuestionForm",components:{BaseInfo:o["default"],ParticipantList:s["default"],EquipmentList:l["default"]},data:function(){return{trialId:this.$route.query.trialId,trialSiteSurveyId:"",loading:!1,state:null,userTypeEnumInt:0,isExistIncorrect:!1,rejectVisible:!1,rejectForm:{reason:""},btnLoading:!1}},mounted:function(){this.trialSiteSurveyId=Object(c["b"])("trialSiteSurveyId"),this.initPage(),zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt"))},methods:{initPage:function(){var e=this;this.loading=!0,Object(r["f"])(this.trialId,this.trialSiteSurveyId).then((function(t){t.Result&&(e.state=t.Result.TrialSiteSurvey.State,e.$refs["baseResearchInfo"].initForm(t.Result.TrialInfo,t.Result.TrialSiteSurvey),e.$refs["researchParticipants"].initList(t.Result.TrialSiteUserSurveyList,t.Result.TrialSiteSurvey),e.$refs["researchEquipments"].initList(t.Result.TrialSiteEquipmentSurveyList,t.Result.TrialSiteSurvey),e.isExistIncorrect=t.Result.TrialSiteUserSurveyList.every((function(e){return!1===e.IsCorrect}))),e.loading=!1})).catch((function(){e.loading=!1}))},handleSubmit:function(){var e=this;if(0===this.userTypeEnumInt){if(0===this.$refs["researchParticipants"].list.length&&0===this.$refs["researchEquipments"].list.length)return void this.$message.error(this.$t("trials:researchForm:message:saveWarning"));this.loading=!0,this.$refs["baseResearchInfo"].handleSave(!0).then((function(t){e.loading=!1,t&&e.submit()})).catch((function(){e.loading=!1}))}else this.submit()},submit:function(){var e=this;this.$confirm(this.$t("trials:researchForm:message:submitWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={TrialId:e.trialId,TrialSiteSurveyId:e.trialSiteSurveyId};Object(r["m"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.initPage(),0!==e.userTypeEnumInt&&e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))})).catch((function(){}))},generateAccount:function(){var e=this;this.$confirm(this.$t("trials:researchForm:message:auditWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={TrialId:e.trialId,TrialSiteSurveyId:e.trialSiteSurveyId,LoginUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose")};Object(r["m"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.initPage(),e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))})).catch((function(){}))},handleReject:function(){this.rejectForm.reason="",this.rejectVisible=!0},reject:function(){var e=this;this.$refs["rejectForm"].validate((function(t){if(t){e.btnLoading=!0;var i={trialId:e.trialId,trialSiteSurveyId:e.trialSiteSurveyId,latestBackReason:e.rejectForm.reason,routeUrl:"".concat(location.protocol,"//").concat(location.host,"/researchLogin?trialId=").concat(e.trialId)};Object(r["l"])(i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.rejectVisible=!1,e.initPage(),e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},refreshPage:function(){this.$emit("refreshPage")},handleBack:function(){this.$router.push({path:"/researchLogin?trialId=".concat(this.trialId)})}}},d=u,f=(i("ca4e"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"388c5db9",null);t["default"]=h.exports},"0280":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-dicom-files-wrapper"},[i("div",{staticClass:"functions",staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{disabled:0===e.deleteArr.length,type:"primary",size:"small",icon:"el-icon-delete"},on:{click:e.handleBatchDelete}},[e._v("\n "+e._s(e.$t("trials:uploadedDicoms:action:delete"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.studyLoading,expression:"studyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.studyList,"row-class-name":e.tableRowClassName,"max-height":"250"},on:{"selection-change":e.handleUploadedSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:uploadedDicoms:table:studyId"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityForEdit",label:e.$t("trials:audit:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:e.$t("trials:audit:table:modality1")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartForEdit",label:e.$t("trials:uploadedDicoms:table:bodyPart"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:uploadedDicoms:table:seriesCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:uploadedDicoms:table:instanceCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:uploadedDicoms:table:studyDate"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StudyTime?e.moment(t.row.StudyTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadedTime",label:e.$t("trials:uploadedDicoms:table:uploadedTime"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-edit-outline",title:e.$t("common:button:edit"),circle:"",disabled:t.row.IsDeleted},on:{click:function(i){return e.handleEditStudy(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",disabled:t.row.IsDeleted,title:e.$t("trials:uploadedDicoms:action:delete"),circle:""},on:{click:function(i){return e.handleDeleteStudy(t.row)}}})]}}])})],1),e._v(" "),i("form",{ref:"uploadForm",attrs:{id:"inputForm",enctype:"multipart/form-data"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:uploadedDicoms:title:dicomFilesOnly")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"btn btn-link file-input",attrs:{id:"directoryInputWrapper"}},[i("el-button",{attrs:{type:"primary",size:"small"}},[e._v(e._s(e.$t("trials:uploadedDicomsicom:button:selectFolder")))]),e._v(" "),i("input",{attrs:{type:"file",name:"file",webkitdirectory:"",multiple:""},on:{change:function(t){return e.beginScanFiles(t)}}})],1)])],1),e._v(" "),i("el-table",{ref:"dicomFilesTable",staticClass:"dicomFiles-table",attrs:{data:e.uploadQueues},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{"min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{"line-height":"15px"}},[i("div",[i("div",[t.row.dicomInfo.accNumber?i("span",[i("span",{staticStyle:{"font-weight":"500"}},[e._v("Acc:")]),e._v(" "+e._s(t.row.dicomInfo.accNumber))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.dicomInfo.modality.length>0?i("span",[e._v(" "+e._s(t.row.dicomInfo.modality.join("、"))+",")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A,")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.seriesList.length?i("span",[e._v(e._s(t.row.seriesList.length)+" Series,")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A,")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block"}},[t.row.fileList.length?i("span",[e._v(e._s(t.row.fileList.length)+" Instances")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])])]),e._v(" "),i("div",[i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.dicomInfo.bodyPart?i("span",[e._v("\n "+e._s(t.row.dicomInfo.bodyPart)+",\n ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block"}},[t.row.dicomInfo.description?i("span",[e._v("\n "+e._s(t.row.dicomInfo.description))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])])]),e._v(" "),i("div",[e._v("\n "+e._s(t.row.dicomInfo.studyTime)+"\n ")])])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:studyDetail1"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:studyDetail2"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadedDicoms:table:studyDate"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:uploadDicomList:table:studyInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{"min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{"line-height":"15px"}},[i("div",[t.row.dicomInfo.patientId?i("span",[i("span",{staticStyle:{"font-weight":"500"}},[e._v("PID: ")]),e._v(e._s(t.row.dicomInfo.patientId))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]),e._v(" "),i("div",[i("span",{class:[t.row.dicomInfo.patientName?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientName?t.row.dicomInfo.patientName:"N/A")+"\n ")])]),e._v(" "),i("div",[i("span",{class:[t.row.dicomInfo.patientSex?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientSex?t.row.dicomInfo.patientSex:"N/A")+",\n ")]),e._v(" "),i("span",{class:[t.row.dicomInfo.patientAge?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientAge?t.row.dicomInfo.patientAge:"N/A")+",\n ")]),e._v(" "),i("span",{class:[t.row.dicomInfo.patientBirthDate?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientBirthDate?t.row.dicomInfo.patientBirthDate:"N/A")+"\n ")])])])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:pId"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:patientName"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:pInfo"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:uploadDicomList:table:patientInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:uploadDicomList:table:status"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.row.uploadState.stateText,expression:"scope.row.uploadState.stateText"}],attrs:{percentage:t.row.uploadState.progressValue}}),e._v(" "),i("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.row.uploadState.stateText,expression:"scope.row.uploadState.stateText"}],attrs:{color:"#409eff",format:e.format(t.row.uploadState.UpdataValue),percentage:t.row.uploadState.UpdataValue}}),e._v(" "),"Uploading not allowed"===t.row.uploadState.stateCode?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.uploadState.errorMessage,placement:"bottom"}},[i("span",[e._v(e._s(t.row.uploadState.stateText))])]):i("span",[e._v(e._s(t.row.uploadState.stateText))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:uploadDicomList:table:stats"),"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{display:"flex","justify-content":"flex-start","align-items":"center"}},[t.row.uploadState.totalCount?i("div",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(t.row.uploadState.totalCount+" / "+t.row.uploadState.successCount+" / "+t.row.uploadState.failedCount)+"\n ")]):e._e(),e._v(" "),t.row.uploadState.failedCount>0?i("div",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return e.exportFailedFiles(t.row.uploadState.ErrorFiles)}}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:exportFailed"))+"\n ")])],1):e._e()])]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:e.isScan,expression:"isScan"}],attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadedDicoms:action:delete"),size:"small",disabled:""!==t.row.uploadState.stateCode},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}})]}}])})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length||!e.isScan,loading:e.btnLoading||e.uploadCount!==e.uploadedCount},on:{click:e.beginUploadQueues}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:upload"))+"\n ")])],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{fullscreen:!0,"show-close":!0,visible:e.previewVisible,"append-to-body":""},on:{"update:visible":function(t){e.previewVisible=t}}},[i("DicomPreview",{attrs:{uid:e.uid}})],1):e._e(),e._v(" "),e.warning_cfg.visible?i("el-dialog",{attrs:{visible:e.warning_cfg.visible,width:"500px","close-on-click-modal":!1,"append-to-body":"",title:"Warning","custom-class":"warning-dialog"},on:{"update:visible":function(t){return e.$set(e.warning_cfg,"visible",t)}}},[i("div",{staticStyle:{border:"1px solid #e0e0e0",padding:"10px"}},[i("div",{staticStyle:{color:"red","font-size":"14px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:message:informationConsistent"))+":\n ")]),e._v(" "),e._l(e.warningArr,(function(t,n){return i("div",{key:t.index},[i("div",[e._v(e._s("("+(n+1)+"). ACC: "+t.accNumber))]),e._v(" "),e._l(t.warnings,(function(t,n){return i("div",{key:n,staticStyle:{margin:"10px 0px","font-size":"13px"}},[i("ul",[i("li",[e._v(e._s(t))])])])}))],2)}))],2),e._v(" "),i("div",{staticClass:"base-modal-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancelWarnVisible}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleContinueUpload}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:upload"))+"\n ")])],1)]):e._e(),e._v(" "),e.editStudyInfoVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:action:edit"),visible:e.editStudyInfoVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editStudyInfoVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"studyForm",attrs:{model:e.studyForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.StudyCode,callback:function(t){e.$set(e.studyForm,"StudyCode",t)},expression:"studyForm.StudyCode"}})],1),e._v(" "),e.studyForm.IsDicomData?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality"),prop:"Modalities",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.studyForm.Modality,callback:function(t){e.$set(e.studyForm,"Modality",t)},expression:"studyForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:bodyPart"),prop:"BodyPartForEdit",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.studyForm.BodyPartForEdit,callback:function(t){e.$set(e.studyForm,"BodyPartForEdit",t)},expression:"studyForm.BodyPartForEdit"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:seriesCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.SeriesCount,callback:function(t){e.$set(e.studyForm,"SeriesCount",t)},expression:"studyForm.SeriesCount"}})],1),e._v(" "),e.studyForm.InstanceCount?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:instanceCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.InstanceCount,callback:function(t){e.$set(e.studyForm,"InstanceCount",t)},expression:"studyForm.InstanceCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.studyForm.StudyTime,callback:function(t){e.$set(e.studyForm,"StudyTime",t)},expression:"studyForm.StudyTime"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editStudyInfoVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateStudyInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("55dd"),i("7618")),o=(i("5df3"),i("20d6"),i("7514"),i("34ef"),i("75fc")),s=(i("28a5"),i("db72")),l=(i("ac6a"),i("456d"),i("3e42")),c=i("4360"),u=i("acd4");const d=[0,2e3,1e4,3e4,null];class f{constructor(e){this._retryDelays=void 0!==e?[...e,null]:d}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class h extends Error{constructor(e,t){const i=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=i}}class p extends Error{constructor(e="A timeout occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class m extends Error{constructor(e="An abort occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class g extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=i}}class v extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=i}}class b extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=i}}class y extends Error{constructor(e){const t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class w extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=i}}class _{constructor(e,t,i){this.statusCode=e,this.statusText=t,this.content=i}}class I{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}}var x,S,T=i("33e1"),C=i("7ed1");class k extends I{constructor(e){if(super(),this._logger=e,"undefined"===typeof fetch){const e=require;this._jar=new(e("tough-cookie").CookieJar),this._fetchType=e("node-fetch"),this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Object(C["h"])());if("undefined"===typeof AbortController){const e=require;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new m;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const t=new this._abortControllerType;let i;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),i=new m});let n,a=null;if(e.timeout){const n=e.timeout;a=setTimeout(()=>{t.abort(),this._logger.log(T["a"].Warning,"Timeout from HTTP request."),i=new p},n)}try{n=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(s){if(i)throw i;throw this._logger.log(T["a"].Warning,`Error from HTTP request. ${s}.`),s}finally{a&&clearTimeout(a),e.abortSignal&&(e.abortSignal.onabort=null)}if(!n.ok){const e=await R(n,"text");throw new h(e||n.statusText,n.status)}const r=R(n,e.responseType),o=await r;return new _(n.status,n.statusText,o)}getCookieString(e){let t="";return C["c"].isNode&&this._jar&&this._jar.getCookies(e,(e,i)=>t=i.join("; ")),t}}function R(e,t){let i;switch(t){case"arraybuffer":i=e.arrayBuffer();break;case"text":i=e.text();break;case"blob":case"document":case"json":throw new Error(t+" is not supported.");default:i=e.text();break}return i}class D extends I{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new m):e.method?e.url?new Promise((t,i)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=void 0===e.withCredentials||e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const a=e.headers;a&&Object.keys(a).forEach(e=>{n.setRequestHeader(e,a[e])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),i(new m)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?t(new _(n.status,n.statusText,n.response||n.responseText)):i(new h(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(T["a"].Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),i(new h(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(T["a"].Warning,"Timeout from HTTP request."),i(new p)},n.send(e.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class L extends I{constructor(e){if(super(),"undefined"!==typeof fetch||C["c"].isNode)this._httpClient=new k(e);else{if("undefined"===typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new D(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new m):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class O{}O.Authorization="Authorization",O.Cookie="Cookie",function(e){e[e["None"]=0]="None",e[e["WebSockets"]=1]="WebSockets",e[e["ServerSentEvents"]=2]="ServerSentEvents",e[e["LongPolling"]=4]="LongPolling"}(x||(x={})),function(e){e[e["Text"]=1]="Text",e[e["Binary"]=2]="Binary"}(S||(S={}));class ${constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class N{constructor(e,t,i,n){this._httpClient=e,this._accessTokenFactory=t,this._logger=i,this._pollAbort=new $,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._url=e,this._logger.log(T["a"].Trace,"(LongPolling transport) Connecting."),t===S.Binary&&"undefined"!==typeof XMLHttpRequest&&"string"!==typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[i,n]=Object(C["i"])(),a={[i]:n,...this._options.headers},r={abortSignal:this._pollAbort.signal,headers:a,timeout:1e5,withCredentials:this._options.withCredentials};t===S.Binary&&(r.responseType="arraybuffer");const o=await this._getAccessToken();this._updateHeaderToken(r,o);const s=`${e}&_=${Date.now()}`;this._logger.log(T["a"].Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,r);200!==l.statusCode?(this._logger.log(T["a"].Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new h(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,r)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(e,t){e.headers||(e.headers={}),t?e.headers[O.Authorization]="Bearer "+t:e.headers[O.Authorization]&&delete e.headers[O.Authorization]}async _poll(e,t){try{while(this._running){const n=await this._getAccessToken();this._updateHeaderToken(t,n);try{const i=`${e}&_=${Date.now()}`;this._logger.log(T["a"].Trace,`(LongPolling transport) polling: ${i}.`);const n=await this._httpClient.get(i,t);204===n.statusCode?(this._logger.log(T["a"].Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==n.statusCode?(this._logger.log(T["a"].Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new h(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(T["a"].Trace,`(LongPolling transport) data received. ${Object(C["f"])(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(T["a"].Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(i){this._running?i instanceof p?this._logger.log(T["a"].Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=i,this._running=!1):this._logger.log(T["a"].Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message)}}}finally{this._logger.log(T["a"].Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?Object(C["k"])(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(T["a"].Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(T["a"].Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[t,i]=Object(C["i"])();e[t]=i;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},a=await this._getAccessToken();this._updateHeaderToken(n,a),await this._httpClient.delete(this._url,n),this._logger.log(T["a"].Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(T["a"].Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(T["a"].Trace,e),this.onclose(this._closeError)}}}class A{constructor(e,t,i,n){this._httpClient=e,this._accessTokenFactory=t,this._logger=i,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._logger.log(T["a"].Trace,"(SSE transport) Connecting."),this._url=e,this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t))}return new Promise((i,n)=>{let a,r=!1;if(t===S.Text){if(C["c"].isBrowser||C["c"].isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(e),i={};i.Cookie=t;const[n,r]=Object(C["i"])();i[n]=r,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...i,...this._options.headers}})}try{a.onmessage=e=>{if(this.onreceive)try{this._logger.log(T["a"].Trace,`(SSE transport) data received. ${Object(C["f"])(e.data,this._options.logMessageContent)}.`),this.onreceive(e.data)}catch(t){return void this._close(t)}},a.onerror=e=>{r?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(T["a"].Information,"SSE connected to "+this._url),this._eventSource=a,r=!0,i()}}catch(o){return void n(o)}}else n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(e){return this._eventSource?Object(C["k"])(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class P{constructor(e,t,i,n,a,r){this._logger=i,this._accessTokenFactory=t,this._logMessageContent=n,this._webSocketConstructor=a,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=r}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._logger.log(T["a"].Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t))}return new Promise((i,n)=>{let a;e=e.replace(/^http/,"ws");const r=this._httpClient.getCookieString(e);let o=!1;if(C["c"].isNode){const t={},[i,n]=Object(C["i"])();t[i]=n,r&&(t[O.Cookie]=""+r),a=new this._webSocketConstructor(e,void 0,{headers:{...t,...this._headers}})}a||(a=new this._webSocketConstructor(e)),t===S.Binary&&(a.binaryType="arraybuffer"),a.onopen=t=>{this._logger.log(T["a"].Information,`WebSocket connected to ${e}.`),this._webSocket=a,o=!0,i()},a.onerror=e=>{let t=null;t="undefined"!==typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"There was an error with the transport",this._logger.log(T["a"].Information,`(WebSockets transport) ${t}.`)},a.onmessage=e=>{if(this._logger.log(T["a"].Trace,`(WebSockets transport) data received. ${Object(C["f"])(e.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(e.data)}catch(t){return void this._close(t)}},a.onclose=e=>{if(o)this._close(e);else{let t=null;t="undefined"!==typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",n(new Error(t))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(T["a"].Trace,`(WebSockets transport) sending data. ${Object(C["f"])(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(T["a"].Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"===typeof e.wasClean&&"number"===typeof e.code}}const E=100;class M{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,C["a"].isRequired(e,"url"),this._logger=Object(C["e"])(t.logger),this.baseUrl=this._resolveUrl(e),t=t||{},t.logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!==typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let i=null,n=null;if(C["c"].isNode){const e=require;i=e("ws"),n=e("eventsource")}C["c"].isNode||"undefined"===typeof WebSocket||t.WebSocket?C["c"].isNode&&!t.WebSocket&&i&&(t.WebSocket=i):t.WebSocket=WebSocket,C["c"].isNode||"undefined"===typeof EventSource||t.EventSource?C["c"].isNode&&!t.EventSource&&"undefined"!==typeof n&&(t.EventSource=n):t.EventSource=EventSource,this._httpClient=t.httpClient||new L(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||S.Binary,C["a"].isIn(e,S,"transferFormat"),this._logger.log(T["a"].Debug,`Starting connection with transfer format '${S[e]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,"Disconnecting"===this._connectionState){const e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(T["a"].Error,e),await this._stopPromise,Promise.reject(new Error(e))}if("Connected"!==this._connectionState){const e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(T["a"].Error,e),Promise.reject(new Error(e))}this._connectionStarted=!0}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new j(this.transport)),this._sendQueue.send(e))}async stop(e){return"Disconnected"===this._connectionState?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise(e=>{this._stopPromiseResolver=e}),await this._stopInternal(e),void await this._stopPromise)}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch(t){}if(this.transport){try{await this.transport.stop()}catch(t){this._logger.log(T["a"].Error,`HttpConnection.transport.stop() threw error '${t}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(T["a"].Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==x.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(x.WebSockets),await this._startTransport(t,e)}else{let i=null,n=0;do{if(i=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(i.error)throw new Error(i.error);if(i.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(i.url&&(t=i.url),i.accessToken){const e=i.accessToken;this._accessTokenFactory=()=>e}n++}while(i.url&&n0?Promise.reject(new w("Unable to connect to the server with any of the available transports. "+r.join(" "),r)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case x.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new P(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case x.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new A(this._httpClient,this._accessTokenFactory,this._logger,this._options);case x.LongPolling:return new N(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(e,t)}_resolveTransportOrError(e,t,i){const n=x[e.transport];if(null===n||void 0===n)return this._logger.log(T["a"].Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!F(t,n))return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it was disabled by the client.`),new v(`'${x[n]}' is disabled by the client.`,n);{const t=e.transferFormats.map(e=>S[e]);if(!(t.indexOf(i)>=0))return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it does not support the requested transfer format '${S[i]}'.`),new Error(`'${x[n]}' does not support ${S[i]}.`);if(n===x.WebSockets&&!this._options.WebSocket||n===x.ServerSentEvents&&!this._options.EventSource)return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it is not supported in your environment.'`),new g(`'${x[n]}' is not supported in your environment.`,n);this._logger.log(T["a"].Debug,`Selecting transport '${x[n]}'.`);try{return this._constructTransport(n)}catch(a){return a}}}_isITransport(e){return e&&"object"===typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(T["a"].Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(T["a"].Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(T["a"].Error,`Connection disconnected with error '${e}'.`):this._logger.log(T["a"].Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(e=>{this._logger.log(T["a"].Error,`TransportSendQueue.stop() threw error '${e}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(T["a"].Error,`HttpConnection.onclose(${e}) threw error '${t}'.`)}}}else this._logger.log(T["a"].Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!C["c"].isBrowser)throw new Error(`Cannot resolve '${e}'.`);const t=window.document.createElement("a");return t.href=e,this._logger.log(T["a"].Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){const t=e.indexOf("?");let i=e.substring(0,-1===t?e.length:t);return"/"!==i[i.length-1]&&(i+="/"),i+="negotiate",i+=-1===t?"":e.substring(t),-1===i.indexOf("negotiateVersion")&&(i+=-1===t?"?":"&",i+="negotiateVersion="+this._negotiateVersion),i}}function F(e,t){return!e||0!==(t&e)}class j{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new V,this._transportResult=new V,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new V),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!==typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){while(1){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new V;const t=this._transportResult;this._transportResult=void 0;const i="string"===typeof this._buffer[0]?this._buffer.join(""):j._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),i=new Uint8Array(t);let n=0;for(const a of e)i.set(new Uint8Array(a),n),n+=a.byteLength;return i.buffer}}class V{constructor(){this.promise=new Promise((e,t)=>[this._resolver,this._rejecter]=[e,t])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}class q{static write(e){return`${e}${q.RecordSeparator}`}static parse(e){if(e[e.length-1]!==q.RecordSeparator)throw new Error("Message is incomplete.");const t=e.split(q.RecordSeparator);return t.pop(),t}}q.RecordSeparatorCode=30,q.RecordSeparator=String.fromCharCode(q.RecordSeparatorCode);class z{writeHandshakeRequest(e){return q.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,i;if(Object(C["j"])(e)){const n=new Uint8Array(e),a=n.indexOf(q.RecordSeparatorCode);if(-1===a)throw new Error("Message is incomplete.");const r=a+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(n.slice(0,r))),i=n.byteLength>r?n.slice(r).buffer:null}else{const n=e,a=n.indexOf(q.RecordSeparator);if(-1===a)throw new Error("Message is incomplete.");const r=a+1;t=n.substring(0,r),i=n.length>r?n.substring(r):null}const n=q.parse(t),a=JSON.parse(n[0]);if(a.type)throw new Error("Expected a handshake response from the server.");const r=a;return[i,r]}}var B;(function(e){e[e["Invocation"]=1]="Invocation",e[e["StreamItem"]=2]="StreamItem",e[e["Completion"]=3]="Completion",e[e["StreamInvocation"]=4]="StreamInvocation",e[e["CancelInvocation"]=5]="CancelInvocation",e[e["Ping"]=6]="Ping",e[e["Close"]=7]="Close"})(B||(B={}));class U{constructor(){this.observers=[]}next(e){for(const t of this.observers)t.next(e)}error(e){for(const t of this.observers)t.error&&t.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new C["d"](this,e)}}const Q=3e4,H=15e3;var G;(function(e){e["Disconnected"]="Disconnected",e["Connecting"]="Connecting",e["Connected"]="Connected",e["Disconnecting"]="Disconnecting",e["Reconnecting"]="Reconnecting"})(G||(G={}));class W{constructor(e,t,i,n){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(T["a"].Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},C["a"].isRequired(e,"connection"),C["a"].isRequired(t,"logger"),C["a"].isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=Q,this.keepAliveIntervalInMilliseconds=H,this._logger=t,this._protocol=i,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new z,this.connection.onreceive=e=>this._processIncomingData(e),this.connection.onclose=e=>this._connectionClosed(e),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=G.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:B.Ping})}static create(e,t,i,n){return new W(e,t,i,n)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==G.Disconnected&&this._connectionState!==G.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==G.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=G.Connecting,this._logger.log(T["a"].Debug,"Starting HubConnection.");try{await this._startInternal(),C["c"].isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=G.Connected,this._connectionStarted=!0,this._logger.log(T["a"].Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=G.Disconnected,this._logger.log(T["a"].Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((e,t)=>{this._handshakeResolver=e,this._handshakeRejecter=t});await this.connection.start(this._protocol.transferFormat);try{const t={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(T["a"].Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(t)),this._logger.log(T["a"].Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError}catch(t){throw this._logger.log(T["a"].Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(t),t}}async stop(){const e=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch(t){}}_stopInternal(e){return this._connectionState===G.Disconnected?(this._logger.log(T["a"].Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===G.Disconnecting?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=G.Disconnecting,this._logger.log(T["a"].Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(T["a"].Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))}stream(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._createStreamInvocation(e,t,n);let r;const o=new U;return o.cancelCallback=()=>{const e=this._createCancelInvocation(a.invocationId);return delete this._callbacks[a.invocationId],r.then(()=>this._sendWithProtocol(e))},this._callbacks[a.invocationId]=(e,t)=>{t?o.error(t):e&&(e.type===B.Completion?e.error?o.error(new Error(e.error)):o.complete():o.next(e.item))},r=this._sendWithProtocol(a).catch(e=>{o.error(e),delete this._callbacks[a.invocationId]}),this._launchStreams(i,r),o}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._sendWithProtocol(this._createInvocation(e,t,!0,n));return this._launchStreams(i,a),a}invoke(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._createInvocation(e,t,!1,n),r=new Promise((e,t)=>{this._callbacks[a.invocationId]=(i,n)=>{n?t(n):i&&(i.type===B.Completion?i.error?t(new Error(i.error)):e(i.result):t(new Error("Unexpected message type: "+i.type)))};const n=this._sendWithProtocol(a).catch(e=>{t(e),delete this._callbacks[a.invocationId]});this._launchStreams(i,n)});return r}on(e,t){e&&t&&(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(t)&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();const i=this._methods[e];if(i)if(t){const n=i.indexOf(t);-1!==n&&(i.splice(n,1),0===i.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const i=this._protocol.parseMessages(e,this._logger);for(const e of i)switch(e.type){case B.Invocation:this._invokeClientMethod(e);break;case B.StreamItem:case B.Completion:{const i=this._callbacks[e.invocationId];if(i){e.type===B.Completion&&delete this._callbacks[e.invocationId];try{i(e)}catch(t){this._logger.log(T["a"].Error,"Stream callback threw error: "+Object(C["g"])(t))}}break}case B.Ping:break;case B.Close:{this._logger.log(T["a"].Information,"Close message received from server.");const t=e.error?new Error("Server returned an error on close: "+e.error):void 0;!0===e.allowReconnect?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}default:this._logger.log(T["a"].Warning,`Invalid message type: ${e.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,i;try{[i,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const e="Error parsing handshake response: "+n;this._logger.log(T["a"].Error,e);const t=new Error(e);throw this._handshakeRejecter(t),t}if(t.error){const e="Server returned handshake error: "+t.error;this._logger.log(T["a"].Error,e);const i=new Error(e);throw this._handshakeRejecter(i),i}return this._logger.log(T["a"].Debug,"Server handshake complete."),this._handshakeResolver(),i}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0===this._pingServerHandle)){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===G.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){const t=this._methods[e.target.toLowerCase()];if(t){try{t.forEach(t=>t.apply(this,e.arguments))}catch(i){this._logger.log(T["a"].Error,`A callback for the method ${e.target.toLowerCase()} threw error '${i}'.`)}if(e.invocationId){const e="Server requested a response, which is not supported in this version of the client.";this._logger.log(T["a"].Error,e),this._stopPromise=this._stopInternal(new Error(e))}}else this._logger.log(T["a"].Warning,`No client method with the name '${e.target}' found.`)}_connectionClosed(e){this._logger.log(T["a"].Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===G.Disconnecting?this._completeClose(e):this._connectionState===G.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===G.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=G.Disconnected,this._connectionStarted=!1,C["c"].isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(t=>t.apply(this,[e]))}catch(t){this._logger.log(T["a"].Error,`An onclose callback called with error '${e}' threw error '${t}'.`)}}}async _reconnect(e){const t=Date.now();let i=0,n=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),a=this._getNextRetryDelay(i++,0,n);if(null===a)return this._logger.log(T["a"].Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(e);if(this._connectionState=G.Reconnecting,e?this._logger.log(T["a"].Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(T["a"].Information,"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach(t=>t.apply(this,[e]))}catch(r){this._logger.log(T["a"].Error,`An onreconnecting callback called with error '${e}' threw error '${r}'.`)}if(this._connectionState!==G.Reconnecting)return void this._logger.log(T["a"].Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}while(null!==a){if(this._logger.log(T["a"].Information,`Reconnect attempt number ${i} will start in ${a} ms.`),await new Promise(e=>{this._reconnectDelayHandle=setTimeout(e,a)}),this._reconnectDelayHandle=void 0,this._connectionState!==G.Reconnecting)return void this._logger.log(T["a"].Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=G.Connected,this._logger.log(T["a"].Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach(e=>e.apply(this,[this.connection.connectionId]))}catch(r){this._logger.log(T["a"].Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`)}return}catch(r){if(this._logger.log(T["a"].Information,`Reconnect attempt failed because of error '${r}'.`),this._connectionState!==G.Reconnecting)return this._logger.log(T["a"].Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===G.Disconnecting&&this._completeClose());n=r instanceof Error?r:new Error(r.toString()),a=this._getNextRetryDelay(i++,Date.now()-t,n)}}this._logger.log(T["a"].Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${i} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,i){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:i})}catch(n){return this._logger.log(T["a"].Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach(i=>{const n=t[i];try{n(null,e)}catch(a){this._logger.log(T["a"].Error,`Stream 'error' callback called with '${e}' threw error: ${Object(C["g"])(a)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,i,n){if(i)return 0!==n.length?{arguments:t,streamIds:n,target:e,type:B.Invocation}:{arguments:t,target:e,type:B.Invocation};{const i=this._invocationId;return this._invocationId++,0!==n.length?{arguments:t,invocationId:i.toString(),streamIds:n,target:e,type:B.Invocation}:{arguments:t,invocationId:i.toString(),target:e,type:B.Invocation}}}_launchStreams(e,t){if(0!==e.length){t||(t=Promise.resolve());for(const i in e)e[i].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i)))},error:e=>{let n;n=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i,n)))},next:e=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(i,e)))}})}}_replaceStreamingParams(e){const t=[],i=[];for(let n=0;n0){console.log(t);Object(o["a"])(t);var i=this;i.scanState="",i.isScan=!1;for(var n=new Promise((function(e){e()})),a=0;a=t.uploadQueues.length){var s=a.string("x00080020"),l=a.string("x00080030"),c="";s&&(s="".concat(s.substring(0,4),"-").concat(s.substring(4,6),"-").concat(s.substring(6,8))),l&&(l="".concat(l.substring(0,2),":").concat(l.substring(2,4),":").concat(l.substring(4,6))),s&&(c=l?"".concat(s," ").concat(l):"".concat(s," 00:00:00")),t.uploadQueues.push({studyIndex:o,seriesList:[],fileList:[],dicomInfo:{studyUid:r,patientId:a.string("x00100020"),patientName:a.string("x00100010")?a.string("x00100010"):"",patientAge:a.string("x00101010")?a.string("x00101010"):"",patientSex:a.string("x00100040")?a.string("x00100040"):"",patientBirthDate:a.string("x00100030"),hospitalName:a.string("x00080080"),accNumber:a.string("x00080050"),bodyPart:a.string("x00180015"),modality:[],institutionName:a.string("x00080080"),description:a.string("x00081030"),studyTime:c,VisitInfo:{},SubjectInfo:{}},uploadState:{selected:!1,stateCode:"",beginUploadTime:{},progressValue:0}})}var d=t.uploadQueues[o].dicomInfo.modality,f=a.string("x00080060");d.indexOf(f)>-1||d.push(f);var h=t.uploadQueues[o].fileList,p=a.string("x00080018"),m=0;while(m=h.length&&h.push({instanceUid:p,file:e});var g=a.string("x0020000e"),v=t.uploadQueues[o].seriesList,b=v.find((function(e){return e.seriesUid===g}));b||(b={seriesUid:g,seriesNumber:a.intString("x00200011")||1,modality:a.string("x00080060"),description:a.string("x0008103e"),instanceList:[]},v.push(b));var y=b.instanceList,w=y.find((function(e){return e.instanceUid===p}));w||(w={instanceUid:p,instanceNumber:a.intString("x00200013")||1,frameCount:a.intString("x00280008")||1,file:e},y.push(w)),i()}catch(_){console.log(_),i()}},a.onerror=function(e){i()},a.readAsArrayBuffer(e)}else i()}))},beginUploadQueues:function(){this.scanState="uploading",this.warningArr=[];for(var e=0;e0&&this.warningArr.push({index:this.uploadQueues[e].studyIndex+1,accNumber:this.uploadQueues[e].dicomInfo.accNumber,warnings:t})},verifyStudy:function(){var e=this;this.btnLoading=!0;var t=[];this.selectArr.forEach((function(e){t.push({studyInstanceUid:e.dicomInfo.studyUid,studyDate:e.dicomInfo.studyTime})}));var i={trialId:this.trialId,subjectId:this.subjectId,subjectVisitId:this.subjectVisitId,visitNum:this.form.VisitNum,studyInstanceUidList:t};Object(l["R"])(i).then((function(t){var i=[];if(t.Result.forEach((function(t){if(t.ErrorMesseage){var n=e.uploadQueues.findIndex((function(e){return e.dicomInfo.studyUid===t.StudyInstanceUid}));e.uploadQueues[n].uploadState.stateText=e.$t("trials:uploadDicomList:label:uploadingNotAllowed"),e.uploadQueues[n].uploadState.selected=!0,e.uploadQueues[n].uploadState.stateCode="Uploading not allowed",e.uploadQueues[n].uploadState.errorMessage=t.ErrorMesseage,e.$refs.dicomFilesTable.toggleRowSelection(e.uploadQueues[n]);var a="".concat(t.ErrorMesseage);i.push(a)}if(t.AllowReUpload){var r=e.uploadQueues.findIndex((function(e){return e.dicomInfo.studyUid===t.StudyInstanceUid}));e.uploadQueues[r].AbandonStudyId=t.StudyInfo?t.StudyInfo.Id:""}})),i.length>0){var n=i.map((function(e){return"
  • ".concat(e,"
  • ")})),a="\n
    \n
      \n ".concat(n.join(""),"\n
    \n
    ");e.$alert(a,e.$t("trials:uploadDicomList:label:prompt"),{confirmButtonText:e.$t("trials:uploadDicomList:label:confirm"),dangerouslyUseHTMLString:!0,callback:function(e){}}),e.btnLoading=!1}var r=[];e.uploadCount=e.selectArr.length,e.uploadedCount=0;for(var o=0;o0&&(i.stateText=this.$t("trials:uploadDicomList:label:uploaded"),this.scanState="Uploaded",this.getStudyInfo(),this.$emit("getList"))}else this.uploadQueues[t].uploadState.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed",n.ErrorMessage&&this.$message.error(n.ErrorMessage);this.wariningMes=""}else i.stateCode="Failed",i.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed";this.$forceUpdate()},onUploadError:function(e,t){this.uploadedCount++;var i=this.uploadQueues[t].uploadState;i.stateCode="Failed",i.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed"},onUploadProgress2:function(e,t){var i=this.uploadQueues.find((function(t){return t.dicomInfo.studyUid===e}));i&&i.uploadState.stateText!==this.$t("trials:uploadDicomList:label:uploaded")&&(this.$set(i.uploadState,"UpdataValue",Math.floor(t/i.dicomInfo.fileNum*100)),this.$set(i.uploadState,"stateText",this.$t("trials:uploadDicomList:message:archiveSuccess")))},onUploadProgress:function(e,t){if(e.lengthComputable){var i=Math.floor(e.loaded/e.total*100);console.log(e.loaded,e.total,i),this.$set(this.uploadQueues[t].uploadState,"stateText",this.$t("trials:uploadDicomList:label:uploading")),this.$set(this.uploadQueues[t].uploadState,"progressValue",i)}},handleCancelWarnVisible:function(){this.warning_cfg.visible=!1;for(var e=0;et?e-t:t-e,Math.floor(i/864e5)},exportFailedFiles:function(e){var t=document.createElement("a"),i="";e.forEach((function(e){i+=e+"\n"})),t.setAttribute("href","data:text/html;charset=utf-8,"+i),t.setAttribute("download",+new Date+".txt"),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""}}},le=se,ce=(i("d7b7"),i("2877")),ue=Object(ce["a"])(le,n,a,!1,null,null,null);t["default"]=ue.exports},"0283":function(e,t,i){},"0293":function(e,t,i){"use strict";i("4880")},"02ab":function(e,t,i){},"02b8":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"02c3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ad_review_wrapper"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adInfo.VisitInfoList}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:adReview:table:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),e._l(e.judgeQuestion,(function(t){return i("el-table-column",{key:t.armEnum,attrs:{label:e.$fd("ArmEnum",t.armEnum),align:"center",prop:"","show-overflow-tooltip":""}},[e._l(t.judgeQuestionList,(function(n,a){return i("el-table-column",{key:a,attrs:{prop:"",label:n,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[1===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].DictionaryCode?i("span",[e._v(e._s(e.$fd(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].DictionaryCode,parseInt(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))))]):i("span",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]):2===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer?i("div",[i("span",[e._v(e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer)))]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(i){return e.handleViewDetail(n.row.VisitTaskInfoList[t.index].GlobalVisitTaskId)}}},[e._v("\n "+e._s(e.$t("trials:adReview:table:view"))+"\n ")])],1):i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))+"\n ")])]):i("div",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]}}],null,!0)})}))],2)})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:adReview:table:view"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",title:e.$t("trials:adReview:table:viewR1")},on:{click:function(i){return e.handleView(t.row,1)}}},[e._v("\n R1\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",title:e.$t("trials:adReview:table:viewR2")},on:{click:function(i){return e.handleView(t.row,2)}}},[e._v("\n R2\n ")])]}}])})],2),e._v(" "),i("h3",[e._v(e._s(e.$t("trials:adReview:title:adResult")))]),e._v(" "),i("el-form",{ref:"adForm",staticStyle:{width:"800px"},attrs:{model:e.adForm,"label-width":"100"}},[i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:choseReader"),prop:"judgeResultTaskId"}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.adForm.judgeResultTaskId,callback:function(t){e.$set(e.adForm,"judgeResultTaskId",t)},expression:"adForm.judgeResultTaskId"}},e._l(e.visitTaskArmList,(function(t){return i("el-radio",{key:t.VisitTaskId,attrs:{label:t.VisitTaskId}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.ArmEnum))+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:adReason"),prop:"judgeResultRemark"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},disabled:""},model:{value:e.adForm.judgeResultRemark,callback:function(t){e.$set(e.adForm,"judgeResultRemark",t)},expression:"adForm.judgeResultRemark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:screenShot")}},[i("el-upload",{staticClass:"disabled",attrs:{action:".png,.jpg,.jpeg","list-type":"picture-card","file-list":e.fileList,disabled:""},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})])])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:adReview:title:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)],1)],1)},a=[],r=(i("7514"),i("5f87")),o={name:"AReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{adInfo:{},adForm:{},imgVisible:!1,imageUrl:"",fileList:[],visitTaskArmList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=this.auditInfo.JudgeInfo,i=[];t.VisitInfoList.length>0&&t.VisitInfoList[0].VisitTaskInfoList.map((function(t,n){var a={armEnum:t.ArmEnum,judgeQuestionList:[],index:n};t.JudgeQuestionList.map((function(t){1===t.QuestionType?a.judgeQuestionList.push(t.QuestionName):a.judgeQuestionList.push(e.$fd("JudgeReadingQuestionType",t.QuestionType))})),i.push(a)})),this.judgeQuestion=i,this.adInfo=t,this.adForm.judgeResultTaskId=t.JudgeResultTaskId,this.adForm.judgeResultRemark=t.JudgeResultRemark,this.fileList=[],t.JudgeResultImagePathList&&(t.JudgeResultImagePathList.map((function(t){t&&e.fileList.push({name:"",url:t})})),this.adForm.judgeResultImagePathList=t.JudgeResultImagePathList),this.visitTaskArmList=t.VisitTaskArmList},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleViewDetail:function(e){console.log(this.rowData);var t=this.$route.query.trialId,i=Object(r["a"])(),n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleView:function(e,t){var i=e.VisitTaskInfoList.find((function(e){return e.ArmEnum===t})),n=this.$route.query.trialId,a=Object(r["a"])(),o=this.rowData.CriterionType,s=this.rowData.ReadingTool;s=isNaN(parseInt(s))?null:parseInt(s);var l=this.rowData.IsReadingTaskViewInOrder,c=this.rowData.TrialReadingCriterionId,u="";u=0===s?"/readingDicoms?TrialReadingCriterionId=".concat(c,"&trialId=").concat(n,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(i.VisitTaskId,"&isReadingTaskViewInOrder=").concat(l,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(a,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(c,"&trialId=").concat(n,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(i.VisitTaskId,"&isReadingTaskViewInOrder=").concat(l,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(a,"&key=").concat((new Date).getTime());var d=this.$router.resolve({path:u});window.open(d.href,"_blank")}}},s=o,l=(i("9755"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"61d9b27c",null);t["default"]=c.exports},"02c9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Group"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Group,callback:function(t){e.$set(e.searchData,"Group",t)},expression:"searchData.Group"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Element"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Element,callback:function(t){e.$set(e.searchData,"Element",t)},expression:"searchData.Element"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescription")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescription,callback:function(t){e.$set(e.searchData,"TagDescription",t)},expression:"searchData.TagDescription"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescriptionCN")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescriptionCN,callback:function(t){e.$set(e.searchData,"TagDescriptionCN",t)},expression:"searchData.TagDescriptionCN"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("common:button:search")))])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v(e._s(e.$t("common:button:new")))])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Group",label:"Group","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Element",label:"Element","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescription",label:e.$t("admin:TagDescription"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescriptionCN",label:e.$t("admin:TagDescriptionCN"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueRepresentation",label:e.$t("admin:ValueRepresentation"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:IsFixed"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsFixed,callback:function(i){e.$set(t.row,"IsFixed",i)},expression:"scope.row.IsFixed"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReplaceValue",label:e.$t("admin:ReplaceValue"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:IsEnable"),width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}])})],1),e._v(" "),i("AddDICOMConfig",{ref:"AddDICOMConfig",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("b8ae"),s=i("f36a"),l=function(){return{Group:"",Element:"",TagDescription:"",IsAdd:!1,TagDescriptionCN:"",PageIndex:1,PageSize:500}},c={name:"Anonymization",components:{BoxContent:s["default"],AddDICOMConfig:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["t"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["AddDICOMConfig"].openDialog(e.$t("common:button:new"),{})}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["AddDICOMConfig"].openDialog(t.$t("common:button:edit"),e)}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("common:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["O"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["xb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"0340":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i("ac6a");var n=i("e8ae"),a=i.n(n);function r(e,t,i,n,r,o,s,l,c){var u=new a.a.Workbook,d=u.addWorksheet(e);d.columns=t;var f=String.fromCharCode(64+t.length);d.mergeCells("A1:".concat(f,"2")),d.getCell("A1").value=i,d.getCell("A1").alignment={vertical:"middle",horizontal:"center"},d.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},d.mergeCells("A3:".concat(f,"3")),d.getCell("A3").value=n,d.getCell("A3").alignment={vertical:"middle",horizontal:"right"},d.getRow(4).values=r,d.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},d.getRow(4).alignment={vertical:"middle",horizontal:"left"},d.addRows(o),l.forEach((function(e){d.getColumn(e.colIndex).numFmt=e.format})),d.addRow(s),d.getRow(o.length+5).font={name:"SimSun",family:4,size:11,bold:!0},c&&d.mergeCells(c),d.eachRow((function(e,t){t>3&&e.eachCell((function(e){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),u.xlsx.writeBuffer({base64:!0}).then((function(t){var n=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(n,"".concat(e," ").concat(i,".xlsx"));else{var a=document.createElement("a"),r=URL.createObjectURL(n);a.href=r,a.download="".concat(e," ").concat(i,".xlsx"),document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(r)}),0)}}))}},"0352":function(e,t,i){var n=i("6cb7"),a=i("b12f"),r=i("0f99"),o=r.detectSourceFormat,s=i("93d0"),l=s.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),a.extend({type:"dataset"})},"038b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"trialStatusForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:status"),prop:"trialStatusStr"}},[i("el-radio-group",{on:{change:e.handleTrialStatusChange},model:{value:e.form.trialStatusStr,callback:function(t){e.$set(e.form,"trialStatusStr",t)},expression:"form.trialStatusStr"}},[i("el-radio",{attrs:{label:"Initializing",disabled:""}},[e._v(e._s(e.$fd("TrialStatusEnum","Initializing")))]),e._v(" "),i("el-radio",{attrs:{label:"Ongoing"}},[e._v(e._s(e.$fd("TrialStatusEnum","Ongoing")))]),e._v(" "),i("el-radio",{attrs:{label:"Stopped",disabled:"Completed"===e.originalStatus||"Initializing"===e.originalStatus}},[e._v("\n "+e._s(e.$fd("TrialStatusEnum","Stopped"))+"\n ")]),e._v(" "),i("el-radio",{attrs:{label:"Completed",disabled:"Stopped"===e.originalStatus||"Initializing"===e.originalStatus}},[e._v("\n "+e._s(e.$fd("TrialStatusEnum","Completed"))+"\n ")])],1)],1),e._v(" "),"Completed"!==e.originalStatus&&"Stopped"!==e.originalStatus||"Ongoing"!==e.form.trialStatusStr?e._e():i("el-form-item",{attrs:{label:e.$t("trials:trials-list:label:reason"),prop:"reason"}},[i("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1),e._v(" "),e.warningMessage?i("el-form-item",{attrs:{label:""}},[i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.warningMessage))])]):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.originalStatus===e.form.trialStatusStr,loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"trial-id":e.trialId,"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("adca")),s=i("25f2"),l=i("7a9e"),c={name:"TrialStatusForm",components:{SignForm:s["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{trialStatusStr:"",trialId:"",reason:""},originalStatus:"",rules:{trialStatusStr:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],reason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},btnLoading:!1,signVisible:!1,currentUser:zzSessionStorage.getItem("userName"),signCode:l["default"].processSignature.TrialStatusChange,warningMessage:"",trialId:""}},mounted:function(){this.initForm()},methods:{initForm:function(){if(Object.keys(this.data).length>0){var e=Object(r["a"])({},this.data),t=e.Id,i=e.TrialStatusStr;this.form.trialId=t,this.form.trialStatusStr=i,this.originalStatus=i,this.form.reason="",this.trialId=t}},handleTrialStatusChange:function(e){this.warningMessage="","Initializing"===this.originalStatus&&"Ongoing"===e?this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes1"):"Ongoing"===this.originalStatus&&"Completed"===e?this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes2"):"Ongoing"===this.originalStatus&&"Stopped"===e&&(this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes3"))},handleSave:function(){var e=this;this.$refs.trialStatusForm.validate((function(t){t&&(e.signVisible=!0)}))},changeStatus:function(e){var t=this;this.btnLoading=!0;var i={data:{trialId:this.form.trialId,trialStatusStr:this.form.trialStatusStr,reason:this.form.reason},signInfo:e};Object(o["a"])(i).then((function(e){t.btnLoading=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.$emit("getList"),t.$message.success(t.$t("common:message:savedSuccessfully")),t.$emit("closeDialog")})).catch((function(){t.btnLoading=!1,t.$refs["signForm"].btnLoading=!1}))},handleCancel:function(){this.$emit("closeDialog")},closeSignDialog:function(e,t){e?this.changeStatus(t):this.signVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"039a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-download",use:"icon-download-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"03e9":function(e,t,i){},"0417":function(e,t,i){},"0465":function(e,t,i){"use strict";i("a34c")},"046d":function(e,t,i){},"04f6":function(e,t){var i=32,n=7;function a(e){var t=0;while(e>=i)t|=1&e,e>>=1;return e+t}function r(e,t,i,n){var a=t+1;if(a===i)return 1;if(n(e[a++],e[t])<0){while(a=0)a++;return a-t}function o(e,t,i){i--;while(t>>1,a(o,e[r])<0?l=r:s=r+1;var c=n-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function l(e,t,i,n,a,r){var o=0,s=0,l=1;if(r(e,t[i+a])>0){s=n-a;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{s=a+1;while(ls&&(l=s);var c=o;o=a-l,l=a-c}o++;while(o>>1);r(e,t[i+u])>0?o=u+1:l=u}return l}function c(e,t,i,n,a,r){var o=0,s=0,l=1;if(r(e,t[i+a])<0){s=a+1;while(ls&&(l=s);var c=o;o=a-l,l=a-c}else{s=n-a;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}o++;while(o>>1);r(e,t[i+u])<0?l=u:o=u+1}return l}function u(e,t){var i,a,r=n,o=0,s=0;o=e.length;var u=[];function d(e,t){i[s]=e,a[s]=t,s+=1}function f(){while(s>1){var e=s-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>=2&&a[e-2]<=a[e]+a[e-1])a[e-1]a[e+1])break;p(e)}}function h(){while(s>1){var e=s-2;e>0&&a[e-1]=n||g>=n);if(v)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),1===a){for(d=0;d=0;d--)e[g+d]=e[m+d];if(0===a){w=!0;break}}if(e[p--]=u[h--],1===--s){w=!0;break}if(y=s-l(e[f],u,0,s,s-1,t),0!==y){for(p-=y,h-=y,s-=y,g=p+1,m=h+1,d=0;d=n||y>=n);if(w)break;v<0&&(v=0),v+=2}if(r=v,r<1&&(r=1),1===s){for(p-=a,f-=a,g=p+1,m=f+1,d=a-1;d>=0;d--)e[g+d]=e[m+d];e[p]=u[h]}else{if(0===s)throw new Error;for(m=p-(s-1),d=0;d=0;d--)e[g+d]=e[m+d];e[p]=u[h]}else for(m=p-(s-1),d=0;df&&(h=f),s(e,n,n+h,n+c,t),c=h}d.pushRun(n,c),d.mergeRuns(),l-=c,n+=c}while(0!==l);d.forceMergeRuns()}}e.exports=d},"0560":function(e,t,i){"use strict";i("5616")},"059d":function(e,t,i){},"0636":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404",staticStyle:{display:"flex","align-items":"center"}},[e._m(0),e._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops",staticStyle:{color:"#00d1b2"}},[e._v("出错了!")]),e._v(" "),i("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),e._v(" "),i("div",{staticClass:"bullshit__return-home",staticStyle:{background:"#00d1b2"},on:{click:function(t){return e.$router.push({path:"/login"})}}},[e._v("返回")])])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:i("856c"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],r={computed:{message:function(){return this.$route.query.ErrorMessage}}},o=r,s=(i("1f2b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"0a774d6a",null);t["default"]=l.exports},"0638":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{attrs:{shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.doctorName)+" ' "+e._s(5==e.listQuery.Status?"Pending":8==e.listQuery.Status?"Approved":"Reading")+" trials")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialsList",staticClass:"table",attrs:{data:e.list,stripe:"",size:"small",height:e.tableHeight},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code","min-width":"110",label:"Trial ID","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase","min-width":"100",label:"Phase","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewType",label:"Review Type","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Criterion",label:"Criteria","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"Modalities","min-width":"120",formatter:e.ModalitiesFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CRO",label:"CRO","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"120","show-overflow-tooltip":"",formatter:e.timeFormatter,sortable:"custom"}})],1),e._v(" "),i("div",{staticStyle:{"margin-top":"5px","text-align":"right"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=(i("7f7f"),i("7878")),o=i("333d"),s=i("33ba"),l=i("4360"),c=i("a599"),u={name:"TrialStats",components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:{DoctorId:"",Status:0,PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,doctorName:"",listLoading:!1,tableHeight:document.documentElement.clientHeight-160}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(l["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(c["a"])("TokenKey","")),this.listQuery.DoctorId=this.$router.currentRoute.query.doctorId,this.listQuery.Status=this.$router.currentRoute.query.status,this.doctorName=this.$router.currentRoute.query.name,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["t"])(this.listQuery).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"ReviewType"===e.prop?e.prop="ReviewTypeId":"Criterion"===e.prop&&(e.prop="CriterionId"),this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},ModalitiesFormatter:function(e,t){if(e.ModalityList.length>0)return e.ModalityList.join(", ")},timeFormatter:function(e){if(e.CreateTime)return Object(r["formatUTCTime"])(e.CreateTime)},handleTrialstatus:function(e){return"RFP"===e.TrialStatusStr?"Request for Proposal":"Submitted"===e.TrialStatusStr?"CVs Submitted":"Approved"===e.TrialStatusStr||"Approved"===e.TrialStatusStr?"Readers Approved":e.TrialStatusStr}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0641":function(e,t,i){"use strict";i("5f5b")},"0655":function(e,t,i){var n=i("8728"),a=1e-8;function r(e,t){return Math.abs(e-t).5?t:e}function f(e,t,i,n,a){var r=e.length;if(1===a)for(var o=0;oa;if(r)e.length=a;else for(var o=n;o=0;i--)if(R[i]<=t)break;i=Math.min(i,_-2)}else{for(i=z;i<_;i++)if(R[i]>t)break;i=Math.min(i-1,_-2)}z=i,B=t;var n=R[i+1]-R[i];if(0!==n)if(M=(t-R[i])/n,w)if(j=D[i],F=D[0===i?i:i-1],V=D[i>_-2?_-1:i+1],q=D[i>_-3?_-1:i+2],S)m(F,j,V,q,M,M*M,M*M*M,c(e,s),k);else{if(T)a=m(F,j,V,q,M,M*M,M*M*M,U,1),a=b(U);else{if(C)return d(j,V,M);a=g(F,j,V,q,M,M*M,M*M*M)}v(e,s,a)}else if(S)f(D[i],D[i+1],M,c(e,s),k);else{var a;if(T)f(D[i],D[i+1],M,U,1),a=b(U);else{if(C)return d(D[i],D[i+1],M);a=u(D[i],D[i+1],M)}v(e,s,a)}},H=new n({target:e._target,life:I,loop:e._loop,delay:e._delay,onframe:Q,ondestroy:i});return t&&"spline"!==t&&(H.easing=t),H}}}var _=function(e,t,i,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=i||l,this._setter=n||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(e,t){var i=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==e&&i[n].push({time:0,value:v(a)})}i[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e'});o.a.add(s);t["default"]=s},"06c7":function(e,t,i){var n=i("6d8b"),a=i("31d9"),r=i("6179"),o=i("b1d4"),s=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function l(e){this.root,this.data,this._nodes=[],this.hostModel=e}function c(e,t){var i=t.children;e.parentNode!==t&&(i.push(e),e.parentNode=t)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,i){"function"===typeof e&&(i=t,t=e,e=null),e=e||{},n.isString(e)&&(e={order:e});var a,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(a=t.call(i,this));for(var s=0;!a&&st&&(t=n.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,n=i.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,i){this.root.eachNode(e,t,i)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,i=0,n=t.length;i=0&&o>=0&&ri)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);a=a>this.stack.imageIds.length?this.stack.imageIds.length:a<0?0:a,this.height=n,this.stack.currentImageIdIndex!==a&&v(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},onClipStopped:function(){this.toolState.clipPlaying=!1},onKeyPress:function(e){var t=e.detail.keyCode,i={PageUp:33,PageDown:34,End:35,Home:36};ti.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){l["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=l["getImage"](this.canvas);l["setViewport"](this.canvas,l["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?u["orientationMarkers"].enable(this.canvas):u["orientationMarkers"].disable(this.canvas),l["updateImage"](this.canvas)},setColormap:function(e){var t=l["getViewport"](this.canvas);t.colormap=e,l["setViewport"](this.canvas,t),l["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=l["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&v(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return u["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,u["playClip"](this.canvas,this.dicomInfo.fps),u["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=l["getViewport"](this.canvas);e.invert=!1;var t=l["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,l["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=l["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,l["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=l["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,l["setViewport"](this.canvas,e)},activateZoom:function(){u["addTool"](u["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),u["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=l["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,l["setViewport"](this.canvas,e)},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):3===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=l["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),l["setViewport"](this.canvas,o)},saveImage:function(){var e=l["getImage"](this.canvas).data.string("x00080018");u["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&l["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=l["getEnabledElement"](this.canvas);e.viewport.scale=1,l["updateImage"](this.canvas)}},clearMeasurement:function(){var e=l["getViewport"](this.canvas);e.colormap&&this.resetRenderCanvase(this.canvas),b.clear(this.canvas),l["setViewport"](this.canvas,l["getDefaultViewportForImage"](this.canvas,l["getImage"](this.canvas))),l["updateImage"](this.canvas)},setToolPassive:function(e){u["setToolPassiveForElement"](this.canvas,e)},setToolActive:function(e){u["setToolActiveForElement"](this.canvas,e,{mouseButtonMask:1})},setAllToolsPassive:function(){var e=this;u["store"].state.tools.forEach((function(t){u["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){u["getToolForElement"](this.canvas,u["ReferenceLinesTool"])||u["addToolForElement"](this.canvas,u["ReferenceLinesTool"]),u["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),u["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,u["getToolForElement"](this.canvas,u["".concat(t,"Tool")])||u["addToolForElement"](this.canvas,u["".concat(t,"Tool")]),u["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),u["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},onContextmenu:function(e){var t=this,i=l["colors"].getColormapsList(),n=[];return n.push({label:"默认值",onClick:function(){t.setColormap()}}),i.forEach((function(e){var i={};i.label=e.name,i.onClick=function(){t.setColormap(e.id)},n.push(i)})),this.$contextmenu({items:[{label:"移动",divided:!0,onClick:function(){t.setToolActive("Pan")}},{label:"缩放",divided:!0,children:[{label:"自由缩放",onClick:function(){t.setToolActive("Zoom")}},{label:"适应图像",onClick:function(){t.fitToWindow()}},{label:"适应窗口",onClick:function(){t.fitToImage()}}]},{label:"透镜",divided:!0,onClick:function(){t.setToolActive("Magnify")}},{label:"旋转",divided:!0,children:[{label:"默认值",onClick:function(){t.resetRotate()}},{label:"自由旋转",onClick:function(){t.setToolActive("Rotate")}},{label:"水平翻转",onClick:function(){t.setRotate(!0,!1,0)}},{label:"垂直翻转",onClick:function(){t.setRotate(!1,!0,0)}},{label:"左转90度",onClick:function(){t.setRotate(!1,!1,-90)}},{label:"右转90度",onClick:function(){t.setRotate(!1,!1,90)}}]},{label:"测量",divided:!0,minWidth:0,children:[{label:"探针",onClick:function(){t.setToolActive("Probe")}},{label:"长度测量",onClick:function(){t.setToolActive("Length")}},{label:"角度测量",onClick:function(){t.setToolActive("Angle")}},{label:"Cobb测量",onClick:function(){t.setToolActive("CobbAngle")}},{label:"椭圆测量",onClick:function(){t.setToolActive("EllipticalRoi")}},{label:"矩形测量",onClick:function(){t.setToolActive("RectangleRoi")}},{label:"多边形标记",onClick:function(){t.setToolActive("FreehandRoi")}},{label:"十字线",onClick:function(){t.setToolActive("Bidirectional")}},{label:"文字标注",onClick:function(){t.setToolActive("ArrowAnnotate")}}]},{label:"调窗",divided:!0,onClick:function(){t.setToolActive("Wwwc")}},{label:"反色",divided:!0,onClick:function(){t.toggleInvert()}},{label:"伪彩",children:n}],event:e,customClass:"class-a",zIndex:3,minWidth:100}),!1},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=a.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(t,i){var a=o.findPieceIndex(t,this._pieceList);a===e&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],i=[],n=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return a.each(r,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:i}}function l(a,r){var o=n.getRepresentValue({interval:a});r||(r=n.getValueState(o));var s=e(o,r);a[0]===-1/0?i[0]=s:a[1]===1/0?i[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}}}),d={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),n=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(n[1]-n[0])/r;while(+o.toFixed(i)!==o&&i<5)i++;e.precision=i,o=+o.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,l=n[0];s","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)}),this)}};function f(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var h=u;e.exports=h},"0744":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body",staticStyle:{border:"none"}},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:site"),prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",disabled:""},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:subjectId"),prop:"Code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}}),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.otherInfo.IsNoticeSubjectCodeRule,expression:"otherInfo.IsNoticeSubjectCodeRule"}],staticStyle:{color:"#F56C6C","font-size":"12px"}},[e._v(e._s(e.otherInfo.SubjectCodeRule))])],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:subject:table:firstGiveMedicineTime"),prop:"FirstGiveMedicineTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.FirstGiveMedicineTime,callback:function(t){e.$set(e.form,"FirstGiveMedicineTime",t)},expression:"form.FirstGiveMedicineTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"SubjectForm",props:{data:{type:Object,default:function(){return{}}},otherInfo:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",ShortName:"",Height:"",Weight:"",Age:"",Sex:"",BirthDate:"",SiteId:"",MedicalNo:"",Status:1,FirstGiveMedicineTime:"",OutEnrollmentTime:"",VisitOverTime:"",Reason:"",StudyCount:"",SignDate:"",IsUrgent:!1},isHaveSubjectAge:!1,rules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],FirstGiveMedicineTime:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},btnLoading:!1,siteOptions:[],loading:!1,trialId:""}},computed:{isEdit:function(){return!!this.form.Id&&this.hasPermi(["role:crc"])}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,Object(o["Zd"])(this.trialId);case 3:if(t=e.sent,this.loading=!1,this.siteOptions=t.Result,Object.keys(this.data).length>0)for(i in this.form)this.data.hasOwnProperty(i)&&(this.form[i]=this.data[i]);this.form.TrialId=this.trialId;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["y"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("submitFirstGiveMedicineTime",e.form.FirstGiveMedicineTime)})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteList=t.Result}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"07445":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("user-info",{on:{getUserId:e.getUserId}})},a=[],r=i("a483"),o={name:"AddUser",components:{UserInfo:r["default"]},data:function(){return{userId:"",role:!1}},methods:{getUserId:function(e){this.userId=e}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"075e":function(e,t,i){},"07d7":function(e,t,i){var n=i("6d8b"),a=i("41ef"),r=i("607d"),o=i("65ed"),s=i("22d1"),l=i("eda2"),c=n.each,u=l.toCamelCase,d=["","-webkit-","-moz-","-o-"],f="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+t+",top "+e+"s "+t;return n.map(d,(function(e){return e+"transition:"+i})).join(";")}function p(e){var t=[],i=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=e.get("lineHeight");null==a&&(a=Math.round(3*i/2)),i&&t.push("line-height:"+a+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+r),c(["decoration","align"],(function(i){var n=e.get(i);n&&t.push("text-"+i+":"+n)})),t.join(";")}function m(e){var t=[],i=e.get("transitionDuration"),n=e.get("backgroundColor"),r=e.getModel("textStyle"),o=e.get("padding");return i&&t.push(h(i)),n&&(s.canvasSupported?t.push("background-Color:"+n):(t.push("background-Color:#"+a.toHex(n)),t.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(i){var n="border-"+i,a=u(n),r=e.get(a);null!=r&&t.push(n+":"+r+("color"===i?"":"px"))})),t.push(p(r)),null!=o&&t.push("padding:"+l.normalizeCssArray(o).join("px ")+"px"),t.join(";")+";"}function g(e,t,i,n,a){var r=t&&t.painter;if(i){var s=r&&r.getViewportRoot();s&&o.transformLocalCoord(e,s,document.body,n,a)}else{e[0]=n,e[1]=a;var l=r&&r.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function v(e,t,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],g(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=a.handler,i=a.painter.getViewportRoot();r.normalizeEvent(i,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(e){var t=this._container,i=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var a=e.get("alwaysShowContent");a&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,i=this._styleCoord;t.style.cssText=f+m(e)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var i=this._styleCoord;g(i,this._zr,this._appendToBody,e,t);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(e+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),t+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:e,height:t}}};var b=v;e.exports=b},"07e6":function(e,t,i){i("4d85"),i("a753")},"0805":function(e,t,i){},"0811":function(e,t,i){"use strict";i("6c89")},"0817":function(e,t,i){var n=i("3eba");i("f306"),i("0046"),i("60d7");var a=i("ab71");n.registerVisual(a)},"0824":function(e,t,i){},"0848":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n Add\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"编号",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"场景类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SceneConfigForm",{attrs:{"parent-id":e.parentId,data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("f76e"),c={name:"SignTemplate",components:{BoxContent:s["default"],SceneConfigForm:l["default"]},props:{parentId:{type:String,required:!0}},data:function(){return{loading:!1,list:[],rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Y"])(this.parentId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeDialog:function(){this.editVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"085d":function(e,t,i){var n=i("3eba");i("bd92"),i("19e2");var a=i("eabf"),r=i("4c99"),o=i("09b1");n.registerPreprocessor(a),n.registerVisual(r),n.registerLayout(o)},"08a6":function(e,t,i){"use strict";i("55c6")},"08c3":function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n){a.call(this,e,t,i),this.type=n||"value",this.model=null};r.prototype={constructor:r,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(r,a);var o=r;e.exports=o},"09a2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.trialStats_form,"search-handle":e.trialStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"croSlot"},[i("el-select",{ref:"CROSelection",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"90",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",label:"CRO","min-width":"80",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"CreateTime","min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameList",label:"Reviewer Name","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameList))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameCNList",label:"Reviewer Name CN","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameCNList))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollCount",label:"Entry Count","min-width":"90",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("7878"),s=i("48fb"),l=i("0340"),c=i("4360"),u=i("2f62"),d=i("fe09"),f=i("333d"),h=i("f36a"),p=i("d13d"),m=function(){return{CroId:"",TrialCode:"",Indication:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM"),PageIndex:1,PageSize:20}},g={name:"WorkloadStats",components:{Pagination:f["default"],BoxContent:h["default"],SearchForm:p["default"]},data:function(){var e=this;return{trialStats_form:d["e"],trialStats_handle:d["f"],searchData:m(),list:[],listLoading:!1,total:0,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(u["b"])(["croList"])),mounted:function(){this.getList(),c["a"].dispatch("global/getCROList")},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["b"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.ReviewerNameList=e.ReviewerNameList.join(", "),e.ReviewerNameCNList=e.ReviewerNameCNList.join(", "),e.CreateTime=Object(o["formatUTCTime"])(e.CreateTime)})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i-1}));s.forEach((function(e){e.Index=o++,e.Expedited=0===e.Expedited?"No":1===e.Expedited?"24H":"48H",r+=e.EnrollCount}));var c=["","Total","","","","","",r];Object(l["a"])(t,i,"Enrollments Statistics",n,a,s,c,[])}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"09b1":function(e,t,i){var n=i("2306"),a=n.subPixelOptimize,r=i("cccd"),o=i("3842"),s=o.parsePercent,l=i("6d8b"),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,d={seriesType:"candlestick",plan:r(),reset:function(e){var t=e.coordinateSystem,i=e.getData(),n=h(e,i),r=0,o=1,s=["x","y"],l=i.mapDimension(s[r]),c=i.mapDimension(s[o],!0),d=c[0],p=c[1],m=c[2],g=c[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==l||c.length<4))return{progress:e.pipelineContext.large?b:v};function v(e,i){var s;while(null!=(s=e.next())){var c=i.get(l,s),u=i.get(d,s),h=i.get(p,s),v=i.get(m,s),b=i.get(g,s),y=Math.min(u,h),w=Math.max(u,h),_=C(y,c),I=C(w,c),x=C(v,c),S=C(b,c),T=[];k(T,I,0),k(T,_,1),T.push(D(S),D(I),D(x),D(_)),i.setItemLayout(s,{sign:f(i,s,u,h,p),initBaseline:u>h?I[o]:_[o],ends:T,brushRect:R(v,b,c)})}function C(e,i){var n=[];return n[r]=i,n[o]=e,isNaN(i)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function k(e,t,i){var o=t.slice(),s=t.slice();o[r]=a(o[r]+n/2,1,!1),s[r]=a(s[r]-n/2,1,!0),i?e.push(o,s):e.push(s,o)}function R(e,t,i){var a=C(e,i),s=C(t,i);return a[r]-=n/2,s[r]-=n/2,{x:a[0],y:a[1],width:o?n:s[0]-a[0],height:o?s[1]-a[1]:n}}function D(e){return e[r]=a(e[r],1),e}}function b(e,i){var n,a,s=new u(4*e.count),c=0,h=[],v=[];while(null!=(a=e.next())){var b=i.get(l,a),y=i.get(d,a),w=i.get(p,a),_=i.get(m,a),I=i.get(g,a);isNaN(b)||isNaN(_)||isNaN(I)?(s[c++]=NaN,c+=3):(s[c++]=f(i,a,y,w,p),h[r]=b,h[o]=_,n=t.dataToPoint(h,null,v),s[c++]=n?n[0]:NaN,s[c++]=n?n[1]:NaN,h[o]=I,n=t.dataToPoint(h,null,v),s[c++]=n?n[1]:NaN)}i.setLayout("largePoints",s)}}};function f(e,t,i,n,a){var r;return r=i>n?-1:i0?e.get(a,t-1)<=n?1:-1:1,r}function h(e,t){var i,n=e.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/t.count()),r=s(c(e.get("barMaxWidth"),a),a),o=s(c(e.get("barMinWidth"),1),a),l=e.get("barWidth");return null!=l?s(l,a):Math.max(Math.min(a/2,r),o)}e.exports=d},"09fa":function(e,t,i){var n=i("4588"),a=i("9def");e.exports=function(e){if(void 0===e)return 0;var t=n(e),i=a(t);if(t!==i)throw RangeError("Wrong length!");return i}},"0a2a":function(e,t,i){},"0a32":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"问题名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{disabled:0===e.list.length,size:"mini",type:"primary"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n Preview\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"问题名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("radio"===t.row.Type?"单选框":"select"===t.row.Type?"下拉框":"input"===t.row.Type?"文本框":"textarea"===t.row.Type?"多行文本框":"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:"选项","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:"父问题","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:"父问题触发值","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsRequired?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"启用状态","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"启用":"停用")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("QcQuestionForm",{ref:"qcQuestionForm",on:{getList:e.getList}}),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QcQuestionPreview")],1)]):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("457a"),s=i("f36a"),l=i("d28b"),c=function(){return{QuestionName:"",Type:""}},u={name:"QcQuestions",components:{BoxContent:s["default"],QcQuestionForm:o["default"],QcQuestionPreview:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},preview:{visible:!1,title:"预览"}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["mb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["qcQuestionForm"].openDialog("New",{})}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["qcQuestionForm"].openDialog("Edit",e)}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["I"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0a45":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:55},expression:"{bottomOffset:55}"}],ref:"myTable",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:name"),"show-overflow-tooltip":"","min-width":"150",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.DoctorId+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:e.$t("trials:enrolledReviews:table:nameCN"),"min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:enrolledReviews:table:userName"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollTimeStr",label:e.$t("trials:enrolledReviews:table:enrollmentTime"),width:"200",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnrollTime?i("span",[e._v("\n "+e._s(""+t.row.EnrollTime)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollTimeStr",label:e.$t("trials:enrolledReviews:table:status"),width:"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.isEnableChange(t.row,i)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}}),e._v(" "),i("span",[e._v(e._s(t.row.IsEnable?e.$t("trials:enrolledReviews:table:enable"):e.$t("trials:enrolledReviews:table:disable")))])],1)]}}])}),e._v(" "),e._l(e.TrialReadingCriterionList,(function(t){return i("el-table-column",{attrs:{label:t.TrialReadingCriterionName,width:"360","header-align":"center","show-overflow-tooltip":""}},[i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:readingType"),width:"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[e._l(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId}))?n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ReadingCategorys:[],(function(t){return i("span",[1===t?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t)+"&"+e.$fd("ReadingCategory",2)))]):e._e(),e._v(" "),4===t?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t)))]):e._e(),e._v(" "),5===t?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t)))]):e._e()],1)})),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],attrs:{type:"text"},on:{click:function(i){return e.openSetEnrollReadingCategory(n.row,t.TrialReadingCriterionId)}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:config"))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:sow"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).StatementCriterionFileList.length>0?i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(i){e.windowOpen(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).StatementCriterionFileList[0].FilePath)}}},[e._v("View")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:enrolledReviews:label:notUpload")))]),e._v(" "),0===t.CriterionType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:function(i){e.addCol(0,n.row,t,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:upload"))+"\n ")]):e._e()],1)]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:asow"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).AcknowledgementCriterionFileList.length>0?i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(i){e.windowOpen(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).AcknowledgementCriterionFileList[0].FilePath)}}},[e._v("View")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:enrolledReviews:label:notUpload")))]),e._v(" "),0===t.CriterionType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:function(i){e.addCol(1,n.row,t,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:upload"))+"\n ")]):e._e()],1)]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:tackNum"),width:"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[i("div",[e._v("\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).PendingCount)+"\n /\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ComplectedCount)+"\n /\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).TotalCount)+"\n ")])]}}],null,!0)})],1)}))],2)],1),e._v(" "),i("base-model",{attrs:{config:e.sow_model}},[i("template",{slot:"dialog-body"},[i("upload-acksow",{ref:"uploadAckSow",attrs:{"trial-id":e.listQuery.TrialId,"doctor-id":e.doctorId},on:{getFileList:e.getFileList}})],1)],2),e._v(" "),i("base-model",{attrs:{config:e.readingType_model}},[i("template",{slot:"dialog-body"},[i("label",[e._v(e._s(e.$t("trials:enrolledReviews:table:readingType"))+": ")]),e._v(" "),i("el-select",{staticStyle:{width:"70%"},attrs:{filterable:"","allow-create":"","default-first-option":""},model:{value:e.readingType,callback:function(t){e.readingType=t},expression:"readingType"}},[i("el-option",{attrs:{value:0,label:"TP&GL&AD"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"TP&GL"}}),e._v(" "),i("el-option",{attrs:{value:2,label:"AD"}})],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.readingType_model.btnLoading,type:"primary"},on:{click:function(t){e.readingType_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.readingType_model.btnLoading},on:{click:e.handleUpdateReadingType}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("base-model",{attrs:{config:e.readingCategory_model}},[i("template",{slot:"dialog-body"},[i("label",[e._v(e._s(e.$t("trials:enrolledReviews:table:readingType"))+": ")]),e._v(" "),i("el-select",{staticStyle:{width:"70%"},attrs:{filterable:"","allow-create":"",multiple:"","default-first-option":""},model:{value:e.ReadingCategorys,callback:function(t){e.ReadingCategorys=t},expression:"ReadingCategorys"}},[e._l(e.$d.ReadingCategory,(function(t){return 1===t.value?i("el-option",{key:t.id,attrs:{value:1,label:e.$fd("ReadingCategory",1)+"&"+e.$fd("ReadingCategory",2)}}):e._e()})),e._v(" "),e._l(e.$d.ReadingCategory,(function(t){return 4===t.value&&e.IsArbitrationReading?i("el-option",{key:t.id,attrs:{value:t.value,label:e.$fd("ReadingCategory",4)}}):e._e()})),e._v(" "),e._l(e.$d.ReadingCategory,(function(t){return 5===t.value&&e.IsOncologyReading?i("el-option",{key:t.id,attrs:{value:t.value,label:e.$fd("ReadingCategory",5)}}):e._e()}))],2)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.readingCategory_model.btnLoading,type:"primary"},on:{click:function(t){e.readingCategory_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.readingCategory_model.btnLoading},on:{click:e.handleUpdateReadingCategory}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("base-model",{attrs:{config:e.reviewerStatus_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"updateStatusForm",attrs:{model:e.updateStatusForm,rules:e.updateStatusFormrules}},[i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:label:enrollmentStatus"),prop:"Status"}},[i("el-select",{staticStyle:{width:"60%"},model:{value:e.updateStatusForm.Status,callback:function(t){e.$set(e.updateStatusForm,"Status",t)},expression:"updateStatusForm.Status"}},e._l(e.$d.OutOrInEnrollment,(function(t){return i("el-option",{key:"OutOrInEnrollment"+t.value,attrs:{value:t.value,label:t.label,disabled:0===t.value&&e.currentWorkload>0}})})),1)],1),e._v(" "),1==e.updateStatusForm.Status?i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:label:outOfEnrollmentTime"),prop:"OutEnrollmentTime"}},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.updateStatusForm.OutEnrollmentTime,callback:function(t){e.$set(e.updateStatusForm,"OutEnrollmentTime",t)},expression:"updateStatusForm.OutEnrollmentTime"}})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.reviewerStatus_model.btnLoading,type:"primary"},on:{click:function(t){e.reviewerStatus_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.reviewerStatus_model.btnLoading},on:{click:e.handleUpdateReviewerStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("BaseModel",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Criterion Type ",prop:"CriterionType"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.CriterionName,callback:function(t){e.$set(e.form,"CriterionName",t)},expression:"form.CriterionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"File",prop:"FilePath"}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview2,"on-remove":e.handleRemoveFile2,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)],2)},a=[],r=(i("c5f6"),i("7514"),i("7f7f"),i("ac6a"),i("456d"),i("3e42")),o=i("33ba"),s=i("a796"),l=i("958c"),c=i("985e"),u=i("4360"),d=i("6071"),f=i("7eeb"),h={components:{UploadAcksow:c["default"],BaseContainer:d["default"],BaseModel:f["default"]},data:function(){return{list:[],TrialReadingCriterionId:null,listQuery:{TrialId:"",PageIndex:1,PageSize:100,Asc:!1,SortField:""},doctorId:"",currentRow:{},listLoading:!1,total:0,trialId:"",currentClickRowData:"",btnLoading:!1,readingType:"",model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},sow_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:signedAckOfSow"),showClose:!0,width:"500px"},readingType_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeReadingType"),showClose:!0,width:"500px",btnLoading:!1},readingCategory_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeReadingType"),showClose:!0,width:"500px",btnLoading:!1},reviewerStatus_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeStatus"),showClose:!0,width:"500px",btnLoading:!1},updateStatusForm:{Status:"",OutEnrollmentTime:""},updateStatusFormrules:{Status:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],OutEnrollmentTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},token:u["a"].getters.token,ReadingCategorys:[],apiReadingCategorys:[],TrialReadingCriterionList:[],IsArbitrationReading:!0,IsOncologyReading:!0,fileList:[],form:{}}},computed:{currentWorkload:function(){if(0===Object.keys(this.currentRow).length)return 0;var e=this.currentRow.Adjudication+this.currentRow.AdjudicationIn24H+this.currentRow.AdjudicationIn48H+this.currentRow.Timepoint+this.currentRow.TimepointIn24H+this.currentRow.TimepointIn48H+this.currentRow.TrainingTimes+this.currentRow.RefresherTraining+this.currentRow.Global+this.currentRow.Downtime;return e}},mounted:function(){this.trialId=this.$route.query.trialCode,this.listQuery.TrialId=this.$route.query.trialId,this.initPage()},methods:{beforeUpload:function(){this.fileList.length>0&&this.$message.error(this.$t("trials:enrolledReviews:message:uploadSowWaring1"))},handleSave:function(){var e=this;this.$refs["DictionaryTypeConfigForm"].validate((function(t){t&&Object(o["a"])(e.form).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.initPage(),e.handleCancle()}))}))},handlePreview3:function(e){e.FilePath&&window.open(e.FilePath,"_blank")},handlePreview2:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(s["f"])(e.file,0===this.form.FileType?this.$t("trials:enrolledReviews:message:SOW"):this.$t("trials:enrolledReviews:message:EQC"),this.form.DoctorId).then((function(i){t.form.FilePath=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},handleCancle:function(){this.model_cfg.visible=!1},handleRemoveFile2:function(){this.form.FileName=null,this.form.FilePath=null,this.fileList=[]},addCol:function(e,t,i){this.model_cfg.visible=!0,this.form={Remark:null,FileType:e,FileName:null,FilePath:null,IsEnable:!0,TrialId:this.listQuery.TrialId,DoctorId:t.DoctorId,CriterionType:i.CriterionType,CriterionName:i.TrialReadingCriterionName,TrialReadingCriterionId:i.TrialReadingCriterionId},this.handleRemoveFile2(),this.model_cfg.title=0===e?this.$t("trials:enrolledReviews:message:SOW"):this.$t("trials:enrolledReviews:message:EQC")},windowOpen:function(e){console.log(e),window.open(e)},isEnableChange:function(e,t){var i=this;console.log(e),this.listLoading=!0,Object(l["bb"])({TrialId:this.listQuery.TrialId,IsEnable:t,EnrollId:e.EnrollId}).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.listLoading=!1})).catch((function(){i.listLoading=!1}))},handleUpdateReadingCategory:function(){var e=this;this.readingCategory_model.btnLoading=!0,this.readingCategory_model.showClose=!1;var t={TrialId:this.$route.query.trialId,EnrollId:this.currentRow.EnrollId,ReadingCategorys:Object.assign([],this.ReadingCategorys),TrialReadingCriterionId:this.TrialReadingCriterionId};~this.ReadingCategorys.indexOf(1)&&t.ReadingCategorys.push(2),Object(r["Je"])(t).then((function(t){e.readingCategory_model.visible=!1,e.readingCategory_model.btnLoading=!1,e.readingCategory_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(t){e.readingCategory_model.btnLoading=!1,e.readingCategory_model.showClose=!0}))},openSetEnrollReadingCategory:function(e,t){console.log(e),this.currentRow=e,this.TrialReadingCriterionId=t,this.readingCategory_model.visible=!0;var i=e.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t}))?e.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t})):null,n=e.TrialReadingCriterionList.find((function(e){return e.TrialReadingCriterionId===t}))?e.TrialReadingCriterionList.find((function(e){return e.TrialReadingCriterionId===t})):null;n&&(this.IsArbitrationReading=n.IsArbitrationReading,this.IsOncologyReading=n.IsOncologyReading),this.ReadingCategorys=Object.assign([],i.ReadingCategorys),this.currentRow.TrialReadingCriterionId=t;var a=i?i.ReadingCategorys.indexOf(2):-1;a>=0&&this.ReadingCategorys.splice(a,1)},initPage:function(){var e=this;this.listLoading=!0,Object(r["Kd"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.length>0&&(e.TrialReadingCriterionList=e.list[0].TrialReadingCriterionList),e.total=t.Result.TotalCount,e.$nextTick((function(){e.$refs.myTable&&e.$refs.myTable.doLayout&&e.$refs.myTable.doLayout()}))})).catch((function(){e.listLoading=!1}))},handleEnroll:function(){this.$router.push({path:"/trials/trials-panel/enrolled-reviewers/enroll?trialId=".concat(this.listQuery.TrialId,"&trialCode=").concat(this.trialId)})},changeStatus:function(e){this.reviewerStatus_model.visible=!0,this.currentRow=e},handleUpdateReviewerStatus:function(){var e=this;this.$refs.updateStatusForm.validate((function(t){t&&(e.reviewerStatus_model.btnLoading=!0,e.reviewerStatus_model.showClose=!1,Object(r["Ib"])(e.listQuery.TrialId,e.currentRow.DoctorId,e.updateStatusForm.Status).then((function(t){e.$nextTick((function(){e.$refs["updateStatusForm"].resetFields()})),e.reviewerStatus_model.btnLoading=!1,e.reviewerStatus_model.visible=!1,e.reviewerStatus_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.reviewerStatus_model.btnLoading=!1,e.reviewerStatus_model.showClose=!0})))}))},handleConfigReadingType:function(e){this.readingType_model.visible=!0;var t=e.ReviewerReadingType;this.readingType=t,this.currentRow=e},handleUpdateReadingType:function(){var e=this;this.readingType_model.btnLoading=!0,this.readingType_model.showClose=!1,Object(r["rf"])(this.listQuery.TrialId,this.currentRow.DoctorId,this.readingType).then((function(t){e.readingType_model.visible=!1,e.readingType_model.btnLoading=!1,e.readingType_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(t){e.readingType_model.btnLoading=!1,e.readingType_model.showClose=!0}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"EnrollTimeStr"===e.prop?this.listQuery.SortField="EnrollTime":this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.initPage()},handleReviewerDetail:function(e){var t=this.$router.resolve({path:"/trials/trials-panel/enrolled-reviewers/resume?doctorId=".concat(e.DoctorId)}),i=t.href;window.open(i,"_blank")},handleUploadAckSow:function(e){this.doctorId=e.DoctorId,this.currentRow=e,this.sow_model.visible=!0;var t=[];"00000000-0000-0000-0000-000000000000"!==e.AgreementId&&(t=[{DoctorId:e.DoctorId,name:e.AgreementFileName,FileName:e.AgreementFileName,Path:e.AgreementPath,FullPath:e.AgreementFullPath,Type:"ACK of SOW"}]),this.$nextTick((function(){this.$refs.uploadAckSow.initFileList(t)}))},getFileList:function(e){this.currentRow.AgreementId=e.length>0?e[0].Id:"00000000-0000-0000-0000-000000000000",this.currentRow.AgreementFileName=e.length>0?e[0].FileName:"",this.currentRow.AgreementFullPath=e.length>0?e[0].FullPath:"",this.currentRow.AgreementPath=e.length>0?e[0].Path:""},handleViewAckSow:function(e){e.AgreementFullPath&&window.open(e.AgreementFullPath,"_blank")},handleDeleteAckSOW:function(e){var t=this;this.$confirm(this.$t("trials:enrolledReviews:message:deleteSOWWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["wb"])(t.listQuery.TrialId,e.DoctorId,e.AgreementId).then((function(i){e.AgreementId="00000000-0000-0000-0000-000000000000",e.AgreementFileName="",e.AgreementFullPath="",e.AgreementPath="",t.$message.success(t.$t("common:message:savedSuccessfully"))}))})).catch((function(e){}))},handleStats:function(e){var t=this;this.currentClickRowData=e,"00000000-0000-0000-0000-000000000000"===e.AgreementId?this.$confirm(this.$t("trials:enrolledReviews:message:statsWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.handleTipCloseOK()})).catch((function(e){})):this.handleTipCloseOK()},handleTipCloseOK:function(){zzSessionStorage.setItem("ReviewerName",this.currentClickRowData.FirstName+" "+this.currentClickRowData.LastName),this.$router.push({path:"/trials/trials-panel/enrolled-reviewers/stats?doctorId=".concat(this.currentClickRowData.DoctorId,"&trialId=").concat(this.listQuery.TrialId,"&trialCode=").concat(this.trialId,"&doctorName=").concat(this.currentClickRowData.LastName,"/").concat(this.currentClickRowData.FirstName)})},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(1!==t){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}else n[t]="Total (Current Page)"})),n}}},p=h,m=(i("3a55"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"0a53":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"equipmentForm",attrs:{model:e.form,rules:e.rules,"label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:equipment"),prop:"EquipmentTypeId"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.EquipmentTypeId,callback:function(t){e.$set(e.form,"EquipmentTypeId",t)},expression:"form.EquipmentTypeId"}},e._l(e.$d.Modality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:param")}},[i("el-input",{model:{value:e.form.Parameters,callback:function(t){e.$set(e.form,"Parameters",t)},expression:"form.Parameters"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:manufacturer")}},[i("el-input",{model:{value:e.form.ManufacturerName,callback:function(t){e.$set(e.form,"ManufacturerName",t)},expression:"form.ManufacturerName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:model")}},[i("el-input",{model:{value:e.form.ScannerType,callback:function(t){e.$set(e.form,"ScannerType",t)},expression:"form.ScannerType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:remark")}},[i("el-input",{model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("456d"),i("ac6a"),i("96cf"),i("3b8d")),s=i("896b"),l=i("a599"),c=i("86a6"),u={name:"ResearchEquipmentForm",props:{data:{type:Object,default:function(){return{}}},trialSiteSurveyEquipmentType:{type:String,default:""}},data:function(){return{form:{Id:"",EquipmentTypeId:"",Parameters:"",ManufacturerName:"",ScannerType:"",Note:"",TrialSiteSurveyId:""},rules:{EquipmentTypeId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur","change"]}]},btnLoading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object.keys(this.data).forEach((function(e){t.form[e]=t.data[e]}));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs["equipmentForm"].validate((function(t){if(t){e.btnLoading=!0,e.form.TrialSiteSurveyId||(e.form.TrialSiteSurveyId=Object(l["b"])("trialSiteSurveyId"));var i=Object(l["b"])("trialId");Object(s["a"])(i,e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("close")},getDicData:function(){var e=this;Object(c["c"])(["SiteSurvey_ScanEquipmentType"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0a58":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"organForm",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"靶病灶",prop:"TargetLesion"}},[i("el-select",{model:{value:e.form.TargetLesion,callback:function(t){e.$set(e.form,"TargetLesion",t)},expression:"form.TargetLesion"}},e._l(e.$d.TargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"非靶病灶",prop:"NonTargetLesions"}},[i("el-select",{model:{value:e.form.NonTargetLesions,callback:function(t){e.$set(e.form,"NonTargetLesions",t)},expression:"form.NonTargetLesions"}},e._l(e.$d.NoTargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"新病灶",prop:"NewLesion"}},[i("el-select",{model:{value:e.form.NewLesion,callback:function(t){e.$set(e.form,"NewLesion",t)},expression:"form.NewLesion"}},e._l(e.$d.NewLesionAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"整体疗效",prop:"OverallEfficacy"}},[i("el-select",{model:{value:e.form.OverallEfficacy,callback:function(t){e.$set(e.form,"OverallEfficacy",t)},expression:"form.OverallEfficacy"}},e._l(e.$d.OverallAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("e56e")),o={name:"LesionTypeForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{targetLesion:["CR","PR","SD","PD","NE","ND"],nonTargetLesion:["CR","NN","PD","NE","ND"],newLesion:["是","否","疑似","NE"],efficacyArr:["CR","PR","SD","NN","PD","NE","ND"],form:{Id:"",CriterionId:"",TargetLesion:"",NonTargetLesions:"",NewLesion:"",OverallEfficacy:""},rules:{TargetLesion:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],NonTargetLesions:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],NewLesion:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],OverallEfficacy:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.organForm.validate((function(t){t&&(e.loading=!0,Object(r["w"])(e.form).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){if(Object.keys(this.data).length>0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0a6d":function(e,t,i){i("e4d1"),i("7f72")},"0b11":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"radiotherapyForm",staticClass:"radiotherapy-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:bodyPart"),prop:"Position"}},[i("el-input",{model:{value:e.form.Position,callback:function(t){e.$set(e.form,"Position",t)},expression:"form.Position"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:beginDate"),prop:"StartTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.form.StartTime,callback:function(t){e.$set(e.form,"StartTime",t)},expression:"form.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:endDate"),prop:"EndTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endpickerOption},model:{value:e.form.EndTime,callback:function(t){e.$set(e.form,"EndTime",t)},expression:"form.EndTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:isPD")}},[i("el-radio-group",{model:{value:e.form.IsPD,callback:function(t){e.$set(e.form,"IsPD",t)},expression:"form.IsPD "}},e._l(e.$d.IsPdEnum,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){var e=this;return{trialId:this.$route.query.trialId,form:{Id:"",Position:"",StartTime:"",EndTime:"",IsPD:2,ClinicalDataTrialSetId:""},rules:{Position:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,beginPickerOption:{disabledDate:function(t){return e.form.EndTime?t.getTime()>=new Date(e.form.EndTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.form.StartTime?t.getTime()>Date.now()||t.getTime()<=new Date(e.form.StartTime).getTime()-864e5:t.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.radiotherapyForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["l"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePRDialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePRDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0b29":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"comment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.statusList,size:"small"}},[i("el-form-item",{attrs:{label:"Comment:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.statusList.AdminComment,callback:function(t){e.$set(e.statusList,"AdminComment",t)},expression:"statusList.AdminComment"}})],1)],1)],1)},a=[],r={props:{statusList:{type:Object,default:function(){return{}}}}},o=r,s=(i("9159"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"0b44":function(e,t,i){var n=i("607d"),a=function(){this._track=[]};function r(e){var t=e[1][0]-e[0][0],i=e[1][1]-e[0][1];return Math.sqrt(t*t+i*i)}function o(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}a.prototype={constructor:a,recognize:function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,i){var a=e.touches;if(a){for(var r={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&n&&n.length>1){var s=r(n)/r(a);!isFinite(s)&&(s=1),t.pinchScale=s;var l=o(n);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=a;e.exports=l},"0b4b":function(e,t,i){i("d28f"),i("f14c"),i("0ee7"),i("ebf9")},"0b82":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("QuestionFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"criterion-id":e.criterionId,"calculation-list":e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,resetFormItemData:e.resetFormItemData,setFormItemData:e.setFormItemData}})}))],2):e._e()],1)},r=[],o=(n("ac6a"),n("c5f6"),n("3e42")),s=n("a92b"),l={name:"QuestionsPreview",components:{QuestionFormItem:s["default"]},props:{criterionId:{type:String,required:!0},formType:{type:Number,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,readingTaskState:0,activeName:0,CalculationList:[]}},mounted:function(){this.getQuestionCalculateRelation(),this.getCustomTableQuestionPreview()},methods:{getQuestionCalculateRelation:function(){var e=this;Object(o["Jc"])({TrialReadingCriterionId:this.criterionId}).then((function(t){e.CalculationList=t.Result}))},getCustomTableQuestionPreview:function(){var e=this;this.loading=!0,Object(o["Yb"])({TrialReadingCriterionId:this.criterionId}).then((function(t){t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===t.Type||e.$set(e.questionForm,t.Id,t.Answer),"table"===t.Type&&e.$set(e.questionForm,t.Id,[]),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage,e.isRender=!0,e.loading=!1}))},getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId,formType:this.formType};Object(o["Vd"])(t).then((function(t){2===t.OtherInfo.FormType?(t.Result.MultiPage.length>0&&(t.Result.MultiPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.MultiPage,e.activeName=t.Result.MultiPage[0].PageName),t.Result.PublicPage.length>0&&(t.Result.PublicPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.publicQuestions=t.Result.PublicPage)):(t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||"number"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),"table"===i.Type&&e.$set(e.questionForm,t.Id,[]),"number"===i.Type&&e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&"table"!==e.Type&&t.$set(t.questionForm,e.Id,e.Answer),"table"===e.Type&&t.$set(t.questionForm,e.Id,[]),"number"===e.Type&&t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},setFormItemData:function(e){this.$set(this.questionForm,e.key,JSON.parse(JSON.stringify(e.val)))}}},c=l,u=(n("ae98"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"72f85b2c",null);t["default"]=d.exports},"0b94":function(e,t,i){},"0bb1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")])]):[1===e.question.ShowQuestion&&e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2||(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".el-button"),fullscreen:!1,lock:!0,spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("ee49"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"5cf464e6",null);t["default"]=c.exports},"0bd1":function(e,t,i){},"0c12":function(e,t){function i(){}function n(e,t,i,n){for(var a=0,r=t.length,o=0,s=0;a=o&&d+1>=s){for(var f=[],h=0;h=o&&h+1>=s)return n(r,c.components,t,e);u[i]=c}else u[i]=void 0}l++}while(l<=c){var m=p();if(m)return m}},pushComponent:function(e,t,i){var n=e[e.length-1];n&&n.added===t&&n.removed===i?e[e.length-1]={count:n.count+1,added:t,removed:i}:e.push({count:1,added:t,removed:i})},extractCommon:function(e,t,i,n){var a=t.length,r=i.length,o=e.newPos,s=o-n,l=0;while(o+1'});o.a.add(s);t["default"]=s},"0c37":function(e,t,i){var n=i("6d8b"),a="--\x3e",r=function(e){return e.get("autoCurveness")||null},o=function(e,t){var i=r(e),a=20,o=[];if("number"===typeof i)a=i;else if(n.isArray(i))return void(e.__curvenessList=i);t>a&&(a=t);var s=a%2?a+2:a+3;o=[];for(var l=0;l=0)&&(A=e);var E=new l.Text({position:D(t.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(E.style,E.hoverStyle={},y,w,{labelFetcher:A,labelDataIndex:P,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var M=[1/u[0],1/u[1]];l.updateProps(E,{scale:M},e)}i.add(E)}if(s)s.setItemGraphicEl(r,i);else{c=e.getRegionModel(t.name);a.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var F=i.__regions||(i.__regions=[]);F.push(t),i.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(i,v),d.add(i)})),this._updateController(e,t,i),p(this,e,d,i,a),m(e,d)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&n.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,i){var a=e.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=a.getZoom(),o.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,r.updateViewOnPan(l,e.dx,e.dy),i.dispatchAction(n.extend(u(),{dx:e.dx,dy:e.dy}))}),this),o.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,e.scale,e.originX,e.originY),i.dispatchAction(n.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),o.setPointerChecker((function(t,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!s(t,i,e)}))}};var v=g;e.exports=v},"0c44":function(e,t,i){},"0cde":function(e,t,i){var n=i("1687"),a=i("401b"),r=n.identity,o=5e-5;function s(e){return e>o||e<-o}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,i=this.needLocalTransform(),a=this.transform;if(i||t){a=a||n.create(),i?this.getLocalTransform(a):r(a),t&&(i?n.mul(a,e.transform,a):n.copy(a,e.transform)),this.transform=a;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*o+s)/u[0]||0,d=((u[1]-l)*o+l)/u[1]||0;a[0]*=c,a[1]*=c,a[2]*=d,a[3]*=d}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,a)}else a&&r(a)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,i=e.dpr||1;t?e.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):e.setTransform(i,0,0,i,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],f=n.create();c.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=this.position,a=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(t=-t),e[3]<0&&(i=-i),n[0]=e[4],n[1]=e[5],a[0]=t,a[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(n.mul(d,e.invTransform,t),t=d);var i=this.origin;i&&(i[0]||i[1])&&(f[4]=i[0],f[5]=i[1],n.mul(d,t,f),d[4]-=i[0],d[5]-=i[1],t=d),this.setLocalTransform(t)}},c.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},c.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&a.applyTransform(i,i,n),i},c.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&a.applyTransform(i,i,n),i},l.getLocalTransform=function(e,t){t=t||[],r(t);var i=e.origin,a=e.scale||[1,1],o=e.rotation||0,s=e.position||[0,0];return i&&(t[4]-=i[0],t[5]-=i[1]),n.scale(t,t,a),o&&n.rotate(t,t,o),i&&(t[4]+=i[0],t[5]+=i[1]),t[4]+=s[0],t[5]+=s[1],t};var h=l;e.exports=h},"0d29":function(e,t,i){},"0d82":function(e,t,i){"use strict";i("0805")},"0da8":function(e,t,i){var n=i("19eb"),a=i("9850"),r=i("6d8b"),o=i("5e76");function s(e){n.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var i=this.style,n=i.image;i.bind(e,this,t);var a=this._image=o.createOrUpdateImage(n,this._image,this,this.onload);if(a&&o.isImageReady(a)){var r=i.x||0,s=i.y||0,l=i.width,c=i.height,u=a.width/a.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=a.width,c=a.height),this.setTransform(e),i.sWidth&&i.sHeight){var d=i.sx||0,f=i.sy||0;e.drawImage(a,d,f,i.sWidth,i.sHeight,r,s,l,c)}else if(i.sx&&i.sy){d=i.sx,f=i.sy;var h=l-d,p=c-f;e.drawImage(a,d,f,h,p,r,s,l,c)}else e.drawImage(a,r,s,l,c);null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new a(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},r.inherits(s,n);var l=s;e.exports=l},"0dd0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"employment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.employment,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Department:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Department))]):i("span",[e._v(e._s(e.employment.DepartmentCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Rank:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Rank))]):i("span",[e._v(e._s(e.employment.RankCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Physician:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Physician))]):i("span",[e._v(e._s(e.employment.PhysicianCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Position:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Position))]):i("span",[e._v(e._s(e.employment.PositionCN))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Hospital:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.HospitalName))]):i("span",[e._v(e._s(e.employment.HospitalNameCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Affiliated University:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.UniversityAffiliated))]):i("span",[e._v(e._s(e.employment.UniversityAffiliatedCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"City:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.City))]):i("span",[e._v(e._s(e.employment.CityCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"State/Province:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Province))]):i("span",[e._v(e._s(e.employment.ProvinceCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Country:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Country))]):i("span",[e._v(e._s(e.employment.CountryCN))])])],1)],1)],1)],1)},a=[],r={props:{employment:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("f027"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"0e0d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-login-wrapper"},[i("div",{staticClass:"box-wrapper"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("\n 独立阅片人信息填写\n ")]),e._v(" "),i("el-card",{staticStyle:{"padding-top":"40px"},attrs:{shadow:"hover"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"resetForm",staticClass:"demo-ruleForm",staticStyle:{width:"80%",margin:"0 auto"},attrs:{model:e.form,"label-width":"150px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorEmail"),prop:"EmailOrPhone"}},[i("el-input",{attrs:{autocomplete:"new-password"},on:{change:e.handleEmailChange},model:{value:e.form.EmailOrPhone,callback:function(t){e.$set(e.form,"EmailOrPhone",t)},expression:"form.EmailOrPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:verifyCode"),required:""}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"VerificationCode"}},[i("el-input",{attrs:{autocomplete:"new-password"},model:{value:e.form.VerificationCode,callback:function(t){e.$set(e.form,"VerificationCode",t)},expression:"form.VerificationCode"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"small",type:"primary",disabled:e.sendDisabled},on:{click:e.handleSendCode}},[e._v(e._s(e.sendTitle))])],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{size:"small",disabled:e.btnLoading},on:{click:e.onCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1)],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=(i("c5f6"),i("7cdf"),i("896b"),i("33ba")),s=i("c24f"),l=i("4360"),c={data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;if(!i)return n(new Error(e.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:researchForm:formRule:phone")))}),100)},i=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.EmailOrPhone&&a.test(e.form.EmailOrPhone)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:researchForm:formRule:email"))),e.sendDisabled=!0)}},n=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.ReplaceUserEmailOrPhone&&a.test(e.form.ReplaceUserEmailOrPhone)?n():n(new Error(e.$t("trials:researchForm:formRule:email")))}};return{trialId:"",form:{Sponsor:null,ResearchProgramNo:null,TrialCode:null,IndicationType:null,ExperimentName:"",SiteId:null,UserName:null,Phone:null,EmailOrPhone:"",TrialSiteCode:"",IsUpdate:!1,ReplaceUserEmailOrPhone:"",VerificationCode:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:t,trigger:["blur"]}],EmailOrPhone:[{required:!0,validator:i,trigger:["blur","change"]}],ReplaceUserEmailOrPhone:[{required:!0,validator:n,trigger:["blur"]}],VerificationCode:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}]},siteOptions:[],loading:!1,sendDisabled:!0,btnLoading:!1,sendTitle:this.$t("trials:researchForm:button:send"),count:"",timer:null,isHaveSiteSurveyRecord:!1}},mounted:function(){},methods:{onSubmit:function(){var e=this;this.$refs["resetForm"].validate((function(t){if(!t)return!1;e.btnLoading=!0,e.sendDisabled=!0,e.form.IsUpdate||(e.form.ReplaceUserEmailOrPhone="");var i={emailOrPhone:e.form.EmailOrPhone,verificationCode:e.form.VerificationCode};Object(o["G"])(i).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.btnLoading=!1,zzSessionStorage.clear(),l["a"].dispatch("user/setToken",i.Result.Token),zzSessionStorage.setItem("TokenKey",i.Result.Token),t.next=6,Object(s["e"])();case 6:return n=t.sent,t.next=9,Object(s["d"])();case 9:a=t.sent,l["a"].dispatch("user/setTree",a.Result),l["a"].dispatch("user/setPermissions",n.Result),e.$router.push({path:"/ReviewersResearchForm?Id=".concat(i.Result.DoctorId?i.Result.DoctorId:"","&tabActive=BasicInfo&ReviewStatus=").concat(i.Result.ReviewStatus)});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.btnLoading=!1,e.sendDisabled=!1}))}))},handleSendCode:function(){var e=this;this.sendDisabled=!0;var t={Email:this.form.EmailOrPhone};Object(o["A"])(t).then((function(t){t.IsSuccess?e.getCode():e.$message.error(t.ErrorMessage)})).catch((function(){e.sendDisabled=!1}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&e.test(this.form.EmailOrPhone)?this.sendDisabled=!1:this.sendDisabled=!0},getCode:function(){var e=this,t=60;this.timer||(this.count=t,this.sendDisabled=!0,this.timer=setInterval((function(){e.count>0&&e.count<=t?(e.count--,e.sendTitle="".concat(e.$t("trials:researchForm:button:send"),"(").concat(e.count,"s)"),e.sendDisabled=!0):(e.sendDisabled=!1,e.sendTitle=e.$t("trials:researchForm:button:send"),clearInterval(e.timer),e.timer=null)}),1e3))},onCancel:function(){this.$refs["resetForm"].resetFields()}}},u=c,d=(i("b82f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"326bf5de",null);t["default"]=f.exports},"0e0f":function(e,t,i){var n=i("5f14"),a=i("6d8b");function r(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),i=t.nodes;if(i.length){var r=1/0,o=-1/0;a.each(i,(function(e){var t=e.getLayout().value;to&&(o=t)})),a.each(i,(function(t){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),a=i.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",a)}))}}))}e.exports=r},"0e3c":function(e,t,i){"use strict";i("e61e")},"0e69":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"closeQCForm",attrs:{model:e.form,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:label:closeReasonEnum"),prop:"MedicalDialogCloseEnum",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.MedicalDialogCloseEnum,callback:function(t){e.$set(e.form,"MedicalDialogCloseEnum",t)},expression:"form.MedicalDialogCloseEnum"}},e._l(e.$d.MedicalDialogCloseEnum,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:3!==t.value,expression:"item.value!==3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),2===e.form.MedicalDialogCloseEnum?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:label:closereasonRemarks"),prop:"DialogCloseReason",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify")},model:{value:e.form.DialogCloseReason,callback:function(t){e.$set(e.form,"DialogCloseReason",t)},expression:"form.DialogCloseReason"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("3e42"),o={name:"CloseQC",props:{taskMedicalReviewId:{type:String,required:!0}},data:function(){return{form:{MedicalDialogCloseEnum:null,DialogCloseReason:""},loading:!1}},methods:{handleClose:function(){this.$emit("close")},handleSave:function(){var e=this;this.$refs["closeQCForm"].validate((function(t){t&&(e.loading=!0,e.form.TaskMedicalReviewId=e.taskMedicalReviewId,e.form.IsClosedDialog=!0,Object(r["Y"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("trials:qcQuality:message:closedSuccessfully")),e.$emit("close"),e.$emit("refresh"))})).catch((function(){e.loading=!1})))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0e8f":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"0ea4":function(e,t,i){},"0ec8":function(e,t,i){"use strict";i("db47")},"0ee7":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("f934"),o=i("5e97"),s=a.Group,l=["width","height"],c=["x","y"],u=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,i,r,o,s,l){var c=this;u.superCall(this,"renderInner",e,t,i,r,o,s,l);var d=this._controllerGroup,f=t.get("pageIconSize",!0);n.isArray(f)||(f=[f,f]),p("pagePrev",0);var h=t.getModel("pageTextStyle");function p(e,i){var o=e+"DataIndex",s=a.createIcon(t.get("pageIcons",!0)[t.getOrient().name][i],{onclick:n.bind(c._pageGo,c,o,t,r)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});s.name=e,d.add(s)}d.add(new a.Text({name:"pageText",style:{textFill:h.getTextColor(),font:h.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,i,a,o,s){var u=this.getSelectorGroup(),d=e.getOrient().index,f=l[d],h=c[d],p=l[1-d],m=c[1-d];o&&r.box("horizontal",u,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),v=u.getBoundingRect(),b=[-v.x,-v.y],y=n.clone(i);o&&(y[f]=i[f]-v[f]-g);var w=this._layoutContentAndController(e,a,y,d,f,p,m);if(o){if("end"===s)b[d]+=w[f]+g;else{var _=v[f]+g;b[d]-=_,w[h]-=_}w[f]+=v[f]+g,b[1-d]+=w[m]+w[p]/2-v[p]/2,w[p]=Math.max(w[p],v[p]),w[m]=Math.min(w[m],v[m]+b[1-d]),u.attr("position",b)}return w},_layoutContentAndController:function(e,t,i,o,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;r.box(e.get("orient"),u,e.get("itemGap"),o?i.width:null,o?null:i.height),r.box("horizontal",f,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),p=f.getBoundingRect(),m=this._showController=h[s]>i[s],g=[-h.x,-h.y];t||(g[o]=u.position[o]);var v=[0,0],b=[-p.x,-p.y],y=n.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var w=e.get("pageButtonPosition",!0);"end"===w?b[o]+=i[s]-p[s]:v[o]+=p[s]+y}b[1-o]+=h[l]/2-p[l]/2,u.attr("position",g),d.attr("position",v),f.attr("position",b);var _={x:0,y:0};if(_[s]=m?i[s]:h[s],_[l]=Math.max(h[l],p[l]),_[c]=Math.min(0,p[c]+b[1-o]),d.__rectSize=i[s],m){var I={x:0,y:0};I[s]=Math.max(i[s]-p[s]-y,0),I[l]=_[l],d.setClipPath(new a.Rect({shape:I})),d.__rectSize=I[s]}else f.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&a.updateProps(u,{position:x.contentPosition},!!m&&e),this._updatePageInfoView(e,x),_},_pageGo:function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},_updatePageInfoView:function(e,t){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var a=null!=t[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var a=i.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,l=t.pageCount;a&&r&&a.setStyle("text",n.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,a=e.getOrient().index,r=l[a],o=c[a],s=this._findTargetItemIndex(t),u=i.children(),d=u[s],f=u.length,h=f?1:0,p={contentPosition:i.position.slice(),pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var m=w(d);p.contentPosition[a]=-m.s;for(var g=s+1,v=m,b=m,y=null;g<=f;++g)y=w(u[g]),(!y&&b.e>v.s+n||y&&!_(y,v.s))&&(v=b.i>v.i?b:y,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),b=y;for(g=s-1,v=m,b=m,y=null;g>=-1;--g)y=w(u[g]),y&&_(b,y.s)||!(v.i=t&&e.s<=t+n}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,i,n=this.getContentGroup();return n.eachChild((function(n,a){var r=n.__legendDataIndex;null==i&&null!=r&&(i=a),r===e&&(t=a)})),null!=t?t:i}}),d=u;e.exports=d},"0f07":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[e.hasPermi(["role:pm"])?i("el-button",{attrs:{icon:"el-icon-check",type:"primary",disabled:0==e.confirmIdArr.length,loading:e.loading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:confirm"))+"\n ")]):e._e()],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[10===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e(),e._v(" "),9===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e(),e._v(" "),8===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:confirmor"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:confirmationTime"),"min-width":"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c={name:"Confirmation",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],loading:!1,listQuery:{TrialId:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,listLoading:!1,confirmIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["Tb"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleConfirm:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.doctorConfirm(1)})).catch((function(e){}))},doctorConfirm:function(e){var t=this;this.loading=!0;var i=this.$route.query.trialId,n={TrialId:i,DoctorIdArray:this.confirmIdArr,ConfirmState:e,BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose")};Object(s["db"])(n).then((function(e){t.loading=!1,t.getList(),t.$message.success(t.$t("common:message:savedSuccessfully"))})).catch((function(){t.loading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;i0&&(s=this.getLineLength(n)/c*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var f=u;d&&(f=u(i)),n.__t>0&&(f=-s*n.__t),n.__t=0;var h=n.animate("",l).when(s,{__t:1}).delay(f).during((function(){a.updateSymbolPosition(n)}));l||h.done((function(){a.remove(n)})),h.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},d.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},d.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,a=e.__t,r=e.position,o=[r[0],r[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;r[0]=s(t[0],n[0],i[0],a),r[1]=s(t[1],n[1],i[1],a);var d=u(t[0],n[0],i[0],a),f=u(t[1],n[1],i[1],a);if(e.rotation=-Math.atan2(f,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastTt[0][1]&&(t[0][1]=r[0]),r[1]t[1][1]&&(t[1][1]=r[1])}return t&&I(t)}};function I(e){return new r(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},1111:function(e,t,i){var n=i("3eba");i("67a8"),i("4784");var a=i("7f96"),r=i("87c3");n.registerVisual(a("effectScatter","circle")),n.registerLayout(r("effectScatter"))},"114c":function(e,t,i){"use strict";i("77f0")},1159:function(e,t,i){},1170:function(e,t,i){"use strict";i("d832")},"117f":function(e,t,i){},1186:function(e,t,i){},"11ae":function(e,t,i){"use strict";i("1937")},"11b0":function(e,t){function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},1249:function(e,t,i){"use strict";i("a1d1")},1266:function(e,t,i){"use strict";i("bc42")},1310:function(e,t){function i(e){return null!=e&&"object"==typeof e}e.exports=i},"132c":function(e,t,i){},1336:function(e,t,i){},"133d":function(e,t,i){var n=i("6d8b"),a=i("e0d3");function r(e,t){var i,r=[],o=e.seriesIndex;if(null==o||!(i=t.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,e);if(null==l||l<0||n.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)r=u.dataToPoint(s.getValues(n.map(u.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(c){var d=c.getBoundingRect().clone();d.applyTransform(c.transform),r=[d.x+d.width/2,d.y+d.height/2]}return{point:r,el:c}}e.exports=r},1371:function(e,t,i){},"137a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"80px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"窗宽"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.ww,callback:function(t){e.$set(e.form,"ww",t)},expression:"form.ww"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"窗位"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.wc,callback:function(t){e.$set(e.form,"wc",t)},expression:"form.wc"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r={name:"CustomWwwcForm",data:function(){return{form:{ww:"",wc:""},rules:{ww:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],wc:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&e.$emit("setWwwc",e.form)}))},handleCancel:function(){this.$emit("close")}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"13aa":function(e,t,i){},"13f4":function(e,t,i){},1418:function(e,t,i){var n=i("6d8b"),a=i("a15a"),r=a.createSymbol,o=i("2306"),s=i("3842"),l=s.parsePercent,c=i("c775"),u=c.getDefaultLabel;function d(e,t,i){o.Group.call(this),this.updateData(e,t,i)}var f=d.prototype,h=d.getSymbolSize=function(e,t){var i=e.getItemVisual(t,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function p(e){return[e[0]/2,e[1]/2]}function m(e,t){this.parent.drift(e,t)}f._createSymbol=function(e,t,i,n,a){this.removeAll();var o=t.getItemVisual(i,"color"),s=r(e,-1,-1,2,2,o,a);s.attr({z2:100,culling:!0,scale:p(n)}),s.drift=m,this._symbolType=e,this.add(s)},f.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},f.getSymbolPath=function(){return this.childAt(0)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(e,t){var i=this.childAt(0);i.zlevel=e,i.z=t},f.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},f.updateData=function(e,t,i){this.silent=!1;var n=e.getItemVisual(t,"symbol")||"circle",a=e.hostModel,r=h(e,t),s=n!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(n,e,t,r,l)}else{var c=this.childAt(0);c.silent=!1,o.updateProps(c,{scale:p(r)},a,t)}if(this._updateCommon(e,t,r,i),s){c=this.childAt(0);var u=i&&i.fadeIn,d={scale:c.scale.slice()};u&&(d.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),o.initProps(c,d,a,t)}this._seriesModel=a};var g=["itemStyle"],v=["emphasis","itemStyle"],b=["label"],y=["emphasis","label"];function w(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var i=this.__symbolOriginalScale,n=i[1]/i[0],a={scale:[Math.max(1.1*i[0],i[0]+3),Math.max(1.1*i[1],i[1]+3*n)]};this.animateTo(a,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}f._updateCommon=function(e,t,i,a){var r=this.childAt(0),s=e.hostModel,c=e.getItemVisual(t,"color");"image"!==r.type?r.useStyle({strokeNoScale:!0}):r.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=a&&a.itemStyle,f=a&&a.hoverItemStyle,h=a&&a.symbolOffset,m=a&&a.labelModel,_=a&&a.hoverLabelModel,I=a&&a.hoverAnimation,x=a&&a.cursorStyle;if(!a||e.hasItemOption){var S=a&&a.itemModel?a.itemModel:e.getItemModel(t);d=S.getModel(g).getItemStyle(["color"]),f=S.getModel(v).getItemStyle(),h=S.getShallow("symbolOffset"),m=S.getModel(b),_=S.getModel(y),I=S.getShallow("hoverAnimation"),x=S.getShallow("cursor")}else f=n.extend({},f);var T=r.style,C=e.getItemVisual(t,"symbolRotate");r.attr("rotation",(C||0)*Math.PI/180||0),h&&r.attr("position",[l(h[0],i[0]),l(h[1],i[1])]),x&&r.attr("cursor",x),r.setColor(c,a&&a.symbolInnerColor),r.setStyle(d);var k=e.getItemVisual(t,"opacity");null!=k&&(T.opacity=k);var R=e.getItemVisual(t,"liftZ"),D=r.__z2Origin;null!=R?null==D&&(r.__z2Origin=r.z2,r.z2+=R):null!=D&&(r.z2=D,r.__z2Origin=null);var L=a&&a.useNameLabel;function O(t,i){return L?e.getName(t):u(e,t)}o.setLabelStyle(T,f,m,_,{labelFetcher:s,labelDataIndex:t,defaultText:O,isRectText:!0,autoColor:c}),r.__symbolOriginalScale=p(i),r.hoverStyle=f,r.highDownOnUpdate=I&&s.isAnimationEnabled()?w:null,o.setHoverStyle(r)},f.fadeOut=function(e,t){var i=this.childAt(0);this.silent=i.silent=!0,(!t||!t.keepLabel)&&(i.style.text=null),o.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},n.inherits(d,o.Group);var _=d;e.exports=_},"144c":function(e,t,i){"use strict";i("e872")},1453:function(e,t,i){},1466:function(e,t,i){var n=i("3eba"),a=i("2306"),r=i("6d8b"),o=i("a15a");function s(e){return r.isArray(e)||(e=[+e,+e]),e}var l=n.extendChartView({type:"radar",render:function(e,t,i){var n=e.coordinateSystem,l=this.group,c=e.getData(),u=this._data;function d(e,t){var i=e.getItemVisual(t,"symbol")||"circle",n=e.getItemVisual(t,"color");if("none"!==i){var a=s(e.getItemVisual(t,"symbolSize")),r=o.createSymbol(i,-1,-1,2,2,n),l=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2],rotation:l*Math.PI/180||0}),r}}function f(t,i,n,r,o,s){n.removeAll();for(var l=0;l-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType})),i=this.tableQuestions.findIndex((function(e){return 3===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e,this.tableQuestions[i])},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i,n){var a,r,o,s,l,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={saveTypeEnum:0},r=t.TableQuestions.Questions.find((function(e){return 9===e.QuestionMark})),o=t.TableQuestions.Questions.find((function(e){return 7===e.QuestionMark})),o&&(a[o.Id]=2),s=this.getMaxRowIndex(t.TableQuestions.Answers),s<1&&!this.isBaseLineTask&&(s=this.getMaxRowIndex(n.TableQuestions.Answers)),a.RowIndex="".concat(s+1,".00"),r&&(a[r.Id]=this.BlindName,a["BlindName"]=this.BlindName,a["TaskNum"]=this.TaskNum),e.next=10,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 10:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){u.$refs[l][0].setMeasureData(i)}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}(),determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$loading({fullscreen:!0}),t.next=3,c["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 3:return t.next=5,c["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 5:s["a"].$emit("getMeasureData"),n.close(),i();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.isMax=!1,this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.length0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n),t.$set(i,"isLesionSaved",!0);var a=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionNum",a);var r=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(r=isNaN(parseInt(r))?"":parseInt(r),t.$set(i,"lesionState",r),i.RowId){var o=t.questions.findIndex((function(e){return 11===e.QuestionMark}));o>-1?t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2):t.$set(i,"saveTypeEnum",isNaN(parseInt(r))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},getLesionName:function(e,t,i){var n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o)):n="".concat(e).concat(String(r).padStart(2,"0")),n},handleAdd:function(e){var t=this;if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var i=this.$t("trials:reading:warnning:msg5");return i=i.replace("xxx",this.unSaveTargets[0].lessionName),void this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}})}if(e.MaxQuestionCount&&e.MaxQuestionCount<=e.TableQuestions.Answers.length){var n=this.$t("trials:reading:pcwg:msg3").replace("xxx",e.QuestionName);n=n.replace("n",e.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}})}else{var a={saveTypeEnum:0},r=this.tableQuestions.findIndex((function(e){return 3===e.LesionType})),o=this.getMaxRowIndex(e.TableQuestions.Answers);o<1&&(o=this.getMaxRowIndex(this.tableQuestions[r].TableQuestions.Answers)),a.RowIndex="".concat(o+1,".00"),e.TableQuestions.Questions.forEach((function(e){9===e.QuestionMark?(a[e.Id]=t.BlindName,a["BlindName"]=t.BlindName,a["TaskNum"]=t.TaskNum):7===e.QuestionMark?a[e.Id]=2:a[e.Id]=""})),e.TableQuestions.Answers.push(a),this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=e.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&s["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},initPage:function(e){var t=this;this.visitTaskId!==e.visitTaskId&&(this.visitTaskId=e.visitTaskId,this.taskBlindName=e.taskBlindName,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.$emit("getECRFQuestions",e));var i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));i>-1&&(this.visitTaskList[i].ReadingQuestions.length>0&&(this.questions=this.visitTaskList[i].ReadingQuestions),this.readingTaskState=this.visitTaskList[i].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[i].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[i].IsCurrentTask,this.TaskNum=this.visitTaskList[i].VisitTaskNum,this.BlindName=this.visitTaskList[i].TaskBlindName,this.getTableQuestions(),this.isFirstRender&&this.$nextTick((function(){t.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(i){var n="".concat(e.Id,"_").concat(i.RowIndex);t.$refs[n]&&t.$refs[n][0].initForm()}))}))}))),this.isFirstRender||(this.isFirstRender=!0)},isCanActiveTool:function(e){if(this.getUnSaveTarget(),this.activeName){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(this.$refs[t][0].questionForm.MeasureData&&this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")}}else if(this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")};if(this.unSaveTargets.length>0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");return r=r.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:r}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):this.isBaseLineTask?"ArrowAnnotate"===e||"RectangleRoi"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}:"ArrowAnnotate"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}},checkToolCanActive:function(e){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);return this.$refs[t][0].questionForm.MeasureData?"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:{isCanActiveTool:!0,reason:""}:4===this.$refs[t][0].lesionType&&"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:4!==this.$refs[t][0].lesionType&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}},close:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.getReadingQuestionAndAnswer(t.visitTaskId),this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.activeName="";case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},f=d,h=(i("d045"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"3c6fb6d4",null);t["default"]=p.exports},1493:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"glReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("访视评估结果")])]),e._v(" "),e.taskList.length>0&&e.readingTaskState<2?i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n 确认\n ")])],1):e._e(),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.taskList}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"评估结果",align:"center",prop:""}},[e._l(e.evaluationQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.BeforeQuestionList.length>n?t.row.BeforeQuestionList[n].Answer:"")+"\n ")]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:"调整后结果",align:"center",prop:""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.AfterQuestionList.length>n?t.row.AfterQuestionList[n].Answer:"")+"\n ")]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row)}}}),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{circle:"",title:"调整",icon:"el-icon-edit"},on:{click:function(i){return e.handleEdit(t.row)}}}):e._e()]}}])})],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往全局阅片结果")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.historyLoading,expression:"historyLoading"}],attrs:{data:e.historyTaskList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"全局","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row)}}})]}}],null,!1,1012381834)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper",title:"调整"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EditGlobalForm",{attrs:{"global-task-id":e.visitTaskId,"visit-task-id":e.rowData.VisitTaskId,"question-list":e.rowData.AfterQuestionList,"subject-id":e.subjectId,"trial-id":e.trialId,"before-question-list":e.rowData.BeforeQuestionList},on:{getList:e.getGlInfo,close:function(t){e.editVisible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("5f87"),l=i("7a9e"),c=i("fd1a"),u=i("179b"),d={name:"GlobalReview",components:{EditGlobalForm:c["default"],SignForm:u["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{loading:!1,maxLength:2,evaluationQsList:[],adjustedQsList:[],taskList:[],historyLoading:!1,historyTaskList:[],currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,editVisible:!1,rowData:{},readingTaskState:0}},mounted:function(){this.getGlInfo(),this.isReadingShowPreviousResults&&this.getHistoryGlobalInfo()},methods:{getGlInfo:function(){var e=this;this.loading=!0,Object(o["fc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[],n=[];if(t.Result.TaskList.length>0){var a=t.Result.TaskList[0];a.BeforeQuestionList.map((function(e){i.push(e.QuestionName)})),a.AfterQuestionList.map((function(e){n.push(e.QuestionName)}))}e.evaluationQsList=i,e.adjustedQsList=n,e.taskList=t.Result.TaskList,e.readingTaskState=t.Result.ReadingTaskState,e.loading=!1})).catch((function(){e.loading=!1}))},getHistoryGlobalInfo:function(){var e=this;this.historyLoading=!0,Object(o["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.historyTaskList=t.Result,e.historyLoading=!1})).catch((function(){e.historyLoading=!1}))},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editVisible=!0},handleConfirm:function(){var e=l["default"].processSignature.ImageAssessmentReportConfirmation;this.signCode=e,this.signVisible=!0},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{globalTaskId:this.visitTaskId},signInfo:e};Object(o["af"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},handleView:function(e){var t=Object(s["a"])(),i=e.VisitTaskId,n=this.$router.resolve({path:"/readingPage?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(i,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(n.href,"_blank")}}},f=d,h=(i("5a7d"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"5918ea75",null);t["default"]=p.exports},"14b9":function(e,t,i){var n=i("5ca1");n(n.P,"String",{repeat:i("9744")})},"14d3":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("fab22"),o=i("6679"),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],c=o.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,a=i.polar,o=a.getAngleAxis(),c=i.getTicksCoords(),d=i.getMinorTicksCoords(),f=o.getExtent()[0],h=i.getExtent(),p=u(a,e,f),m=new r(e,p);n.each(s,m.add,m),this.group.add(m.getGroup()),n.each(l,(function(t){e.get(t+".show")&&!i.scale.isBlank()&&this["_"+t](e,a,f,h,c,d)}),this)}},_splitLine:function(e,t,i,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};Object(n["a"])(this,i);var r={name:"ArrowAnnotate",supportedInteractionTypes:["Mouse","Touch"],configuration:{getTextCallback:L,changeTextCallback:O,drawHandles:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!1,arrowFirst:!0,renderDashed:!1,allowEmptyLabel:!1},svgCursor:k};return e=t.call(this,a,r),e.preventNewMeasurement=!1,e}return Object(a["a"])(i,[{key:"textBoxWidth",value:function(e,t,i){var n=d.getFont(),a=e.font;n&&n!==a&&(e.font=n);var r=e.measureText(t).width;return n&&n!==a&&(e.font=a),r+2*i}},{key:"createNewMeasurement",value:function(e){return{visible:!0,active:!0,color:void 0,text:"",handles:{start:{x:e.detail.currentPoints.image.x,y:e.detail.currentPoints.image.y,highlight:!0,active:!1},end:{x:e.detail.currentPoints.image.x,y:e.detail.currentPoints.image.y,highlight:!0,active:!1},textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}}}},{key:"pointNearTool",value:function(e,t,i){return!1!==t.visible&&p(e,t.handles.start,t.handles.end,i)<25}},{key:"updateCachedStats",value:function(){}},{key:"renderToolData",value:function(e){var t=this,i=e.detail,n=i.element,a=i.enabledElement,r=this.configuration,o=r.handleRadius,s=r.drawHandlesOnHover,c=r.hideHandlesIfMoving,h=r.renderDashed,p=b(n,this.name);if(p){var m,g=e.detail.canvasContext.canvas,v=_(g),y=u.getToolWidth();h&&(m=R("globalConfiguration").configuration.lineDash);for(var C=function(i){var r=p.data[i];if(!1===r.visible)return"continue";I(v,(function(i){x(i,t.configuration);var u=f.getColorIfActive(r),h=l.cornerstone.pixelToCanvas(n,r.handles.start),p=l.cornerstone.pixelToCanvas(n,r.handles.end);t.configuration.arrowFirst?S(i,p,h,u,y,m):S(i,h,p,u,y,m);var g={color:u,handleRadius:o,drawHandlesIfActive:s,hideHandlesIfMoving:c};t.configuration.drawHandles&&T(i,e.detail,r.handles,g);var v=[];if(r.hasOwnProperty("remark")&&(r.hasOwnProperty("status")&&r.status?v.push("".concat(r.remark,"(").concat(r.status,")")):v.push(r.remark)),v.push(D(r)),v&&""!==v){var b=5,_=t.textBoxWidth(i,v,b),I=d.getFontSize()+10,C=Math.max(_,I)/2+5;if(p.x0&&e.setChild(t.Childrens))})),e.questions=i,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&t.$set(t.questionForm,e.ReadingQuestionTrialId,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"15cb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("div",{staticStyle:{width:"600px","padding-top":"100px"}},[i("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"16px","line-height":"40px","text-indent":"30px"}},[e._v("\n 是否参与的临床试验项目:"),i("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ExperimentName))]),e._v("(试验方案号:"),i("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ResearchProgramNo))]),e._v(") 的独立影像评估工作。请选择:\n ")]),e._v(" "),i("div",{staticStyle:{padding:"20px"}},[i("el-radio-group",{model:{value:e.form.IsJoin,callback:function(t){e.$set(e.form,"IsJoin",t)},expression:"form.IsJoin"}},[i("el-radio",{attrs:{disabled:e.disabled,label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{disabled:e.disabled,label:!1}},[e._v("否")])],1)],1),e._v(" "),!1===e.form.IsJoin?i("div",{staticStyle:{"margin-bottom":"40px"}},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.RejectReason,expression:"form.RejectReason"}],staticStyle:{padding:"10px","font-size":"12px",background:"#f3f3f3","border-radius":"10px",width:"100%",height:"120px",border:"none",outline:"none",resize:"none"},attrs:{disabled:e.disabled,placeholder:"请说明拒绝原因"},domProps:{value:e.form.RejectReason},on:{input:function(t){t.target.composing||e.$set(e.form,"RejectReason",t.target.value)}}})]):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[i("el-button",{staticStyle:{"min-width":"100px"},attrs:{type:"primary",size:"small",loading:e.loading,disabled:e.disabled},on:{click:e.save}},[e._v("确定")])],1)])])},a=[],r=(i("a481"),i("b775"));function o(e){return Object(r["a"])({url:"/TrialExternalUser/trialExternalUserJoinTrial",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/TrialExternalUser/trialSiteSurveyUserJoinTrial",method:"post",data:e})}function l(e){return Object(r["a"])({url:"/TrialExternalUser/joinBasicInfo?Id=".concat(e.Id,"&IsExternalUser=").concat(e.IsExternalUser),method:"post"})}var c=i("c1df"),u=i.n(c),d={data:function(){return{loading:!1,disabled:!1,Id:null,IsExternalUser:null,form:{IsJoin:null,RejectReason:null},trialInfo:{}}},mounted:function(){this.Id=this.$route.query.Id,this.IsExternalUser=this.$route.query.IsExternalUser,this.getInfo()},methods:{getInfo:function(){var e=this,t={Id:this.Id,IsExternalUser:"1"===this.IsExternalUser};l(t).then((function(t){e.trialInfo=t.Result,e.form.IsJoin=e.trialInfo.IsJoin,e.form.RejectReason=e.trialInfo.RejectReason,!0!==e.trialInfo.IsJoin&&!1!==e.trialInfo.IsJoin||(e.disabled=!0)}))},goLogin:function(){var e=this;setTimeout((function(){e.$router.replace({path:"/login"})}),2e3)},closeWindow:function(){window.colse()},save:function(){var e=this,t="".concat(location.protocol,"//").concat(location.host,"/login"),i={Id:this.Id,IsJoin:this.form.IsJoin,ConfirmTime:u()().format("YYYY-MM-DD HH:mm:ss"),RejectReason:this.form.RejectReason,BaseUrl:t};null!==this.form.IsJoin?!1!==this.form.IsJoin||this.form.RejectReason?(this.disabled=!0,this.loading=!0,"1"===this.IsExternalUser?o(i).then((function(t){i.IsJoin?(e.$message.success("加入项目成功!即将自动跳转登录页面"),e.goLogin()):(e.$message.success("已拒绝加入项目"),e.loading=!1,e.disabled=!0)})).catch((function(){e.disabled=!1,e.loading=!1})):s(i).then((function(t){i.IsJoin?(e.$message.success("加入项目成功!即将自动跳转登录页面"),e.goLogin()):(e.$message.success("已拒绝加入项目"),e.loading=!1,e.disabled=!0)})).catch((function(){e.disabled=!1,e.loading=!1}))):this.$message.error("拒绝请填写详细原因"):this.$message.error("请选择是否加入项目")}}},f=d,h=(i("f205"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"15e8":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},1644:function(e,t,i){},1653:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container adjustment-container data-list"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"mr",staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"Reviewer ID"},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-date-picker",{staticClass:"mr",attrs:{size:"small",placeholder:"Beginning date",type:"month","value-format":"yyyy-MM",disabled:""},model:{value:e.listQuery.BeginMonth,callback:function(t){e.$set(e.listQuery,"BeginMonth",t)},expression:"listQuery.BeginMonth"}}),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleNew}},[e._v("New")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{stripe:"",data:e.list,height:"100%",size:"small"},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentUSD",label:"Amount($)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentUSD)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentCNY",label:"Amount(¥)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentCNY)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Note","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Adjust Month","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text",disabled:t.row.IsLock},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text",disabled:t.row.IsLock},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("adjustment-form",{key:e.timer,attrs:{row:e.row,date:e.date,"exchange-rate":e.exchangeRate},on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],1)},a=[],r=(i("c5f6"),i("333d")),o=i("6437"),s=i("6b95"),l=i("7878"),c={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},components:{Pagination:r["default"],AdjustmentForm:o["default"]},data:function(){return{listQuery:{TrialCode:"",Reviewer:"",BeginMonth:"",EndMonth:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""},listLoading:!1,list:[],total:0,exchangeRate:"",date:"",timer:"",dialogVisible:!1,title:"",row:""}},mounted:function(){this.date=this.$router.currentRoute.query.date,this.listQuery.BeginMonth=this.date,this.listQuery.EndMonth=this.date,this.exchangeRate=this.$router.currentRoute.query.exchangeRate?this.$router.currentRoute.query.exchangeRate:0,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["r"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount}))},handleNew:function(){this.title="New",this.row={},this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e){this.title="Edit",this.row=JSON.parse(JSON.stringify(e)),this.timer=(new Date).getTime(),this.dialogVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(s["k"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.indexOf(e),1),t.total=t.total-1,t.$message.success("Deleted successfully !"))}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery.PageIndex=1,this.listQuery.Reviewer="",this.getList()},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},closeDialog:function(){this.dialogVisible=!1},adjustMonthFormatter:function(e){if(e.AdjustedYearMonth){var t=new Date(e.AdjustedYearMonth);return Object(l["FormatTime"])(t,"yyyy-MM")}return""}}},u=c,d=(i("a0f4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},1687:function(e,t){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(){var e=new i(6);return a(e),e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,i){var n=t[0]*i[0]+t[2]*i[1],a=t[1]*i[0]+t[3]*i[1],r=t[0]*i[2]+t[2]*i[3],o=t[1]*i[2]+t[3]*i[3],s=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return e[0]=n,e[1]=a,e[2]=r,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e}function l(e,t,i){var n=t[0],a=t[2],r=t[4],o=t[1],s=t[3],l=t[5],c=Math.sin(i),u=Math.cos(i);return e[0]=n*u+o*c,e[1]=-n*c+o*u,e[2]=a*u+s*c,e[3]=-a*c+u*s,e[4]=u*r+c*l,e[5]=u*l-c*r,e}function c(e,t,i){var n=i[0],a=i[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function u(e,t){var i=t[0],n=t[2],a=t[4],r=t[1],o=t[3],s=t[5],l=i*o-r*n;return l?(l=1/l,e[0]=o*l,e[1]=-r*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*s-o*a)*l,e[5]=(r*a-i*s)*l,e):null}function d(e){var t=n();return r(t,e),t}t.create=n,t.identity=a,t.copy=r,t.mul=o,t.translate=s,t.rotate=l,t.scale=c,t.invert=u,t.clone=d},1748:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("71ad"),o=i("4319"),s=i("2023"),l=r.valueAxis;function c(e,t){return a.defaults({show:t},e)}var u=n.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),d=this.get("name.show"),f=this.get("name.formatter"),h=this.get("nameGap"),p=this.get("triggerEvent"),m=a.map(this.get("indicator")||[],(function(m){null!=m.max&&m.max>0&&!m.min?m.min=0:null!=m.min&&m.min<0&&!m.max&&(m.max=0);var g=u;if(null!=m.color&&(g=a.defaults({color:m.color},u)),m=a.merge(a.clone(m),{boundaryGap:e,splitNumber:t,scale:i,axisLine:n,axisTick:r,axisType:l,axisLabel:c,name:m.text,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:p},!1),d||(m.name=""),"string"===typeof f){var v=m.name;m.name=f.replace("{value}",null!=v?v:"")}else"function"===typeof f&&(m.name=f(m.name,m));var b=a.extend(new o(m,null,this.ecModel),s);return b.mainType="radar",b.componentIndex=this.componentIndex,b}),this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),d=u;e.exports=d},1772:function(e,t,i){},1792:function(e,t){var i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(e,t){if("china"===e){var n=i[t.name];if(n){var a=t.center;a[0]+=n[0]/10.5,a[1]+=-n[1]/14}}}e.exports=n},"17b0":function(e,t,i){},"17b8":function(e,t,i){var n=i("3014"),a=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=a},"17d6":function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=o(),l=n.each;function c(e,t,i){if(!a.node){var n=t.getZr();s(n).records||(s(n).records={}),u(n,t);var r=s(n).records[e]||(s(n).records[e]={});r.handler=i}}function u(e,t){function i(i,n){e.on(i,(function(i){var a=p(t);l(s(e).records,(function(e){e&&n(e,i,a.dispatchAction)})),d(a.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,i("click",n.curry(h,"click")),i("mousemove",n.curry(h,"mousemove")),i("globalout",f))}function d(e,t){var i,n=e.showTip.length,a=e.hideTip.length;n?i=e.showTip[n-1]:a&&(i=e.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function f(e,t,i){e.handler("leave",null,i)}function h(e,t,i,n){t.handler(e,i,n)}function p(e){var t={showTip:[],hideTip:[]},i=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function m(e,t){if(!a.node){var i=t.getZr(),n=(s(i).records||{})[e];n&&(s(i).records[e]=null)}}t.register=c,t.unregister=m},"17e0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container my_menu"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"模块"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},model:{value:e.queryParams.ModuleTypeId,callback:function(t){e.$set(e.queryParams,"ModuleTypeId",t)},expression:"queryParams.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1),e._v(" "),e.refreshTable?i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{height:"100",data:e.menuList,"default-expand-all":e.isExpandAll,"row-key":"Id","tree-props":{children:"Children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"ModuleTypeValueCN",label:"模块","show-overflow-tooltip":"",align:"left","min-width":"230px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"操作名称","show-overflow-tooltip":!0,"min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.Description))])]}}],null,!1,2456653472)}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"其他","show-overflow-tooltip":!0,"min-width":"140px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?e._e():i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#DC143C",color:"#fff"},attrs:{title:"被禁用"}},[e._v("禁")]),e._v(" "),t.row.IsHaveSign?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#00D1B2",color:"#fff"},attrs:{title:"需要电签"}},[e._v("签")]):e._e(),e._v(" "),t.row.IsHaveReason?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#fab6b6",color:"#fff"},attrs:{title:"需要原因"}},[e._v("因")]):e._e(),e._v(" "),t.row.IsFinish?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#3CB371",color:"#fff"},attrs:{title:"已经记录"}},[e._v("记")]):e._e(),e._v(" "),t.row.IsJoinPlan?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#FFA500",color:"#fff"},attrs:{title:"核对完"}},[e._v("核")]):e._e()]}}],null,!1,4157763984)}),e._v(" "),i("el-table-column",{attrs:{prop:"Identification",label:"标识","show-overflow-tooltip":!0,"min-width":"200px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTypeValueCN",label:"操作类型","show-overflow-tooltip":"",width:"100px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ObjectTypeValueCN",label:"对象类型","show-overflow-tooltip":"","min-width":"100px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildrenTypeValueCN",label:"数据类型","show-overflow-tooltip":"","min-width":"100px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sort",label:"显示顺序","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right","min-width":"340","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-top"},on:{click:function(i){return e.handleUpMove(t.row)}}},[e._v("上移")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?e._e():i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleChildren(t.row)}}},[e._v("Children")]):e._e(),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleCopy(t.row)}}},[e._v("复制到")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,4270745435)})],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,id:"check_config",visible:e.open,width:"Table"===e.form.DataType?"1280px":"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-row",[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("基本信息")])],1),e._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"M"==e.form.ConfigType?"复制"!==e.title?"选择父节点":"复制到":"操作名称"}},[i("treeselect",{attrs:{disabled:"C"===e.form.ConfigType,options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级操作"},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作名称",prop:"Description"}},[i("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"标识",prop:"Identification"}},[i("el-input",{attrs:{placeholder:"请输入标识"},model:{value:e.form.Identification,callback:function(t){e.$set(e.form,"Identification",t)},expression:"form.Identification"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字段key"}},[i("el-input",{attrs:{placeholder:"请输入字段key"},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段英文"}},[i("el-input",{attrs:{placeholder:"请输入字段英文"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段中文"}},[i("el-input",{attrs:{placeholder:"请输入字段中文"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("属性")])],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"功能模块",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},on:{change:e.changeModule},model:{value:e.form.ModuleTypeId,callback:function(t){e.$set(e.form,"ModuleTypeId",t)},expression:"form.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.OptTypeId,callback:function(t){e.$set(e.form,"OptTypeId",t)},expression:"form.OptTypeId"}},e._l(e.dict.type.OptType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"对象类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"对象类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ObjectTypeId,callback:function(t){e.$set(e.form,"ObjectTypeId",t)},expression:"form.ObjectTypeId"}},e._l(e.dict.type.ObjectType,(function(t){return e.ChildGroup===t.raw.ChildGroup?i("el-option",{attrs:{value:t.value,label:t.raw.ValueCN}}):e._e()})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"数据类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作子类",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ChildrenTypeId,callback:function(t){e.$set(e.form,"ChildrenTypeId",t)},expression:"form.ChildrenTypeId"}},e._l(e.dict.type.ChildrenType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否电签\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsHaveSign,callback:function(t){e.$set(e.form,"IsHaveSign",t)},expression:"form.IsHaveSign"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否有原因\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsHaveReason,callback:function(t){e.$set(e.form,"IsHaveReason",t)},expression:"form.IsHaveReason"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 数据来源\n ")]),e._v(" "),i("el-radio-group",{model:{value:e.form.IsShowParent,callback:function(t){e.$set(e.form,"IsShowParent",t)},expression:"form.IsShowParent"}},[i("el-radio",{attrs:{label:0}},[e._v("业务数据")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("通用数据")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("列表数据")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 依赖父数据\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsShowByTrialConfig,callback:function(t){e.$set(e.form,"IsShowByTrialConfig",t)},expression:"form.IsShowByTrialConfig"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&e.form.IsShowByTrialConfig,expression:"form.ConfigType === 'C' && title !== '复制' && form.IsShowByTrialConfig"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 依赖字段\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入依赖字段"},model:{value:e.form.TrialConfigRelyFieldName,callback:function(t){e.$set(e.form,"TrialConfigRelyFieldName",t)},expression:"form.TrialConfigRelyFieldName"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"10px"},attrs:{span:24}},[i("el-row",{staticStyle:{background:"#f8f8f8",padding:"0 20px","border-radius":"10px"}},[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"前端展示类型"}},[i("el-radio-group",{staticStyle:{"line-height":"30px","padding-top":"10px"},on:{change:function(t){"Table"===t&&e.rowDrop2()}},model:{value:e.form.DataType,callback:function(t){e.$set(e.form,"DataType",t)},expression:"form.DataType"}},[i("el-radio",{attrs:{label:""}},[e._v("字符串")]),e._v(" "),i("el-radio",{attrs:{label:"Array"}},[e._v("数组(类似QC问题审核)")]),e._v(" "),i("el-radio",{attrs:{label:"Dialog"}},[e._v("对话")]),e._v(" "),i("el-radio",{attrs:{label:"Link"}},[e._v("外链")]),e._v(" "),i("el-radio",{attrs:{label:"DialogTable"}},[e._v("弹框列表")]),e._v(" "),i("el-radio",{attrs:{label:"Table"}},[e._v("表格")]),e._v(" "),i("el-radio",{attrs:{label:"Router"}},[e._v("路由")]),e._v(" "),i("el-radio",{attrs:{label:"Image"}},[e._v("图片")]),e._v(" "),i("el-radio",{attrs:{label:"ImageList"}},[e._v("图片数组")])],1)],1)],1),e._v(" "),e.form.UrlConfig?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Router"===e.form.DataType,expression:"form.DataType === 'Router'"}]},[i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 路由地址\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"路由地址"},model:{value:e.form.UrlConfig.RoutePath,callback:function(t){e.$set(e.form.UrlConfig,"RoutePath",t)},expression:"form.UrlConfig.RoutePath"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"},attrs:{span:8}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否有参数\n ")]),e._v(" "),i("el-switch",{model:{value:e.form.UrlConfig.IsHaveParameters,callback:function(t){e.$set(e.form.UrlConfig,"IsHaveParameters",t)},expression:"form.UrlConfig.IsHaveParameters"}})],1)],1),e._v(" "),e.form.UrlConfig.IsHaveParameters?i("el-col",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"},attrs:{span:4}},[i("el-button",{staticStyle:{position:"relative",top:"5px"},attrs:{type:"primary",size:"mini"},on:{click:e.addParameter}},[e._v("\n 增加参数\n ")])],1):e._e()],1):e._e(),e._v(" "),e._l(e.form.UrlConfig?e.form.UrlConfig.ParameterList:[],(function(t,n){return e.form.UrlConfig&&e.form.UrlConfig.IsHaveParameters?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Router"===e.form.DataType,expression:"form.DataType === 'Router'"}]},[i("el-col",{attrs:{span:10}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 参数名"+e._s(n+1)+"\n ")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"参数名"},model:{value:e.form.UrlConfig.ParameterList[n].UrlParameterName,callback:function(t){e.$set(e.form.UrlConfig.ParameterList[n],"UrlParameterName",t)},expression:"form.UrlConfig.ParameterList[index].UrlParameterName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 参数值"+e._s(n+1)+"\n ")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"参数值"},model:{value:e.form.UrlConfig.ParameterList[n].UrlParameterValueName,callback:function(t){e.$set(e.form.UrlConfig.ParameterList[n],"UrlParameterValueName",t)},expression:"form.UrlConfig.ParameterList[index].UrlParameterValueName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.handleParameterListDelete(n)}}},[e._v("删除")])],1)],1):e._e()})),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:"Table"===e.form.DataType,expression:"form.DataType === 'Table'"}],staticStyle:{position:"relative",top:"-15px"},attrs:{type:"primary",size:"mini"},on:{click:e.addCol}},[e._v("\n 增加列\n ")]),e._v(" "),e.rowDrop2TableIsShow?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Table"===e.form.DataType,expression:"form.DataType === 'Table'"}]},[i("el-table",{attrs:{data:e.form.TableConfigList,stripe:"",height:"280"}},[i("el-table-column",{attrs:{prop:"IsList","min-width":"120",label:"是否是数组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsList,callback:function(i){e.$set(t.row,"IsList",i)},expression:"scope.row.IsList"}})]}}],null,!1,1002134549)}),e._v(" "),i("el-table-column",{attrs:{prop:"ListName","min-width":"120",label:"数组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsList,placeholder:"数组"},model:{value:t.row.ListName,callback:function(i){e.$set(t.row,"ListName",i)},expression:"scope.row.ListName"}})]}}],null,!1,4133706702)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFixedColumn","min-width":"140",label:"是否固定列名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsFixedColumn,callback:function(i){e.$set(t.row,"IsFixedColumn",i)},expression:"scope.row.IsFixedColumn"}})]}}],null,!1,409891095)}),e._v(" "),i("el-table-column",{attrs:{prop:"FixedColumnName","min-width":"120",label:"固定列名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsFixedColumn,placeholder:"固定列名"},model:{value:t.row.FixedColumnName,callback:function(i){e.$set(t.row,"FixedColumnName",i)},expression:"scope.row.FixedColumnName"}})]}}],null,!1,1163635488)}),e._v(" "),i("el-table-column",{attrs:{prop:"ColumnName","min-width":"120",label:"列字段名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:t.row.IsFixedColumn,placeholder:"列字段名"},model:{value:t.row.ColumnName,callback:function(i){e.$set(t.row,"ColumnName",i)},expression:"scope.row.ColumnName"}})]}}],null,!1,1381480725)}),e._v(" "),i("el-table-column",{attrs:{prop:"ColumnValue","min-width":"120",label:"列显示值","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{placeholder:"列显示值"},model:{value:t.row.ColumnValue,callback:function(i){e.$set(t.row,"ColumnValue",i)},expression:"scope.row.ColumnValue"}})]}}],null,!1,1462295186)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsMerge","min-width":"80",label:"是否合并","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsMerge,callback:function(i){e.$set(t.row,"IsMerge",i)},expression:"scope.row.IsMerge"}})]}}],null,!1,3074269999)}),e._v(" "),i("el-table-column",{attrs:{prop:"MergeColumnName","min-width":"120",label:"合并组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsMerge,placeholder:"合并组"},model:{value:t.row.MergeColumnName,callback:function(i){e.$set(t.row,"MergeColumnName",i)},expression:"scope.row.MergeColumnName"}})]}}],null,!1,4269760118)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPicture","min-width":"120",label:"是否图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsPicture,callback:function(i){e.$set(t.row,"IsPicture",i)},expression:"scope.row.IsPicture"}})]}}],null,!1,2230992091)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDynamicTranslate","min-width":"140",label:"是否动态翻译","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsDynamicTranslate,callback:function(i){e.$set(t.row,"IsDynamicTranslate",i)},expression:"scope.row.IsDynamicTranslate"}})]}}],null,!1,769141828)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsNeedTransalate","min-width":"120",label:"是否翻译","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsNeedTransalate,callback:function(i){e.$set(t.row,"IsNeedTransalate",i)},expression:"scope.row.IsNeedTransalate"}})]}}],null,!1,2023665146)}),e._v(" "),i("el-table-column",{attrs:{prop:"TranslateDictionaryName","min-width":"120",label:"翻译字典","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsNeedTransalate,placeholder:"合并组"},model:{value:t.row.TranslateDictionaryName,callback:function(i){e.$set(t.row,"TranslateDictionaryName",i)},expression:"scope.row.TranslateDictionaryName"}})]}}],null,!1,4273102419)}),e._v(" "),i("el-table-column",{attrs:{prop:"MergeColumnName","min-width":"80",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleTableConfigListDelete(t.row,t.$index)}}},[e._v("删除")])]}}],null,!1,3893160276)})],1)],1):e._e(),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Array"===e.form.DataType,expression:"form.ConfigType === 'C' && title !== '复制' && form.DataType === 'Array'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 子数据Lable\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入子数据Lable"},model:{value:e.form.ChildDataLabel,callback:function(t){e.$set(e.form,"ChildDataLabel",t)},expression:"form.ChildDataLabel"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Array"===e.form.DataType,expression:"form.ConfigType === 'C' && title !== '复制' && form.DataType === 'Array'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 子数据Value\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入子数据Value"},model:{value:e.form.ChildDataValue,callback:function(t){e.$set(e.form,"ChildDataValue",t)},expression:"form.ChildDataValue"}})],1)],1)],2)],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"10px"},attrs:{span:24}},[i("el-row",{staticStyle:{background:"#f8f8f8",padding:"0 20px","border-radius":"10px"}},[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"后端翻译类型"}},[i("el-radio-group",{model:{value:e.form.EnumType,callback:function(t){e.$set(e.form,"EnumType",t)},expression:"form.EnumType"}},[i("el-radio",{attrs:{label:""}},[e._v("字符串")]),e._v(" "),i("el-radio",{attrs:{label:"Date"}},[e._v("时间类型")]),e._v(" "),i("el-radio",{attrs:{label:"Dictionary"}},[e._v("字典或枚举")]),e._v(" "),i("el-radio",{attrs:{label:"Foreign"}},[e._v("系统数据")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Dictionary"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字典表名"}},[i("el-input",{attrs:{placeholder:"请输入字典表名"},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Dictionary"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"翻译字段"}},[i("el-input",{attrs:{placeholder:"请输入翻译字段"},model:{value:e.form.DictionaryType,callback:function(t){e.$set(e.form,"DictionaryType",t)},expression:"form.DictionaryType"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Date"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Date'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"时间格式化"}},[i("el-select",{attrs:{placeholder:"时间格式化",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.DateType,callback:function(t){e.$set(e.form,"DateType",t)},expression:"form.DateType"}},[i("el-option",{attrs:{value:"Date",label:"日期"}}),e._v(" "),i("el-option",{attrs:{value:"DateTime",label:"日期时间"}})],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"数据库表"}},[i("el-input",{attrs:{placeholder:"请输入数据库表"},model:{value:e.form.ForeignKeyTableName,callback:function(t){e.$set(e.form,"ForeignKeyTableName",t)},expression:"form.ForeignKeyTableName"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段form"}},[i("el-input",{attrs:{placeholder:"请输入数据库字段form"},model:{value:e.form.ForeignKeyValue,callback:function(t){e.$set(e.form,"ForeignKeyValue",t)},expression:"form.ForeignKeyValue"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段to"}},[i("el-input",{attrs:{placeholder:"请输入数据库字段to"},model:{value:e.form.ForeignKeyText,callback:function(t){e.$set(e.form,"ForeignKeyText",t)},expression:"form.ForeignKeyText"}})],1)],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"显示排序",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Sort,callback:function(t){e.$set(e.form,"Sort",t)},expression:"form.Sort"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否启用\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title&&"M"==e.form.ConfigType,expression:"title !== '复制' && form.ConfigType == 'M'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("其他信息")])],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否核对\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsJoinPlan,callback:function(t){e.$set(e.form,"IsJoinPlan",t)},expression:"form.IsJoinPlan"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否记录\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsFinish,callback:function(t){e.$set(e.form,"IsFinish",t)},expression:"form.IsFinish"}})],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["复制"!==e.title?i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]):i("el-button",{attrs:{type:"primary"},on:{click:e.submitCopy}},[e._v("复 制")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[i("div",{staticStyle:{padding:"0 40px",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{"text-align":"right",height:"50px"}},[i("el-select",{attrs:{"collapse-tags":"",filterable:"",placeholder:"完全拷贝对象",clearable:"",size:"small"},model:{value:e.copeParams.FromItemId,callback:function(t){e.$set(e.copeParams,"FromItemId",t)},expression:"copeParams.FromItemId"}},e._l(e.list,(function(t){return e.drawer_cfg.drawerChild&&"M"===t.ConfigType&&t.ObjectTypeId===e.selectRow.ObjectTypeId&&t.OptTypeId&&t.ChildrenTypeId?i("el-option",{attrs:{value:t.Id,label:t.Description}}):e._e()})),1),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleOverCope(e.selectRow)}}},[e._v("完全拷贝")]),e._v(" "),i("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",placeholder:"拷贝对象",clearable:"",size:"small"},model:{value:e.copeParams.DataSourceGuids,callback:function(t){e.$set(e.copeParams,"DataSourceGuids",t)},expression:"copeParams.DataSourceGuids"}},e._l(e.list,(function(t){return e.drawer_cfg.drawerChild&&"M"===t.ConfigType&&t.ObjectTypeId===e.selectRow.ObjectTypeId&&t.OptTypeId&&t.ChildrenTypeId?i("el-option",{attrs:{value:t.Id,label:t.Description}}):e._e()})),1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCope(e.selectRow)}}},[e._v("拷贝")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleAdd(e.selectRow)}}},[e._v("新建")])],1),e._v(" "),i("div",{staticStyle:{flex:"1"}},[e.tableShow?i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"singleTable",attrs:{data:e.childrenList,"row-key":e.selectRow?e.selectRow.Id:"1",height:"100"}},[i("el-table-column",{attrs:{prop:"Code",label:"字段名","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"字段英文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"字段中文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sort",label:"显示顺序","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"是否使用父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.IsShowParent?i("el-tag",{attrs:{size:"success"}},[e._v("通用数据")]):e._e(),e._v(" "),0===t.row.IsShowParent?i("el-tag",{attrs:{size:"danger"}},[e._v("业务数据")]):e._e(),e._v(" "),2===t.row.IsShowParent?i("el-tag",{attrs:{size:"warning"}},[e._v("列表数据")]):e._e()]}}],null,!1,2628470102)}),e._v(" "),i("el-table-column",{attrs:{label:"是否依赖父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsShowByTrialConfig?i("el-tag",{attrs:{size:"success"}},[e._v("依赖")]):i("el-tag",{attrs:{size:"danger"}},[e._v("不依赖")])]}}],null,!1,3180771523)}),e._v(" "),i("el-table-column",{attrs:{label:"字典依赖",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnumType&&t.row.DictionaryCode?i("span",[e._v("\n "+e._s(t.row.DictionaryCode)+"["+e._s(t.row.DictionaryType)+"]\n ")]):i("span",[e._v("\n 不依赖\n ")])]}}],null,!1,1959708567)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialConfigRelyFieldName",label:"依赖字段","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,399506414)})],1):e._e()],1)])])],1)},a=[],r=(i("7514"),i("ac6a"),i("2938")),o=i("ca17"),s=i.n(o);i("542c"); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e){for(var t=1;t=0||(a[i]=e[i]);return a}function p(e,t){if(null==e)return{};var i,n,a=h(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}var m="1.15.0";function g(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var v=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),b=g(/Edge/i),y=g(/firefox/i),w=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),_=g(/iP(ad|od|hone)/i),I=g(/chrome/i)&&g(/android/i),x={capture:!1,passive:!1};function S(e,t,i){e.addEventListener(t,i,!v&&x)}function T(e,t,i){e.removeEventListener(t,i,!v&&x)}function C(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(i){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function R(e,t,i,n){if(e){i=i||document;do{if(null!=t&&(">"===t[0]?e.parentNode===i&&C(e,t):C(e,t))||n&&e===i)return e;if(e===i)break}while(e=k(e))}return null}var D,L=/\s+/g;function O(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(L," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(L," ")}}function $(e,t,i){var n=e&&e.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),void 0===t?i:i[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=i+("string"===typeof i?"":"px")}}function N(e,t){var i="";if("string"===typeof e)i=e;else do{var n=$(e,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(i)}function A(e,t,i){if(e){var n=e.getElementsByTagName(t),a=0,r=n.length;if(i)for(;a=r:a<=r,!o)return n;if(n===P())break;n=B(n,!1)}return!1}function F(e,t,i,n){var a=0,r=0,o=e.children;while(r2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,a=p(i,ae);ie.pluginEvent.bind(Je)(e,t,c({dragEl:se,parentEl:le,ghostEl:ce,rootEl:ue,nextEl:de,lastDownEl:fe,cloneEl:he,cloneHidden:pe,dragStarted:ke,putSortable:we,activeSortable:Je.active,originalEvent:n,oldIndex:me,oldDraggableIndex:ve,newIndex:ge,newDraggableIndex:be,hideGhostForTarget:Ye,unhideGhostForTarget:Ke,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:n})}},a))};function oe(e){ne(c({putSortable:we,cloneEl:he,targetEl:se,rootEl:ue,oldIndex:me,oldDraggableIndex:ve,newIndex:ge,newDraggableIndex:be},e))}var se,le,ce,ue,de,fe,he,pe,me,ge,ve,be,ye,we,_e,Ie,xe,Se,Te,Ce,ke,Re,De,Le,Oe,$e=!1,Ne=!1,Ae=[],Pe=!1,Ee=!1,Me=[],Fe=!1,je=[],Ve="undefined"!==typeof document,qe=_,ze=b||v?"cssFloat":"float",Be=Ve&&!I&&!_&&"draggable"in document.createElement("div"),Ue=function(){if(Ve){if(v)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qe=function(e,t){var i=$(e),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=F(e,0,t),r=F(e,1,t),o=a&&$(a),s=r&&$(r),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+E(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(r).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===i[ze]||r&&"none"===i[ze]&&l+c>n)?"vertical":"horizontal"},He=function(e,t,i){var n=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height,o=i?t.left:t.top,s=i?t.right:t.bottom,l=i?t.width:t.height;return n===o||a===s||n+r/2===o+l/2},Ge=function(e,t){var i;return Ae.some((function(n){var a=n[K].options.emptyInsertThreshold;if(a&&!j(n)){var r=E(n),o=e>=r.left-a&&e<=r.right+a,s=t>=r.top-a&&t<=r.bottom+a;return o&&s?i=n:void 0}})),i},We=function(e){function t(e,i){return function(n,a,r,o){var s=n.options.group.name&&a.options.group.name&&n.options.group.name===a.options.group.name;if(null==e&&(i||s))return!0;if(null==e||!1===e)return!1;if(i&&"clone"===e)return e;if("function"===typeof e)return t(e(n,a,r,o),i)(n,a,r,o);var l=(i?n:a).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},n=e.group;n&&"object"==u(n)||(n={name:n}),i.name=n.name,i.checkPull=t(n.pull,!0),i.checkPut=t(n.put),i.revertClone=n.revertClone,e.group=i},Ye=function(){!Ue&&ce&&$(ce,"display","none")},Ke=function(){!Ue&&ce&&$(ce,"display","")};Ve&&!I&&document.addEventListener("click",(function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1}),!0);var Ze=function(e){if(se){e=e.touches?e.touches[0]:e;var t=Ge(e.clientX,e.clientY);if(t){var i={};for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[K]._onDragOver(i)}}},Xe=function(e){se&&se.parentNode[K]._isOutsideThisEl(e.target)};function Je(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=f({},t),e[K]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Je.supportPointer&&"PointerEvent"in window&&!w,emptyInsertThreshold:5};for(var n in ie.initializePlugins(this,e,i),i)!(n in t)&&(t[n]=i[n]);for(var a in We(t),this)"_"===a.charAt(0)&&"function"===typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Be,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?S(e,"pointerdown",this._onTapStart):(S(e,"mousedown",this._onTapStart),S(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(e,"dragover",this),S(e,"dragenter",this)),Ae.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),f(this,Z())}function et(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function tt(e,t,i,n,a,r,o,s){var l,c,u=e[K],d=u.options.onMove;return!window.CustomEvent||v||b?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=a||t,l.relatedRect=r||E(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),d&&(c=d.call(u,l,o)),c}function it(e){e.draggable=!1}function nt(){Fe=!1}function at(e,t,i){var n=E(F(i.el,0,i.options,!0)),a=10;return t?e.clientXn.right+a||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+a}function ot(e,t,i,n,a,r,o,s){var l=n?e.clientY:e.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,f=!1;if(!o)if(s&&Leu+c*r/2:ld-Le)return-De}else if(l>u+c*(1-a)/2&&ld-c*r/2)?l>u+c/2?1:-1:0}function st(e){return V(se)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){se&&it(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._disableDelayedDrag),T(e,"touchend",this._disableDelayedDrag),T(e,"touchcancel",this._disableDelayedDrag),T(e,"mousemove",this._delayedDragTouchMoveHandler),T(e,"touchmove",this._delayedDragTouchMoveHandler),T(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?S(document,"pointermove",this._onTouchMove):S(document,t?"touchmove":"mousemove",this._onTouchMove):(S(se,"dragend",this),S(ue,"dragstart",this._onDragStart));try{document.selection?ut((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(e,t){if($e=!1,ue&&se){re("dragStarted",this,{evt:t}),this.nativeDraggable&&S(document,"dragover",Xe);var i=this.options;!e&&O(se,i.dragClass,!1),O(se,i.ghostClass,!0),Je.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ie){this._lastX=Ie.clientX,this._lastY=Ie.clientY,Ye();var e=document.elementFromPoint(Ie.clientX,Ie.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ie.clientX,Ie.clientY),e===t)break;t=e}if(se.parentNode[K]._isOutsideThisEl(e),t)do{if(t[K]){var i=void 0;if(i=t[K]._onDragOver({clientX:Ie.clientX,clientY:Ie.clientY,target:e,rootEl:t}),i&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ke()}},_onTouchMove:function(e){if(_e){var t=this.options,i=t.fallbackTolerance,n=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=ce&&N(ce,!0),o=ce&&r&&r.a,s=ce&&r&&r.d,l=qe&&Oe&&q(Oe),c=(a.clientX-_e.clientX+n.x)/(o||1)+(l?l[0]-Me[0]:0)/(o||1),u=(a.clientY-_e.clientY+n.y)/(s||1)+(l?l[1]-Me[1]:0)/(s||1);if(!Je.active&&!$e){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(oe({rootEl:le,name:"add",toEl:le,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"remove",toEl:le,originalEvent:e}),oe({rootEl:le,name:"sort",toEl:le,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"sort",toEl:le,originalEvent:e})),we&&we.save()):ge!==me&&ge>=0&&(oe({sortable:this,name:"update",toEl:le,originalEvent:e}),oe({sortable:this,name:"sort",toEl:le,originalEvent:e})),Je.active&&(null!=ge&&-1!==ge||(ge=me,be=ve),oe({sortable:this,name:"end",toEl:le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){re("nulling",this),ue=se=le=ce=de=he=fe=pe=_e=Ie=ke=ge=be=me=ve=Re=De=we=ye=Je.dragged=Je.ghost=Je.clone=Je.active=null,je.forEach((function(e){e.checked=!0})),je.length=xe=Se=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":se&&(this._onDragOver(e),et(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],i=this.el.children,n=0,a=i.length,r=this.options;ni-t?i:e}))},handleUpMove:function(e){var t,i,n=this,a=this.list.filter((function(t,i){return e.ModuleTypeId===t.ModuleTypeId&&t.ModuleTypeValueCN&&t.ObjectTypeValueCN&&t.OptTypeValueCN&&t.ChildrenTypeValueCN}));if(a.forEach((function(i,n){e.Id===i.Id&&(t=n)})),console.log(t),0!==t){i=a[t-1],console.log(a);var o=[{Id:i.Id,Sort:e.Sort},{Id:e.Id,Sort:i.Sort}];this.loading=!0,Object(r["b"])(o).then((function(e){n.loading=!1,n.getList()})).catch((function(){n.loading=!1}))}else this.$message.error("该行排序已是最高")},rowDrop2:function(){var e=this;this.$nextTick((function(){var t=document.querySelector(".el-dialog__body .el-table__body-wrapper tbody"),i=e;kt.create(t,{animation:500,forceFallback:!0,delay:500,onEnd:function(e){var t=e.newIndex,n=e.oldIndex,a=Object.assign([],i.form.TableConfigList),r=a.splice(n,1)[0];a.splice(t,0,r);var o=a.map((function(e,t){return e}));i.rowDrop2TableIsShow=!1,i.$nextTick((function(){i.$set(i.form,"TableConfigList",o),i.rowDrop2TableIsShow=!0,i.rowDrop2()})),i.loading=!0}})}))},rowDrop:function(){var e=document.querySelector(".singleTable .el-table__body-wrapper tbody"),t=this;kt.create(e,{animation:500,forceFallback:!0,delay:500,onEnd:function(e){var i=e.newIndex,n=e.oldIndex,a=Object.assign([],t.childrenList),o=a.splice(n,1)[0];a.splice(i,0,o);var s=a.map((function(e,t){return{Id:e.Id,Sort:t}}));t.loading=!0,Object(r["b"])(s).then((function(e){t.loading=!1,t.getList()})).catch((function(){t.loading=!1}))}})},handleOverCope:function(e){var t=this;this.copeParams.FromItemId?(this.copeParams.ToItemId=e.Id,this.loading=!0,Object(r["f"])(this.copeParams).then((function(e){t.loading=!1,t.$message.success("完全Copy成功"),t.copeParams.FromItemId=null,t.selectRow&&t.handleChildren(t.selectRow,!0)})).catch((function(){t.loading=!1}))):this.$message.error("请选择完全拷贝对象")},handleCope:function(e){var t=this;0!==this.copeParams.DataSourceGuids.length?(this.copeParams.AddItemGuid=e.Id,this.loading=!0,Object(r["d"])(this.copeParams).then((function(e){t.loading=!1,t.$message.success("Copy成功"),t.copeParams.DataSourceGuids=[],t.selectRow&&t.handleChildren(t.selectRow,!0)})).catch((function(){t.loading=!1}))):this.$message.error("请选择拷贝对象")},changeModule:function(e){this.ChildGroup=this.dict.type.ModuleType.find((function(t){return t.value==e})).raw.ChildGroup,this.form.ObjectTypeId=null},handleChildren:function(e,t,i){var n=this;this.selectRow=e,this.tableShow=!1,Object(r["g"])(e.Id).then((function(i){n.$set(n,"childrenList",i.Result),n.tableShow=!0,t||(n.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Description,parent:e}),n.$nextTick((function(){n.rowDrop()}))}))},toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},normalizer:function(e){return e.Children&&!e.Children.length&&delete e.Children,{id:e.Id,label:e.Description,children:e.Children}},toTree:function(e,t){function i(t){for(var n=[],a=0;a0){for(var i in t.Result)e.form.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isSign=t.Result.IsSign}e.form.OncologyAssessIdsStr=e.form.OncologyAssessIds.map((function(t){return e.$fd("OncologyAssessType",t,"id")})).toString(),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["oncologyForm"].validate((function(n){n?(t.loading=!0,t.form.TrialId=t.$route.query.trialId,t.form.TrialReadingCriterionId=t.trialReadingCriterionId,Object(r["Oe"])(t.form).then((function(n){t.loading=!1,n.IsSuccess&&e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,i(!1)}))):i(!1)}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},1918:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:taskCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TaskCode,callback:function(t){e.$set(e.searchData,"TaskCode",t)},expression:"searchData.TaskCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.IsUrgent",label:e.$t("trials:rereadTask:table:isUrgent"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OriginalReReadingTask.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskCode","min-width":"100",label:e.$t("trials:rereadTask:table:taskCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialSiteCode",label:e.$t("trials:rereadTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SubjectCode","min-width":"100",label:e.$t("trials:rereadTask:table:subjectCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskBlindName","min-width":"120",label:e.$t("trials:rereadTask:table:taskBlindName"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialReadingCriterionName",label:e.$t("trials:rereadTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskState",label:e.$t("trials:rereadTask:table:taskState"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),1===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ReadingCategory","min-width":"100",label:e.$t("trials:rereadTask:table:readingCategory"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SignTime","min-width":"120",label:e.$t("trials:rereadTask:table:signTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingType","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingType"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingType?i("div",[2===t.row.RequestReReadingType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))])],1):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingTime","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingReason","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingReason"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingResultEnum","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingResultEnum"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingResultEnum||0===t.row.RequestReReadingResultEnum?i("div",[2===t.row.RequestReReadingResultEnum?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.RequestReReadingRejectReason)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))])],1):e._e(),e._v(" "),1===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e(),e._v(" "),0===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e()],1):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingNewTaskCode",label:e.$t("trials:rereadTask:table:reReadingNewTaskCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.ConfirmReReadingVisible?i("el-dialog",{attrs:{title:"驳回",visible:e.ConfirmReReadingVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ConfirmReReadingVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",refInFor:!0,staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ConfirmReReadingForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:"驳回原因",prop:"RequestReReadingRejectReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ConfirmReReadingForm.RequestReReadingRejectReason,callback:function(t){e.$set(e.ConfirmReReadingForm,"RequestReReadingRejectReason",t)},expression:"ConfirmReReadingForm.RequestReReadingRejectReason"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ConfirmReReadingVisible=!1,e.ConfirmReReadingForm={RequestReReadingRejectReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.handleConfirmReReading(e.rowData,2)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)]):e._e()])})),1)],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("a599"),d=function(){return{SubjectCode:"",TaskCode:"",PageIndex:1,PageSize:20}},f={name:"RereadTask",components:{BaseContainer:l["default"],Pagination:c["default"]},data:function(){return{searchData:d(),list:[],siteOptions:[],total:0,loading:!1,trialId:"",ConfirmReReadingForm:{RequestReReadingRejectReason:null},rules:{RequestReReadingRejectReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},ConfirmReReadingVisible:!1,trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.$route.query.SiteId&&(this.searchData.SiteId=this.$route.query.SiteId,this.searchData.SubjectCode=this.$route.query.SubjectCode,this.searchData.TaskName=this.$route.query.TaskName,Object(u["a"])("SiteId",""),Object(u["a"])("SubjectCode",""),Object(u["a"])("TaskName","")),this.trialId=this.$route.query.trialId,this.getSite(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["jc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleConfirmReReading:function(e,t,i){var n=this;if(i)return this.rowData=Object(r["a"])({},e),this.ConfirmReReadingVisible=!0,void(this.ConfirmReReadingForm={RequestReReadingRejectReason:null});2!==t?this.$confirm("确定".concat(1===t?"同意":"拒绝","该重阅申请?")).then((function(){var i={ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],TrialId:n.$route.query.trialId,RequestReReadingResultEnum:t};n.loading=!0,n.btnLoading=!0,Object(s["q"])(i).then((function(){n.loading=!1,n.btnLoading=!1,n.$message.success("".concat(1===t?"同意":"拒绝","申请成功")),n.getList()})).catch((function(){n.loading=!1,n.btnLoading=!1}))})):this.$refs.reasonForm.validate((function(i){if(i){var a={ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],RequestReReadingRejectReason:n.ConfirmReReadingForm.RequestReReadingRejectReason,TrialId:n.$route.query.trialId,RequestReReadingResultEnum:t};n.loading=!0,n.btnLoading=!0,Object(s["q"])(a).then((function(){n.loading=!1,n.btnLoading=!1,n.$message.success("".concat(1===t?"同意":"拒绝","申请成功")),n.getList(),n.ConfirmReReadingVisible=!1})).catch((function(){n.loading=!1,n.btnLoading=!1}))}}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},1937:function(e,t,i){},1953:function(e,t,i){var n=i("2449"),a=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=a},"196d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"report-wrapper"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{display:"flex","flex-direction":"column"},attrs:{shadow:"never"}},[i("div",{staticClass:"clearfix report-header",attrs:{slot:"header"},slot:"header"},[i("h3",{staticStyle:{margin:"0",padding:"0"}},[e._v("电子影像病例报告表(eICRF)")]),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("el-switch",{staticStyle:{"margin-right":"5px"},attrs:{"active-text":"展开详情","inactive-text":"折叠详情"},on:{change:e.handleShowDetail},model:{value:e.isShowDetail,callback:function(t){e.isShowDetail=t},expression:"isShowDetail"}}),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getReportInfo}},[e._v("刷新")]):e._e(),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("保存")]):e._e(),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleConfirm}},[e._v("提交")]):e._e()],1)]),e._v(" "),i("div",{staticStyle:{flex:"1"}},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],ref:"reportList",attrs:{data:e.taskQuestions,"row-key":"Id",border:"","default-expand-all":"",height:"100","tree-props":{children:"Childrens",hasChildren:"hasChildren"},size:"mini"}},[i("el-table-column",{attrs:{prop:"",label:"","show-overflow-tooltip":"",width:"350px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionName?i("span",[e._v(e._s((t.row.BlindName,t.row.QuestionName)))]):i("span",{staticStyle:{"font-weight":"bold","font-size":"16px",color:"#f44336"}},[e._v("\n "+e._s(t.row.GroupName)+"\n ")])]}}])}),e._v(" "),e._l(e.visitTaskList,(function(t){return i("el-table-column",{key:t.VisitTaskId,attrs:{prop:"date","show-overflow-tooltip":"",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(n){return[e.readingTaskState<2&&t.VisitTaskId===e.visitTaskId&&("input"===n.row.Type||"number"===n.row.Type||"select"===n.row.Type||"textarea"===n.row.Type||"radio"===n.row.Type)?[[i("div",[t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit?e.questionForm[n.row.QuestionId]instanceof Array&&("input"===n.row.Type||"textarea"===n.row.Type)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{size:"mini"},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}}):e.questionForm[n.row.QuestionId]instanceof Array&&("input"===n.row.Type||"textarea"===n.row.Type)?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId])+"\n ")]):"input"!==n.row.Type&&"textarea"!==n.row.Type||n.row.IsShowInDicom||!(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?"input"===n.row.Type||"textarea"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId])+"\n ")]):e.questionForm[n.row.QuestionId]instanceof Array&&("select"===n.row.Type||"radio"===n.row.Type)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-select",{attrs:{size:"mini",clearable:""},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}},[e._l(n.row.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e.questionForm[n.row.QuestionId]instanceof Array&&"select"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId])+"\n ")]):"select"!==n.row.Type&&"radio"!==n.row.Type||n.row.IsShowInDicom||!(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?"select"===n.row.Type||"radio"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId])+"\n ")]):1!==n.row.DataSource&&e.questionForm[n.row.QuestionId]instanceof Array&&"number"===n.row.Type&&(n.row.xfIndex||0===n.row.xfIndex)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{disabled:1===n.row.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",size:"mini"},on:{input:function(t){return e.limitInput(t,e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId)},focus:function(){e.questionId=n.row.QuestionId}},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}},[0!==n.row.Unit?i("template",{slot:"append"},[e._v(e._s(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))]):2===n.row.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e.questionForm[n.row.QuestionId]instanceof Array&&"number"===n.row.Type&&(n.row.xfIndex||0===n.row.xfIndex)?i("span",[0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]))?e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]+" %")+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]))?e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]],2):1!==n.row.DataSource&&"number"===n.row.Type&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{disabled:1===n.row.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",size:"mini"},on:{input:function(t){return e.limitInput(t,e.questionForm,n.row.QuestionId)},focus:function(){e.questionId=n.row.QuestionId}},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}},[0!==n.row.Unit?i("template",{slot:"append"},[e._v(e._s(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))]):2===n.row.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):"number"===n.row.Type?i("span",[0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId]))?e.questionForm[n.row.QuestionId]:e.questionForm[n.row.QuestionId]+" %")+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId]))?e.questionForm[n.row.QuestionId]:e.questionForm[n.row.QuestionId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]],2):e._e():i("el-select",{attrs:{size:"mini",clearable:""},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}},[e._l(n.row.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):i("el-input",{attrs:{size:"mini"},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}}):void 0],2)]]:t.VisitTaskId===e.visitTaskId&&"upload"===n.row.Type?["upload"!==n.row.Type||!n.row.xfIndex&&0!==n.row.xfIndex?"upload"===n.row.Type?i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:e.questionForm[n.row.QuestionId]},on:{setImageUrl:function(t){e.setImageUrl(n.row.QuestionId,n.row.xfIndex,n.row.TableQuestionId,t)}}}):e._e():i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]},on:{setImageUrl:function(t){e.setImageUrl(n.row.QuestionId,n.row.xfIndex,n.row.TableQuestionId,t,n.row.RowId)}}})]:"upload"===n.row.Type?["upload"!==n.row.Type||!n.row.xfIndex&&0!==n.row.xfIndex?e._e():i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:n.row.Answers[t.VisitTaskId]}})]:22===n.row.QuestionType?[e._v("\n "+e._s("-1"===n.row.Answers[t.VisitTaskId]?"未知":n.row.Answers[t.VisitTaskId])+"\n ")]:n.row.DictionaryCode?[e._v("\n "+e._s(e.$fd(n.row.DictionaryCode,n.row.Answers[t.VisitTaskId]))+"\n ")]:10===e.CriterionType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:""+n.row.Answers[t.VisitTaskId])+"\n ")]:t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit?0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+" %")+"\n ")]:n.row.Answers&&n.row.Answers.hasOwnProperty(t.VisitTaskId)?[e._v("\n "+e._s(n.row.Answers[t.VisitTaskId])+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]:void 0]}}],null,!0)},[i("template",{slot:"header"},[t.IsCurrentTask?i("div",[e._v("\n "+e._s(t.BlindName)+"\n ")]):i("div",[i("div",[e._v("\n "+e._s(t.BlindName)+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.previewDicoms(t)}}},[i("span",{staticClass:"el-icon-view"})])],1)])])],2)}))],2)],1)]),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("6b54"),i("456d"),i("20d6"),i("6762"),i("2fdb"),i("75fc")),o=(i("ac6a"),i("28a5"),i("96cf"),i("3b8d")),s=i("3e42"),l=i("9b92"),c=i("4176"),u=i("7a9e"),d=i("179b"),f=i("5f87"),h=i("4360"),p={name:"CustomizeReportPage",components:{SignForm:d["default"],CustomizeReportPageUpload:c["default"]},props:{visitTaskId:{type:String,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,visitTaskList:[],taskQuestions:[],loading:!1,answers:[],readingTaskState:2,tumorEvaluate:null,currentEvaluateResult:null,isExistDisease:null,currentExistDisease:null,currentTaskReason:"",answerArr:[],questions:[],isShowDetail:!1,CriterionType:0,CalculationList:[],TrialReadingCriterionId:null,tableAnswers:{},questionForm:{},questionId:null}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.questionId]||!t[this.questionId])return}catch(i){}this.formItemNumberChange(this.questionId,!1)}},taskQuestions:function(){var e=this;this.$nextTick((function(){e.setScrollTop()}))}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.digitPlaces=parseInt(localStorage.getItem("digitPlaces")),this.TrialReadingCriterionId=this.$route.query.TrialReadingCriterionId,window.addEventListener("resize",(function(){t.handleResize(),t.setScrollTop()})),l["a"].$on("getReportInfo",(function(e){e&&t.getReportInfo()})),e.next=7,this.getQuestionCalculateRelation();case 7:this.getReportInfo();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){l["a"].$off("getReportInfo")},methods:{limitInput:function(e,t,i){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(t,i,parseFloat(e).toFixed(this.digitPlaces))},setImageUrl:function(e,t,i,n,a){t||0===t?(this.$set(this.questionForm[e][t],i,n),this.$set(this.questionForm[e][t],i+"_RowId",a),console.log(this.questionForm[e][t][i])):this.questionForm[e]=n},getTagterAnswers:function(e,t){var i=this;e.forEach((function(e){return e.QuestionId===t?(console.log(e.QuestionName),Object.assign({},e.Answers)):e.Childrens.length>0?i.getTagterAnswers(e.Childrens,t):void 0}))},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(a){var r=i.logic(t);!1!==r&&i.$set(i.questionForm,t.QuestionId,r)}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$set(i.questionForm,t.QuestionId,a)}})),console.log(this.questionForm)},getTableAnswers:function(e,t){var i=this,n=[];return window.xfList=t,t.forEach((function(e,t){var a={};e.Childrens.forEach((function(e){console.log(e,t),i.$set(e,"xfIndex",t),a[e.TableQuestionId+"_RowId"]=e.RowId,a[e.TableQuestionId]=e.Answers[i.visitTaskId]})),n.push(a)})),console.log("arr",n),n},InitVisitTaskQuestionForm:function(){var e=this;this.taskQuestions.map((function(t,i){if("group"!==t.Type||0!==t.Childrens.length||"table"===t.Type){if(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===t.Type||"number"===t.Type||e.$set(e.questionForm,t.QuestionId,t.Answers[e.visitTaskId]),"table"===t.Type){var n=e.getTableAnswers(t.QuestionId,t.Childrens,i);e.$set(e.questionForm,t.QuestionId,n)}"number"===t.Type&&e.$set(e.questionForm,t.QuestionId,""===t.Answers[e.visitTaskId]?parseFloat(0).toFixed(e.digitPlaces):t.Answers[e.visitTaskId]),t.Childrens.length>0&&e.setChild(t.Childrens)}})),this.formItemNumberChange(this.questionId,!1),console.log(this.questionForm)},setChild:function(e){var t=this;e.forEach((function(e,i){if("group"!==e.Type&&"summary"!==e.Type&&e.Id&&"table"!==e.Type&&t.$set(t.questionForm,e.QuestionId,e.Answers[t.visitTaskId]),"table"===e.Type){var n=t.getTableAnswers(e.QuestionId,e.Childrens,i);t.$set(t.questionForm,e.QuestionId,n)}"number"===e.Type&&t.$set(t.questionForm,e.QuestionId,""===e.Answers[t.visitTaskId]?parseFloat(0).toFixed(t.digitPlaces):e.Answers[t.visitTaskId]),e.Childrens&&e.Childrens.length>0&&"table"!==e.Type&&t.setChild(e.Childrens)}))},getQuestionCalculateRelation:function(){var e=this;return new Promise((function(t){Object(s["Jc"])({TrialReadingCriterionId:e.TrialReadingCriterionId}).then((function(i){e.CalculationList=i.Result,t()}))}))},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:t.questionForm[n.QuestionId].forEach((function(e,t){console.log("为什么为0",parseFloat(e[n.TableQuestionId])),0===t?i=isNaN(parseFloat(e[n.TableQuestionId]))?null:parseFloat(e[n.TableQuestionId]):i+=isNaN(parseFloat(e[n.TableQuestionId]))?null:parseFloat(e[n.TableQuestionId]),console.log(i)}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o));break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(a){console.log(a)}var n=parseInt(localStorage.getItem("digitPlaces"));return 2===e.ValueType&&(i*=100),isNaN(i)?"":isFinite(i)?i.toFixed(n):"∞"},getReportInfo:function(){var e=this;this.loading=!0;var t={visitTaskId:this.visitTaskId,trialId:this.$router.currentRoute.query.trialId};Object(s["Yc"])(t).then((function(t){e.readingTaskState=t.Result.ReadingTaskState,e.tumorEvaluate=t.Result.CalculateResult.TumorEvaluate?parseInt(t.Result.CalculateResult.TumorEvaluate):null,e.isExistDisease=t.Result.CalculateResult.IsExistDisease?parseInt(t.Result.CalculateResult.IsExistDisease):null,e.answerArr=[],e.questions=t.Result.TaskQuestions.concat();var i=e.getQuestions(t.Result.TaskQuestions,!e.isShowDetail,null,null);e.taskQuestions=[],i.forEach((function(t){e.$set(e.taskQuestions,e.taskQuestions.length,t)})),e.visitTaskList=t.Result.VisitTaskList,console.log(e.taskQuestions),e.InitVisitTaskQuestionForm(),e.setScrollTop(),e.loading=!1})).catch((function(){e.loading=!1}))},setScrollTop:function(e){var t=this;setTimeout((function(){t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight}),50),this.$refs.reportList.bodyWrapper.scrollTop=this.$refs.reportList.bodyWrapper.scrollHeight},getQuestions:function(e,t,i,n){var a=this,r=[];return 0!==e.length&&e.forEach((function(e){i=e.LesionType;var o=[];if(o=1!==e.LesionType&&2!==e.LesionType||!t?[3,4,5,6,2,8,10]:[0,1,3,4,5,6,2,8,10],0!==i||0!==n||a.isShowDetail||1!==a.CriterionType||o.push(1),!o.includes(e.QuestionMark)){var s=e;if(a.$set(s,"Answers",{}),e.RowIndex>0){var l=e.Childrens.findIndex((function(e){return 8===e.QuestionMark})),c=e.Childrens.findIndex((function(e){return 10===e.QuestionMark}));if(l>-1&&e.Childrens[l].Answer.length>0){var u=e.Childrens[l].Answer.findIndex((function(e){return""!==e.Answer})),d="";if(d=s.IsCanEditPosition?"".concat(e.Childrens[l].Answer[u].Answer,"--").concat(e.Childrens[c].Answer[u].Answer):"".concat(e.Childrens[l].Answer[u].Answer),e.SplitOrMergeLesionName&&u>-1?s.QuestionName="".concat(s.QuestionName," --").concat(d," (Split from ").concat(e.SplitOrMergeLesionName,")"):!e.SplitOrMergeLesionName&&u>-1?s.QuestionName="".concat(s.QuestionName," --").concat(d):s.QuestionName="".concat(s.QuestionName," "),1===a.CriterionType){var f=e.Childrens.findIndex((function(e){return 2===e.QuestionMark}));f>-1&&(n=e.Childrens[f].Answer[u].Answer?parseInt(e.Childrens[f].Answer[u].Answer):null)}}}var h=parseInt(localStorage.getItem("digitPlaces"))||0;e.Answer.forEach((function(t){e.DictionaryCode?a.$set(s.Answers,t.VisitTaskId,t.Answer?parseInt(t.Answer):null):"number"===e.Type?a.$set(s.Answers,t.VisitTaskId,isNaN(parseFloat(t.Answer))?t.Answer:parseFloat(t.Answer).toFixed(h)):a.$set(s.Answers,t.VisitTaskId,t.Answer)})),e.Childrens.length>=1&&(s.Childrens=a.getQuestions(e.Childrens,t,i,n)),r.push(s)}})),r},handleShowDetail:function(e){this.getReportInfo()},handleExistDiseaseChange:function(e){e===this.isExistDisease&&this.tumorEvaluate===this.currentEvaluateResult&&(this.currentTaskReason="",this.evaluateReasonChange(""));var t=this.answerArr.findIndex((function(e){return 15===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleEvaluateResultChange:function(e){e===this.tumorEvaluate&&this.isExistDisease===this.currentExistDisease&&(this.currentTaskReason="",this.evaluateReasonChange(""));var t=this.answerArr.findIndex((function(e){return 13===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},evaluateReasonChange:function(e){var t=this.answerArr.findIndex((function(e){return 14===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleConfirm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.handleSave(!1);case 2:return e.next=4,this.verifyVisitTaskQuestions();case 4:t=u["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=t,this.signVisible=!0;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(s["Of"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},handleResize:function(){var e=this;this.$nextTick((function(){e.$refs.reportList.doLayout()}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};Object(s["Ze"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,h["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},previewDicoms:function(e){var t=Object(f["a"])(),i=this.$router.currentRoute.query.subjectCode,n=this.$router.currentRoute.query.subjectId,a=this.$router.currentRoute.query.trialId,r=this.$router.currentRoute.query.isReadingTaskViewInOrder,o=this.$router.currentRoute.query.criterionType,s=this.$router.currentRoute.query.readingTool,l="/readingDicoms?trialId=".concat(a,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(e.VisitTaskId,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(t),c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleSave:function(e){var t=this;return new Promise((function(i,n){t.loading=!0;var a=[],r=[],o=function(e){t.questionForm[e]instanceof Array?t.questionForm[e].forEach((function(t,i){Object.keys(t).forEach((function(i){console.log(i),-1===i.indexOf("_RowId")&&r.push({questionId:e,answer:t[i],tableQuestionId:i,rowId:t[i+"_RowId"]})}))})):a.push({questionId:e,answer:t.questionForm[e].toString()})};for(var c in t.questionForm)o(c);var u={visitTaskId:t.visitTaskId,questionAnswer:a,tableQuestionAnswer:r};console.log(u),Object(s["U"])(u).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),l["a"].$emit("getCustomTableQuestionAnswer"),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))}}},m=p,g=(i("4aad"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"35c44234",null);t["default"]=v.exports},"198d":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"199c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}})]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[8===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:approver"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:approvalTime"),"min-width":"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=4,u={name:"Approval",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],loading:!1,listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,listLoading:!1,approveIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApprove:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(s["L"])(t,e.approveIdArr,1).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","confirmation"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(c).getItemStyle(d);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var _=f;e.exports=_},"19e8":function(e,t,i){},"19eb":function(e,t,i){var n=i("6d8b"),a=i("2b61"),r=i("d5b7"),o=i("9e2e");function s(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new a(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?r.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new a(e,this),this.dirty(!1),this},calculateTextPosition:null},n.inherits(s,r),n.mixin(s,o);var l=s;e.exports=l},"19ec":function(e,t,i){},"19fd":function(e,t,i){"use strict";i("0d29")},"1a33":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"participant-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:staff:table:name"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserRealName,callback:function(t){e.$set(e.listQuery,"UserRealName",t)},expression:"listQuery.UserRealName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:uid"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserName,callback:function(t){e.$set(e.listQuery,"UserName",t)},expression:"listQuery.UserName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:organization"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.OrganizationName,callback:function(t){e.$set(e.listQuery,"OrganizationName",t)},expression:"listQuery.OrganizationName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:userType"))+":")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserTypeEnum,callback:function(t){e.$set(e.listQuery,"UserTypeEnum",t)},expression:"listQuery.UserTypeEnum"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.UserTypeEnum}},[i("span",[e._v(e._s(t.UserType))])])})),1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-plus"},on:{click:e.handleAssign}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{staticClass:"participant-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:staff:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:staff:table:uid"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:staff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staff:table:organization"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}})],1)],1)]),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=function(){return{UserRealName:"",UserName:"",OrganizationName:"",UserTypeEnum:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],total:0,listQuery:s(),selectArr:[],assignLoadStatus:!1,isAdmin:JSON.parse(zzSessionStorage.getItem("IsAdmin")),userTypeOptions:[],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{getList:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["be"])(this.listQuery).then((function(i){t.close(),e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount})).catch((function(){t.close()}))},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:staff:message:addStaff"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["K"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:addedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSelectChange:function(e){this.selectArr=e},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsSelect},getUserType:function(){var e=this;Object(r["ge"])(2).then((function(t){e.userTypeOptions=t.Result}))}}},c=l,u=(i("0560"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"6ff0723f",null);t["default"]=d.exports},"1a8c":function(e,t){function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=i},"1ab3":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("e887");function o(e,t,i,n){var a=t.getData(),r=this.dataIndex,o=a.getName(r),l=t.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:e,name:o,seriesId:t.id}),a.each((function(e){s(a.getItemGraphicEl(e),a.getItemLayout(e),t.isSelected(a.getName(e)),l,i)}))}function s(e,t,i,n,a){var r=(t.startAngle+t.endAngle)/2,o=Math.cos(r),s=Math.sin(r),l=i?n:0,c=[o*l,s*l];a?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){a.Group.call(this);var i=new a.Sector({z2:2}),n=new a.Polyline,r=new a.Text;this.add(i),this.add(n),this.add(r),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,i){var r=this.childAt(0),o=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),d=e.getItemLayout(t),f=n.extend({},d);f.label=null;var h=c.getShallow("animationTypeUpdate");if(i){r.setShape(f);var p=c.getShallow("animationType");"scale"===p?(r.shape.r=d.r0,a.initProps(r,{shape:{r:d.r}},c,t)):(r.shape.endAngle=d.startAngle,a.updateProps(r,{shape:{endAngle:d.endAngle}},c,t))}else"expansion"===h?r.setShape(f):a.updateProps(r,{shape:f},c,t);var m=e.getItemVisual(t,"color");r.useStyle(n.defaults({lineJoin:"bevel",fill:m},u.getModel("itemStyle").getItemStyle())),r.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&r.attr("cursor",g),s(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var v=!i&&"transition"===h;this._updateLabel(e,t,v),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var i=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,i&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r+c.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,i&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r}},300,"elasticOut")))},a.setHoverStyle(this)},c._updateLabel=function(e,t,i){var n=this.childAt(1),r=this.childAt(2),o=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))r.ignore=r.normalIgnore=r.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var d={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},f={x:c.x,y:c.y};i?(a.updateProps(n,{shape:d},o,t),a.updateProps(r,{style:f},o,t)):(n.attr({shape:d}),r.attr({style:f})),r.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var h=s.getModel("label"),p=s.getModel("emphasis.label"),m=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");a.setLabelStyle(r.style,r.hoverStyle={},h,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),r.ignore=r.normalIgnore=!h.get("show"),r.hoverIgnore=!p.get("show"),n.ignore=n.normalIgnore=!m.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),n.setStyle(m.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=m.get("smooth");v&&!0===v&&(v=.4),n.setShape({smooth:v})}},n.inherits(l,a.Group);var u=r.extend({type:"pie",init:function(){var e=new a.Group;this._sectorGroup=e},render:function(e,t,i,a){if(!a||a.from!==this.uid){var r=e.getData(),s=this._data,c=this.group,u=t.get("animation"),d=!s,f=e.get("animationType"),h=e.get("animationTypeUpdate"),p=n.curry(o,this.uid,e,u,i),m=e.get("selectedMode");if(r.diff(s).add((function(e){var t=new l(r,e);d&&"scale"!==f&&t.eachChild((function(e){e.stopAnimation(!0)})),m&&t.on("click",p),r.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var i=s.getItemGraphicEl(t);d||"transition"===h||i.eachChild((function(e){e.stopAnimation(!0)})),i.updateData(r,e),i.off("click"),m&&i.on("click",p),c.add(i),r.setItemGraphicEl(e,i)})).remove((function(e){var t=s.getItemGraphicEl(e);c.remove(t)})).execute(),u&&r.count()>0&&(d?"scale"!==f:"transition"!==h)){for(var g=r.getItemLayout(0),v=1;isNaN(g.startAngle)&&v=n.r0}}}),d=u;e.exports=d},"1acd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},e._l(e.nonDicomStudyList,(function(t){return i("div",{key:t.Id},[i("div",{staticClass:"study-info"},[i("h4",[e._v(e._s(t.CodeView+" (Modality: "+t.Modality+")"))])]),e._v(" "),i("ul",e._l(t.NoneDicomStudyFileList,(function(t){return i("li",{key:t.Id},[i("el-button",{staticStyle:{width:"100%","text-align":"left"},attrs:{plain:""},on:{click:function(i){return e.preview(t)}}},[e._v(e._s(t.FileName))])],1)})),0)])})),0),e._v(" "),i("div",{staticClass:"right-wrapper"},[0===e.fileInfo.currentFileType?i("iframe",{attrs:{frameborder:"0",src:e.fileInfo.currentFilePath,width:"100%",height:"100%"}}):1===e.fileInfo.currentFileType?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.fileInfo.currentFilePath,width:"100%",height:"100%",frameborder:"0"}}):3===e.fileInfo.currentFileType?i("videoPlayer",{staticStyle:{width:"100%",height:"100%"},attrs:{"video-src":e.fileInfo.currentFilePath}}):2===e.fileInfo.currentFileType?i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.downLoadFile(e.fileInfo.currentFilePath)}}},[e._v("\n "+e._s(e.$t("common:button:download"))+"\n ")])],1):e._e()],1)])},a=[],r=(i("7514"),i("ac6a"),i("c7b8")),o={name:"PreviewFiles",components:{videoPlayer:r["default"]},props:{nonDicomStudyList:{type:Array,default:function(){return[]}}},data:function(){return{fileInfo:{currentFilePath:"",currentFileType:null},isShow:!1}},mounted:function(){this.initPage()},methods:{initPage:function(){this.nonDicomStudyList.forEach((function(e){e.VideoName&&e.NoneDicomStudyFileList.push({FullFilePath:e.VideoUrl,FileName:e.VideoName})}));var e=this.nonDicomStudyList.find((function(e){return e.NoneDicomStudyFileList.length>0}));void 0!==e&&this.preview(e.NoneDicomStudyFileList[0])},downLoadFile:function(e){e&&window.open(e,"_blank")},preview:function(e){this.$set(this.fileInfo,"currentFileType",this.getFileType(e.FileName)),this.$set(this.fileInfo,"currentFilePath",e.FullFilePath),console.log(this.fileInfo)},getFileType:function(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf("jpg")||-1!==t.indexOf("png")?0:-1!==t.indexOf("pdf")?1:~t.indexOf("mp4")?2:3}}},s=o,l=(i("9b925"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"1b13":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"}},[i("ECRF",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"criterion-id":e.criterionId,"visit-task-id":e.visitTaskId}})],1)},a=[],r=i("3e42"),o=i("26d1"),s={name:"Criterions",components:{ECRF:o["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},criterionId:{type:String,required:!0}},data:function(){return{activeName:"",loading:!1,criterions:[]}},mounted:function(){this.getCriterions()},methods:{getCriterions:function(){var e=this;this.loading=!0;var t={trialId:this.$router.currentRoute.query.trialId};Object(r["Bd"])(t).then((function(t){e.criterions=t.Result,e.activeName=e.criterions[0].ReadingQuestionCriterionTrialId,e.loading=!1})).catch((function(){e.loading=!1}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1b24":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!e.isCurrentTask||e.readingTaskState>=2||!e.isBaseLineTask},on:{change:function(t){e.lesionTypeChange(t)}},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||10===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",placeholder:8===t.QuestionMark?e.$t("common:placeholder:selectorsearch"):e.$t("common:placeholder:select"),disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)||10===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)},on:{change:function(i){e.formItemChange(i,t)}},scopedSlots:e._u([8===t.QuestionMark?{key:"prefix",fn:function(){return[i("span",{staticStyle:{"padding-left":"5px"}},[i("i",{staticClass:"el-icon-search"})])]},proxy:!0}:null],null,!0),model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[e._v(" "),1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask?e._l(e.$d[t.DictionaryCode],(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:0===e.lesionType&&0===t.value||1===e.lesionType&&0===t.value,expression:"(lesionType === 0 && item.value ===0) || (lesionType === 1 && (item.value ===0))"}],key:t.id,attrs:{value:t.value,label:t.label}})})):t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask?["True"===e.isCurrentTaskAdd&&2===e.lesionType?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:0===e.value||1===e.value,expression:"item.value === 0 || item.value === 1"}],key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))]:t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("a481"),i("20d6"),i("f576"),i("28a5"),i("db72")),o=(i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",lesionMark:"",deleteInfo:null,pictureBaseStr:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$loading({fullscreen:!0}),this.questions.forEach((function(e){var t=n.answers[e.Id];e.DictionaryCode&&(t=isNaN(parseInt(n.answers[e.Id]))?n.answers[e.Id]:parseInt(n.answers[e.Id])),n.isBaseLineTask&&7===e.QuestionMark&&0===n.lesionType&&(t=0),n.isBaseLineTask&&7===e.QuestionMark&&1===n.lesionType&&(t=0),n.$set(n.questionForm,e.Id,t)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:""),i=this.getQuestionVal(7),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"IsDicomReading","False"!==this.answers.IsDicomReading),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.originalQuestionForm=Object(r["a"])({},this.questionForm),!this.answers.measureObj){e.next=18;break}return e.next=16,this.setMeasureData(this.answers.measureObj,!0);case 16:e.next=39;break;case 18:if(!this.questionForm.MeasureData){e.next=36;break}if("Bidirectional"!==this.questionForm.MeasureData.type){e.next=25;break}return this.organList=[],e.next=23,this.getOrganInfoList(1);case 23:e.next=34;break;case 25:if("Length"!==this.questionForm.MeasureData.type){e.next=31;break}return this.organList=[],e.next=29,this.getOrganInfoList(0);case 29:e.next=34;break;case 31:return this.organList=[],e.next=34,this.getOrganInfoList();case 34:e.next=39;break;case 36:return this.organList=[],e.next=39,this.getOrganInfoList();case 39:this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.lesionMark=this.getLesionName(this.orderMark,this.questionForm.RowIndex),this.isRender=!0,t.close();case 44:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},getOrganInfoList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(){var i=Object(o["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",e.visitTaskId);case 3:a=sessionStorage.getItem("organList")?JSON.parse(sessionStorage.getItem("organList")):[],r=a.findIndex((function(t){return t.LesionType===e.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(t))?e.organList=a:e.organList=a.filter((function(e){return e.IsLymphNodes===parseInt(t)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},lesionTypeChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("determineExistsUnsavedLession",function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a,r,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=27;break}if(!i.isBaseLineTask&&!1!==i.questionForm.IsDicomReading||!i.questionForm.MeasureData||"ArrowAnnotate"!==i.questionForm.MeasureData.type||0!==t){e.next=5;break}return i.$confirm(i.$t(" trials:reading:warnning:msg15"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){})).catch((function(){})),i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType),e.abrupt("return");case 5:if(a=i.tableQuestions.findIndex((function(e){return e.LesionType===t})),!(a>-1&&i.tableQuestions[a].MaxQuestionCount&&i.tableQuestions[a].MaxQuestionCount<=i.tableQuestions[a].TableQuestions.Answers.length)){e.next=12;break}return r=i.$t("trials:reading:warnning:msg14"),r=r.replace("xxx",i.tableQuestions[a].MaxQuestionCount),i.$confirm(r,{type:"warning",showCancelButton:!1,callback:function(e){}}),i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType),e.abrupt("return");case 12:o=[],i.questionForm[i.getQuestionId(8)]="",i.questionForm[i.getQuestionId(5)]="",i.questionForm[i.getQuestionId(10)]="",i.questionForm[i.getQuestionId(4)]="",i.questionForm[i.getQuestionId(6)]="",i.questionForm[i.getQuestionId(2)]="",i.questions.forEach((function(e){e.Answer=i.questionForm[e.Id]?i.questionForm[e.Id]:"",o.push(e)})),s={questionId:i.parentQsId,rowIndex:i.questionForm.RowIndex,visitTaskId:i.visitTaskId,lesionType:i.lesionType},c["a"].$emit("imageLocation",s),l=null,l=i.questionForm.RowId?1:0,c["a"].$emit("changeLesionType",{questionForm:o,oldLesionType:i.lesionType,newLesionType:t,rowIndex:i.questionForm.RowIndex,questionId:i.parentQsId,measureData:i.questionForm.MeasureData,type:l,rowId:i.questionForm.RowId}),e.next=28;break;case 27:i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType);case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n=e.$loading({fullscreen:!0}),a={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId};Object(s["tb"])(a).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),n.close(),t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.close(),i()}))}))},formItemChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a,r,o,s,l,d,f,h,p=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(8===i.QuestionMark&&i.RelationQuestions.length>0&&(n=this.organList.findIndex((function(e){return e[i.DataTableColumn]===t})),n>-1?(a=this.organList[n],i.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];p.$set(p.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])):i.RelationQuestions.map((function(e){p.$set(p.questionForm,e.Id,"")}))),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0),r=this.getQuestionVal(2),r=isNaN(parseInt(r))?null:parseInt(r),o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=isNaN(parseInt(this.getQuestionVal(0)))?"":this.getQuestionVal(0),d=isNaN(parseInt(this.getQuestionVal(1)))?"":this.getQuestionVal(1),f=isNaN(parseInt(this.getQuestionVal(7)))?"":parseInt(this.getQuestionVal(7)),this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm}),7!==i.QuestionMark){e.next=18;break}return h="",0===this.lesionType&&1===f&&(h="T"),(0===this.lesionType&&3===f||1===this.lesionType&&3===f||2===this.lesionType&&3===f)&&(h="D"),this.questionForm.measureData&&(this.questionForm.measureData.status=h),e.next=17,u["a"].dispatch("reading/updateMeasureDataStatus",{visitTaskId:this.visitTaskId,rowIndex:this.rowIndex,questionId:this.parentQsId,status:h});case 17:c["a"].$emit("getMeasureData");case 18:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr="");var a=t.questions.find((function(e){return 0===e.QuestionMark})),r=t.questions.find((function(e){return 1===e.QuestionMark}));if("Length"===e.type||"Bidirectional"===e.type){var o="";"Length"===e.type?o=e.data.length:"Bidirectional"===e.type&&(o=e.data.longestDiameter),t.$set(t.questionForm,a.Id,o);var s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,r.Id,s)}else"ArrowAnnotate"===e.type&&(t.$set(t.questionForm,a.Id,""),t.$set(t.questionForm,r.Id,""));"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};if(!1===e.isDicomReading)t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId},e.data.uuid="".concat(e.instanceId,"-").concat(e.data.remark);else{t.$set(t.questionForm,"IsDicomReading",!0);var d=t.getQuestionVal(2);d=isNaN(parseInt(d))?null:parseInt(d);var f=isNaN(parseInt(t.getQuestionVal(0)))?"":t.getQuestionVal(0),h=isNaN(parseInt(t.getQuestionVal(1)))?"":t.getQuestionVal(1);if(!t.isBaseLineTask&&0===t.lesionType&&(0===d&&f>0||1===d&&h>=10)){var p=t.getQuestionId(7);t.$set(t.questionForm,p,0)}if(!t.isBaseLineTask&&0===t.lesionType&&1===d&&"Bidirectional"===e.type&&h<10){var m=t.getQuestionId(7);t.$set(t.questionForm,m,3)}if(t.isBaseLineTask&&!v){var g=t.getQuestionId(7);t.$set(t.questionForm,g,0)}var v=isNaN(parseInt(t.getQuestionVal(7)))?"":parseInt(t.getQuestionVal(7)),b="";v&&(0===t.lesionType&&1===v&&(b="T"),(0===t.lesionType&&3===v||1===t.lesionType&&3===v||2===t.lesionType&&3===v)&&(b="D")),e.data.status=b,e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,frame:isNaN(parseInt(e.frame))?0:e.frame}}u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),t.questionForm.IsDicomReading||c["a"].$emit("addNoneDicomMeasureData",e),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var y=t.getQuestionVal(2);y=isNaN(parseInt(y))?null:parseInt(y);var w=t.getQuestionVal(8),_=t.getQuestionVal(6),I=isNaN(parseInt(t.getQuestionVal(0)))?"":t.getQuestionVal(0),x=isNaN(parseInt(t.getQuestionVal(1)))?"":t.getQuestionVal(1),S=isNaN(parseInt(t.getQuestionVal(7)))?"":parseInt(t.getQuestionVal(7));t.$emit("resetQuestions",{isLymphLesion:y,lesionPart:w,lesionOrgan:_,lesionShort:x,lesionLength:I,lesionState:S,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},setDeleteInfo:function(e){this.deleteInfo=e},deleteOldLesion:function(e,t){var i=this;return new Promise((function(n,a){var r={visitTaskId:i.visitTaskId,questionId:e,rowId:t};Object(s["tb"])(r).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){}))}))},uploadScreenshots:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s=15){t.next=16;break}return e.$confirm(e.$t("trials:reading:warnning:msg19"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 16:t.next=22;break;case 18:if(a&&"Length"===a.type&&u>=10&&(a.thick&&u>=2*a.thick||!a.thick)){t.next=22;break}return e.$confirm(e.$t("trials:reading:warnning:msg20"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 22:if(1!==e.lesionType||0!==l){t.next=34;break}if(1!==f){t.next=30;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=28;break}return e.$confirm(e.$t("trials:reading:warnning:msg21"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 28:t.next=34;break;case 30:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=34;break}return e.$confirm(e.$t("trials:reading:warnning:msg22"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 34:t.next=189;break;case 36:if(0!==e.lesionType||0!==l){t.next=48;break}if(1!==f){t.next=44;break}if(a&&"Bidirectional"===a.type){t.next=42;break}return e.$confirm(e.$t("trials:reading:warnning:msg23"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 42:t.next=48;break;case 44:if(a&&"Length"===a.type){t.next=48;break}return e.$confirm(e.$t("trials:reading:warnning:msg24"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 48:if(0!==e.lesionType||1!==l){t.next=66;break}if(1!==f){t.next=59;break}if(a&&"ArrowAnnotate"===a.type){t.next=56;break}return e.$confirm(e.$t("trials:reading:warnning:msg25"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 56:a&&"ArrowAnnotate"===a.type&&(h=e.getQuestionId(1),e.$set(e.questionForm,h,5),d=5);case 57:t.next=66;break;case 59:if(a&&"ArrowAnnotate"===a.type){t.next=65;break}return e.$confirm(e.$t("trials:reading:warnning:msg26"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 65:a&&"ArrowAnnotate"===a.type&&(p=e.getQuestionId(0),e.$set(e.questionForm,p,5),u=5);case 66:if(0!==e.lesionType||2!==l){t.next=78;break}if(1!==f){t.next=74;break}if(!a){t.next=72;break}return e.$confirm(e.$t("trials:reading:warnning:msg27"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 72:t.next=78;break;case 74:if(!a){t.next=78;break}return e.$confirm(e.$t("trials:reading:warnning:msg28"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 78:if(0!==e.lesionType||3!==l){t.next=93;break}if(1!==f){t.next=86;break}if(a&&"Bidirectional"===a.type&&d<10){t.next=84;break}return e.$confirm(e.$t("trials:reading:warnning:msg29"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 84:t.next=93;break;case 86:if(a&&"ArrowAnnotate"===a.type){t.next=92;break}return e.$confirm(e.$t("trials:reading:warnning:msg30"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 92:a&&"ArrowAnnotate"===a.type&&(m=e.getQuestionId(0),e.$set(e.questionForm,m,0),u=0);case 93:if(1!==e.lesionType||0!==l){t.next=105;break}if(1!==f){t.next=101;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=99;break}return e.$confirm(e.$t("trials:reading:warnning:msg31"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 99:t.next=105;break;case 101:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=105;break}return e.$confirm(e.$t("trials:reading:warnning:msg32"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 105:if(1!==e.lesionType||1!==l){t.next=117;break}if(1!==f){t.next=113;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=111;break}return e.$confirm(e.$t("trials:reading:warnning:msg33"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 111:t.next=117;break;case 113:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=117;break}return e.$confirm(e.$t("trials:reading:warnning:msg34"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 117:if(1!==e.lesionType||2!==l){t.next=129;break}if(1!==f){t.next=125;break}if(!a){t.next=123;break}return e.$confirm(e.$t("trials:reading:warnning:msg35"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 123:t.next=129;break;case 125:if(!a){t.next=129;break}return e.$confirm(e.$t("trials:reading:warnning:msg36"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 129:if(1!==e.lesionType||3!==l){t.next=141;break}if(1!==f){t.next=137;break}if(a&&"ArrowAnnotate"===a.type){t.next=135;break}return e.$confirm(e.$t("trials:reading:warnning:msg37"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 135:t.next=141;break;case 137:if(a&&"ArrowAnnotate"===a.type){t.next=141;break}return e.$confirm(e.$t("trials:reading:warnning:msg38"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 141:if(2!==e.lesionType||0!==l){t.next=153;break}if(1!==f){t.next=149;break}if(a&&("Bidirectional"===a.type||"ArrowAnnotate"===a.type)){t.next=147;break}return e.$confirm(e.$t("trials:reading:warnning:msg39"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 147:t.next=153;break;case 149:if(a&&("Length"===a.type||"ArrowAnnotate"===a.type)){t.next=153;break}return e.$confirm(e.$t("trials:reading:warnning:msg40"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 153:if(2!==e.lesionType||1!==l){t.next=165;break}if(1!==f){t.next=161;break}if(a&&("Bidirectional"===a.type||"ArrowAnnotate"===a.type)){t.next=159;break}return e.$confirm(e.$t("trials:reading:warnning:msg41"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 159:t.next=165;break;case 161:if(a&&("Length"===a.type||"ArrowAnnotate"===a.type)){t.next=165;break}return e.$confirm(e.$t("trials:reading:warnning:msg42"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 165:if(2!==e.lesionType||2!==l){t.next=177;break}if(1!==f){t.next=173;break}if(!a){t.next=171;break}return e.$confirm(e.$t("trials:reading:warnning:msg43"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 171:t.next=177;break;case 173:if(!a){t.next=177;break}return e.$confirm(e.$t("trials:reading:warnning:msg44"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 177:if(2!==e.lesionType||3!==l){t.next=189;break}if(1!==f){t.next=185;break}if(a&&"ArrowAnnotate"===a.type){t.next=183;break}return e.$confirm(e.$t("trials:reading:warnning:msg45"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 183:t.next=189;break;case 185:if(a&&"ArrowAnnotate"===a.type){t.next=189;break}return e.$confirm(e.$t("trials:reading:warnning:msg46"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 189:c["a"].$emit("getScreenshots",function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var l,f,h,p,m,g,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l="",!i){t.next=18;break}return t.next=4,e.uploadScreenshots("".concat((new Date).getTime()),i);case 4:for(g in f=t.sent,l=f.isSuccess?f.result.url:"",h=[],p=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),m=function(t){p.test(t)&&-1===h.findIndex((function(e){return e.tableQuestionId===t}))&&h.push({tableQuestionId:t,answer:e.questionForm[t]})},e.questionForm)m(g);if(v={questionId:e.parentQsId,rowId:e.questionForm.RowId,rowIndex:e.answers.RowIndex,visitTaskId:e.visitTaskId,trialId:e.trialId,measureData:a?JSON.stringify(a):"",answerList:h,isCanEditPosition:e.questionForm.IsCanEditPosition,studyId:a?e.questionForm.MeasureData.studyId:"",seriesId:a?e.questionForm.MeasureData.seriesId:"",instanceId:a?e.questionForm.MeasureData.instanceId:"",numberOfFrames:a&&!isNaN(parseInt(e.questionForm.MeasureData.frame))?parseInt(e.questionForm.MeasureData.frame):0,picturePath:l,organInfoId:e.questionForm.OrganInfoId},!1===e.questionForm.IsDicomReading&&(v.isDicomReading=!1),!e.deleteInfo){t.next=17;break}return t.next=15,e.deleteOldLesion(e.deleteInfo.questionId,e.deleteInfo.rowId);case 15:e.deleteInfo=null,v.rowId="";case 17:Object(s["ef"])(v).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var a,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(e.$t("common:message:savedSuccessfully")),e.$set(e.questionForm,"saveTypeEnum",2),e.originalQuestionForm=Object(r["a"])({},e.questionForm),n.close(),a=e.getQuestionVal(2),a=a?parseInt(a):null,o=e.getQuestionVal(6),e.$set(e.questionForm,"RowId",i.Result.RowId),s=e.getQuestionVal(8),l=Number(e.getQuestionVal(7)),e.$emit("resetQuestions",{isLymphLesion:a,lesionPart:s,lesionOrgan:o,lesionShort:d,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:u,lesionState:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),e.$emit("close"),c["a"].$emit("getReportInfo",!0);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){n.close()}));case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 190:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleDeleteMeasureData:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg47"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){var i,n,a,r,o,s,l,d,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.organList=[],t.next=3,e.getOrganInfoList();case 3:return i=e.getQuestionId(0),e.$set(e.questionForm,i,""),n=e.getQuestionId(1),e.$set(e.questionForm,n,""),a=e.getQuestionId(7),e.$set(e.questionForm,a,""),e.questionForm.RowId?e.$set(e.questionForm,"saveTypeEnum",1):e.$set(e.questionForm,"saveTypeEnum",0),t.next=12,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 12:c["a"].$emit("getMeasureData"),r=e.getQuestionVal(2),r=isNaN(parseInt(r))?null:parseInt(r),o=e.getQuestionVal(8),s=e.getQuestionVal(6),l="",d="",f=isNaN(parseInt(e.getQuestionVal(7)))?"":parseInt(e.getQuestionVal(7)),e.questionForm.IsDicomReading||c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$set(e.questionForm,"IsDicomReading",!0),e.$set(e.questionForm,"MeasureData",""),e.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm});case 24:case"end":return t.stop()}}),t)})))).catch((function(){}))},handleDelete:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg48"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.questionForm.RowId?(i=e.$loading({fullscreen:!0}),n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId},Object(s["tb"])(n).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i.close(),!n.IsSuccess){t.next=10;break}if(!e.questionForm.MeasureData){t.next=5;break}return t.next=5,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 5:!e.questionForm.IsDicomReading&&e.questionForm.MeasureData&&c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),c["a"].$emit("getReportInfo",!0),e.$message.success(e.$t("common:message:deletedSuccessfully")),i.close();case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()}))):(!e.questionForm.IsDicomReading&&e.questionForm.MeasureData&&c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}));case 1:case"end":return t.stop()}}),t)}))))},handleClose:function(){var e=this;this.questionForm.RowId?(this.questionForm.saveTypeEnum,this.$emit("close")):this.$confirm(this.$t("trials:reading:warnning:msg49"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.MeasureData){t.next=3;break}return t.next=3,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 3:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))}}},f=d,h=(i("0f10"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"6de23e7b",null);t["default"]=p.exports},"1b2e":function(e,t,i){},"1b38":function(e,t,i){},"1b3f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},e._l(e.noneDicomStudyList,(function(t){return i("div",{key:t.Id},[i("div",{staticClass:"study-info"},[i("h4",[e._v(e._s(t.CodeView+" (Modality: "+t.Modality+")"))])]),e._v(" "),i("ul",e._l(t.NoneDicomStudyFileList,(function(t){return i("li",{key:t.Id},[i("el-button",{class:{activeBtn:t.Id===e.fileInfo.currentId},staticStyle:{width:"100%","text-align":"left"},attrs:{plain:""},on:{click:function(i){return e.preview(t)}}},[e._v(e._s(t.FileName))])],1)})),0)])})),0),e._v(" "),i("div",{staticClass:"right-wrapper"},[0===e.fileInfo.currentFileType?i("iframe",{attrs:{frameborder:"0",src:e.fileInfo.currentFilePath,width:"100%",height:"100%"}}):1===e.fileInfo.currentFileType?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.fileInfo.currentFilePath,width:"100%",height:"100%",frameborder:"0"}}):2===e.fileInfo.currentFileType?i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.downLoadFile(e.fileInfo.currentFilePath)}}},[e._v(e._s(e.$t("common:button:download")))])],1):e._e()])])},a=[],r=(i("7514"),i("3e42")),o=i("4360"),s=i("a599"),l={name:"MultipleNoneDicom",data:function(){return{fileInfo:{currentId:"",currentFileName:"",currentFilePath:"",currentFileType:null},noneDicomStudyList:[],subjectVisitId:""}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.subjectVisitId=this.$router.currentRoute.query.Id,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(r["xc"])(this.subjectVisitId).then((function(t){e.noneDicomStudyList=t.Result,e.loading=!1;var i=e.noneDicomStudyList.find((function(e,t){return e.NoneDicomStudyFileList.length>0}));void 0!==i&&e.preview(i.NoneDicomStudyFileList[0])})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")},preview:function(e){this.$set(this.fileInfo,"currentId",e.Id),this.$set(this.fileInfo,"currentFileName",e.FileName),this.$set(this.fileInfo,"currentFileType",this.getFileType(e.FileName)),this.$set(this.fileInfo,"currentFilePath",e.FullFilePath)},getFileType:function(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf("jpg")||-1!==t.indexOf("png")?0:-1!==t.indexOf("pdf")?1:2}}},c=l,u=(i("a088"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"1b5d":function(e,t,i){},"1bd1":function(e,t,i){},"1bd14":function(e,t){e.exports=(e,t)=>{const i=e._malloc(t.length*Uint32Array.BYTES_PER_ELEMENT);return t.forEach((t,n)=>{const a=e._malloc(t.length+1);e.writeAsciiToMemory(t,a),e.setValue(i+Uint32Array.BYTES_PER_ELEMENT*n,a,"i32")}),[t.length,i]}},"1c5f":function(e,t,i){var n=i("401b"),a=i("6d8b"),r=i("0c37"),o=r.getCurvenessForEdge;function s(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),l(i,e)}}function l(e,t){e.eachEdge((function(e,i){var r=a.retrieve3(e.getModel().get("lineStyle.curveness"),-o(e,t,i,!0),0),s=n.clone(e.node1.getLayout()),l=n.clone(e.node2.getLayout()),c=[s,l];+r&&c.push([(s[0]+l[0])/2-(s[1]-l[1])*r,(s[1]+l[1])/2-(l[0]-s[0])*r]),e.setLayout(c)}))}t.simpleLayout=s,t.simpleLayoutEdge=l},"1ccf":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("fd27"),o=i("3842"),s=o.parsePercent,l=i("697e"),c=l.createScaleByModel,u=l.niceScaleExtent,d=i("2039"),f=i("ee1a"),h=f.getStackedDimension;function p(e,t,i){var n=t.get("center"),r=i.getWidth(),o=i.getHeight();e.cx=s(n[0],r),e.cy=s(n[1],o);var l=e.getRadiusAxis(),c=Math.min(r,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:a.isArray(u)||(u=[0,u]),u=[s(u[0],c),s(u[1],c)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function m(e,t){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===i){var t=e.getData();a.each(t.mapDimension("radius",!0),(function(e){r.scale.unionExtentFromData(t,h(t,e))})),a.each(t.mapDimension("angle",!0),(function(e){n.scale.unionExtentFromData(t,h(t,e))}))}})),u(n.scale,n.model),u(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),s=360/n.scale.count();n.inverse?o[1]+=s:o[1]-=s,n.setExtent(o[0],o[1])}}function g(e,t){if(e.type=t.get("type"),e.scale=c(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var i=t.get("startAngle");e.setExtent(i,i+(e.inverse?-360:360))}t.axis=e,e.model=t}i("78f0");var v={dimensions:r.prototype.dimensions,create:function(e,t){var i=[];return e.eachComponent("polar",(function(e,n){var a=new r(n);a.update=m;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=e.findAxisModel("radiusAxis"),c=e.findAxisModel("angleAxis");g(o,l),g(s,c),p(a,e,t),i.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}};d.register("polar",v)},"1cf3":function(e,t,i){"use strict";i("8c29")},"1d19":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"1d50":function(e,t,i){"use strict";i("6dd1")},"1d5d":function(e,t,i){},"1d64":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("common:form:sign:userName"),prop:"UserName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.UserName,callback:function(t){e.$set(e.signForm,"UserName",t)},expression:"signForm.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("common:form:sign:password"),prop:"Password",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.Password,callback:function(t){e.$set(e.signForm,"Password",t)},expression:"signForm.Password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.userConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1)])},a=[],r=(i("a481"),i("e56e")),o=i("adca"),s=i("8237"),l=i.n(s),c="Document_Sign_Code",u={name:"SignForm",props:{fileName:{type:String,required:!0},isSystemDoc:{type:Boolean,required:!0},documentId:{type:String,required:!0},trialId:{type:String,default:""}},data:function(){return{signForm:{UserName:"",Password:""},signText:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,Object(r["yb"])(c).then((function(t){var i=t.Result.Value;e.signText=i.replace("xxx",e.fileName),e.loading=!1})).catch((function(){e.loading=!1}))},methods:{userConfirm:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(console.log(i),i)if(e.signForm.UserName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={data:{trialId:e.trialId,documentId:e.documentId,isSystemDoc:e.isSystemDoc},signInfo:{UserName:e.signForm.UserName,PassWord:l()(e.signForm.Password),TrialId:e.trialId,SignCode:"",SignText:e.signText,SignCodeId:"",SubjectVisitId:""}};Object(o["b"])(n).then((function(t){t.IsSuccess&&(e.$message.success(e.$t("common:message:signSuccessfully")),e.$emit("closeDialog",!0))})).catch((function(){e.btnLoading=!1}))}else e.$message.error(e.$t("common:message:signWarning"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},d=u,f=(i("0ec8"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"2bf9d970",null);t["default"]=h.exports},"1d92":function(e,t,i){var n=i("e0ef");function a(e){return n(2,e)}e.exports=a},"1db3":function(e,t,i){},"1ddd":function(e,t,i){},"1dfe":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{padding:"0 20px"}},[i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px"}},[e._v(e._s(e.$t("trials:consistencyCheck:title:message1")))]),e._v(" "),i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px"}},[e._v(e._s(e.$t("trials:consistencyCheck:title:message2")))]),e._v(" "),i("div",{staticStyle:{"padding-left":"10px"}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.checkedOne,callback:function(t){e.checkedOne=t},expression:"checkedOne"}},e._l(e.crcMessageInfo.arrayOnelist,(function(t,n){return i("el-checkbox",{staticStyle:{"margin-bottom":"10px"},attrs:{label:n}},[i("span",{domProps:{innerHTML:e._s(t)}},[e._v(e._s(t))])])})),1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px",color:"#F56C6C"}},[e.checkedOne.length>0?i("div",{staticStyle:{"margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message3"))+"\n ")]):e._e()]),e._v(" "),e.checkedOne.length>0?i("div",[i("el-form",[i("el-form-item",{attrs:{"label-width":"130px",label:e.$t("trials:consistencyCheck:title:message4")}},[i("el-input",{attrs:{type:"textarea",rows:2,maxlength:"100","show-word-limit":""},model:{value:e.reasonOne,callback:function(t){e.reasonOne=t},expression:"reasonOne"}})],1)],1)],1):e._e(),e._v(" "),e.crcMessageInfo.arrayTwolist.length>0?i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message5"))+"\n ")]):i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message6"))+"\n ")]),e._v(" "),i("div",{staticStyle:{"padding-left":"10px"}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.checkedTwo,callback:function(t){e.checkedTwo=t},expression:"checkedTwo"}},e._l(e.crcMessageInfo.arrayTwolist,(function(t,n){return i("el-checkbox",{staticStyle:{"margin-bottom":"10px"},attrs:{label:n}},[i("span",{domProps:{innerHTML:e._s(t)}},[e._v(e._s(t))])])})),1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px",color:"#F56C6C"}},[e.checkedTwo.length>0?i("div",{staticStyle:{"margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message7"))+"\n ")]):e._e()]),e._v(" "),e.checkedTwo.length>0?i("div",[i("el-form",[i("el-form-item",{attrs:{"label-width":"130px",label:e.$t("trials:consistencyCheck:title:message8")}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.reasonTwo,callback:function(t){e.reasonTwo=t},expression:"reasonTwo"}},[i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC按疗效评估数据记录影像检查信息;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message9"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC录入错误;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message10"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"IRC数据上传错误,申请回退并重新上传;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message11"))+"\n ")])],1)],1)],1)],1):e._e()]),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:sendMessage"))+"\n ")])],1)])},a=[],r=(i("ac6a"),{name:"CrcSendMessage",props:{crcMessageInfo:{type:Object,default:function(){return{arrayOnelist:[],arrayTwolist:[]}}}},data:function(){return{checkedOne:[],checkedTwo:[],reasonTwo:[],reasonOne:null,loading:!1}},mounted:function(){console.log(this.crcMessageInfo)},methods:{closeLoading:function(){this.loading=!1},handleReply:function(){var e=this;this.loading=!0;var t="";return t+="".concat($t("trials:consistencyCheck:title:message12"),"
    "),this.crcMessageInfo.arrayOnelist.forEach((function(i,n){e.checkedOne.indexOf(n)>-1?t+="".concat($t("trials:consistencyCheck:title:none"),"
    "):t+=e.crcMessageInfo.arrayOnelist[n]+"
    "})),console.log(t),t+="
    ",this.checkedTwo.length>0?(t+="".concat($t(" trials:consistencyCheck:title:message13"),"
    "),this.checkedTwo.forEach((function(i){t+=e.crcMessageInfo.arrayTwolist[i]+"
    "})),t+="
    "):t+="".concat($t(" trials:consistencyCheck:title:message14"),"

    "),t+="".concat($t(" trials:consistencyCheck:title:message15"),"
    "),this.checkedOne.length>0&&(t+="".concat($t(" trials:consistencyCheck:title:message16")),t+=this.reasonOne,t+="
    ",!this.reasonOne)?(this.loading=!1,void this.$message.error(this.$t("trials:consistencyCheck:title:message17"))):this.checkedTwo.length>0&&(t+="".concat($t(" trials:consistencyCheck:title:message18")),this.reasonTwo.forEach((function(e){t+=e})),!this.reasonTwo.length)?(this.$message.error(this.$t("trials:consistencyCheck:title:message19")),void(this.loading=!1)):void this.$emit("sendMessage",t,this.closeLoading)}}}),o=r,s=(i("2b5b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"6b20cede",null);t["default"]=l.exports},"1e25":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.workloadStats_form,"search-handle":e.workloadStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"croSlot"},[i("el-select",{ref:"CROSelection",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"hospitalSlot"},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.HospitalId,callback:function(t){e.$set(e.searchData,"HospitalId",t)},expression:"searchData.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"workloadStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",sortable:"custom",label:"Indication","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",sortable:"custom",label:"CRO","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",sortable:"custom",label:"Training","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PersonalTotal",label:"Reading Total","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("48fb"),s=i("4360"),l=i("2f62"),c=i("7878"),u=i("e8ae"),d=i.n(u),f=i("fe09"),h=i("333d"),p=i("f36a"),m=i("d13d"),g=function(){return{PageSize:20,PageIndex:1,Asc:!0,SortField:"",CROId:"",TrialCode:"",Reviewer:"",BeginDate:Object(c["FormatTime"])(new Date((new Date).setMonth((new Date).getMonth()-5)),"yyyy-MM"),EndDate:Object(c["FormatTime"])(new Date,"yyyy-MM")}},v={name:"WorkloadStats",components:{Pagination:h["default"],BoxContent:p["default"],SearchForm:m["default"]},data:function(){var e=this;return{workloadStats_form:f["g"],workloadStats_handle:f["h"],searchData:g(),list:[],listLoading:!1,total:0,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["croList","hospitalList"])),mounted:function(){this.getList(),s["a"].dispatch("global/getCROList"),s["a"].dispatch("global/getHospital")},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=g(),this.getList()},getSummaries:function(e){var t=this;this.$nextTick((function(){t.$refs.workloadStats.doLayout()}));var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){if("TrialCode"!==e.property&&"Indication"!==e.property){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))||(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else a[t]="Total (Current Page)"})),a},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i-1}));c.forEach((function(e){e.Index=l++,s.training+=e.Training,s.refreshertraining+=e.RefresherTraining,s.tp+=e.Timepoint,s.tp48+=e.TimepointIn48H,s.tp24+=e.TimepointIn24H,s.aj+=e.Adjudication,s.aj48+=e.AdjudicationIn48H,s.aj24+=e.AdjudicationIn24H,s.global+=e.Global,s.downtime+=e.Downtime,s.total+=e.PersonalTotal})),a.addRows(c),a.addRow(["","Total","","","","","","",s.training,s.refreshertraining,s.tp,s.tp48,s.tp24,s.aj,s.aj48,s.aj24,s.global,s.downtime,s.total]),a.getRow(c.length+6).font={name:"SimSun",family:4,size:11,bold:!0},a.getColumn(9).numFmt="#,##0.00",a.getColumn(10).numFmt="#,##0.00",a.getColumn(11).numFmt="#,##0.00",a.getColumn(12).numFmt="#,##0.00",a.getColumn(13).numFmt="#,##0.00",a.getColumn(14).numFmt="#,##0.00",a.getColumn(15).numFmt="#,##0.00",a.getColumn(16).numFmt="#,##0.00",a.getColumn(17).numFmt="#,##0.00",a.getColumn(18).numFmt="#,##0.00",a.getColumn(19).numFmt="#,##0.00",a.eachRow((function(e,t){t>3&&e.eachCell((function(e){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),n.xlsx.writeBuffer({base64:!0}).then((function(e){var i=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(i,"".concat(t," Workload Statistics.xlsx"));else{var n=document.createElement("a"),a=URL.createObjectURL(i);n.href=a,n.download="".concat(t," Workload Statistics.xlsx"),document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}))}}},b=v,y=i("2877"),w=Object(y["a"])(b,n,a,!1,null,null,null);t["default"]=w.exports},"1e32":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=a.parsePercent,o=i("ee1a"),s=o.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function u(e,t,i){var a={},r=d(n.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),o=c(i,n),u=l(e),d=r[o][u],f=d.offset,h=d.width,p=i.getOtherAxis(n),m=e.coordinateSystem.cx,g=e.coordinateSystem.cy,v=e.get("barMinHeight")||0,b=e.get("barMinAngle")||0;a[u]=a[u]||[];for(var y=t.mapDimension(p.dim),w=t.mapDimension(n.dim),_=s(t,y),I="radius"!==n.dim||!e.get("roundCap",!0),x="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),S=0,T=t.count();S=0?"p":"n",N=x;if(_&&(a[u][O]||(a[u][O]={p:x,n:x}),N=a[u][O][$]),"radius"===p.dim){var A=p.dataToRadius(L)-x,P=n.dataToAngle(O);Math.abs(A)0&&e.count<=t?(e.count--,e.sendTitle="".concat(e.$t("trials:researchForm:button:send"),"(").concat(e.count,"s)"),e.sendDisabled=!0):(e.sendDisabled=!1,e.sendTitle=e.$t("trials:researchForm:button:send"),clearInterval(e.timer),e.timer=null)}),1e3))},onCancel:function(){this.$refs["resetForm"].resetFields()}}},u=c,d=(i("4946"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"6f0b9dee",null);t["default"]=f.exports},"1ea6":function(e,t,i){},"1ee6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"CROForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"CRO Name: ",prop:"CROName"}},[i("el-input",{model:{value:e.form.CROName,callback:function(t){e.$set(e.form,"CROName",t)},expression:"form.CROName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO NameCN: ",prop:"CRONameCN"}},[i("el-input",{model:{value:e.form.CRONameCN,callback:function(t){e.$set(e.form,"CRONameCN",t)},expression:"form.CRONameCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO Code: ",prop:"CROCode"}},[i("el-input",{model:{value:e.form.CROCode,callback:function(t){e.$set(e.form,"CROCode",t)},expression:"form.CROCode"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s={name:"CroForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,form:{Id:"",CROName:"",CRONameCN:"",CROCode:""},rules:{CROName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CRONameCN:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CROCode:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}]}}},mounted:function(){Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleSave:function(){var e=this;this.$refs.CROForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["g"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["CROForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1f0e":function(e,t,i){var n=i("cbe5"),a=n.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var i=Math.cos,n=Math.sin,a=t.r,r=t.width,o=t.angle,s=t.x-i(o)*r*(r>=a/3?1:2),l=t.y-n(o)*r*(r>=a/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+i(o)*r,t.y+n(o)*r),e.lineTo(t.x+i(t.angle)*a,t.y+n(t.angle)*a),e.lineTo(t.x-i(o)*r,t.y-n(o)*r),e.lineTo(s,l)}});e.exports=a},"1f1a":function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=i("4319"),s=i("7023"),l=i("eeea"),c=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){r.prototype.init.apply(this,arguments),a.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=n.reduce(e.regions||[],(function(e,i){return i.name&&e.set(i.name,new o(i,t)),e}),n.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new o(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var i=this.getRegionModel(e),n=i.get(("normal"===t?"":t+".")+"label.formatter"),a={name:e};return"function"===typeof n?(a.status=t,n(a)):"string"===typeof n?n.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});n.mixin(c,s);var u=c;e.exports=u},"1f2b":function(e,t,i){"use strict";i("fe0e")},"1f34":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"1f3d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"signTempForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.signTempForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1f53":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"workload"},[i("el-form",{ref:"workloadForm",staticClass:"demo-ruleForm",attrs:{size:"small",model:e.workloadForm,rules:e.workloadRules,"label-width":"180px"}},[i("el-form-item",{attrs:{label:e.$t("trials:stats:form:expedited")}},[i("el-select",{attrs:{disabled:""},model:{value:e.trialExpeditedState,callback:function(t){e.trialExpeditedState=t},expression:"trialExpeditedState"}},e._l(e.$d.TrialExpeditedState,(function(e){return i("el-option",{attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:dispalyAll")}},[i("el-switch",{model:{value:e.trialExpeditedDisplayAll,callback:function(t){e.trialExpeditedDisplayAll=t},expression:"trialExpeditedDisplayAll"}})],1),e._v(" "),0!=e.workloadForm.DataFrom?i("el-form-item",{attrs:{label:e.$t("trials:stats:form:workmonth"),prop:"WorkTime"}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM","picker-options":e.pickerOption,disabled:""},model:{value:e.workloadForm.WorkTime,callback:function(t){e.$set(e.workloadForm,"WorkTime",t)},expression:"workloadForm.WorkTime"}})],1):e._e(),e._v(" "),0==e.workloadForm.DataFrom?i("el-form-item",{attrs:{label:e.$t("trials:stats:form:workdate"),prop:"WorkTime"}},[i("el-date-picker",{attrs:{type:"date","default-value":e.defaultDate,"value-format":"yyyy-MM-dd","picker-options":e.pickerOption},on:{change:e.datePickerChange},model:{value:e.workloadForm.WorkTime,callback:function(t){e.$set(e.workloadForm,"WorkTime",t)},expression:"workloadForm.WorkTime"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:source"),prop:"DataFrom"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"value-key":"value",disabled:""},model:{value:e.workloadForm.DataFrom,callback:function(t){e.$set(e.workloadForm,"DataFrom",t)},expression:"workloadForm.DataFrom"}},e._l(e.statusOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:training")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Training,callback:function(t){e.$set(e.workloadForm,"Training",t)},expression:"workloadForm.Training"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Training")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:training")+" "+e.info.clientData.Training)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:refresherTraining")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.RefresherTraining,callback:function(t){e.$set(e.workloadForm,"RefresherTraining",t)},expression:"workloadForm.RefresherTraining"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Refresher Training")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:refresherTraining")+" "+e.info.clientData.RefresherTraining)+"\n ")]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==0||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:tpRegular")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Timepoint,callback:function(t){e.$set(e.workloadForm,"Timepoint",t)},expression:"workloadForm.Timepoint"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp")+" "+e.info.clientData.Timepoint)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Adjudication,callback:function(t){e.$set(e.workloadForm,"Adjudication",t)},expression:"workloadForm.Adjudication"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad")+" "+e.info.clientData.Adjudication)+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==1||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:"Timepoint 24H:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.TimepointIn24H,callback:function(t){e.$set(e.workloadForm,"TimepointIn24H",t)},expression:"workloadForm.TimepointIn24H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint 24H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp24H")+" "+e.info.clientData.TimepointIn24H)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 24H:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.AdjudicationIn24H,callback:function(t){e.$set(e.workloadForm,"AdjudicationIn24H",t)},expression:"workloadForm.AdjudicationIn24H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication 24H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad24H")+" "+e.info.clientData.AdjudicationIn24H)+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==2||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:"Timepoint 48H:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.TimepointIn48H,callback:function(t){e.$set(e.workloadForm,"TimepointIn48H",t)},expression:"workloadForm.TimepointIn48H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint 48H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp48H")+" "+e.info.clientData.TimepointIn48H)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 48H:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.AdjudicationIn48H,callback:function(t){e.$set(e.workloadForm,"AdjudicationIn48H",t)},expression:"workloadForm.AdjudicationIn48H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication 48H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad48H")+" "+e.info.clientData.AdjudicationIn48H)+"\n ")]):e._e()],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Global:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Global,callback:function(t){e.$set(e.workloadForm,"Global",t)},expression:"workloadForm.Global"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Global")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:global")+" "+e.info.clientData.Global)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime:"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Downtime,callback:function(t){e.$set(e.workloadForm,"Downtime",t)},expression:"workloadForm.Downtime"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Downtime")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:downtime")+" "+e.info.clientData.Downtime)+"\n ")]):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary",disabled:e.btnDisabled},on:{click:e.saveWorkload}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)],1)],1)},a=[],r=(i("c5f6"),i("3e42")),o=i("7878"),s={props:{trialId:{type:String,default:""},doctorId:{type:String,default:""},id:{type:String,default:""},info:{type:Object,default:function(){}},yearMonth:{type:String,default:""},trialExpeditedState:{type:Number,default:0}},data:function(){var e=this;return{trialExpeditedDisplayAll:!1,defaultDate:"",YearMonthStr:"",isExist:!1,existObj:"",workloadForm:{Id:"",DoctorId:"",TrialId:"",Training:0,Timepoint:"",TimepointIn24H:0,TimepointIn48H:0,Adjudication:0,AdjudicationIn24H:0,AdjudicationIn48H:0,Global:0,Downtime:0,RefresherTraining:0,WorkTime:"",DataFrom:0},statusOption:[{label:"Data from Reviewer",value:0},{label:"Data from Client",value:1},{label:"Reconciled Data",value:2}],workloadRules:{WorkTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],DataFrom:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},pickerOption:{disabledDate:function(t){var i=Object(o["parseISOLocal"])(e.yearMonth+"-01"),n=Object(o["parseISOLocal"])(e.yearMonth+"-01");return n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),t.getTime()n.getTime()||t.getTime()>Date.now()}},btnDisabled:!1,incorrectItem:[]}},mounted:function(){this.id?(this.workloadForm={Training:this.info.Training,Timepoint:this.info.Timepoint,TimepointIn24H:this.info.TimepointIn24H,TimepointIn48H:this.info.TimepointIn48H,Adjudication:this.info.Adjudication,AdjudicationIn24H:this.info.AdjudicationIn24H,AdjudicationIn48H:this.info.AdjudicationIn48H,Global:this.info.Global,RefresherTraining:this.info.RefresherTraining,Downtime:this.info.Downtime,WorkTime:this.info.WorkTimeStr,DataFrom:this.info.DataFrom},this.info.Id&&(this.workloadForm.Id=this.info.Id),this.YearMonthStr=this.info.YearMonthStr):(this.defaultDate=Object(o["parseISOLocal"])(this.yearMonth+"-01"),this.workloadForm.DataFrom=0)},methods:{datePickerChange:function(){this.existworkLoad()},existworkLoad:function(){var e=this,t={TrialId:this.trialId,DoctorId:this.doctorId,WorkDate:this.workloadForm.WorkTime,DataFrom:0},i=this;Object(r["Jb"])(t).then((function(t){t.IsSuccess?(i.isExist=t.Result.IsExist,i.existObj=t.Result.WorkLoad,i.isExist&&i.id&&i.$confirm(e.$t("trials:stats:message:editWorkload"),{type:"warning"}).then((function(){i.$emit("setTitle",e.$t("trials:stats:dialogTitle:edit")),i.workloadForm.Id=i.existObj.Id,i.workloadForm.DoctorId=i.existObj.DoctorId,i.workloadForm.TrialId=i.existObj.TrialId,i.workloadForm.Training=i.existObj.Training,i.workloadForm.Timepoint=i.existObj.Timepoint,i.workloadForm.TimepointIn24H=i.existObj.TimepointIn24H,i.workloadForm.TimepointIn48H=i.existObj.TimepointIn48H,i.workloadForm.Adjudication=i.existObj.Adjudication,i.workloadForm.AdjudicationIn24H=i.existObj.AdjudicationIn24H,i.workloadForm.AdjudicationIn48H=i.existObj.AdjudicationIn48H,i.workloadForm.Global=i.existObj.Global,i.workloadForm.RefresherTraining=i.existObj.RefresherTraining,i.workloadForm.Downtime=i.existObj.Downtime,i.workloadForm.WorkTime,i.existObj.WorkTime})).catch((function(){i.workloadForm.WorkTime=""}))):e.$message.error(t.ErrorMessage)}))},saveWorkload:function(){var e=this;this.$refs.workloadForm.validate((function(t){t&&(e.workloadForm.DoctorId=e.doctorId,e.workloadForm.TrialId=e.trialId,e.addWorkload())}))},addWorkload:function(){var e=this;if(this.incorrectItem=[],this.workloadForm.Timepoint+this.workloadForm.TimepointIn24H+this.workloadForm.TimepointIn48H+this.workloadForm.Global+this.workloadForm.Training+this.workloadForm.Downtime+this.workloadForm.Adjudication+this.workloadForm.AdjudicationIn24H+this.workloadForm.AdjudicationIn48H+this.workloadForm.RefresherTraining!==0)if(2===this.info.DataFrom){var t=[];if(this.workloadForm.Training!==this.info.clientData.Training&&t.push("Training"),this.workloadForm.Timepoint!==this.info.clientData.Timepoint&&t.push("Timepoint"),this.workloadForm.TimepointIn24H!==this.info.clientData.TimepointIn24H&&t.push("Timepoint 24H"),this.workloadForm.TimepointIn48H!==this.info.clientData.TimepointIn48H&&t.push("Timepoint 48H"),this.workloadForm.Adjudication!==this.info.clientData.Adjudication&&t.push("Adjudication"),this.workloadForm.AdjudicationIn24H!==this.info.clientData.AdjudicationIn24H&&t.push("Adjudication 24H"),this.workloadForm.AdjudicationIn48H!==this.info.clientData.AdjudicationIn48H&&t.push("Adjudication 48H"),this.workloadForm.Global!==this.info.clientData.Global&&t.push("Global"),this.workloadForm.RefresherTraining!==this.info.clientData.RefresherTraining&&t.push("Refresher Training"),this.workloadForm.Downtime!==this.info.clientData.Downtime&&t.push("Downtime"),0===t.length)this.workLoadAddOrUpdate();else{var i=this.$t("trials:stats:message:editWorkloadWarning2");this.$confirm(i,{type:"warning"}).then((function(){e.workLoadAddOrUpdate()})).catch((function(){e.incorrectItem=t}))}}else this.workLoadAddOrUpdate();else this.$message({showClose:!0,message:this.$t("trials:stats:message:editWorkloadWarning1"),type:"error"})},workLoadAddOrUpdate:function(){var e=this;this.btnDisabled=!0,Object(r["Qf"])(this.workloadForm).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.workloadForm.Id||(e.workloadForm.Id=t.Result),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("handleClose"))})).catch((function(){e.btnDisabled=!1}))}}},l=s,c=(i("707c"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"5abf5b1d",null);t["default"]=u.exports},"1fab":function(e,t){var i=Array.prototype.slice,n=function(e){this._$handlers={},this._$eventProcessor=e};function a(e,t){var i=e._$eventProcessor;return null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),t}function r(e,t,i,n,r,o){var s=e._$handlers;if("function"===typeof i&&(r=n,n=i,i=null),!n||!t)return e;i=a(e,i),s[t]||(s[t]=[]);for(var l=0;l3&&(a=i.call(a,1));for(var o=t.length,s=0;s4&&(a=i.call(a,1,a.length-1));for(var o=a[a.length-1],s=t.length,l=0;lnew Date(e.educationForm.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.educationForm.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.educationForm.BeginDate).getTime():t.getTime()>Date.now()}},postgraduateDialogTitle:"",postgraduateDialogVisible:!1,postgraduateForm:u(),postgraduateRules:{BeginDate:[{required:!0,message:"Please select a start date",trigger:"blur"}],EndDate:[{required:!0,message:"Please select a valid date",trigger:"blur"}],Training:[{required:!0,message:"Please enter the degree",trigger:"blur"},{max:100,message:"The maximum length is 100"}],Major:[{required:!0,message:"Please enter the major",trigger:"blur"},{max:100,message:"The maximum length is 100"}],City:[{required:!0,message:"Please enter the city",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Province:[{required:!0,message:"Please enter the state/province",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Country:[{required:!0,message:"Please enter the country",trigger:"blur"},{max:50,message:"The maximum length is 50"}]},postgraduateBeginPickerOption:{disabledDate:function(t){return e.postgraduateForm.EndDate?t.getTime()>new Date(e.postgraduateForm.EndDate).getTime():t.getTime()>Date.now()}},postgraduateEndpickerOption:{disabledDate:function(t){return e.postgraduateForm.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.postgraduateForm.BeginDate).getTime():t.getTime()>Date.now()}},isDisabled:!1,loading:!1}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=this.$route.query.Id;t&&(this.loading=!0,Object(o["u"])(t).then((function(t){e.educationList=t.Result.EducationList,e.postgraduateList=t.Result.PostgraduateList,e.loading=!1})).catch((function(){e.loading=!1})))},handleAddEducation:function(){this.educationDialogTitle="New",this.educationDialogVisible=!0,Object.assign(this.educationForm,c())},handleEducationEdit:function(e){e.BeginDateStr,e.EndDateStr;var t=Object(r["a"])(e,s);this.educationDialogTitle="Edit",this.educationDialogVisible=!0,this.educationForm=t},handleEducationSave:function(){var e=this;this.$refs.educationForm.validate((function(t){t&&(e.isDisabled=!0,e.educationForm.DoctorId=e.$route.query.Id,"Bachelor"===e.educationForm.Degree?e.educationForm.DegreeCN="学士":"Master"===e.educationForm.Degree?e.educationForm.DegreeCN="硕士":"Doctorate"===e.educationForm.Degree&&(e.educationForm.DegreeCN="博士"),Object(o["c"])(e.educationForm).then((function(t){e.isDisabled=!1,e.educationDialogVisible=!1,e.initPage(),e.educationForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.$refs["educationForm"].resetFields()})).catch((function(){e.isDisabled=!1})))}))},handleEducationDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(o["i"])(e.Id).then((function(i){t.educationList.splice(t.educationList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))},handleAddPostgraduate:function(){this.postgraduateDialogTitle="New",this.postgraduateDialogVisible=!0,Object.assign(this.postgraduateForm,u())},handlePostgraduateEdit:function(e){e.BeginDateStr,e.EndDateStr;var t=Object(r["a"])(e,l);this.postgraduateDialogTitle="Edit",this.postgraduateDialogVisible=!0,this.postgraduateForm=t},handlePostgraduateSave:function(){var e=this;this.$refs.postgraduateForm.validate((function(t){t&&(e.isDisabled=!0,e.postgraduateForm.DoctorId=e.$route.query.Id,"Residency"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="规培":"Fellowship"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="专科培训":"Post-Doc"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="博士后":"Visiting Scholar"===e.postgraduateForm.Training&&(e.postgraduateForm.TrainingCN="访问学者"),Object(o["d"])(e.postgraduateForm).then((function(t){e.isDisabled=!1,e.postgraduateDialogVisible=!1,e.initPage(),e.postgraduateForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.$refs["postgraduateForm"].resetFields()})).catch((function(t){e.isDisabled=!1,console.log(t)})))}))},handlePostgraduateDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(o["j"])(e.Id).then((function(i){t.postgraduateList.splice(t.postgraduateList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},2023:function(e,t,i){var n=i("6d8b"),a={getMin:function(e){var t=this.option,i=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var t=this.option,i=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:n.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=a},"202d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role"},[i("div",{ref:"leftContainer",staticClass:"left"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"通知级别: ",prop:"NoticeLevelEnum"}},[i("el-select",{attrs:{placeholder:"通知级别",clearable:"",size:"small"},model:{value:e.searchData.NoticeLevelEnum,callback:function(t){e.$set(e.searchData,"NoticeLevelEnum",t)},expression:"searchData.NoticeLevelEnum"}},e._l(e.dict.type.NoteLevel,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"通知类型: ",prop:"NoticeTypeEnum"}},[i("el-select",{attrs:{placeholder:"通知类型",clearable:"",size:"small"},model:{value:e.searchData.NoticeTypeEnum,callback:function(t){e.$set(e.searchData,"NoticeTypeEnum",t)},expression:"searchData.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用项目: ",prop:"ApplicableProjectEnum"}},[i("el-select",{attrs:{placeholder:"适用项目",clearable:"",size:"small"},model:{value:e.searchData.ApplicableProjectEnum,callback:function(t){e.$set(e.searchData,"ApplicableProjectEnum",t)},expression:"searchData.ApplicableProjectEnum"}},e._l(e.dict.type.NoticeApplicableTrial,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"使用角色: ",prop:"NoticeUserTypeIdList"}},[i("el-select",{attrs:{multiple:"",placeholder:"使用角色",clearable:"",size:"small"},model:{value:e.searchData.NoticeUserTypeIdList,callback:function(t){e.$set(e.searchData,"NoticeUserTypeIdList",t)},expression:"searchData.NoticeUserTypeIdList"}},e._l(e.roleList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"提醒方式: ",prop:"NoticeModeEnum"}},[i("el-select",{attrs:{placeholder:"提醒方式",clearable:"",size:"small"},model:{value:e.searchData.NoticeModeEnum,callback:function(t){e.$set(e.searchData,"NoticeModeEnum",t)},expression:"searchData.NoticeModeEnum"}},e._l(e.dict.type.NoticeMode,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticClass:"table",attrs:{height:"100",data:e.list}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"通知级别",prop:"NoticeLevelEnum","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteLevel.find((function(e){return 1*e.raw.Code===t.row.NoticeLevelEnum}))?e.dict.type.NoteLevel.find((function(e){return 1*e.raw.Code===t.row.NoticeLevelEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知类型",prop:"NoticeTypeEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum}))?e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知内容",prop:"NoticeContent","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NoticeContent)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知状态",prop:"NoticeStateEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:0===t.row.ActualNoticeStateEnum?"info":1===t.row.ActualNoticeStateEnum?"success":"danger"}},[e._v("\n "+e._s(e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum}))?e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum})).label:"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"适用项目",prop:"ApplicableProjectEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoticeApplicableTrial.find((function(e){return 1*e.raw.Code===t.row.ApplicableProjectEnum}))?e.dict.type.NoticeApplicableTrial.find((function(e){return 1*e.raw.Code===t.row.ApplicableProjectEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"适用角色",prop:"NoticeUserTypeList","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NoticeUserTypeList.map((function(e){return e.UserTypeShortName})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提示方式",prop:"NoticeModeEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoticeMode.find((function(e){return 1*e.raw.Code===t.row.NoticeModeEnum}))?e.dict.type.NoticeMode.find((function(e){return 1*e.raw.Code===t.row.NoticeModeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"保留时长",prop:"StartDate","min-width":"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartDate)+"-"+e._s(t.row.EndDate)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"发布人",prop:"PublishUserName","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"发布时间",prop:"PublishedTime","min-width":"160","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"更新时间",prop:"UpdateTime","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartDate?t.row.StartDate:t.row.CreateTime)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"附件",fixed:"right",prop:"FileName","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{staticStyle:{color:"#00D1B2"},attrs:{href:t.row.FullFilePath,target:"_blank"}},[e._v(e._s(t.row.FileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right",prop:"UserTypeShortName","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("编辑")]),e._v(" "),0===t.row.NoticeStateEnum?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-s-promotion"},on:{click:function(i){return e.handlePush(t.row)}}},[e._v("发布")]):e._e(),e._v(" "),1===t.row.NoticeStateEnum?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-s-release"},on:{click:function(i){return e.handleGet(t.row)}}},[e._v("撤回")]):e._e()]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],1),e._v(" "),i("notice-form",{ref:"NoticeForm",attrs:{"role-list":e.roleList},on:{getList:e.getList}})],1)},a=[],r=i("db72"),o=i("8b29"),s=i("50fc"),l=i("3577"),c=i("333d"),u=function(){return{Asc:!0,SortField:"",NoticeContent:null,FileName:null,NoticeTypeEnum:null,NoticeLevelEnum:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:null,PageIndex:1,PageSize:20}},d={components:{NoticeForm:l["default"],Pagination:c["default"]},dicts:["NoticeApplicableTrial","NoteLevel","NoteType","NoticeState","NoticeMode"],data:function(){return{list:[],total:0,loading:!1,treeData:[],defaultProps:{label:"MenuName",children:"Children"},userList:[],roleList:[],searchData:u(),dialogVisible:!1,editRow:{},expandedKeys:[],treeLoading:!1,funcListLoading:!1,funcList:[]}},mounted:function(){this.getUserTypeRoleList(),this.getList()},methods:{handlePush:function(e){var t=this;this.loading=!0;var i=Object(r["a"])({},e);i.NoticeUserTypeIdList=i.NoticeUserTypeList.map((function(e){return e.Id})),i.NoticeStateEnum=1,Object(o["a"])(i).then((function(e){t.loading=!1,t.$message.success("发布成功"),t.getList()})).catch((function(){t.loading=!1}))},handleGet:function(e){var t=this;this.loading=!0;var i=Object(r["a"])({},e);i.NoticeUserTypeIdList=i.NoticeUserTypeList.map((function(e){return e.Id})),i.NoticeStateEnum=0,Object(o["a"])(i).then((function(e){t.loading=!1,t.$message.success("撤回成功"),t.getList()})).catch((function(){t.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["NoticeForm"].openDialog("编辑",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["NoticeForm"].openDialog("新增",{})}))},getUserTypeRoleList:function(){var e=this;Object(s["p"])({}).then((function(t){e.roleList=t.Result})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,Object(o["b"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))}}},f=d,h=(i("fefd"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},2039:function(e,t,i){var n=i("6d8b"),a={};function r(){this._coordinateSystems=[]}r.prototype={constructor:r,create:function(e,t){var i=[];n.each(a,(function(n,a){var r=n.create(e,t);i=i.concat(r||[])})),this._coordinateSystems=i},update:function(e,t){n.each(this._coordinateSystems,(function(i){i.update&&i.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(e,t){a[e]=t},r.get=function(e){return a[e]};var o=r;e.exports=o},2048:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"study-wrapper"},[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c"}},[e._v("\n "+e._s(e.subjectCode)+"\n ")]),e._v(" "),i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c","margin-bottom":"5px"}},[e._v("\n "+e._s(e.taskBlindName)+"\n ")]),e._v(" "),i("div",{staticClass:"ps"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.studyList,(function(t,n){return i("el-collapse-item",{key:""+t.StudyId,attrs:{name:""+t.StudyId}},[i("template",{slot:"title"},[t.IsCriticalSequence?i("div",{staticClass:"dicom-desc"},[e._v("\n "+e._s(e.$t("trials:reading:title:keySeries"))+"\n ")]):i("div",{staticClass:"dicom-desc",staticStyle:{width:"150px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.StudyCode+" "+(t.Description?t.Description:"")+" "+t.Modalities+" ("+t.SeriesCount+")",placement:"right"}},[i("div",[i("span",[e._v(e._s(t.StudyCode)+" "+e._s(t.Description))]),e._v(" "),i("span",[e._v(" "+e._s(t.Modalities)+" ("+e._s(t.SeriesCount)+")")])])])],1)]),e._v(" "),i("div",{staticClass:"series"},e._l(t.SeriesList,(function(t,a){return i("div",{key:a,staticStyle:{position:"relative",margin:"10px 0px"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(n,a,t)}}},[i("div",{staticClass:"series-wrapper",class:{"series-active":a==e.seriesIndex&&n===e.studyIndex}},[i("el-image",{staticClass:"image-preview",attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"image-desc"},[i("div",{staticClass:"flex-div"},[i("div",[e._v("#"+e._s(t.seriesNumber)+" ")]),e._v(" "),t.isDicom&&t.sliceThickness&&5!==parseInt(t.sliceThickness)&&t.instanceCount>100&&t.prefetchInstanceCount-1?i("div",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:marked"),placement:"right"}},[i("i",{staticClass:"el-icon-star-on",staticStyle:{"font-size":"16px",color:"#ff5722"}})])],1):e._e()])])],1),e._v(" "),t.isDicom&&t.prefetchInstanceCount>0&&t.prefetchInstanceCount-1&&(e.studyList=e.visitTaskList[i].StudyList)})),c["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),c["events"].addEventListener("cornerstoneimagecachechanged",(function(){}))},beforeDestroy:function(){console.log("beforeDestroy"),c["imageCache"].purgeCache(),f["a"].$off("getMeasureData")},methods:{getStudyInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRender||t){var i=this.$loading({fullscreen:!0});this.getInitSeries().then((function(t){var i=t.findIndex((function(e){return e.isCurrentTask}));if(i>-1){e.firstSeriesId=t[i].seriesId;var n=parseInt((new Date).getTime()),a=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));a>-1&&(e.studyList=e.visitTaskList[a].StudyList,e.studyList.map((function(a,r){a.SeriesList.map((function(a,o){var s=isNaN(parseInt(a.sliceThickness))?null:parseInt(a.sliceThickness);(5===s||a.instanceCount<=100)&&a.imageIds.map((function(s){var l=0;l=a.seriesId===t[i].seriesId?10*parseInt((new Date).getTime()):--n,e.imageList.push({imageId:s,seriesId:a.seriesId,studyIndex:r,seriesIndex:o,visitTaskId:a.visitTaskId,priority:l})}))}))})),e.loopLoad())}f["a"].$emit("loadImageStacks",t)})),this.isRender=!0,i.close()}else this.$emit("loadImageStack",this.studyList[this.studyIndex].SeriesList[this.seriesIndex])},initStudyList:function(){var e=this;if(!this.isRender){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(t>-1&&this.visitTaskList[t].StudyList&&this.visitTaskList[t].StudyList.length>0){this.studyList=this.visitTaskList[t].StudyList;var i=this.studyList.findIndex((function(e){return e.IsDicom}));i>-1&&(this.studyIndex=i,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[i].StudyId)],this.loadImages(this.visitTaskList[t]))}this.isRender=!0}},getInitSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,l,c,u,d,f,h,m,g,v,b,y,w=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=[],i=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===w.visitTaskId})),this.studyList=this.visitTaskList[n].StudyList,!this.visitTaskList[n].IsBaseLineTask&&i){e.next=18;break}a=this.getFirstMarkedSeries(this.visitTaskList[n].MeasureData,Object(r["a"])(this.visitTaskList[n].StudyList)),this.studyIndex=a.studyIndex,this.seriesIndex=a.seriesIndex,t.push(a.series),this.activeNames=["".concat(this.studyList[this.studyIndex].StudyId)],o=a.series.imageIds[a.series.imageIdIndex],l=o.split("/")[o.split("/").length-1],l=l.split(".")[0],this.firstInstanceId=l,this.firstSeries=a.series.imageIds,this.studyList[a.studyIndex].SeriesList[a.seriesIndex].isFirstRender=!0,e.next=51;break;case 18:if(c=null,u=parseInt(localStorage.getItem("CriterionType")),10===u?(d=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),c=d-1):c=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),!(c>-1)){e.next=44;break}return f=this.$router.currentRoute.query.trialId,e.next=25,p["a"].dispatch("reading/getMeasuredData",this.visitTaskList[c].VisitTaskId);case 25:return e.next=27,p["a"].dispatch("reading/getStudyInfo",{trialId:f,subjectVisitId:this.visitTaskList[c].VisitId,visitTaskId:this.visitTaskList[c].VisitTaskId,taskBlindName:this.visitTaskList[c].TaskBlindName});case 27:h=this.getFirstMarkedSeries(this.visitTaskList[c].MeasureData,Object(r["a"])(this.visitTaskList[c].StudyList)),t.push(h.series),m=this.getSecondMarkedSeries(h,Object(s["a"])({},this.visitTaskList[n])),this.studyIndex=m.studyIndex,this.seriesIndex=m.seriesIndex,t.push(m.series),g=m.series.imageIds[m.series.imageIdIndex],v=g.split("/")[g.split("/").length-1],v=v.split(".")[0],this.firstInstanceId=v,this.firstSeries=m.series.imageIds,this.studyList[m.studyIndex].SeriesList[m.seriesIndex].isFirstRender=!0,this.studyIndex=m.studyIndex,this.seriesIndex=m.seriesIndex,this.activeNames=["".concat(this.studyList[m.studyIndex].StudyId)],e.next=51;break;case 44:b=this.studyList.findIndex((function(e){return e.IsDicom})),y=this.studyList[b].SeriesList[0],y.imageIdIndex=Math.floor(y.imageIds.length/2),t.push(y),this.studyIndex=b,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[b].StudyId)];case 51:return e.abrupt("return",t);case 52:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getSecondMarkedSeries:function(e,t){var i={},n=t.StudyList,a=t.MeasureData;if(e.isMarked){var o=a.findIndex((function(t){return Object.keys(t.MeasureData).length>0&&t.OrderMarkName===e.measureData.OrderMarkName}));if(-1!==o){var s=n.findIndex((function(e){return e.StudyId===a[o].StudyId})),l=n[s].SeriesList,c=l.findIndex((function(e){return e.seriesId===a[o].SeriesId})),u=l[c].instanceList,d=u.findIndex((function(e){return e.includes(a[o].InstanceId)})),f=l[c];return f.imageIdIndex=d,i.studyIndex=s,i.seriesIndex=c,i.series=f,i.seriesId=f.seriesId,i}}var h=[];if(n.forEach((function(t,i){var n=t.SeriesList.filter((function(t){return t.description===e.series.description}));n.length>0&&h.push.apply(h,Object(r["a"])(n))})),h.length>0){var p=h.filter((function(t){return t.sliceThickness===e.series.sliceThickness}));if(p.length>0){var m=this.findSerialNumberClosest(p,e.series.seriesNumber);if(m>-1){i.studyIndex=p[m].studyIndex,i.seriesIndex=p[m].seriesIndex,i.series=p[m];var g=Math.floor(p[m].imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.series.imageIdIndex=g,i.seriesId=p[m].seriesId}else{var v=p[0].studyIndex,b=p[0],y=Math.floor(b.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.studyIndex=v,i.seriesIndex=0,i.series=b,i.series.imageIdIndex=y,i.seriesId=b.seriesId}}else{var w=h[0].studyIndex,_=h[0],I=Math.floor(_.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.studyIndex=w,i.seriesIndex=0,i.series=_,i.series.imageIdIndex=I,i.seriesId=_.seriesId}}else{for(var x=null,S=0;S-1){x={studyIndex:S,seriesIdx:T,series:n[S].SeriesList[T]};break}}if(x)i.studyIndex=x.studyIndex,i.seriesIndex=x.seriesIdx,x.series.imageIdIndex=Math.floor(x.series.imageIds.length/2),i.series=x.series,i.seriesId=x.series.seriesId;else{var C=n.findIndex((function(e){return e.IsDicom})),k=n[C].SeriesList[0];k.imageIdIndex=Math.floor(k.imageIds.length/2),i.studyIndex=C,i.seriesIndex=0,i.series=k,i.seriesId=k.seriesId}}return i},findSerialNumberClosest:function(e,t){for(var i=[],n=0;n0}));if(-1!==n){var a=t.findIndex((function(t){return t.StudyId===e[n].StudyId})),r=t[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e[n].SeriesId})),s=r[o].instanceList,l=s.findIndex((function(t){return t.includes(e[n].InstanceId)})),c=r[o];c.imageIdIndex=l,i.studyIndex=a,i.seriesIndex=o,i.series=c,i.seriesId=c.seriesId,i.isMarked=!0,i.measureData=e[n]}else{for(var u=null,d=0;d-1){u={studyIndex:d,seriesIdx:f,series:t[d].SeriesList[f]};break}}if(u)i.studyIndex=u.studyIndex,i.seriesIndex=u.seriesIdx,u.series.imageIdIndex=Math.floor(u.series.imageIds.length/2),i.series=u.series,i.seriesId=u.series.seriesId,i.isMarked=!1;else{var h=t.findIndex((function(e){return e.IsDicom})),p=t[h].SeriesList[0],m=Math.floor(p.imageIds.length/2);i.studyIndex=h,i.seriesIndex=0,i.series=p,i.series.imageIdIndex=m,i.seriesId=p.seriesId,i.isMarked=!1}}return i},previewImageLoad:function(){this.studyList[0].PreviewImageCount++,this.studyList[0].PreviewImageCount===this.studyList[0].SeriesCount&&this.loadAllImages()},previewImageLoadError:function(){this.studyList[0].PreviewImageCount++,this.studyList[0].previewImageCount===this.studyList[0].seriesCount&&this.loadAllImages()},showSeriesImage:function(e,t,i){var n=this;if(i.isDicom){this.studyIndex=e,this.seriesIndex=t,this.studyList[e].SeriesList[t].measureData=this.measureData;var a=this.studyList[e].SeriesList[t];if(this.$emit("loadImageStack",a),!i.loadStatus){this.loopLoadStatus=-1,i.isLoading=!0;var r=parseInt((new Date).getTime());i.imageIds.map((function(a,o){var s="";s=0===o?10*parseInt((new Date).getTime()):--r,n.imageList.push({imageId:a,seriesId:i.seriesId,studyIndex:e,seriesIndex:t,visitTaskId:i.visitTaskId,priority:s})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())}f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName})}else this.$emit("previewNoneDicoms",{visitTaskId:this.visitTaskId})},selectSeries:function(e){var t=this.studyList.map((function(e){return e.SeriesList})).flat(),i=t.findIndex((function(t){return t.seriesId===e.seriesId&&t.studyId===e.studyId}));if(-1!==i){var n=i+e.offset;n<0?n=0:n>=t.length&&(n=t.length-1),console.log(t[n]),t[n].seriesIndex===this.seriesIndex&&t[n].studyIndex===this.studyIndex||(this.showSeriesImage(t[n].studyIndex,t[n].seriesIndex,t[n]),this.activeSeries(t[n]))}},activeSeries:function(e){console.log(e.studyIndex,e.seriesIndex),this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(-1!==t){this.studyList=this.visitTaskList[t].StudyList;var i="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(i)||this.activeNames.push(i)}},toggleStudy:function(e){var t=this;if(console.log("toggleStudy"),e.studyId){if(!this.isRender){var i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.visitTaskId}));i>-1&&this.visitTaskList[i].StudyList&&this.visitTaskList[i].StudyList.length>0&&(this.studyList=this.visitTaskList[i].StudyList,this.loadImages(this.visitTaskList[i])),this.isRender=!0}var n=this.studyList.findIndex((function(t){return t.StudyId===e.studyId}));if(-1!==n){var a=this.studyList[n],r=a.SeriesList.findIndex((function(t){return t.seriesId===e.seriesId}));-1!==r&&(this.studyIndex=n,this.seriesIndex=r,this.activeNames.includes("".concat(this.studyList[n].StudyId))||this.activeNames.push("".concat(this.studyList[n].StudyId)),f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName}))}}},loadImages:function(e){var t=this,i=parseInt((new Date).getTime());if(e.IsCurrentTask)this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}))})),this.loopLoad();else{var n=this.studyList.findIndex((function(e){return e.IsCriticalSequence}));if(-1===n)return;this.studyList[n].SeriesList.forEach((function(e,a){e.loadStatus||e.imageIds.map((function(r){i--,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))})),this.loopLoad()}},loopLoad:function(){var e=this;this.imageList.length>0&&(d["a"].startTaskTimer(),this.imageList.map((function(t){d["a"].loadAndCacheImagePlus(t.imageId,t.seriesId,t.priority).then((function(i){e.imageLoaded(t,i.data.string("x0020000e"))}))})),this.imageList=[])},loadSeries:function(e,t,i){var n=this;console.log("loadSeries"),this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!0);var a=parseInt((new Date).getTime());e.imageIds.map((function(r){-1===e.imageloadedArr.indexOf(r)&&n.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:t,seriesIndex:i,visitTaskId:e.visitTaskId,priority:a})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())},stopLoadSeries:function(e,t,i){console.log("stopLoadSeries"),d["a"].removeTask(e.seriesId),this.$set(this.studyList[t].SeriesList[i],"isLoading",!1)},stopLoadSeries2:function(e,t,i){this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!1);for(var n=this.imageList.length-1;n>=0;n--){var a=this.imageList[n];a.seriesId===e.seriesId&&this.imageList.splice(n,1)}this.loopLoadStatus=0},load:function(e,t,i){return new Promise((function(e,t){}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s["a"])(Object(s["a"])({key:e},t),{},{execute:function(){return c["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},imageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:t.visitTaskId,imageId:t.imageId,seriesUid:i});case 2:case"end":return e.stop()}}),e)})));function t(t,i){return e.apply(this,arguments)}return t}(),cornerstoneImageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,c,u,d,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:this.visitTaskId,imageId:t.detail.image.imageId,seriesUid:t.detail.image.data.string("x0020000e")});case 2:i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===f.visitTaskId})),t.detail.image.imageId.includes(this.firstInstanceId)&&!this.isStartLoad&&(this.isStartLoad=!0),this.studyList=this.visitTaskList[i].StudyList,n=t.detail.image.sharedCacheKey,a=this.cachedImages.findIndex((function(e){return e.uri===n})),-1===a?this.cachedImages.push({uri:n,timestamp:(new Date).getTime()}):this.cachedImages[a].timestamp=(new Date).getTime(),r=t.detail.image.imageId,o=t.detail.image.data.string("x0020000e"),s=-1,l=-1,c=0;case 13:if(!(c0)){e.next=25;break}return e.abrupt("break",28);case 25:++c,e.next=13;break;case 28:if(!(l<0)){e.next=30;break}return e.abrupt("return");case 30:if(d=this.studyList[s].SeriesList[l].imageIds.indexOf(r),!(d<0)){e.next=33;break}return e.abrupt("return");case 33:this.studyList[s].SeriesList[l].imageloadedArr.indexOf(r)<0&&this.studyList[s].SeriesList[l].prefetchInstanceCount>=this.studyList[s].SeriesList[l].instanceCount&&(this.studyList[s].SeriesList[l].loadStatus=!0);case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},g=m,v=(i("0293"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"7863a3da",null);t["default"]=b.exports},2054:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleSetting}},[e._v("配置字典分组")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("333d"),l=i("f36a"),c=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",IsConfig:!1,PageIndex:1,PageSize:20,ConfigTypeId:null}},u={components:{BoxContent:l["default"],Pagination:s["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:o["default"]},data:function(){return{searchData:c(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({IsConfig:!0,SortField:"Code"}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"20aa":function(e,t,i){"use strict";i("7810")},"20c8":function(e,t,i){var n=i("4a3f"),a=i("401b"),r=i("e263"),o=i("9850"),s=i("2cf4"),l=s.devicePixelRatio,c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],d=[],f=[],h=[],p=Math.min,m=Math.max,g=Math.cos,v=Math.sin,b=Math.sqrt,y=Math.abs,w="undefined"!==typeof Float32Array,_=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,i){i=i||0,this._ux=y(i/l/e)||0,this._uy=y(i/l/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var i=y(e-this._xi)>this._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),i&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,i,n,a,r){return this.addData(c.C,e,t,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,i,n,a,r):this._ctx.bezierCurveTo(e,t,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(e,t,i,n){return this.addData(c.Q,e,t,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,i,n):this._ctx.quadraticCurveTo(e,t,i,n)),this._xi=i,this._yi=n,this},arc:function(e,t,i,n,a,r){return this.addData(c.A,e,t,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,r),this._xi=g(a)*i+e,this._yi=v(a)*i+t,this},arcTo:function(e,t,i,n,a){return this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},rect:function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this.addData(c.R,e,t,i,n),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,i),e.closePath()),this._xi=t,this._yi=i,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,i=0;it.length&&(this._expandData(),t=this.data);for(var i=0;i0&&h<=e||u<0&&h>=e||0===u&&(d>0&&g<=t||d<0&&g>=t))n=this._dashIdx,i=o[n],h+=u*i,g+=d*i,this._dashIdx=(n+1)%v,u>0&&hl||d>0&&gc||s[n%2?"moveTo":"lineTo"](u>=0?p(h,e):m(h,e),d>=0?p(g,t):m(g,t));u=h-e,d=g-t,this._dashOffset=-b(u*u+d*d)},_dashedBezierTo:function(e,t,i,a,r,o){var s,l,c,u,d,f=this._dashSum,h=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,v=this._yi,y=n.cubicAt,w=0,_=this._dashIdx,I=p.length,x=0;for(h<0&&(h=f+h),h%=f,s=0;s<1;s+=.1)l=y(g,e,i,r,s+.1)-y(g,e,i,r,s),c=y(v,t,a,o,s+.1)-y(v,t,a,o,s),w+=b(l*l+c*c);for(;_h)break;s=(x-h)/w;while(s<=1)u=y(g,e,i,r,s),d=y(v,t,a,o,s),_%2?m.moveTo(u,d):m.lineTo(u,d),s+=p[_]/w,_=(_+1)%I;_%2!==0&&m.lineTo(r,o),l=r-u,c=o-d,this._dashOffset=-b(l*l+c*c)},_dashedQuadraticTo:function(e,t,i,n){var a=i,r=n;i=(i+2*e)/3,n=(n+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,i,n,a,r)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,w&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,i=0,n=0,s=0,l=0;ll||y(o-a)>u||f===d-1)&&(e.lineTo(r,o),n=r,a=o);break;case c.C:e.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),n=s[f-2],a=s[f-1];break;case c.Q:e.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),n=s[f-2],a=s[f-1];break;case c.A:var p=s[f++],m=s[f++],b=s[f++],w=s[f++],_=s[f++],I=s[f++],x=s[f++],S=s[f++],T=b>w?b:w,C=b>w?1:b/w,k=b>w?w/b:1,R=Math.abs(b-w)>.001,D=_+I;R?(e.translate(p,m),e.rotate(x),e.scale(C,k),e.arc(0,0,T,_,D,1-S),e.scale(1/C,1/k),e.rotate(-x),e.translate(-p,-m)):e.arc(p,m,T,_,D,1-S),1===f&&(t=g(_)*b+p,i=v(_)*w+m),n=g(D)*b+p,a=v(D)*w+m;break;case c.R:t=n=s[f],i=a=s[f+1],e.rect(s[f++],s[f++],s[f++],s[f++]);break;case c.Z:e.closePath(),n=t,a=i}}}},_.CMD=c;var I=_;e.exports=I},"20e7":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},2145:function(e,t){var i={};function n(e,t){i[e]=t}function a(e){return i[e]}t.register=n,t.get=a},2163:function(e,t,i){var n=i("4f85"),a=i("06c7"),r=i("eda2"),o=r.encodeHTML,s=i("4319"),l=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},i=e.leaves||{},n=new s(i,this,this.ecModel),r=a.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var i=r.getNodeByDataIndex(t);return i.children.length&&i.isExpand||(e.parentModel=n),e}))}var l=0;r.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=u})),r.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,i=t.root.children[0],n=t.getNodeByDataIndex(e),a=n.getValue(),r=n.name;while(n&&n!==i)r=n.parentNode.name+"."+r,n=n.parentNode;return o(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},"216a":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("eda2"),o=i("944e"),s=i("89e3"),l=s.prototype,c=Math.ceil,u=Math.floor,d=1e3,f=60*d,h=60*f,p=24*h,m=function(e,t,i,n){while(i>>1;e[a][1]i&&(s=i);var l=v.length,d=m(v,s,0,l),f=v[Math.min(d,l-1)],h=f[1];if("year"===f[0]){var p=r/h,g=a.nice(p/e,!0);h*=g}var b=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,y=[Math.round(c((n[0]-b)/h)*h+b),Math.round(u((n[1]-b)/h)*h+b)];o.fixExtent(y,n),this._stepLvl=f,this._interval=h,this._niceExtent=y},parse:function(e){return+a.parseDate(e)}});n.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var v=[["hh:mm:ss",d],["hh:mm:ss",5*d],["hh:mm:ss",10*d],["hh:mm:ss",15*d],["hh:mm:ss",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",5*f],["hh:mm\nMM-dd",10*f],["hh:mm\nMM-dd",15*f],["hh:mm\nMM-dd",30*f],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",2*h],["hh:mm\nMM-dd",6*h],["hh:mm\nMM-dd",12*h],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];g.create=function(e){return new g({useUTC:e.ecModel.get("useUTC")})};var b=g;e.exports=b},"217b":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3301")),r=i("4f85"),o=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return a(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=o},"217c":function(e,t,i){},"217c8":function(e,t,i){var n=i("6d8b"),a=i("6cb7");i("df3a");var r=a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&n.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var i=e.get("parallelIndex");return null!=i&&t.getComponent("parallel",i)===this},setAxisExpand:function(e){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){e.push("dim"+i.get("dim")),t.push(i.componentIndex)}))}});e.exports=r},"21a6":function(e,t,i){(function(i){var n,a,r;(function(i,o){a=[],n=o,r="function"===typeof n?n.apply(t,a):n,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i&&i.global===i?i:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,i){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):a(l.href)?n(e,t,i):r(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),i);else if(a(e))n(e,i,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){r(s)}))}}:function(e,t,i,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,i);var r="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);a?a.location=f:location.href=f,a=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))}).call(this,i("c8ba"))},"21ec":function(e,t,i){"use strict";i("7a54")},"221a":function(e,t,i){},2236:function(e,t,i){var n=i("5a43");function a(e){if(Array.isArray(e))return n(e)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"224d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"back-btn-position-fx-style"},[e._t("default")],2)},a=[],r={name:"Affix",props:{},data:function(){return{}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(e){if(document.documentElement.scrollHeight-document.documentElement.scrollTop<=document.documentElement.clientHeight+317){var t=document.getElementsByClassName("back-btn-position-fx-style");t.length>0&&(t[0].classList.add("back-btn-position-ab-style"),t[0].classList.remove("back-btn-position-fx-style"))}else{var i=document.getElementsByClassName("back-btn-position-ab-style");i.length>0&&(i[0].classList.add("back-btn-position-fx-style"),i[0].classList.remove("back-btn-position-ab-style"))}}}},o=r,s=(i("e5bc"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"38d36c93",null);t["default"]=l.exports},2294:function(e,t,i){"use strict";i("39b6")},"22a0":function(e,t,i){"use strict";i("ea20")},"22d1":function(e,t){var i={};i="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:a(navigator.userAgent);var n=i;function a(e){var t={},i={},n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),r&&(i.edge=!0,i.version=r[1]),o&&(i.weChat=!0),{browser:i,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!==typeof document}}e.exports=n},"22da":function(e,t,i){var n=i("f934");function a(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,i,n=[e];while(t=n.pop())if(i=t.children,t.isExpand&&i.length)for(var a=i.length,r=a-1;r>=0;r--){var o=i[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(o)}}function r(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){u(e);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=d(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function o(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:g}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function c(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,i=t.length,n=0,a=0;while(--i>=0){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}function d(e,t,i,n){if(t){var a=e,r=e,o=r.parentNode.children[0],s=t,l=a.hierNode.modifier,c=r.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=f(s),r=h(r),s&&r){a=f(a),o=h(o),a.hierNode.ancestor=e;var g=s.hierNode.prelim+d-r.hierNode.prelim-c+n(s,r);g>0&&(m(p(s,e,i),e,g),c+=g,l+=g),d+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!f(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),r&&!h(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=c-u,i=e)}return i}function f(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function h(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function m(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function g(e,t){return e.parentNode===t.parentNode?1:2}t.init=a,t.firstWalk=r,t.secondWalk=o,t.separation=s,t.radialCoordinate=l,t.getViewRect=c},2306:function(e,t,i){var n=i("6d8b"),a=i("342d"),r=i("41ef"),o=i("1687"),s=i("401b"),l=i("cbe5"),c=i("0cde"),u=i("0da8");t.Image=u;var d=i("e1fc");t.Group=d;var f=i("76a5");t.Text=f;var h=i("d9fc");t.Circle=h;var p=i("4aa23");t.Sector=p;var m=i("4573");t.Ring=m;var g=i("87b1");t.Polygon=g;var v=i("d498");t.Polyline=v;var b=i("c7a2");t.Rect=b;var y=i("cb11");t.Line=y;var w=i("ac0f");t.BezierCurve=w;var _=i("8d32");t.Arc=_;var I=i("d4c6");t.CompoundPath=I;var x=i("48a9");t.LinearGradient=x;var S=i("dded");t.RadialGradient=S;var T=i("9850");t.BoundingRect=T;var C=i("392f");t.IncrementalDisplayable=C;var k=i("9cf9"),R=Math.max,D=Math.min,L={},O=1,$={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",A="normal",P=1,E={},M={};function F(e){return l.extend(e)}function j(e,t){return a.extendFromString(e,t)}function V(e,t){M[e]=t}function q(e){if(M.hasOwnProperty(e))return M[e]}function z(e,t,i,n){var r=a.createFromString(e,t);return i&&("center"===n&&(i=U(i,r.getBoundingRect())),H(r,i)),r}function B(e,t,i){var n=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===i){var a={width:e.width,height:e.height};n.setStyle(U(t,a))}}});return n}function U(e,t){var i,n=t.width/t.height,a=e.height*n;a<=e.width?i=e.height:(a=e.width,i=a/n);var r=e.x+e.width/2,o=e.y+e.height/2;return{x:r-a/2,y:o-i/2,width:a,height:i}}var Q=a.mergePath;function H(e,t){if(e.applyTransform){var i=e.getBoundingRect(),n=i.calculateTransform(t);e.applyTransform(n)}}function G(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function W(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var Y=k.subPixelOptimize;function K(e){return null!=e&&"none"!==e}var Z=n.createHashMap(),X=0;function J(e){if("string"!==typeof e)return e;var t=Z.get(e);return t||(t=r.lift(e,-.1),X<1e4&&(Z.set(e,t),X++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var i=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var n=e.style;for(var a in t)null!=t[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var i=e.__zr,n=e.useHoverLayer&&i&&"canvas"===i.painter.type;if(e.__highlighted=n?"layer":"plain",!(e.isGroup||!i&&e.useHoverLayer)){var a=e,r=e.style;n&&(a=i.addHover(e),r=a.style),Se(r),n||ee(a),r.extendFrom(t),ie(r,t,"fill"),ie(r,t,"stroke"),xe(r),n||(e.dirty(!1),e.z2+=O)}}}function ie(e,t,i){!K(t[i])&&K(e[i])&&(e[i]=J(e[i]))}function ne(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var i=e.style,n=e.__cachedNormalStl;n&&(Se(i),e.setStyle(n),xe(i));var a=e.__cachedNormalZ2;null!=a&&e.z2-a===O&&(e.z2=a)}}function ae(e,t,i){var n,a=A,r=A;e.__highlighted&&(a=N,n=!0),t(e,i),e.__highlighted&&(r=N,n=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,i)})),n&&e.__highDownOnUpdate&&e.__highDownOnUpdate(a,r)}function re(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ne(e),te(e))}function oe(e){!ue(this,e)&&!this.__highByOuter&&ae(this,te)}function se(e){!ue(this,e)&&!this.__highByOuter&&ae(this,ne)}function le(e){this.__highByOuter|=1<<(e||0),ae(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&ae(this,ne)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function de(e,t){fe(e,!0),ae(e,re,t)}function fe(e,t){var i=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!i||e.__highDownDispatcher){var n=i?"off":"on";e[n]("mouseover",oe)[n]("mouseout",se),e[n]("emphasis",le)[n]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!i}}function he(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=E[e];return null==t&&P<=32&&(t=E[e]=P++),t}function me(e,t,i,a,r,o,s){r=r||L;var l,c=r.labelFetcher,u=r.labelDataIndex,d=r.labelDimIndex,f=r.labelProp,h=i.getShallow("show"),p=a.getShallow("show");(h||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,d,f)),null==l&&(l=n.isFunction(r.defaultText)?r.defaultText(u,r):r.defaultText));var m=h?l:null,g=p?n.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,d,f):null,l):null;null==m&&null==g||(ve(e,i,o,r),ve(t,a,s,r,!0)),e.text=m,t.text=g}function ge(e,t,i){var a=e.style;t&&(Se(a),e.setStyle(t),xe(a)),a=e.__hoverStl,i&&a&&(Se(a),n.extend(a,i),xe(a))}function ve(e,t,i,a,r){return ye(e,t,a,r),i&&n.extend(e,i),e}function be(e,t,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,ye(e,t,a,n)}function ye(e,t,i,a){if(i=i||L,i.isRectText){var r;i.getTextPosition?r=i.getTextPosition(t,a):(r=t.getShallow("position")||(a?null:"inside"),"outside"===r&&(r="top")),e.textPosition=r,e.textOffset=t.getShallow("offset");var o=t.getShallow("rotate");null!=o&&(o*=Math.PI/180),e.textRotation=o,e.textDistance=n.retrieve2(t.getShallow("distance"),a?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=we(t);if(u)for(var d in s={},u)if(u.hasOwnProperty(d)){var f=t.getModel(["rich",d]);_e(s[d]={},f,c,i,a)}return e.rich=s,_e(e,t,c,i,a,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),e}function we(e){var t;while(e&&e!==e.ecModel){var i=(e.option||L).rich;if(i)for(var n in t=t||{},i)i.hasOwnProperty(n)&&(t[n]=1);e=e.parentModel}return t}function _e(e,t,i,a,r,o){i=!r&&i||L,e.textFill=Ie(t.getShallow("color"),a)||i.color,e.textStroke=Ie(t.getShallow("textBorderColor"),a)||i.textBorderColor,e.textStrokeWidth=n.retrieve2(t.getShallow("textBorderWidth"),i.textBorderWidth),r||(o&&(e.insideRollbackOpt=a,xe(e)),null==e.textFill&&(e.textFill=a.autoColor)),e.fontStyle=t.getShallow("fontStyle")||i.fontStyle,e.fontWeight=t.getShallow("fontWeight")||i.fontWeight,e.fontSize=t.getShallow("fontSize")||i.fontSize,e.fontFamily=t.getShallow("fontFamily")||i.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),o&&a.disableBox||(e.textBackgroundColor=Ie(t.getShallow("backgroundColor"),a),e.textPadding=t.getShallow("padding"),e.textBorderColor=Ie(t.getShallow("borderColor"),a),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||i.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||i.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||i.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function Ie(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function xe(e){var t,i=e.textPosition,n=e.insideRollbackOpt;if(n&&null==e.textFill){var a=n.autoColor,r=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||r&&i&&"string"===typeof i&&i.indexOf("inside")>=0),l=!s&&null!=a;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=a,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=a)}e.insideRollback=t}function Se(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Te(e,t){var i=t&&t.getModel("textStyle");return n.trim([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ce(e,t,i,n,a,r){"function"===typeof a&&(r=a,a=null);var o=n&&n.isAnimationEnabled();if(o){var s=e?"Update":"",l=n.getShallow("animationDuration"+s),c=n.getShallow("animationEasing"+s),u=n.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null)),"function"===typeof l&&(l=l(a)),l>0?t.animateTo(i,l,u||0,c,r,!!r):(t.stopAnimation(),t.attr(i),r&&r())}else t.stopAnimation(),t.attr(i),r&&r()}function ke(e,t,i,n,a){Ce(!0,e,t,i,n,a)}function Re(e,t,i,n,a){Ce(!1,e,t,i,n,a)}function De(e,t){var i=o.identity([]);while(e&&e!==t)o.mul(i,e.getLocalTransform(),i),e=e.parent;return i}function Le(e,t,i){return t&&!n.isArrayLike(t)&&(t=c.getLocalTransform(t)),i&&(t=o.invert([],t)),s.applyTransform([],e,t)}function Oe(e,t,i){var n=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),a=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-n:"right"===e?n:0,"top"===e?-a:"bottom"===e?a:0];return r=Le(r,t,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function $e(e,t,i,a){if(e&&t){var r=o(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=r[e.anid];if(t){var n=l(e);e.attr(l(t)),ke(e,n,i,e.dataIndex)}}}))}function o(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=n.extend({},e.shape)),t}}function Ne(e,t){return n.map(e,(function(e){var i=e[0];i=R(i,t.x),i=D(i,t.x+t.width);var n=e[1];return n=R(n,t.y),n=D(n,t.y+t.height),[i,n]}))}function Ae(e,t){var i=R(e.x,t.x),n=D(e.x+e.width,t.x+t.width),a=R(e.y,t.y),r=D(e.y+e.height,t.y+t.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}}function Pe(e,t,i){t=n.extend({rectHover:!0},t);var a=t.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(a.image=e.slice(8),n.defaults(a,i),new u(t)):z(e.replace("path://",""),t,i,"center")}function Ee(e,t,i,n,a){for(var r=0,o=a[a.length-1];r1)return!1;var g=Fe(h,p,u,d)/f;return!(g<0||g>1)}function Fe(e,t,i,n){return e*n-i*t}function je(e){return e<=1e-6&&e>=-1e-6}V("circle",h),V("sector",p),V("ring",m),V("polygon",g),V("polyline",v),V("rect",b),V("line",y),V("bezierCurve",w),V("arc",_),t.Z2_EMPHASIS_LIFT=O,t.CACHED_LABEL_STYLE_PROPERTIES=$,t.extendShape=F,t.extendPath=j,t.registerShape=V,t.getShapeClass=q,t.makePath=z,t.makeImage=B,t.mergePath=Q,t.resizePath=H,t.subPixelOptimizeLine=G,t.subPixelOptimizeRect=W,t.subPixelOptimize=Y,t.setElementHoverStyle=re,t.setHoverStyle=de,t.setAsHighDownDispatcher=fe,t.isHighDownDispatcher=he,t.getHighlightDigit=pe,t.setLabelStyle=me,t.modifyLabelStyle=ge,t.setTextStyle=ve,t.setText=be,t.getFont=Te,t.updateProps=ke,t.initProps=Re,t.getTransform=De,t.applyTransform=Le,t.transformDirection=Oe,t.groupTransition=$e,t.clipPointsByRect=Ne,t.clipRectByRect=Ae,t.createIcon=Pe,t.linePolygonIntersect=Ee,t.lineLineIntersect=Me},2325:function(e,t,i){var n=i("6d8b"),a=i("607d"),r=i("2306"),o=i("88b3"),s=i("7dcf"),l=i("3842"),c=i("f934"),u=i("ef6a"),d=r.Rect,f=l.linearMap,h=l.asc,p=n.bind,m=n.each,g=7,v=1,b=30,y="horizontal",w="vertical",_=5,I=["line","bar","candlestick","scatter"],x=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,i,n){x.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){x.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,i=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},r=this._orient===y?{right:a.width-i.x-i.width,top:a.height-b-g,width:i.width,height:b}:{right:g,top:i.y,width:b,height:i.height},o=c.getLayoutParams(e.option);n.each(["right","top","width","height"],(function(e){"ph"===o[e]&&(o[e]=r[e])}));var s=c.getLayoutRect(o,a,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===w&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),r=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(i!==y||a?i===y&&a?{scale:o?[-1,1]:[-1,-1]}:i!==w||a?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=e.getBoundingRect([r]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.barGroup;i.add(new d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,i=e.series,a=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var s=a.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,t[1]],d=[0,t[0]],h=[[t[0],0],[0,0]],p=[],m=d[1]/(a.count()-1),g=0,v=Math.round(a.count()/t[0]);a.each([o],(function(e,t){if(v>0&&t%v)g+=m;else{var i=null==e||isNaN(e)||""===e,n=i?0:f(e,s,u,!0);i&&!c&&t?(h.push([h[h.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&c&&(h.push([g,0]),p.push([g,0])),h.push([g,n]),p.push([g,n]),g+=m,c=i}}));var b=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:h},style:n.defaults({fill:b.get("dataBackgroundColor")},b.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:p},style:b.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var i,a=this.ecModel;return e.eachTargetAxis((function(r,o){var s=e.getAxisProxy(r.name,o).getTargetSeriesModels();n.each(s,(function(e){if(!i&&!(!0!==t&&n.indexOf(I,e.get("type"))<0)){var s,l=a.getComponent(r.axis,o).axis,c=S(r.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),i={thisAxis:l,series:e,thisDim:r.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],i=e.handleLabels=[],n=this._displayables.barGroup,a=this._size,o=this.dataZoomModel;n.add(e.filler=new d({draggable:!0,cursor:T(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),m([0,1],(function(e){var a=r.createIcon(o.get("handleIcon"),{cursor:T(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=a.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,a.setStyle(o.getModel("handleStyle").getItemStyle());var c=o.get("handleColor");null!=c&&(a.style.fill=c),n.add(t[e]=a);var u=o.textStyleModel;this.group.add(i[e]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[f(e[0],[0,100],t,!0),f(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];u(t,n,a,i.get("zoomLock")?"all":e,null!=r.minSpan?f(r.minSpan,o,a,!0):null,null!=r.maxSpan?f(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=h([f(n[0],a,o,!0),f(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,i=this._handleEnds,n=h(i.slice()),a=this._size;m([0,1],(function(e){var n=t.handles[e],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[e],a[1]/2-r/2]})}),this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var d=h(this._handleEnds.slice());function f(e){var t=r.getTransform(i.handles[e].parent,this.group),s=r.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+_,c=r.applyTransform([d[e]+(0===e?-l:l),this._size[1]/2],t);n[e].setStyle({x:c[0],y:c[1],textVerticalAlign:a===y?"middle":s,textAlign:a===y?s:"center",text:o[e]})}f.call(this,0),f.call(this,1)},_formatLabel:function(e,t){var i=this.dataZoomModel,a=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(r,20));return n.isFunction(a)?a(e,o):n.isString(a)?a.replace("{value}",o):o},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,i,n){this._dragging=!0,a.stop(n.event);var o=this._displayables.barGroup.getLocalTransform(),s=r.applyTransform([t,i],o,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,i=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>t[0]||i[1]<0||i[1]>t[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(m(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}})),!e){var t=this.api.getWidth(),i=this.api.getHeight();e={x:.2*t,y:.2*i,width:.6*t,height:.6*i}}return e}});function S(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function T(e){return"vertical"===e?"ns-resize":"ew-resize"}var C=x;e.exports=C},2345:function(e,t,i){},2369:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"237f":function(e,t,i){var n=i("6d8b"),a=i("6179"),r=i("7368"),o=i("31d9"),s=i("b1d4"),l=i("2039"),c=i("3301");function u(e,t,i,u,d){for(var f=new r(u),h=0;h "+y)),g++)}var w,_=i.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)w=c(e,i);else{var I=l.get(_),x=I&&"view"!==I.type&&I.dimensions||[];n.indexOf(x,"value")<0&&x.concat(["value"]);var S=s(e,{coordDimensions:x});w=new a(S,i),w.initData(e)}var T=new a(["value"],i);return T.initData(m,p),d&&d(w,T),o({mainData:w,struct:f,structAttr:"graph",datas:{node:w,edge:T},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}e.exports=u},"23ab":function(e,t,i){"use strict";i("4e3f")},"23df":function(e,t,i){},"23e0":function(e,t,i){var n=i("6d8b"),a=i("7887"),r=i("89e3"),o=i("3842"),s=i("697e"),l=s.getScaleExtent,c=s.niceScaleExtent,u=i("2039"),d=i("8c2a");function f(e,t,i){this._model=e,this.dimensions=[],this._indicatorAxes=n.map(e.getIndicatorModels(),(function(e,t){var i="indicator_"+t,n=new a(i,"log"===e.get("axisType")?new d:new r);return n.name=e.get("name"),n.model=e,e.axis=n,this.dimensions.push(i),n}),this),this.resize(e,i),this.cx,this.cy,this.r,this.r0,this.startAngle}f.prototype.getIndicatorAxes=function(){return this._indicatorAxes},f.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},f.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],n=i.angle,a=this.cx+e*Math.cos(n),r=this.cy-e*Math.sin(n);return[a,r]},f.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=Math.sqrt(t*t+i*i);t/=n,i/=n;for(var a,r=Math.atan2(-i,t),o=1/0,s=-1,l=0;li[0]&&isFinite(m)&&isFinite(i[0]))}else{var h=a.getTicks().length-1;h>r&&(f=s(f));var p=Math.ceil(i[1]/f)*f,m=o.round(p-f*r);a.setExtent(m,p),a.setInterval(f)}}))},f.dimensions=[],f.create=function(e,t){var i=[];return e.eachComponent("radar",(function(n){var a=new f(n,e,t);i.push(a),n.coordinateSystem=a})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},u.register("radar",f);var h=f;e.exports=h},"23ee":function(e,t,i){var n=i("3eba");i("879e"),i("9704"),i("d747");var a=i("675a"),r=i("7f96"),o=i("2943"),s=i("de6e"),l=i("d357"),c=i("adda"),u=i("5866"),d=i("7b0c");n.registerProcessor(a),n.registerVisual(r("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),n.registerLayout(u),n.registerCoordinateSystem("graphView",{create:d})},"23f1":function(e,t,i){var n={"./404.svg":"49be","./bug.svg":"937c","./build.svg":"b88c","./chart.svg":"20e7","./clipboard.svg":"5aa7","./component.svg":"02b8","./dashboard.svg":"7154","./date.svg":"a2bf","./dict.svg":"da75","./documentation.svg":"ed00","./download.svg":"039a","./drag.svg":"a2f6","./druid.svg":"bc7b","./edit.svg":"2fb0","./education.svg":"2369","./email.svg":"caf7","./example.svg":"b6f9","./excel.svg":"e3ff","./exit-fullscreen.svg":"f22e","./eye-open.svg":"74a2","./eye.svg":"57fa","./form.svg":"4576","./fullscreen.svg":"72e5","./guide.svg":"72d1","./icon.svg":"9f4c","./international.svg":"a601","./job.svg":"e82a","./language.svg":"a17a","./link.svg":"5fda","./list.svg":"35615","./lock.svg":"a0121","./log.svg":"9cb5","./logininfor.svg":"9b2c","./message.svg":"15e8","./money.svg":"4955","./monitor.svg":"f71f","./nested.svg":"91be","./online.svg":"575e","./password.svg":"198d","./pdf.svg":"8989","./people.svg":"ae6e","./peoples.svg":"dc13","./phone.svg":"b470","./post.svg":"482c","./qq.svg":"39e1","./row.svg":"0c16","./search.svg":"679a","./server.svg":"4738","./shopping.svg":"98ab","./size.svg":"879b","./skill.svg":"a263","./star.svg":"4e5a","./swagger.svg":"84e5","./system.svg":"922f","./tab.svg":"2723","./table.svg":"dc78","./theme.svg":"7271","./tool.svg":"06b3","./tree-table.svg":"4d24","./tree.svg":"0e8f","./user.svg":"d88a","./validCode.svg":"67bd","./wechat.svg":"2ba1","./zip.svg":"a75d"};function a(e){var t=r(e);return i(t)}function r(e){var t=n[e];if(!(t+1)){var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}return t}a.keys=function(){return Object.keys(n)},a.resolve=r,e.exports=a,a.id="23f1"},"23f7":function(e,t,i){"use strict";i("60d2")},2449:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("eda2"),c=i("38a2"),u=l.addCommas,d=l.encodeHTML;function f(e){s.defaultEmphasis(e,"label",["show"])}var h=a.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,i,n){var a=this.constructor,o=this.mainType+"Model";i||t.eachSeries((function(e){var i=e.get(this.mainType,!0),s=e[o];i&&i.data?(s?s._mergeOption(i,t,!0):(n&&f(i),r.each(i.data,(function(e){e instanceof Array?(f(e[0]),f(e[1])):f(e)})),s=new a(i,this,t),r.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[o]=s):e[o]=null}),this)},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.getRawValue(e),s=r.isArray(o)?r.map(o,u).join(", "):u(o),l=a.getName(e),c=d(this.name),f="html"===n?"
    ":"\n";return(null!=o||l)&&(c+=f),l&&(c+=d(l),null!=o&&(c+=" : ")),null!=o&&(c+=d(s)),c},getData:function(){return this._data},setData:function(e){this._data=e}});r.mixin(h,c);var p=h;e.exports=p},2460:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("27e2"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"247f":function(e,t,i){},"24b9":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("f934")),r=i("3842"),o=r.parsePercent,s=r.linearMap;function l(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t){for(var i=e.mapDimension("value"),n=e.mapArray(i,(function(e){return e})),a=[],r="ascending"===t,o=0,s=e.count();onew Date(e.listQuery.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(c["b"])(["croList"])),created:function(){l["a"].dispatch("global/getCROList")},methods:{handleSearch:function(){this.$refs[this.type].getList()},handleReset:function(){this.listQuery.Reviewer="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),this.$refs[this.type].resetList()},handleTypeChange:function(){"Trial"===this.type?this.exportDisabled=!1:this.exportDisabled=!0,this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM")},handleExport:function(){this.$refs[this.type].export()},selectMore:function(e){this.exportDisabled=e},handleVerify:function(){var e=this;this.dialogLoading=!0;var t={beginDate:this.listQuery.BeginDate,endDate:this.listQuery.EndDate};Object(u["n"])(t).then((function(t){e.dialogVisible=!0,e.dialogLoading=!1,e.monthVerifyList=t.Result.MonthVerifyResult,e.verifyList=[],t.Result.RevenuesVerifyList&&t.Result.RevenuesVerifyList.forEach((function(t){var i={};for(var n in i.trialCode=t.TrialCode,i.priceType=[],t)!1===t[n]&&i.priceType.push(n);e.verifyList.push(i)}))}))}}},f=d,h=(i("5599"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"262e":function(e,t,i){const n=i("3e15"),{log:a}=i("908e"),r=async(e,t)=>{a("info","fetch "+e);const i=await(await fetch(e)).arrayBuffer();a("info",`${e} file size = ${i.byteLength} bytes`);const n=new Blob([i],{type:t}),r=URL.createObjectURL(n);return a("info",`${e} blob URL = ${r}`),r};e.exports=async({corePath:e})=>{if("string"!==typeof e)throw Error("corePath should be a string!");const t=n(e),i=await r(t,"application/javascript"),o=await r(t.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),s=await r(t.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return"undefined"===typeof createFFmpegCore?new Promise(e=>{const t=document.createElement("script"),n=()=>{t.removeEventListener("load",n),a("info","ffmpeg-core.js script loaded"),e({createFFmpegCore:createFFmpegCore,corePath:i,wasmPath:o,workerPath:s})};t.src=i,t.type="text/javascript",t.addEventListener("load",n),document.getElementsByTagName("head")[0].appendChild(t)}):(a("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore:createFFmpegCore,corePath:i,wasmPath:o,workerPath:s}))}},2655:function(e,t){function i(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=i,e.exports.default=i},2659:function(e,t,i){"use strict";i("a44c")},"268d":function(e,t,i){"use strict";i("a9f8")},"268e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAH8UlEQVRYR71Ze1BU5xX/fXffy8tlgV1ggRJeQnQsAaNGnAbTtNg81CZEJppMh7FqWnSczKSJU50wYyaxNGMnSoHOVNMaOsRiB6OYTIeOior1gU4cmyggtZIF9u4uC+zDfdzd/Tr38pCVhb1r05x/dma/8zvnd893z/nOdy7BIwillGFZdinDSMsBlFCKAoCmAoibNOcAyDAh6AFwLRj0n9HpdFcJIcFo3ZFoAFarNd3vD9YQQjYBMESDBWCklDZLpUx9UlLSoFisKIJGo1Erkyn2AqgGoBBrfA49L4DDHOfdYzAYRiLZikjQZLJUEYKDAJIiGYty3UoIU5OSoj06H25OgpRSqdls5Ylti9JxtOpNKSlJ2wkh/nDAsAQppSqLxdpKKZ6L1tuj6BOCU8nJSZWEEPfD+FkE+chZLNbj3xW5KUKTJNc9HMlZBFnW0vgdbOtcgW7S6ZLfmLkYQnAyIVoeZZu+LQwhTNXMxJkmOFlKbv8fsjVa7laO8y6cKkHTBFnW2gDQkPCGszw4OIjLly/B5XJCqVQhNjZWUOM4Dhzng9/vB6WAXC6HRqNBYWER9Hp9tCQbdbrkX/AggSB/QgQCtD9SEbbb7WhoqIfP5xPtkGEYrFnzHEpKSkRjAHglEpLDnzgCQZPJ/AEh5J1IFq5fv4b29pOR1GatKxQK7Nz5JvhfsUIp3afXp+wi/MFvNlvviTlbe3pu4+jRTyFhGCzJiIN+gRKxCgnkUgaEEHD+IJxeP8x2H74cGIfP/6A34Le6svIVsfx4PWNKSlIWMZlMywiRXBKDDAQCaGj4PcpyE/DjwqnGJTzyt5/34Z41tO5WV2+GwSC+x6A0sJyYzdZ3KKUfiCEoPJbRiHR7N3Tq+Tunfe29MNo8IWbLylZh9epnxLrid2UXYVnzMYC8JBoV5OC4cAgXunuRm6XDypI8AXq+uxdD7BiKctOwuMCAln8a0dVnCzH75JPLUFGxRrQrQsgxwrLWmwBdJBYl4RxgO/+MrDQtZFIJ5HKpAB133AfnD8A25kJ+th5Gmxt1p/oQpBOWpRKC5SvKooogQP5FWNZiiaY4S702JA6fxcioE5p4NfxeH+RqJSilsI27oF0wURd5OXZlUIjizoocpCYoMaBahPj0hWJjwetZeYL8iyI6/2VuMzTsBfx6/9+wZ3MFlPExkxF04w8tZ/CrLT+ZJnBjYBy3h51YW6SBTCkHtyAb9uSl0RD0PgJBFhq2S3Disd+HXK0AI5WEdTp+n4PN5UOqkkCmksOX8BgcyaVRE4xqi2UeCzSm87hrcaG5ywizw4sYuQRP5SXiheJUkDAdpt/HCQ/BapZCosmKhiC/xdEniXawA4fP3YPD7UdRepxQToZG3ahaYUBOysSWz5RRlw+fdBlRunotcnMnsl6ckJt8HWyllL4sDgCABpE8cBKEBkRDhkY9eP9kLzZu3IScnFzROKHMRFuoeevxlitQuoyiHVkdPhzoNGPLlm1ClyNWhEIdzVE3ZZjhnEgcOg2GTtxzOI9PyNK5xMPEYiS1HDKZTCw3QU846qJpFmZaV7PXITV/Lfzlc3ugjI1BMPBg2/nsJhIpvJoiIKMEbi+Fz+ua6O/EyUSzwOuKbbeCQYr+/1ihVKvxeH4q8M1VKEe/QjAQ5B83pNxwCi38hhVQJvKZTeC678Ohli6kJqmwrDgLSuX80Zxut3iCkRrWMbsbnRfvoOvKvzE67saGl57Cq+ueQDAYhGe4D6qh8yB0onmgRAJPcjGkaYshkz8g0fr5DTS3nBd01CoZnv3BQjyzKh+q8ERDG1YexLKWBgAhLb/D6UF7x1c4d6kf/hm9XdnKQry1baIr4dt7t20YintnEJDFIpBZBmV8Ykg97B+wYe+HJzA66gzZ3Bi1HM8/+zjKV+ZBImFmroW2/PzKzEsTxwXQca4HX5y+BY+Hm/XGLF6UhffefmH6/yCl6O0bRmZGEtSq0GRxe/34sPEf6L52Z843L02fgFfXl6AgN0XY0LCXJuFdtNiqrt8cbvlr22XYRl1zGszNS0Pd7vWQMAQ+LoBDzafxUWMbSovzcbBuKzQJqmnsF509aPpjh6i0KF2SgQ0vPlFVUJA5Pa+ZlVQ/2/Fxo83mnHceo9drUPfuy5DLpPj5joO4co0fA05IVqYOB+q2ojA3FcMWJ979zXGw7JgogiBoOvHJ9rkv7ryVp5+ulcYbtMeBuecySqUcu99ai0V5OmyorsOXN+9OE9Bq4nDi091Qx8Tg45aL6Dh9Qxw54JTdOLLu7NnakCFS2LJUWblf5VXIWucjuX3rj/DDsny8v78Vf2k9J5QShhB8tG8zylctRlf3Xfyu4e/guLBDq4dJn1J4ucrW1jcjD4+mkEIkM7QHQcOP31756XJsXF+K6poDuHDp1rTDtuZdyM7S4+332jAwwDdKEYSgyf7NyPaHIzeFiljYX3ytvgqUH2DSkAFm8fezsXrF97B5R30Ig23VFcjOeQx/au6MxMxKGFLz2ZFfPtoAc6b19a/XawNB7AXo9Ag4LV2Lgbt30Nc/FEKkeEkeYuKSMDJin4ugFyCHJQz2tB2p+d9HwDO9PP96Yzqh/hpCsSlRG2e42HVZuIvMlPLy5TCZHOHIGSlBMyXS+vYjb3y7Q/RZ3mprmdcsmUu/vnWr3D7mKAXhP0NAn5OTEZeo1cHp8DgIqAlADwjTDdAzn+VYr6K2NurPEP8FU+MuU4jj0k4AAAAASUVORK5CYII="},"26b3":function(e,t,i){},"26c0":function(e,t,i){},"26d1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ecrf-wrapper",staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[2===e.formType?[i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.questions,(function(t){return i("el-tab-pane",{key:t.PageName,attrs:{label:t.PageName,name:t.PageName}},[t.Childrens.length>0?i("div",{class:{tabContent:e.publicQuestions.length>0}},e._l(t.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),1):e._e()])})),1),e._v(" "),e.publicQuestions.length>0?i("el-divider",{attrs:{"content-position":"left"}}):e._e(),e._v(" "),e._l(e.publicQuestions,(function(t){return i("div",{key:t.PageName},[i("h4",[e._v(e._s(t.PageName))]),e._v(" "),t.Childrens.length>0?e._l(t.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e()],2)}))]:e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),e.readingTaskState<2?i("el-form-item",[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("提交")])],1)]):e._e()],2):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("7a9e"),s=i("0108"),l=i("179b"),c=i("9b92"),u={name:"ECRF",components:{FormItem:s["default"],SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},criterionId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,signVisible:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),readingTaskState:0,activeName:0,formType:null}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId,visitTaskId:this.visitTaskId};Object(r["Vd"])(t).then((function(t){e.readingTaskState=t.OtherInfo.readingTaskState,e.formType=t.OtherInfo.FormType,2===t.OtherInfo.FormType?(t.Result.MultiPage.length>0&&(t.Result.MultiPage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.MultiPage,e.activeName=t.Result.MultiPage[0].PageName),t.Result.PublicPage.length>0&&(t.Result.PublicPage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.publicQuestions=t.Result.PublicPage)):(t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},handleSave:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){e.loading=!0;var i=[];for(var n in e.questionForm)i.push({readingQuestionTrialId:n,answer:e.questionForm[n]});var a={trialId:e.trialId,visitTaskId:e.visitTaskId,readingQuestionCriterionTrialId:e.criterionId,answerList:i};Object(r["Ce"])(a).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1})).catch((function(){e.loading=!1}))}}))},handleSubmit:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i=[];for(var n in this.questionForm)i.push({readingQuestionTrialId:n,answer:this.questionForm[n]});var a={data:{trialId:this.trialId,visitTaskId:this.visitTaskId,readingQuestionCriterionTrialId:this.criterionId,answerList:i},signInfo:e};Object(r["gf"])(a).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.readingTaskState=2,window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){c["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},resetFormItemData:function(e){this.questionForm[e]=null},setFormItemData:function(e){this.questionForm[e.key]=e.val}}},d=u,f=(i("dfa3"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"87df063e",null);t["default"]=h.exports},"26de":function(e,t,i){},"26e1":function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=n.each,o=n.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var i=0,a=s.length;i'});o.a.add(s);t["default"]=s},2763:function(e,t,i){},"278c":function(e,t,i){var n=i("c135"),a=i("9b42"),r=i("6613"),o=i("c240");function s(e,t){return n(e)||a(e,t)||r(e,t)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},2791:function(e,t,i){"use strict";i("1b2e")},"27a6":function(e,t,i){"use strict";i("be0c")},"27bd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{attrs:{"before-leave":e.checkLeave},on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Setting",name:"Setting"}},[e.load.Setting?i("Setting"):e._e()],1)],1)],1)},a=[],r=(i("386d"),i("4917"),i("3b2b"),i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{active:"BasicInfo",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},mounted:function(){this.active=this.$route.query.tabActive,""===this.$route.query.Id&&"BasicInfo"!==this.active&&this.$router.push({path:"/reviewers/reviewers-list"}),this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id"),n=Object(m["b"])("isEnglish");this.$router.push({path:"/reviewers/reviewers-add?Id=".concat(i,"&isEnglish=").concat(n,"&tabActive=").concat(e.name)})},checkLeave:function(){var e=Object(m["b"])("Id");return!!e||(this.$message({message:"Please fill in the basic information first",type:"warning"}),!1)},getQueryString:function(e){console.log(window.location.href);var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!=i?unescape(i[2]):null}}},v=g,b=(i("48de"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"50678ac2",null);t["default"]=y.exports},"27e2":function(e,t,i){"use strict";i("0f40")},2824:function(e,t,i){},"282b":function(e,t,i){var n=i("6d8b");function a(e){for(var t=0;t=0||a&&n.indexOf(a,s)<0)){var l=t.getShallow(s);null!=l&&(r[e[o][0]]=l)}}return r}}e.exports=a},"283c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"study-info"},[i("div",{staticClass:"functions",staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",size:"small",disabled:0===e.studyList.length,icon:"el-icon-view"},on:{click:e.handlePreviewAllFiles}},[e._v("\n "+e._s(e.$t("trials:audit:action:preview"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.studyLoading,expression:"studyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.studyList,height:"300","row-class-name":e.tableRowClassName},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:audit:table:studyId"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:e.$t("trials:audit:table:modality"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartExamined",label:e.$t("trials:audit:table:bodyPart"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:audit:table:seriesCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:audit:table:instanceCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:audit:table:studyDate"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.StudyTime).format("YYYY-MM-DD"))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadedTime",label:e.$t("trials:audit:table:studyUploadTime"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",disabled:0===t.row.SeriesCount||t.row.IsDeleted,title:e.$t("trials:audit:action:preview"),circle:""},on:{click:function(i){return e.handleViewStudy(t.row)}}})]}}])})],1)],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("5f87"),s=i("c1df"),l=i.n(s),c={name:"StudyInfo",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),deleteArr:[],studyLoading:!1,studyList:[],trialId:this.$route.query.trialId,moment:l.a}},mounted:function(){this.getStudyInfo()},methods:{getStudyInfo:function(){var e=this;this.studyLoading=!0,Object(r["sd"])(this.data.Id).then((function(t){e.studyList=t.Result,e.studyLoading=!1})).catch((function(){e.studyLoading=!1}))},handleBatchDelete:function(){var e=this;this.$confirm(this.$t("trials:qcCheck:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.studyLoading=!0,Object(r["yb"])(e.trialId,e.data.Id,e.deleteArr).then((function(t){t.IsSuccess&&(e.getStudyInfo(),e.$emit("getList"),e.$message.success(e.$t("trials:qcCheck:message:deletedSuccessfully")))})).catch((function(){e.studyLoading=!0}))})).catch((function(){}))},handlePreviewAllFiles:function(){var e=Object(o["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewStudy:function(e){var t=Object(o["a"])(),i=this.$router.resolve({path:"/showdicom?studyId=".concat(e.StudyId,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handleSelectionChange:function(e){var t=this;this.deleteArr=[],e.forEach((function(e){t.deleteArr.push(e.StudyId)}))},hasDeleted:function(e){return!e.IsDeleted},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""}}},u=c,d=(i("57a4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},2860:function(e,t,i){},"289d":function(e,t,i){},"28b8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典键值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildGroup",label:"分组","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("DictionaryChildAddOrUpdateForm",{ref:"DictionaryChildAddOrUpdateForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("e1e6"),l=function(){return{parentId:""}},c={components:{BoxContent:o["default"],DictionaryChildAddOrUpdateForm:s["default"]},props:{parent:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),basicDicList:[],list:[],total:0,loading:!1,drawerChild:!1,rowData:{},childList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList()},methods:{handleChild:function(e){this.drawerChild=!0,this.getDictionaryChildList(e.Id)},getDictionaryChildList:function(e){var t=this;Object(r["fb"])(e).then((function(e){t.childList=e.Result.CurrentPageData})).catch((function(){t.loading=!1}))},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Edit",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Add",{},{ConfigTypeId:e.parent.ConfigTypeId,parentId:e.parent.Id})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["fb"])(this.parent.Id).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"537cce14",null);t["default"]=f.exports},"292e":function(e,t,i){var n=i("3842"),a=n.parsePercent,r=n.linearMap,o=i("f934"),s=i("bb70"),l=i("6d8b"),c=2*Math.PI,u=Math.PI/180;function d(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function f(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),o=d(e,i),f=e.get("center"),h=e.get("radius");l.isArray(h)||(h=[0,h]),l.isArray(f)||(f=[f,f]);var p=a(o.width,i.getWidth()),m=a(o.height,i.getHeight()),g=Math.min(p,m),v=a(f[0],p)+o.x,b=a(f[1],m)+o.y,y=a(h[0],g/2),w=a(h[1],g/2),_=-e.get("startAngle")*u,I=e.get("minAngle")*u,x=0;t.each(n,(function(e){!isNaN(e)&&x++}));var S=t.getSum(n),T=Math.PI/(S||x)*2,C=e.get("clockwise"),k=e.get("roseType"),R=e.get("stillShowZeroSum"),D=t.getDataExtent(n);D[0]=0;var L=c,O=0,$=_,N=C?1:-1;if(t.each(n,(function(e,i){var n;if(isNaN(e))t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:v,cy:b,r0:y,r:k?NaN:w,viewRect:o});else{n="area"!==k?0===S&&R?T:e*T:c/x,nnew Date(e.listQuery.SearchEndDateTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(e){var t=Date.now();return e.getTime()>t}},expeditedState:0,dialogVisible:!1,Id:"",trialId:"",doctorId:"",title:"",row:{},timer:"",yearMonth:"",maps:new Map,guidEmpty:"00000000-0000-0000-0000-000000000000",trialCode:""}},mounted:function(){this.trialCode=this.$route.query.trialCode,this.trialId=this.$route.query.trialId,this.listQuery.TrialCode=this.trialCode,this.listQuery.ReviewerName=this.$route.query.doctorName,this.doctorId=this.$route.query.doctorId,this.initPage(),this.getExpeditedState()},methods:{initPage:function(){var e=this;this.listLoading=!0,this.listQuery.DoctorId=this.$route.query.doctorId,this.listQuery.TrialId=this.$route.query.trialId,this.listQuery.TrialCode=this.trialCode,this.listQuery.ReviewerName=this.$route.query.doctorName,Object(s["cc"])(this.listQuery).then((function(t){e.listLoading=!1;var i=t.Result.CurrentPageData;i.forEach((function(e){0===e.DataFrom&&(e.hasChildren=!0)})),e.list=i})).catch((function(){e.listLoading=!1}))},handleReset:function(){this.listQuery=u(),this.initPage()},handleSearch:function(){this.listQuery.PageIndex=1,this.initPage()},handleAdd:function(e){this.timer=(new Date).getTime(),this.title=this.$t("trials:stats:dialogTitle:add"),this.Id="",this.row=Object(o["a"])({},e),this.yearMonth=e.YearMonthStr,this.dialogVisible=!0},handleUpdate:function(e){if(this.row={},this.timer=(new Date).getTime(),this.title=this.$t("trials:stats:dialogTitle:edit"),this.Id=e.Id,this.dialogVisible=!0,this.row=Object(o["a"])({},e),2===e.DataFrom){var t=this.list.find((function(t){return 1===t.DataFrom&&t.WorkTimeStr===e.WorkTimeStr}));this.row.clientData=t}},handleDelete:function(e){var t=this,i="";i=0===e.DataFrom?this.$t("trials:stats:message:del"):this.$t("trials:stats:message:reset"),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(s["Eb"])(e.Id,t.trialId).then((function(e){e.IsSuccess&&(t.initPage(),t.$message.success(t.$t("common:message:deletedSuccessfully")))}))}))},handleClose:function(){this.dialogVisible=!1,this.initPage()},load:function(e,t,i,n){var a=this,r=e.YearMonthStr;this.maps.set(r,{tree:e,treeNode:t,resolve:i});var l={TrialId:this.trialId,DoctorId:this.$route.query.doctorId,YearMonthStr:e.WorkTimeStr};Object(s["gd"])(l).then((function(e){if(e.IsSuccess&&e.Result){var t=e.Result,n=e.Result.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{hasChildren:e.level<=2})}));i(n),t.length>0&&(a.reFlashTbl(t),a.$message.success(a.$t("common:message:savedSuccessfully")))}}))},reFlashTbl:function(e){for(var t=0;t0)for(i in this.form)this.data.hasOwnProperty(i)&&(this.form[i]=this.data[i]);this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.questionForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,Object(o["E"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1})))}))},getParentQsOpntions:function(){var e=this;return new Promise((function(t,i){var n={trialId:e.trialId,id:e.data.Id?e.data.Id:"",typeArray:["select","radio"]};Object(o["Td"])(n).then((function(i){e.parentOptions=i.Result,t()})).catch((function(){i()}))}))},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValue=""},handleClose:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"2b5b":function(e,t,i){"use strict";i("e330")},"2b61":function(e,t,i){var n=i("7d6d"),a=i("82eb"),r=a.ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(e){this.extendFrom(e,!1)};function l(e,t,i){var n=null==t.x?0:t.x,a=null==t.x2?1:t.x2,r=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,o=isNaN(o)?0:o;var s=e.createLinearGradient(n,r,a,o);return s}function c(e,t,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*n+i.x,s=s*a+i.y,l*=r);var c=e.createRadialGradient(o,s,0,o,s,l);return c}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,i){var a=this,s=i&&i.style,l=!s||e.__attrCachedBy!==r.STYLE_BIND;e.__attrCachedBy=r.STYLE_BIND;for(var c=0;c0},extendFrom:function(e,t){if(e)for(var i in e)!e.hasOwnProperty(i)||!0!==t&&(!1===t?this.hasOwnProperty(i):null==e[i])||(this[i]=e[i])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,i){for(var n="radial"===t.type?c:l,a=n(e,t,i),r=t.colorStops,o=0;o'});o.a.add(s);t["default"]=s},"2bb4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"trialAttachmentFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"170px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileType"),prop:"FileTypeId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.FileTypeId,callback:function(t){e.$set(e.form,"FileTypeId",t)},expression:"form.FileTypeId"}},e._l(e.dictionaryList.Trial_Document,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:form:file")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".pdf","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:""===e.form.FileTypeId}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId||e.saveBtnLoading,loading:e.btnLoading}},[e._v("\n "+e._s(e.$t("trials:attachment:button:select"))+"\n ")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n ("+e._s(e.$t("trials:attachment:message:pdf"))+")\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:userType"),prop:"NeedConfirmedUserTypeIdList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:""},model:{value:e.form.NeedConfirmedUserTypeIdList,callback:function(t){e.$set(e.form,"NeedConfirmedUserTypeIdList",t)},expression:"form.NeedConfirmedUserTypeIdList"}},e._l(e.userTypeOptions,(function(t){return 1!==t.UserTypeEnum&&20!==t.UserTypeEnum?i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])]):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:min"),prop:"SignViewMinimumMinutes"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:50},model:{value:e.form.SignViewMinimumMinutes,callback:function(t){e.$set(e.form,"SignViewMinimumMinutes",t)},expression:"form.SignViewMinimumMinutes"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:description"),prop:"Description"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:6},maxlength:"500","show-word-limit":""},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7f7f"),i("20d6"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("3e42"),l=i("86a6"),c={name:"TrialAttachmentFrom",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",TrialId:"",FileTypeId:"",Name:"",Path:"",IsDeleted:!1,SignViewMinimumMinutes:null,Description:"",NeedConfirmedUserTypeIdList:[]},rules:{FileTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],SignViewMinimumMinutes:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["change"]}],NeedConfirmedUserTypeIdList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Description:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500"),trigger:["blur","change"]}]},fileList:[],userTypeOptions:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.trialAttachmentFrom.validate((function(t){t&&(e.form.Name?(""===e.form.TrialId&&(e.form.TrialId=e.$route.query.trialId),e.saveBtnLoading=!0,Object(s["B"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error(e.$t("trials:attachment:message:selectFile")))}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getDicData();case 3:return e.next=5,this.getUserType();case 5:Object.keys(this.data).length>0&&(this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path}]),this.form.Id=this.data.Id,this.form.FileTypeId=this.data.FileTypeId,this.form.Name=this.data.Name,this.form.Path=this.data.Path,this.form.IsDeleted=this.data.IsDeleted,this.form.Description=this.data.Description,this.form.SignViewMinimumMinutes=this.data.SignViewMinimumMinutes),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Trial_Document"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)}))},getUserType:function(){var e=this;Object(s["de"])().then((function(t){e.userTypeOptions=t.Result,e.form.Id&&(e.form.NeedConfirmedUserTypeIdList=e.data.NeedConfirmedUserTypeeIds)})).catch((function(){e.loading=!1}))},handleViewableUserTypeChange:function(e){var t=this;this.form.NeedConfirmedUserTypeIdList=[],this.needConfirmedUserTypeOptions=[],e.forEach((function(e){var i=t.userTypeOptions.findIndex((function(t){return t.Id===e}));t.needConfirmedUserTypeOptions.push(t.userTypeOptions[i])}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error(this.$t("trials:attachment:message:pdf")),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=this.$route.query.trialId;Object(s["Cf"])(i,e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handleExceed:function(e,t){this.$message.warning(this.$t("trials:attachment:message:uploadFile"))},checkFileSuffix:function(e){var t=["pdf"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("59fb"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"2bc3":function(e,t,i){},"2c17":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=a.createHashMap,o=a.each;n.registerProcessor({getTargetSeries:function(e){var t=r();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){var a=n.getAxisProxy(e.name,i);o(a.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).reset(n,t)})),e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).filterData(n,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},"2c29":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"status-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Pending:"}},[e.statusList.Submitted?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=5&TokenKey="+e.tokenKey},target:"_blank",title:"Pending client approval"}},[e._v(e._s(e.statusList.Submitted))])],1):i("span",[e._v(e._s(e.statusList.Submitted))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Approved:"}},[e.statusList.Approved?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=8&TokenKey="+e.tokenKey},target:"_blank",title:"Approved, waiting for training"}},[e._v(e._s(e.statusList.Approved))])],1):i("span",[e._v(e._s(e.statusList.Approved))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Reading:"}},[e.statusList.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=10&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(e.statusList.Reading))])],1):i("span",[e._v(e._s(e.statusList.Reading))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"On Vacation:"}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.holiday))]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.initHolidayList}},[e._v("Planned Vacation")])],1)],1)],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"35%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.total,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=i("33ba"),o=i("7878"),s=i("5f87"),l={props:{basicInfo:{type:Object,default:function(){return{}}},statusList:{type:Object,default:function(){return{}}},doctorId:{type:String,default:""},holiday:{type:String,default:""}},data:function(){return{list:[],total:0,dialogVisible:!1,loading:!1,pageIndex:1,pageSize:10,tokenKey:Object(s["a"])()}},methods:{initHolidayList:function(){var e=this;this.dialogVisible=!0,this.loading=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount),e.loading=!1})).catch((function(){e.loading=!1}))},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},c=l,u=(i("e51b"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"2c2e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"全部",name:"/dictionary/newDictionary/list"}},["/dictionary/newDictionary/list"==e.activeTab?i("dictList"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"下拉框字典",name:"/dictionary/newDictionary/select"}},["/dictionary/newDictionary/select"==e.activeTab?i("dictSelect"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"枚举字典",name:"/dictionary/newDictionary/enum"}},["/dictionary/newDictionary/enum"==e.activeTab?i("dictEnum"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"布尔字典",name:"/dictionary/newDictionary/bool"}},["/dictionary/newDictionary/bool"==e.activeTab?i("dictBool"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"字典类型配置",name:"/dictionary/newDictionary/config"}},["/dictionary/newDictionary/config"==e.activeTab?i("dictConfig"):e._e()],1)],1)],1)},a=[],r=i("1852"),o=i("e327"),s=i("6c83"),l=i("b034"),c=i("be50"),u={components:{dictList:r["default"],dictSelect:o["default"],dictEnum:s["default"],dictBool:l["default"],dictConfig:c["default"]},data:function(){return{activeTab:"/dictionary/newDictionary/list"}},created:function(){},methods:{handleClick:function(e){}}},d=u,f=(i("d454"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"2c7e":function(e,t,i){"use strict";i("4df0")},"2c9b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"participant-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:externalStaff:table:name"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Name,callback:function(t){e.$set(e.listQuery,"Name",t)},expression:"listQuery.Name"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:externalStaff:table:email"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Email,callback:function(t){e.$set(e.listQuery,"Email",t)},expression:"listQuery.Email"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:externalStaff:table:phone"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Phone,callback:function(t){e.$set(e.listQuery,"Phone",t)},expression:"listQuery.Phone"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-message"},on:{click:e.sendEmail}},[e._v("\n "+e._s(e.$t("trials:staff:button:sendEmail"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus",size:"mini",loading:e.assignLoadStatus},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"participant-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:externalStaff:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+"/"+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:externalStaff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.userTypeOptions.length>0?e.userTypeOptions.find((function(e){return e.Id==t.row.UserTypeId})).UserTypeShortName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:externalStaff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:externalStaff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:externalStaff:table:organization"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"inviteState",label:e.$t("trials:externalStaff:table:status"),fixed:"right","show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),fixed:"right","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:e.$t("trials:externalStaff:button:delete")},on:{click:function(i){return e.deleteTrialExternalUser(t.row)}}})]}}])})],1)],1)]),e._v(" "),i("StaffExternalAdd",{ref:"StaffExternalAdd",attrs:{"user-type-options":e.userTypeOptions},on:{getList:e.refeshList}})],1)},a=[],r=i("3e42"),o=i("0662"),s=i("de99"),l=function(){return{Phone:"",Email:"",Name:""}},c={components:{StaffExternalAdd:s["default"]},data:function(){return{list:[],loading:!1,listQuery:l(),selectArr:[],assignLoadStatus:!1,isAdmin:JSON.parse(zzSessionStorage.getItem("IsAdmin")),userTypeOptions:[],stateList:["WaitSent","HasSend","UserConfirmed","UserReject","OverTime"],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{refeshList:function(){this.getList(),this.$emit("getList")},isSendEmail:function(e){console.log(e)},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["StaffExternalAdd"].openDialog(t.$t("trials:externalStaff:dialogTitle:edit"),e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["StaffExternalAdd"].openDialog(e.$t("trials:externalStaff:dialogTitle:add"),{})}))},deleteTrialExternalUser:function(e){var t=this;this.$confirm(this.$t("trials:externalStaff:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["d"])(e.Id,e.IsSystemUser,e.SystemUserId).then((function(e){t.$message.success(t.$t("common:message:deletedSuccessfully")),t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))}))},sendEmail:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0}),i="".concat(location.protocol,"//").concat(location.host,"/login"),n="".concat(location.protocol,"//").concat(location.host,"/email-recompose"),a=this.selectArr.map((function(e){return{Id:e.Id,Email:e.Email,IsSystemUser:e.IsSystemUser,SystemUserId:e.SystemUserId}}));Object(r["Ee"])({TrialId:this.trialId,SendUsers:a,BaseUrl:i,RouteUrl:n}).then((function(){t.close(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.getList(),e.$emit("getList")})).catch((function(){t.close()}))},getList:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["Md"])(this.listQuery).then((function(i){t.close(),e.list=i.Result})).catch((function(){t.close()}))},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:externalStaff:message:add"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["K"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleSelectChange:function(e){this.selectArr=e},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return 0===e.State||4===e.State||3===e.State},getUserType:function(){var e=this;Object(r["ge"])(1).then((function(t){e.userTypeOptions=t.Result}))}}},u=c,d=(i("23ab"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"57affaa8",null);t["default"]=f.exports},"2cbc":function(e,t,i){},"2cc1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container data-list"},[i("div",{staticClass:"toolbar"},[i("el-row",[i("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"Trial ID",size:"small",clearable:""},model:{value:e.listQuery.Code,callback:function(t){e.$set(e.listQuery,"Code",t)},expression:"listQuery.Code"}}),e._v(" "),i("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"Indication",size:"small",clearable:""},model:{value:e.listQuery.Indication,callback:function(t){e.$set(e.listQuery,"Indication",t)},expression:"listQuery.Indication"}}),e._v(" "),i("el-select",{staticStyle:{width:"160px"},attrs:{"value-key":"value",placeholder:"Expedited",clearable:"",size:"small"},model:{value:e.listQuery.Expedited,callback:function(t){e.$set(e.listQuery,"Expedited",t)},expression:"listQuery.Expedited"}},e._l(e.expeditedOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),i("el-select",{staticStyle:{width:"160px"},attrs:{"value-key":"value",placeholder:"Enroll Status",clearable:"",size:"small"},model:{value:e.listQuery.EnrollStatus,callback:function(t){e.$set(e.listQuery,"EnrollStatus",t)},expression:"listQuery.EnrollStatus"}},e._l(e.enrollStatusOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialsList",staticClass:"table",attrs:{data:e.list,stripe:"",size:"small",height:"100%"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code","min-width":"110",label:"Trial ID","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase","min-width":"100",label:"Phase","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewMode",label:"Review Mode","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Criterion",label:"Criteria","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"Modalities","min-width":"120",formatter:e.ModalitiesFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CRO",label:"CRO","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"120","show-overflow-tooltip":"",formatter:e.timeFormatter,sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollStatus",label:"Enroll State","min-width":"120","show-overflow-tooltip":"",formatter:e.enrollStatusFormatter,sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnrollStatus>=10?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleToWorkLoad(t.row)}}},[e._v("WorkLoad")]):e._e(),e._v(" "),i("el-button",{attrs:{disabled:8!=t.row.EnrollStatus,type:"text",size:"small"},on:{click:function(i){e.enrollVisible=!0,e.trialId=t.row.Id,e.enrollStatus=t.row.EnrollStatus}}},[e._v("Enroll")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:"Enroll",visible:e.enrollVisible,width:"400px",size:"small","close-on-click-modal":!1},on:{"update:visible":function(t){e.enrollVisible=t}}},[i("el-radio-group",{model:{value:e.enrollStatus,callback:function(t){e.enrollStatus=t},expression:"enrollStatus"}},[i("el-radio",{attrs:{label:9}},[e._v("Reject Enroll")]),e._v(" "),i("el-radio",{attrs:{label:10}},[e._v("Confirm Enroll")])],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.enrollVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisable},on:{click:e.handleEnroll}},[e._v("OK")])],1)],1)],1)},a=[],r=i("333d"),o=i("7878"),s=i("0a05"),l=function(){return{Code:"",Expedited:"",Indication:"",EnrollStatus:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},c={name:"ReviewerTrials",components:{Pagination:r["default"]},data:function(){return{btnDisable:!1,trialId:"",enrollStatus:"",enrollVisible:!1,listQuery:l(),list:[],listLoading:!1,total:0,expeditedOption:[{value:0,label:"No"},{value:2,label:"48-Hour"},{value:1,label:"24-Hour"}],enrollStatusOption:[{value:8,label:"Enrolling"},{value:9,label:"Rejected"},{value:10,label:"Reading"},{value:14,label:"End"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["l"])(this.listQuery).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSelectSearch:function(){this.isShow=!1,this.getList()},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleEnroll:function(){var e=this;this.btnDisable=!0,Object(s["r"])(this.trialId,this.enrollStatus).then((function(t){e.enrollVisible=!1,9===e.enrollStatus?e.$message.success("Reject successfully"):e.$message.success("Enroll successfully"),e.getList()})).catch((function(){e.btnDisable=!1}))},handleToWorkLoad:function(e){this.$router.push({name:"WorkloadPannel",query:{TrialId:e.Id}})},ModalitiesFormatter:function(e,t){if(e.ModalityList.length>0)return e.ModalityList.join(", ")},timeFormatter:function(e){if(e.CreateTime)return Object(o["formatUTCTime"])(e.CreateTime)},enrollStatusFormatter:function(e){return 8===e.EnrollStatus?"Need Confirm":9===e.EnrollStatus?"Rejected":10===e.EnrollStatus||12===e.EnrollStatus||13===e.EnrollStatus?"Reading":"End"},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"2cf4":function(e,t){var i=1;"undefined"!==typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,a=i;t.debugMode=n,t.devicePixelRatio=a},"2cfc":function(e,t,i){var n=i("3eba");i("4338"),i("bcbe"),i("c62c"),i("cb8f"),i("f138"),n.extendComponentView({type:"single"})},"2db3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"template-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("box-content",[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.template_form,"search-handle":e.template_handle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSetting}},[e._v("Setting")])],1)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.template_cols,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,items:e.handleView,edit:e.handleEdit,delete:e.handleDelete,sortByColumn:e.sortByColumn}})],1)],1),e._v(" "),i("div",{staticClass:"right-wrapper"},[e.template.Name?i("div",[i("span",[e._v("Name:")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{size:"small",readonly:""},model:{value:e.template.Name,callback:function(t){e.$set(e.template,"Name",t)},expression:"template.Name"}})],1):e._e(),e._v(" "),e.template.Name?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.itemLoading,expression:"itemLoading"}],ref:"itemList",staticClass:"table",attrs:{data:e.itmeList,size:"small"},on:{select:e.onTableSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"Item","show-overflow-tooltip":""}})],1):e._e()],1),e._v(" "),e.template_model.visible?i("template-form",{attrs:{data:e.rowData},on:{close:e.closeModel}}):e._e()],1)},a=[],r=(i("ac6a"),i("20d6"),i("e56e")),o=i("aaf3"),s=i("f36a"),l=i("d13d"),c=i("c0ee"),u=i("7f7d"),d=i("fab6"),f=function(){return{Name:"",PageIndex:1,PageSize:20}},h={name:"TemplateList",components:{BoxContent:s["default"],SearchForm:l["default"],BaseTable:c["default"],TemplateForm:u["default"]},mixins:[d["a"]],data:function(){return{template_cols:o["e"],template_form:o["f"],template_handle:o["g"],template_model:o["h"],searchData:f(),list:[],total:0,loading:!1,rowData:{},template:{},itmeList:[],itemLoading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["pb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.template={},e.itmeList=[]}))},handleAdd:function(){this.rowData={},this.template_model.title="New",this.template_model.visible=!0},handleSetting:function(){this.$router.push({name:"TemplateOfSetting"})},handleEdit:function(e){this.rowData=e,this.template_model.title="Edit",this.template_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["G"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleView:function(e){var t=this;this.template=e,this.itemLoading=!0,Object(r["ob"])(e.Id,e.ModalityId).then((function(e){t.itmeList=e.Result,t.itmeList.forEach((function(e){t.$nextTick(function(){this.$refs.itemList.toggleRowSelection(e,e.IsSelect)}.bind(t))})),t.itemLoading=!1}))},onTableSelect:function(e,t){var i=this,n={qaTemplateItemId:t.Id,qaTemplateId:this.template.Id,isSelect:-1!==e.indexOf(t)};Object(r["y"])(n).then((function(e){i.$message.success("Updated successfully")}))},handleReset:function(){this.searchData=f(),this.getList(),this.template={},this.itmeList=[]},closeModel:function(){this.template_model.visible=!1,this.getList()}}},p=h,m=(i("604c"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"2dd1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"User ID: ",prop:"userName",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.userName,callback:function(t){e.$set(e.signForm,"userName",t)},expression:"signForm.userName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Password: ",prop:"password",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.password,callback:function(t){e.$set(e.signForm,"password",t)},expression:"signForm.password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("签名")])],1)])},a=[],r=(i("c5f6"),i("3e42")),o=i("8237"),s=i.n(o),l={name:"SignForm",props:{signCodeEnum:{type:Number,required:!0},subjectVisitId:{type:String,default:""}},data:function(){return{signForm:{userName:"",password:""},signText:"",signCodeId:"",signCode:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,this.$store.dispatch("trials/getSignInfo",{signCode:this.signCodeEnum}).then((function(t){e.loading=!1,e.signText=t.SignText,e.signCode=t.SignCode,e.signCodeId=t.SignCodeId})).catch((function(){e.loading=!1}))},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(i)if(e.signForm.userName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={userName:e.signForm.userName,passWord:s()(e.signForm.password),trialId:e.$route.query.trialId,signCode:e.signCode,signText:e.signText,signCodeId:e.signCodeId,subjectVisitId:e.subjectVisitId};Object(r["Mf"])(n).then((function(t){var i=t.Result;e.$emit("closeDialog",!0,i,e.signCode,n)})).catch((function(){e.btnLoading=!1}))}else e.$message.error("用户名输入错误!")}))},handleclose:function(){this.$emit("closeDialog",!1)}}},c=l,u=(i("cf53"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"aaeb5fd2",null);t["default"]=d.exports},"2ddb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:site:table:site")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SiteName,callback:function(t){e.$set(e.searchData,"SiteName",t)},expression:"searchData.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:site:table:staff")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.UserRealName,callback:function(t){e.$set(e.searchData,"UserRealName",t)},expression:"searchData.UserRealName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode","min-width":"100",label:e.$t("trials:site:table:siteId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteAliasName","min-width":"100",label:e.$t("trials:site:table:site"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City","min-width":"100",label:e.$t("trials:site:table:city"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country","min-width":"100",label:e.$t("trials:site:table:country"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCount","min-width":"100",label:e.$t("trials:site:table:subjects"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitCount","min-width":"100",label:e.$t("trials:site:table:visits"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserCount","min-width":"150",label:e.$t("trials:site:table:staff"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.UserCount>0?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.getStaffList(t.row)}}},[e._v("\n "+e._s(t.row.UserNameList.length>0?t.row.UserNameList.join(", "):"")+"\n ")]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.crc_model.visible?i("base-model",{attrs:{config:e.crc_model}},[i("template",{slot:"dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userListLoading,expression:"userListLoading"}],attrs:{data:e.userList,height:"400"}},[i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:site:table:name"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:site:table:userType"),width:"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:site:table:organization"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:site:table:phone"),"show-overflow-tooltip":"",sortable:"custom",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:site:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}],null,!1,2183258100)}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:site:table:dataAssigned"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:site:table:deletedTime"),"show-overflow-tooltip":"",sortable:"","min-width":"150"}})],1)],1)],2):e._e()],2)},a=[],r=i("db72"),o=i("3e42"),s=i("6071"),l=i("7eeb"),c=i("333d"),u=function(){return{UserRealName:"",SiteName:"",SortField:"TrialSiteCode",Asc:!0,PageIndex:1,PageSize:20}},d={name:"SiteList",components:{BaseContainer:s["default"],BaseModel:l["default"],Pagination:c["default"]},data:function(){return{searchData:u(),list:[],total:0,loading:!1,crc_model:{visible:!1,title:this.$t("trials:site:dialogTitle:staff"),width:"60%"},userListLoading:"",userList:[],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["kd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getStaffList:function(e){var t=this;this.currentRow=Object(r["a"])({},e),this.crc_model.visible=!0,this.userListLoading=!0,Object(o["Xd"])(this.trialId,this.currentRow.SiteId).then((function(e){t.userListLoading=!1,t.userList=e.Result})).catch((function(){t.userListLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"2de6":function(e,t,i){"use strict";i("2cbc")},"2dff":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[e.otherInfo&&e.otherInfo.IsReadingShowSubjectInfo?i("div",{staticClass:"title"},[i("span",[e._v("受试者:"+e._s(e.otherInfo.SubjectCode)+" ")]),e._v(" "),i("span",[e._v("("+e._s(e.otherInfo.TaskBlindName)+")")])]):e._e(),e._v(" "),i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{staticClass:"left-content",attrs:{label:"当前任务",name:"first"}},[i("div",e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),!0===e.showOtherTask?i("el-tab-pane",{attrs:{label:"关联任务",name:"second"}},[i("div",{staticStyle:{height:"100%"}},[0===e.associatedList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",e._l(e.associatedList,(function(t,n){return i("div",{key:t.VisitTaskId,staticClass:"img-box",class:{"is-boxActive":t.VisitTaskId===e.currentTaskId},on:{click:function(i){return e.handleImageRead(t)}}},[e._v("\n "+e._s(n+1+". "+t.TaskBlindName)+"\n ")])})),0)])]):e._e()],1)],1),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("Preview",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex},on:{selectedImg:e.selectedImg}}):e._e()],1)]),e._v(" "),i("el-card",{staticClass:"box-card",staticStyle:{width:"400px",height:"100%",padding:"10px","margin-left":"10px","overflow-y":"auto"}},[e.otherInfo&&e.otherInfo.IsExistsClinicalData?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.previewCD}},[e._v("\n 临床数据\n ")]):e._e(),e._v(" "),e.otherInfo&&""!==e.visitTaskId&&""!==e.subjectId&&null!==e.readingCategory&&4!==e.readingCategory?i("Criterions",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"criterion-id":e.otherInfo.TrialCriterionId}}):e._e()],1)],1)},a=[],r=(i("7f7f"),i("20d6"),i("c5f6"),i("3e42")),o=i("5f87"),s=i("bcd4"),l=i("1b13"),c={name:"VisitReview",components:{Preview:s["default"],Criterions:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0}},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:""},previewVisible:!1,studyList:[],loading:!1,isRenderAssocicatedTasks:!1,associatedList:[],currentTaskId:"",otherInfo:null,isReadingShowPreviousResults:!1}},computed:{showOtherTask:function(){return this.otherInfo&&this.otherInfo.IsReadingShowPreviousResults&&this.isReadingShowPreviousResults}},mounted:function(){this.isReadingShowPreviousResults=void 0===this.$router.currentRoute.query.isReadingShowPreviousResults||this.$router.currentRoute.query.isReadingShowPreviousResults,this.getNoneDicomList(this.isReadingShowPreviousResults)},methods:{getNoneDicomList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visistTaskId:this.visitTaskId};Object(r["Oc"])(t).then((function(t){if(e.otherInfo=t.OtherInfo,t.Result.length>0){e.studyList=t.Result;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}}e.loading=!1})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0},handleClick:function(e){"second"!==e.name||this.isRenderAssocicatedTasks||this.getAssociatedTask()},getAssociatedTask:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,subjectId:this.subjectId,visitTaskId:this.visitTaskId};Object(r["Tc"])(t).then((function(t){e.associatedList=t.Result,e.isRenderAssocicatedTasks=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleImageRead:function(e){this.currentTaskId=e.VisitTaskId;var t=this.$router.currentRoute.query.criterionType,i=this.$router.currentRoute.query.readingTool,n=this.$router.currentRoute.query.isReadingTaskViewInOrder,a=this.$router.currentRoute.query.TrialReadingCriterionId,r=Object(o["a"])(),s="/noneDicomReading?TrialReadingCriterionId=".concat(a,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&isReadingTaskViewInOrder=").concat(n,"&criterionType=").concat(t,"&readingTool=").concat(i,"&TokenKey=").concat(r),l=this.$router.resolve({path:s});window.open(l.href,"_blank")},previewCD:function(){var e=Object(o["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},u=c,d=(i("5a8d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"2483507d",null);t["default"]=f.exports},"2e08":function(e,t,i){var n=i("9def"),a=i("9744"),r=i("be13");e.exports=function(e,t,i,o){var s=String(r(e)),l=s.length,c=void 0===i?" ":String(i),u=n(t);if(u<=l||""==c)return s;var d=u-l,f=a.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),o?f+s:s+f}},"2e08c":function(e,t,i){},"2e2c":function(e,t,i){},"2e39":function(e,t,i){"use strict";function n(e,t){var i=t.length,n=e.length;if(n>i)return!1;if(n===i)return e===t;e:for(var a=0,r=0;a0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId),this.fileList=this.form.FileList.concat()}case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){if(t)if(0!==e.fileList.length){e.pendingUploadList=[];for(var i=0;i0?e.uploadFilesAndSave():e.saveClinicalData()}else e.$message.error(e.$t("trials:readingPeriod:cd:message:uploadFile"))}))},uploadFilesAndSave:function(){var e=this;return new Promise((function(t,i){for(var n=new FormData,a=0;a-1&&(this.currentTpl.id=this.clinicalDatas[t].Id,this.currentTpl.isExist=!!this.clinicalDatas[t].FileName)},handleDownloadTpl:function(){var e=this;this.loading=!0,Object(o["a"])(this.currentTpl.id).then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"4b797971",null);t["default"]=u.exports},"2f07":function(e,t,i){},"2f19":function(e,t,i){},"2f31":function(e,t,i){var n=i("3eba"),a=i("ae75");i("10cc"),i("f31f"),i("c2dd"),i("b8ec"),i("fecb"),n.registerPreprocessor(a)},"2f45":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.createHashMap,o=(n.assert,i("4e08")),s=(o.__DEV__,r(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},i=t.encode={},n=r(),o=[],l=[],u=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};a(e.dimensions,(function(t){var a=e.getDimensionInfo(t),r=a.coordDim;if(r){var f=a.coordDimIndex;c(i,r)[f]=t,a.isExtraCoord||(n.set(r,1),d(a.type)&&(o[0]=t),c(u.encode,r)[f]=a.index),a.defaultTooltip&&l.push(t)}s.each((function(e,t){var n=c(i,t),r=a.otherDims[t];null!=r&&!1!==r&&(n[r]=a.name)}))}));var f=[],h={};n.each((function(e,t){var n=i[t];h[t]=n[0],f=f.concat(n)})),t.dataDimsOnCoord=f,t.encodeFirstDimNotExtra=h;var p=i.label;p&&p.length&&(o=p.slice());var m=i.tooltip;return m&&m.length?l=m.slice():l.length||(l=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=l,t}function c(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function u(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function d(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=l,t.getDimensionTypeByAxis=u},"2f6a":function(e,t,i){},"2f73":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("1e32");i("1ccf"),i("f5e6"),i("792e"),i("cb8f"),i("6acf"),n.registerLayout(a.curry(r,"bar")),n.extendComponentView({type:"polar"})},"2f91":function(e,t){var i=["itemStyle","borderColor"];function n(e,t){var n=e.get("color");e.eachRawSeriesByType("boxplot",(function(t){var a=n[t.seriesIndex%n.length],r=t.getData();r.setVisual({legendSymbol:"roundRect",color:t.get(i)||a}),e.isSeriesFiltered(t)||r.each((function(e){var t=r.getItemModel(e);r.setItemVisual(e,{color:t.get(i,!0)})}))}))}e.exports=n},"2fb0":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"2fd0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"clinical-data-wrapper"},[i("el-tabs",{attrs:{type:"border-card"}},e._l(e.clinicalDatas,(function(t){return i("el-tab-pane",{key:t.ClinicalDataTrialSetId,attrs:{label:t.ClinicalDataSetName}},[1*t.ClinicalUploadType===0?i("div",[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}],null,!0)})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)})],1)],1):e._e(),e._v(" "),1*t.ClinicalUploadType===1?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.PDFFileList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadClinicalData:table:fileName"),width:"250"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:uploadClinicalData:table:uploadedTime"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.preview(t.row.Path)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:action:preview"))+"\n ")])]}}],null,!0)})],1)],1):e._e()])})),1)],1)},a=[],r=(i("c5f6"),i("3e42")),o=i("c1df"),s=i.n(o),l={name:"ClinicalData",props:{subjectVisitId:{type:String,required:!0},enumType:{type:Number,default:0},subjectId:{type:String,required:!0},data:{type:Object,default:function(){return{}}},subjectClinicalData:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,moment:s.a,clinicalDatas:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectVisitId:this.subjectVisitId,trialId:this.$route.query.trialId,subjectId:this.subjectId,isBaseLine:this.data.IsBaseLine};Object(r["Nb"])(t).then((function(t){e.clinicalDatas=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},preview:function(e){e&&window.open(e,"_blank")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"2fea":function(e,t,i){},3014:function(e,t,i){var n=i("4f85"),a=i("3301"),r=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return a(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(t.clampData(e)),n=this.getData(),a=n.getLayout("offset"),r=n.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return i[o]+=a+r/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=r},3016:function(e,t,i){"use strict";i("4203")},"303f":function(e,t,i){e.exports=i.p+"static/img/QC.0b5cd448.png"},3041:function(e,t,i){var n=i("e1fc"),a=i("0da8"),r=i("76a5"),o=i("d9fc"),s=i("c7a2"),l=i("ae69"),c=i("cb11"),u=i("cbe5"),d=i("87b1"),f=i("d498"),h=i("48a9"),p=i("2b61"),m=i("1687"),g=i("342d"),v=g.createFromString,b=i("6d8b"),y=b.isString,w=b.extend,_=b.defaults,I=b.trim,x=b.each,S=/[\s,]+/;function T(e){if(y(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(e,t){t=t||{};var i=T(e);if(!i)throw new Error("Illegal svg");var a=new n;this._root=a;var r=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),N(i,a,null,!0);var c,u,d=i.firstChild;while(d)this._parseNode(d,a),d=d.nextSibling;if(r){var f=I(r).split(S);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&null!=o&&null!=l&&(u=V(c,o,l),!t.ignoreViewBox)){var h=a;a=new n,a.add(h),h.scale=u.scale.slice(),h.position=u.position.slice()}return t.ignoreRootClip||null==o||null==l||a.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:a,width:o,height:l,viewBoxRect:c,viewBoxTransform:u}},C.prototype._parseNode=function(e,t){var i,n=e.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var a=R[n];if(a){var r=a.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=r)}}else{a=k[n];a&&(i=a.call(this,e,t),t.add(i))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},C.prototype._parseText=function(e,t){if(1===e.nodeType){var i=e.getAttribute("dx")||0,n=e.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var a=new r({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});L(t,a),N(e,a,this._defs);var o=a.style.fontSize;o&&o<9&&(a.style.fontSize=9,a.scale=a.scale||[1,1],a.scale[0]*=o/9,a.scale[1]*=o/9);var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a};var k={g:function(e,t){var i=new n;return L(t,i),N(e,i,this._defs),i},rect:function(e,t){var i=new s;return L(t,i),N(e,i,this._defs),i.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),i},circle:function(e,t){var i=new o;return L(t,i),N(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),i},line:function(e,t){var i=new c;return L(t,i),N(e,i,this._defs),i.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),i},ellipse:function(e,t){var i=new l;return L(t,i),N(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),i},polygon:function(e,t){var i=e.getAttribute("points");i&&(i=O(i));var n=new d({shape:{points:i||[]}});return L(t,n),N(e,n,this._defs),n},polyline:function(e,t){var i=new u;L(t,i),N(e,i,this._defs);var n=e.getAttribute("points");n&&(n=O(n));var a=new f({shape:{points:n||[]}});return a},image:function(e,t){var i=new a;return L(t,i),N(e,i,this._defs),i.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),i},text:function(e,t){var i=e.getAttribute("x")||0,a=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(a)+parseFloat(o);var s=new n;return L(t,s),N(e,s,this._defs),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=a&&(this._textY=parseFloat(a));var r=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0,s=new n;return L(t,s),N(e,s,this._defs),this._textX+=r,this._textY+=o,s},path:function(e,t){var i=e.getAttribute("d")||"",n=v(i);return L(t,n),N(e,n,this._defs),n}},R={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),i=parseInt(e.getAttribute("y1")||0,10),n=parseInt(e.getAttribute("x2")||10,10),a=parseInt(e.getAttribute("y2")||0,10),r=new h(t,i,n,a);return D(e,r),r},radialgradient:function(e){}};function D(e,t){var i=e.firstChild;while(i){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";t.addColorStop(n,a)}i=i.nextSibling}}function L(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_(t.__inheritedStyle,e.__inheritedStyle))}function O(e){for(var t=I(e).split(S),i=[],n=0;n0;r-=2){var o=a[r],s=a[r-1];switch(n=n||m.create(),s){case"translate":o=I(o).split(S),m.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=I(o).split(S),m.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=I(o).split(S),m.rotate(n,n,parseFloat(o[0]));break;case"skew":o=I(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=I(o).split(S);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5]);break}}t.setLocalTransform(n)}}var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function j(e){var t=e.getAttribute("style"),i={};if(!t)return i;var n,a={};F.lastIndex=0;while(null!=(n=F.exec(t)))a[n[1]]=n[2];for(var r in $)$.hasOwnProperty(r)&&null!=a[r]&&(i[$[r]]=a[r]);return i}function V(e,t,i){var n=t/e.width,a=i/e.height,r=Math.min(n,a),o=[r,r],s=[-(e.x+e.width/2)*r+t/2,-(e.y+e.height/2)*r+i/2];return{scale:o,position:s}}function q(e,t){var i=new C;return i.parse(e,t)}t.parseXML=T,t.makeViewBoxTransform=V,t.parseSVG=q},3059:function(e,t,i){"use strict";i("132c")},3075:function(e,t,i){"use strict";i("6e2e")},"307a":function(e,t,i){var n=i("6d8b"),a=i("eaea"),r=i("3842"),o=[20,140],s=a.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=o[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=o[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):n.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=r.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=i[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function a(t,i){n.push({value:t,color:e(t,i)})}for(var r=0,o=0,s=i.length,c=t.length;o=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(v,20))),m.coord[h]=g.coord[h]=c,a=[m,g,{type:s,valueIndex:a.valueIndex,value:c}]}return a=[o.dataTransform(e,a[0]),o.dataTransform(e,a[1]),n.extend({},a[2])],a[2].type=a[2].type||"",n.merge(a[2],a[0]),n.merge(a[2],a[1]),a};function f(e){return!isNaN(e)&&!isFinite(e)}function h(e,t,i,n){var a=1-e,r=n.dimensions[e];return f(t[a])&&f(i[a])&&t[e]===i[e]&&n.getAxis(r).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(h(1,i,n,e)||h(0,i,n,e)))return!0}return o.dataFilter(e,t[0])&&o.dataFilter(e,t[1])}function m(e,t,i,n,a){var o,s=n.coordinateSystem,l=e.getItemModel(t),c=r.parsePercent(l.get("x"),a.getWidth()),u=r.parsePercent(l.get("y"),a.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,h=e.get(d[0],t),p=e.get(d[1],t);o=s.dataToPoint([h,p])}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");d=s.dimensions;f(e.get(d[0],t))?o[0]=m.toGlobalCoord(m.getExtent()[i?0:1]):f(e.get(d[1],t))&&(o[1]=g.toGlobalCoord(g.getExtent()[i?0:1]))}isNaN(c)||(o[0]=c),isNaN(u)||(o[1]=u)}else o=[c,u];e.setItemLayout(t,o)}var g=l.extend({type:"markLine",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markLineModel;if(t){var n=t.getData(),a=t.__from,r=t.__to;a.each((function(t){m(a,t,!0,e,i),m(r,t,!1,e,i)})),n.each((function(e){n.setItemLayout(e,[a.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,i,a){var r=e.coordinateSystem,o=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(o)||c.set(o,new s);this.group.add(u.group);var d=v(r,e,t),f=d.from,h=d.to,p=d.line;t.__from=f,t.__to=h,t.setData(p);var g=t.get("symbol"),b=t.get("symbolSize");function y(t,i,n){var r=t.getItemModel(i);m(t,i,n,e,a),t.setItemVisual(i,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||b[n?0:1],symbol:r.get("symbol",!0)||g[n?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}n.isArray(g)||(g=[g,g]),"number"===typeof b&&(b=[b,b]),d.from.each((function(e){y(f,e,!0),y(h,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||f.getItemVisual(e,"color")}),p.setItemLayout(e,[f.getItemLayout(e),h.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolRotate:f.getItemVisual(e,"symbolRotate"),fromSymbolSize:f.getItemVisual(e,"symbolSize"),fromSymbol:f.getItemVisual(e,"symbol"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol")})})),u.updateData(p),d.line.eachItemGraphicEl((function(e,i){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function v(e,t,i){var r;r=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var s=new a(r,i),l=new a(r,i),c=new a([],i),u=n.map(i.get("data"),n.curry(d,t,e,i));e&&(u=n.filter(u,n.curry(p,e)));var f=e?o.dimValueGetter:function(e){return e.value};return s.initData(n.map(u,(function(e){return e[0]})),null,f),l.initData(n.map(u,(function(e){return e[1]})),null,f),c.initData(n.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}e.exports=g},"307d1":function(e,t,i){"use strict";i("d898")},"30a1":function(e,t,i){"use strict";i("25fc")},"30a3":function(e,t,i){var n=i("6d8b"),a=i("607d"),r=a.Dispatcher,o=i("98b7"),s=i("06ad"),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),i=0;i=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),i=0;i0&&3!==e.QuestionList[n].QuestionGenre?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.toString().replaceAll(",","|")))]):e._e(),e._v(" "),e.QuestionList[n].grouping.length>0&&3===e.QuestionList[n].QuestionGenre?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.map((function(t){return e.$d[e.QuestionList[n].DictionaryCode].find((function(e){return e.value===t})).label})).toString().replaceAll(",","|")))]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",disabled:e.OtherInfo.IsSign},on:{click:function(t){return e.addGroup2(n)}}},[e._v("\n "+e._s(e.$t("trials:adRules:title:addGroup"))+"\n ")])],1)],1),e._v(" "),3!==e.QuestionList[n].QuestionGenre?i("div",{staticStyle:{"margin-top":"20px"}},[e._v("分组: "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{key:t,staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v(e._s(t))])}))],2):e._e(),e._v(" "),3===e.QuestionList[n].QuestionGenre?i("div",{staticStyle:{"margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:adRules:title:group"))+"\n "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{key:t,staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v("\n "+e._s(t.split("|").map((function(t){return e.$fd(e.QuestionList[n].DictionaryCode,parseInt(t))})).join("|"))+"\n ")])}))],2):e._e()]):e._e()],1)})),1),e._v(" "),e.QuestionVisible?i("el-dialog",{attrs:{title:e.$t("trials:adRules:title:selectAnswer"),visible:e.QuestionVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.QuestionVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{"label-width":"110px",label:e.$t("trials:adRules:title:answerGroupA")}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingA,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingA",t)},expression:"QuestionList[selectIndex].groupingA"}},[e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return 3!==e.QuestionList[e.selectIndex].QuestionGenre?i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t)}},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.$d[e.QuestionList[e.selectIndex].DictionaryCode],(function(t,n){return 3===e.QuestionList[e.selectIndex].QuestionGenre&&-1!==t.value?i("el-checkbox",{key:t.id,attrs:{label:t.value,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t.value)}},[e._v(e._s(t.label))]):e._e()}))],2)],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"110px",label:e.$t("trials:adRules:title:answerGroupB")}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingB,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingB",t)},expression:"QuestionList[selectIndex].groupingB"}},[e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return 3!==e.QuestionList[e.selectIndex].QuestionGenre?i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t)}},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.$d[e.QuestionList[e.selectIndex].DictionaryCode],(function(t,n){return 3===e.QuestionList[e.selectIndex].QuestionGenre&&-1!==t.value?i("el-checkbox",{key:t.id,attrs:{label:t.value,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t.value)}},[e._v(e._s(t.label))]):e._e()}))],2)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.QuestionVisible=!1,e.$set(e.QuestionList[e.selectIndex],"groupingA",[]),e.$set(e.QuestionList[e.selectIndex],"groupingB",[])}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("6b54"),i("5df3"),i("ac6a"),i("958c")),o=i("0662"),s={props:{trialReadingCriterionId:{type:String,default:""}},data:function(){return{CriterionList:[],QuestionList:[],ReadingQuestionCriterionTrialId:null,btnLoading:!1,loading:!1,index:0,QuestionVisible:!1,activeNames:null,indexA:null,type:null,OtherInfo:{IsSign:!0},JudgyInfo:{}}},watch:{TrialReadingCriterionId:function(e){var t=this;null!==e&&(this.loading=!0,Object(r["T"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(e){t.loading=!1,t.QuestionList=e.Result,t.OtherInfo=e.OtherInfo,t.activeNames=t.QuestionList.map((function(e){return e.ReadingQuestionTrialId})),t.QuestionList.forEach((function(e){t.$set(e,"grouping",[]),t.$set(e,"groupingA",[]),t.$set(e,"groupingB",[]),t.$set(e,"AnswerGroupList",Object.assign([],e.AnswerCombination)),t.$set(e,"AnswerGroup2List",Object.assign([],e.AnswerGroup))}))})).catch((function(){t.btnLoading=!1,t.loading=!1})))}},mounted:function(){this.getList(),this.getTrialJudgyInfo()},methods:{saveAllSync:function(){var e=this;return new Promise((function(t,i){var n=[];e.QuestionList.forEach((function(t,i){n.push(e.applySync(t.ReadingQuestionTrialId,i))})),Promise.all(n).then((function(e){console.log(e),t(!0)})).catch((function(e){console.log("进入catch"),t(!1)}))}))},applySync:function(e,t){var i=this;return new Promise((function(n,a){console.log(i.QuestionList[t].JudgeType),0!==i.QuestionList[t].JudgeType&&(2!==i.QuestionList[t].JudgeType||0!==i.QuestionList[t].AnswerGroup2List.length)&&(3!==i.QuestionList[t].JudgeType||0!==i.QuestionList[t].AnswerGroupList.length)?(i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:i.QuestionList[t].AnswerGroup2List,AnswerCombination:i.QuestionList[t].AnswerGroupList,JudgeType:i.QuestionList[t].JudgeType}).then((function(e){n(),i.btnLoading=!1,i.loading=!1})).catch((function(){a(!1),i.btnLoading=!1,i.loading=!1}))):a(!1)}))},setTrialJudgyInfo:function(){var e=this;this.loading=!0,Object(o["f"])({TrialId:this.$route.query.trialId,ArbitrationRule:this.JudgyInfo.ArbitrationRule,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))},getTrialJudgyInfo:function(){var e=this;this.loading=!0,Object(o["e"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.JudgyInfo=t.Result,e.loading=!1})).catch((function(t){e.loading=!1}))},tagClose2:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg1")).then((function(){i.QuestionList[e].AnswerGroup2List.splice(t,1)}))},tagClose:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg1")).then((function(){i.QuestionList[e].AnswerGroupList.splice(t,1)}))},save:function(){var e=this.selectIndex,t=this.indexA;0!==this.QuestionList[e].groupingA.length?0!==this.QuestionList[e].groupingB.length?("add"===this.type?this.QuestionList[e].AnswerGroupList.push({AnswerGroupA:this.QuestionList[e].groupingA,AnswerGroupB:this.QuestionList[e].groupingB}):(this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupA",this.QuestionList[e].groupingA),this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupB",this.QuestionList[e].groupingB)),this.$set(this.QuestionList[e],"groupingA",[]),this.$set(this.QuestionList[e],"groupingB",[]),this.$message.success(this.$t("trials:adRules:message:msg4")),this.QuestionVisible=!1):this.$message.error(this.$t("trials:adRules:message:msg3")):this.$message.error(this.$t("trials:adRules:message:msg2"))},addGroup2:function(e){if(0!==this.QuestionList[e].grouping.length){var t=this.QuestionList[e].grouping.toString().replaceAll(",","|");this.QuestionList[e].AnswerGroup2List.push("|".concat(t,"|")),this.$set(this.QuestionList[e],"grouping",[])}else this.$message.error(this.$t("trials:adRules:message:msg5"))},addGroup:function(e,t){this.selectIndex=e,this.type="add",null!==t&&(this.indexA=t,this.type="edit",this.$set(this.QuestionList[e],"groupingA",this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),this.$set(this.QuestionList[e],"groupingB",this.QuestionList[e].AnswerGroupList[t].AnswerGroupB)),this.QuestionVisible=!0},reset:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg6")).then((function(){i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:[],AnswerCombination:[],JudgeType:0}).then((function(e){i.$set(i.QuestionList[t],"AnswerGroup2List",[]),i.$set(i.QuestionList[t],"AnswerGroupList",[]),i.$set(i.QuestionList[t],"JudgeType",0),i.$message.success(i.$t("trials:adRules:message:msg7")),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},apply:function(e,t){var i=this;0!==this.QuestionList[t].JudgeType&&(2!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroup2List.length)&&(3!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroupList.length)?(this.btnLoading=!0,this.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:this.QuestionList[t].AnswerGroup2List,AnswerCombination:this.QuestionList[t].AnswerGroupList,JudgeType:this.QuestionList[t].JudgeType}).then((function(e){i.$message.success(i.$t("trials:adRules:message:msg9")),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))):this.$message.error(this.$t("trials:adRules:message:msg8"))},tabClick:function(e){this.ReadingQuestionCriterionTrialId=this.CriterionList[this.index].ReadingQuestionCriterionTrialId},getList:function(){var e=this;this.loading=!0,Object(r["T"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.QuestionList=t.Result,e.OtherInfo=t.OtherInfo,e.activeNames=e.QuestionList.map((function(e){return e.ReadingQuestionTrialId})),e.QuestionList.forEach((function(t){e.$set(t,"grouping",[]),e.$set(t,"groupingA",[]),e.$set(t,"groupingB",[]),e.$set(t,"AnswerGroupList",Object.assign([],t.AnswerCombination)),e.$set(t,"AnswerGroup2List",Object.assign([],t.AnswerGroup))}))})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"31bc":function(e,t,i){},"31d6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"reviewers_stats",staticStyle:{width:"100%",height:"100%",padding:"5px"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c={props:{area:{type:String,default:""}},data:function(){return{myChart:"",data:[],sum:0}},watch:{area:function(){this.myChart&&this.myChart.resize()}},mounted:function(){this.getData()},methods:{initChart:function(e){var t=["#47A2FF ","#53C8D1","#6666CC","#00FFCC"],i={title:{text:"Reviewers",subtext:this.sum,textStyle:{fontSize:Object(l["a"])(.16),color:"#fff"},subtextStyle:{fontSize:Object(l["a"])(.2),color:"#fff"},textAlign:"center",left:"49%",top:"41%"},tooltip:{trigger:"item",formatter:"{a}
    {b}: {c} ({d}%)"},legend:{show:!0,top:"2%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},color:t,series:[{name:"Reviewers",type:"pie",radius:["50%","75%"],center:["50%","50%"],labelLine:{normal:{length:"4%",length2:"2%",lineStyle:{color:"#e6e6e6"}}},label:{normal:{position:"inner",formatter:"{per|{c}}",rich:{a:{color:"#fff",fontSize:11,lineHeight:20,align:"center"},hr:{width:"100%",height:0,alien:"center"},per:{color:"#fff",align:"center",fontSize:Object(l["a"])(.15)}}}},itemStyle:{borderWidth:Object(l["a"])(.3)},data:e}]};this.$refs.reviewers_stats&&(this.myChart=o.a.init(this.$refs.reviewers_stats),this.myChart.setOption(i))},getData:function(){var e=this;Object(s["f"])().then((function(t){if(t.IsSuccess){var i=[];if(t.Result)for(var n=0;n0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Starting And Ending Date","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.StartTime?i("span",[e._v(e._s(t.row.StartTime.split("-")[0])+"-"+e._s(t.row.EndTime?t.row.EndTime.split("-")[0]:"至今"))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{label:"Operation","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleDel(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),e._m(0),e._v(" "),i("div",{staticStyle:{"margin-left":"40px",width:"40%"}},[i("gcp-certificate",{attrs:{"doctor-id":e.doctorId,gcp:e.GCP,"gcp-id":e.GCPID}})],1),e._v(" "),e._m(1),e._v(" "),i("div",{staticStyle:{padding:"0 40px"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.OtherClinicalExperience,callback:function(t){e.OtherClinicalExperience=t},expression:"OtherClinicalExperience"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.OtherClinicalExperienceCN,callback:function(t){e.OtherClinicalExperienceCN=t},expression:"OtherClinicalExperienceCN"}})],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",size:"small",disabled:e.isBtnDisabled||"1"===e.$route.query.ReviewStatus},on:{click:e.handleSaveOtherClinical}},[e._v("Save")])],1),e._v(" "),e.clinicalTrialDialogVisible?i("el-dialog",{attrs:{title:e.clinicalTrialDialogTitle,visible:e.clinicalTrialDialogVisible,width:"480px","close-on-click-modal":!1},on:{"update:visible":function(t){e.clinicalTrialDialogVisible=t}}},[i("el-form",{ref:"clinicalTrialForm",staticClass:"demo-ruleForm",attrs:{"label-width":"150px",rules:e.clinicalTrialRules,model:e.clinicalTrialForm,size:"small"}},[i("el-form-item",{attrs:{label:"Phase",prop:"PhaseId"}},[i("el-select",{attrs:{placeholder:"Please select"},model:{value:e.clinicalTrialForm.PhaseId,callback:function(t){e.$set(e.clinicalTrialForm,"PhaseId",t)},expression:"clinicalTrialForm.PhaseId"}},e._l(e.dictionaryList.Trial_Phase,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Review Criteria",prop:"EvaluationCriteriaIdList"}},[i("el-select",{attrs:{placeholder:"Please select",multiple:""},model:{value:e.clinicalTrialForm.EvaluationCriteriaIdList,callback:function(t){e.$set(e.clinicalTrialForm,"EvaluationCriteriaIdList",t)},expression:"clinicalTrialForm.EvaluationCriteriaIdList"}},e._l(e.dictionaryList.ReadingStandard,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Start Time",prop:"StartTime"}},[i("el-date-picker",{attrs:{type:"year",placeholder:"Select Start Time"},model:{value:e.clinicalTrialForm.StartTime,callback:function(t){e.$set(e.clinicalTrialForm,"StartTime",t)},expression:"clinicalTrialForm.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"End Time",prop:"EndTime"}},[i("el-date-picker",{attrs:{type:"year",placeholder:"Select End Time"},model:{value:e.clinicalTrialForm.EndTime,callback:function(t){e.$set(e.clinicalTrialForm,"EndTime",t)},expression:"clinicalTrialForm.EndTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Visit Reading Count",prop:"VisitReadingCount"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{oninput:"value=value.replace(/[^\\d]/g,'')","controls-position":"right",min:0},model:{value:e.clinicalTrialForm.VisitReadingCount,callback:function(t){e.$set(e.clinicalTrialForm,"VisitReadingCount",t)},expression:"clinicalTrialForm.VisitReadingCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication",prop:"EvaluationContent"}},[i("el-input",{model:{value:e.clinicalTrialForm.EvaluationContent,callback:function(t){e.$set(e.clinicalTrialForm,"EvaluationContent",t)},expression:"clinicalTrialForm.EvaluationContent"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"small",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1):e._e()],1)},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-wrapper",staticStyle:{"margin-top":"10px"}},[i("p",[e._v("GCP Certificate")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-wrapper",staticStyle:{"margin-top":"10px"}},[i("p",[e._v("Other Relevant Experience")])])}],r=(i("20d6"),i("db72")),o=(i("96cf"),i("3b8d")),s=i("33ba"),l=i("86a6"),c=i("642b"),u=function(){return{PhaseId:"",EvaluationCriteriaIdList:[],EvaluationContent:"",VisitReadingCount:0,StartTime:null,EndTime:null}},d={name:"TrialExperience",components:{GcpCertificate:c["default"]},data:function(){return{loading:!1,clinicalTrialList:[],clinicalTrialDialogTitle:"",clinicalTrialDialogVisible:!1,clinicalTrialForm:u(),clinicalTrialRules:{PhaseId:[{required:!0,message:"Please select",trigger:["blur","change"]}],EvaluationCriteriaIdList:[{required:!0,message:"Please select",trigger:["blur","change"]}],VisitReadingCount:[{required:!0,message:"Please specify",trigger:"blur"}],EvaluationContent:[{required:!0,message:"Please specify",trigger:"blur"},{max:300,message:"The maximum length is 300"}],StartTime:[{required:!0,message:"Please specify",trigger:"blur"}]},GCP:0,GCPID:"",OtherClinicalExperience:"",OtherClinicalExperienceCN:"",isDisabled:!1,doctorId:this.$route.query.Id,isBtnDisabled:!1,selectId:"00000000-0000-0000-0000-000000000000",dictionaryList:{}}},created:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:t=this.$route.query.Id,t&&(this.loading=!0,Object(s["y"])(t).then((function(e){i.clinicalTrialList=e.Result.ClinicalTrialExperienceList,i.GCP=e.Result.GCP,i.GCPID=e.Result.GCPId,i.OtherClinicalExperience=e.Result.OtherClinicalExperience,i.OtherClinicalExperienceCN=e.Result.OtherClinicalExperienceCN,i.loading=!1})).catch((function(){i.loading=!1})));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Trial_Phase","ReadingStandard"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)}))},handleAddClinicalTrial:function(){this.clinicalTrialDialogTitle="New",this.clinicalTrialDialogVisible=!0,this.clinicalTrialForm.Id=null,this.clinicalTrialForm=Object.assign({},u())},handleEdit:function(e){var t=e.Id,i=e.PhaseId,n=e.EvaluationCriteriaIdList,a=e.EvaluationContent,r=e.StartTime,o=e.EndTime,s=e.VisitReadingCount;this.clinicalTrialForm=Object.assign({},u()),this.clinicalTrialDialogTitle="Edit",this.clinicalTrialDialogVisible=!0,this.clinicalTrialForm.Id=t,this.clinicalTrialForm.StartTime=r,this.clinicalTrialForm.EndTime=o,this.clinicalTrialForm.PhaseId=i,this.clinicalTrialForm.VisitReadingCount=s,this.clinicalTrialForm.EvaluationCriteriaIdList=n,this.clinicalTrialForm.EvaluationContent=a},handleSave:function(){var e=this;this.$refs.clinicalTrialForm.validate((function(t){var i;t&&(e.isDisabled=!0,e.clinicalTrialForm.DoctorId=e.$route.query.Id,e.clinicalTrialForm.StartTime&&(i=new Date(e.clinicalTrialForm.StartTime),e.clinicalTrialForm.StartTime=new Date(i.setDate(i.getDate()+1))),e.clinicalTrialForm.EndTime&&(i=new Date(e.clinicalTrialForm.EndTime),e.clinicalTrialForm.EndTime=new Date(i.setDate(i.getDate()+1))),Object(s["f"])(e.clinicalTrialForm).then((function(t){e.isDisabled=!1,e.initForm(),e.clinicalTrialForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.clinicalTrialDialogVisible=!1})).catch((function(){e.isDisabled=!1})))}))},handleDel:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(s["k"])(e.Id).then((function(i){t.clinicalTrialList.splice(t.clinicalTrialList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))},handleSaveOtherClinical:function(){var e=this,t={DoctorId:this.doctorId,OtherClinicalExperience:this.OtherClinicalExperience,OtherClinicalExperienceCN:this.OtherClinicalExperienceCN};Object(s["E"])(t).then((function(t){t.IsSuccess&&(e.id?e.$message.success("Updated successfully"):e.$message.success("Addedd successfully"))}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"32a1":function(e,t,i){var n=i("6d8b"),a=i("7dcf"),r=i("ef6a"),o=i("5576"),s=n.bind,l=a.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,i,a){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),n.each(this.getTargetCoordInfo(),(function(t,a){var r=n.map(t,(function(e){return o.generateCoordId(e.model)}));n.each(t,(function(t){var l=t.model,u={};n.each(["pan","zoom","scrollMove"],(function(e){u[e]=s(c[e],this,t,a)}),this),o.register(i,{coordId:o.generateCoordId(l),allCoordIds:r,containsPoint:function(e,t,i){return l.coordinateSystem.containPoint([t,i])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,i,n){var a=this._range,o=a.slice(),s=e.axisModels[0];if(s){var l=d[t](null,[n.originX,n.originY],s,i,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-c)*u+c,o[1]=(o[1]-c)*u+c;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,o,[0,100],0,f.minSpan,f.maxSpan),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:u((function(e,t,i,n,a,r){var o=d[n]([r.oldX,r.oldY],[r.newX,r.newY],t,a,i);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:u((function(e,t,i,n,a,r){var o=d[n]([0,0],[r.scrollDelta,r.scrollDelta],t,a,i);return o.signal*(e[1]-e[0])*r.scrollDelta}))};function u(e){return function(t,i,n,a){var o=this._range,s=o.slice(),l=t.axisModels[0];if(l){var c=e(s,l,t,i,n,a);return r(c,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var d={grid:function(e,t,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(e,t,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=r.inverse?-1:1),o},singleAxis:function(e,t,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},f=l;e.exports=f},"32af":function(e,t,i){"use strict";i("ce01")},"32f6":function(e,t,i){"use strict";i("ffe7")},"32fb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"170px",rules:e.rules,model:e.form}},[i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Doctor ID: ",prop:"Id"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.ReviewerCode))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Name: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.LastName+e.form.FirstName))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Name CN: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.ChineseName))])],1),e._v(" "),i("el-form-item",{attrs:{label:"Dispaly All: "}},[i("el-switch",{model:{value:e.isDispaly,callback:function(t){e.isDispaly=t},expression:"isDispaly"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Training,callback:function(t){e.$set(e.form,"Training",t)},expression:"form.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.RefresherTraining,callback:function(t){e.$set(e.form,"RefresherTraining",t)},expression:"form.RefresherTraining"}})],1),e._v(" "),!e.isDispaly&&0==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint,callback:function(t){e.$set(e.form,"Timepoint",t)},expression:"form.Timepoint"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"Timepoint48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint48H,callback:function(t){e.$set(e.form,"Timepoint48H",t)},expression:"form.Timepoint48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"Timepoint24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint24H,callback:function(t){e.$set(e.form,"Timepoint24H",t)},expression:"form.Timepoint24H"}})],1):e._e(),e._v(" "),!e.isDispaly&&0==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication,callback:function(t){e.$set(e.form,"Adjudication",t)},expression:"form.Adjudication"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"Adjudication48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication48H,callback:function(t){e.$set(e.form,"Adjudication48H",t)},expression:"form.Adjudication48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"Adjudication24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication24H,callback:function(t){e.$set(e.form,"Adjudication24H",t)},expression:"form.Adjudication24H"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Global,callback:function(t){e.$set(e.form,"Global",t)},expression:"form.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Downtime,callback:function(t){e.$set(e.form,"Downtime",t)},expression:"form.Downtime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("6b95"),o=/^([1-9]\d*(\.\d+)?|0)$/,s={props:{form:{type:Object,default:function(){return{}}}},data:function(){return{rules:{Training:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],RefresherTraining:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Global:[{required:!0,trigger:["blur","change"]},{pattern:o,message:"Please specify a number greater than 0"}]},isDispaly:!1,btnDisabled:!1}},methods:{handleSave:function(){var e=this;this.$refs.revenusForm.validate((function(t){t&&(e.btnDisabled=!0,Object(r["a"])(e.form).then((function(t){t.IsSuccess&&(e.$emit("getList",{TrialId:e.form.TrialId}),e.$message.success("Updated successfully!"),e.$emit("closeDialog"))})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},3301:function(e,t,i){var n=i("6d8b"),a=i("6179"),r=i("b1d4"),o=i("93d0"),s=o.SOURCE_FORMAT_ORIGINAL,l=i("2f45"),c=l.getDimensionTypeByAxis,u=i("e0d3"),d=u.getDataItemValue,f=i("2039"),h=i("8b7f"),p=h.getCoordSysInfoBySeries,m=i("ec6f"),g=i("ee1a"),v=g.enableDataStack,b=i("0f99"),y=b.makeSeriesEncodeForAxisCoordSys;function w(e,t,i){i=i||{},m.isInstance(e)||(e=m.seriesDataToSource(e));var o,s=t.get("coordinateSystem"),l=f.get(s),u=p(t);u&&(o=n.map(u.coordSysDims,(function(e){var t={name:e},i=u.axisMap.get(e);if(i){var n=i.get("type");t.type=c(n)}return t}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var d,h,g=r(e,{coordDimensions:o,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(y,o,t):null});u&&n.each(g,(function(e,t){var i=e.coordDim,n=u.categoryAxisMap.get(i);n&&(null==d&&(d=t),e.ordinalMeta=n.getOrdinalMeta()),null!=e.otherDims.itemName&&(h=!0)})),h||null==d||(g[d].otherDims.itemName=0);var b=v(t,g),w=new a(g,t);w.setCalculationInfo(b);var I=null!=d&&_(e)?function(e,t,i,n){return n===d?i:this.defaultDimValueGetter(e,t,i,n)}:null;return w.hasItemOption=!1,w.initData(e,null,I),w}function _(e){if(e.sourceFormat===s){var t=I(e.data||[]);return null!=t&&!n.isArray(d(t))}}function I(e){var t=0;while(t0?1:o<0?-1:0}function y(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function w(e,t,i,n,r,o,s,l,u,d){var f=u.valueDim,h=u.categoryDim,p=Math.abs(i[h.wh]),m=e.getItemVisual(t,"symbolSize");a.isArray(m)?m=m.slice():(null==m&&(m="100%"),m=[m,m]),m[h.index]=c(m[h.index],p),m[f.index]=c(m[f.index],n?p:Math.abs(o)),d.symbolSize=m;var g=d.symbolScale=[m[0]/l,m[1]/l];g[f.index]*=(u.isHorizontal?-1:1)*s}function _(e,t,i,n,a){var r=e.get(h)||0;r&&(m.attr({scale:t.slice(),rotation:i}),m.updateTransform(),r/=m.getLineScale(),r*=t[n.valueDim.index]),a.valueLineWidth=r}function I(e,t,i,n,r,o,s,l,d,f,h,p){var m=h.categoryDim,g=h.valueDim,v=p.pxSign,b=Math.max(t[g.index]+l,0),y=b;if(n){var w=Math.abs(d),_=a.retrieve(e.get("symbolMargin"),"15%")+"",I=!1;_.lastIndexOf("!")===_.length-1&&(I=!0,_=_.slice(0,_.length-1)),_=c(_,t[g.index]);var x=Math.max(b+2*_,0),S=I?0:2*_,T=u(n),C=T?n:j((w+S)/x),k=w-C*b;_=k/2/(I?C:C-1),x=b+2*_,S=I?0:2*_,T||"fixed"===n||(C=f?j((Math.abs(f)+S)/x):0),y=C*x-S,p.repeatTimes=C,p.symbolMargin=_}var R=v*(y/2),D=p.pathPosition=[];D[m.index]=i[m.wh]/2,D[g.index]="start"===s?R:"end"===s?d-R:d/2,o&&(D[0]+=o[0],D[1]+=o[1]);var L=p.bundlePosition=[];L[m.index]=i[m.xy],L[g.index]=i[g.xy];var O=p.barRectShape=a.extend({},i);O[g.wh]=v*Math.max(Math.abs(i[g.wh]),Math.abs(D[g.index]+R)),O[m.wh]=i[m.wh];var $=p.clipShape={};$[m.xy]=-i[m.xy],$[m.wh]=h.ecSize[m.wh],$[g.xy]=0,$[g.wh]=i[g.wh]}function x(e){var t=e.symbolPatternSize,i=s(e.symbolType,-t/2,-t/2,t,t,e.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function S(e,t,i,n){var a=e.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=t.valueDim,c=i.repeatTimes||0,u=0,d=r[t.valueDim.index]+o+2*i.symbolMargin;for(E(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:n<0)&&(a=c-1-e),t[l.index]=d*(a-c/2+.5)+s[l.index],{position:t,scale:i.symbolScale.slice(),rotation:i.rotation}}function m(){E(e,(function(e){e.trigger("emphasis")}))}function g(){E(e,(function(e){e.trigger("normal")}))}}function T(e,t,i,n){var a=e.__pictorialBundle,r=e.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}r?M(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=e.__pictorialMainPath=x(i),a.add(r),M(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",o).on("mouseout",s)),O(r,i)}function C(e,t,i){var n=a.extend({},t.barRectShape),o=e.__pictorialBarRect;o?M(o,null,{shape:n},t,i):(o=e.__pictorialBarRect=new r.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(o))}function k(e,t,i,n){if(i.symbolClip){var o=e.__pictorialClipPath,s=a.extend({},i.clipShape),l=t.valueDim,c=i.animationModel,u=i.dataIndex;if(o)r.updateProps(o,{shape:s},c,u);else{s[l.wh]=0,o=new r.Rect({shape:s}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var d={};d[l.wh]=i.clipShape[l.wh],r[n?"updateProps":"initProps"](o,{shape:d},c,u)}}}function R(e,t){var i=e.getItemModel(t);return i.getAnimationDelayParams=D,i.isAnimationEnabled=L,i}function D(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function O(e,t){e.off("emphasis").off("normal");var i=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function $(e,t,i,n){var a=new r.Group,o=new r.Group;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?S(a,t,i):T(a,t,i),C(a,i,n),k(a,t,i,n),a.__pictorialShapeStr=P(e,i),a.__pictorialSymbolMeta=i,a}function N(e,t,i){var n=i.animationModel,a=i.dataIndex,o=e.__pictorialBundle;r.updateProps(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?S(e,t,i,!0):T(e,t,i,!0),C(e,i,!0),k(e,t,i,!0)}function A(e,t,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var s=[];E(n,(function(e){s.push(e)})),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),a.each(s,(function(e){r.updateProps(e,{scale:[0,0]},i,t,(function(){n.parent&&n.parent.remove(n)}))})),e.setItemGraphicEl(t,null)}function P(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function E(e,t,i){a.each(e.__pictorialBundle.children(),(function(n){n!==e.__pictorialBarRect&&t.call(i,n)}))}function M(e,t,i,n,a,o){t&&e.attr(t),n.symbolClip&&!a?i&&e.attr(i):i&&r[a?"updateProps":"initProps"](e,i,n.animationModel,n.dataIndex,o)}function F(e,t,i){var n=i.color,o=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");E(e,(function(e){e.setColor(n),e.setStyle(a.defaults({fill:n,opacity:i.opacity},l)),r.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=i.z2}));var d={},h=t.valueDim.posDesc[+(i.boundingLength>0)],p=e.__pictorialBarRect;f(p.style,d,s,n,t.seriesModel,o,h),r.setHoverStyle(p,d)}function j(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var V=g;e.exports=V},3339:function(e,t,i){"use strict";function n(e){return Math.floor(e)===e}function a(e){var t={times:1,num:0};if(n(e))return t.num=e,t;var i=e+"",a=i.indexOf("."),r=i.substr(a+1).length,o=Math.pow(10,r),s=parseInt(e*o+.5,10);return t.times=o,t.num=s,t}function r(e,t,i){var n=a(e),r=a(t),o=n.num,s=r.num,l=n.times,c=r.times,u=l>c?l:c,d=null;switch(i){case"add":return d=l===c?o+s:l>c?o+s*(l/c):o*(c/l)+s,d/u;case"subtract":return d=l===c?o-s:l>c?o-s*(l/c):o*(c/l)-s,d/u;case"multiply":return d=o*s/(l*c),d;case"divide":return d=o/s*(c/l),d}}function o(e,t){return r(e,t,"add")}function s(e,t){return r(e,t,"subtract")}function l(e,t){return r(e,t,"multiply")}function c(e,t){return r(e,t,"divide")}t["a"]={add:o,subtract:s,multiply:l,divide:c}},"333d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total,"pager-count":5},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))},a=[];i("c5f6");Math.easeInOutQuad=function(e,t,i,n){return e/=n/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,i){var n=s(),a=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var s=Math.easeInOutQuad(c,n,a,t);o(s),c0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"33ba":function(e,t,i){"use strict";i.d(t,"s",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"p",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"v",(function(){return l})),i.d(t,"C",(function(){return c})),i.d(t,"x",(function(){return u})),i.d(t,"F",(function(){return d})),i.d(t,"u",(function(){return f})),i.d(t,"c",(function(){return h})),i.d(t,"i",(function(){return p})),i.d(t,"d",(function(){return m})),i.d(t,"j",(function(){return g})),i.d(t,"w",(function(){return v})),i.d(t,"e",(function(){return b})),i.d(t,"y",(function(){return y})),i.d(t,"f",(function(){return w})),i.d(t,"k",(function(){return _})),i.d(t,"E",(function(){return I})),i.d(t,"D",(function(){return x})),i.d(t,"o",(function(){return S})),i.d(t,"B",(function(){return T})),i.d(t,"z",(function(){return C})),i.d(t,"g",(function(){return k})),i.d(t,"l",(function(){return R})),i.d(t,"m",(function(){return D})),i.d(t,"q",(function(){return L})),i.d(t,"t",(function(){return O})),i.d(t,"a",(function(){return $})),i.d(t,"h",(function(){return N})),i.d(t,"r",(function(){return A})),i.d(t,"A",(function(){return P})),i.d(t,"G",(function(){return E}));var n=i("b775");function a(e){return Object(n["a"])({url:"/doctorList/getDoctorSearchList",method:"post",data:e})}function r(e,t){return Object(n["a"])({url:"/file/downloadOfficialCV/".concat(t),method:"post",data:e})}function o(e){return Object(n["a"])({url:"/doctor/getBasicInfo/".concat(e),method:"get"})}function s(e){return Object(n["a"])({url:"/doctor/addOrUpdateDoctorBasicInfo",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/doctor/getEmploymentInfo/".concat(e),method:"get"})}function c(e){return Object(n["a"])({url:"/doctor/updateEmploymentInfo",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/doctor/getSpecialtyInfo/".concat(e),method:"get"})}function d(e){return Object(n["a"])({url:"/doctor/updateSpecialtyInfo",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/education/getEducation/".concat(e),method:"get"})}function h(e){return Object(n["a"])({url:"/education/addOrUpdateEducationInfo",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/education/deleteEducationInfo/".concat(e),method:"delete"})}function m(e){return Object(n["a"])({url:"/education/addOrUpdatePostgraduateInfo",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/education/deletePostgraduateInfo/".concat(e),method:"delete"})}function v(e){return Object(n["a"])({url:"/researchPublication/getResearchPublication/".concat(e),method:"get"})}function b(e){return Object(n["a"])({url:"/researchPublication/addOrUpdateResearchPublication",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/trialExperience/getTrialExperience/".concat(e),method:"get"})}function w(e){return Object(n["a"])({url:"/trialExperience/addOrUpdateTrialExperience",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/trialExperience/deleteTrialExperience/".concat(e),method:"delete"})}function I(e){return Object(n["a"])({url:"/trialExperience/updateOtherExperience",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/trialExperience/updateGcpExperience",method:"post",data:e})}function S(e){return Object(n["a"])({url:"/doctor/getAuditState/".concat(e),method:"get"})}function T(e){return Object(n["a"])({url:"/doctor/updateAuditResume",method:"post",data:e})}function C(e,t,i){return Object(n["a"])({url:"/vacation/getVacationList/".concat(e,"/").concat(t,"/").concat(i),method:"get"})}function k(e){return Object(n["a"])({url:"/vacation/addOrUpdateVacation",method:"post",data:e})}function R(e){return Object(n["a"])({url:"/vacation/deleteVacation/".concat(e),method:"delete"})}function D(e,t){var i={attachmentIds:t};return Object(n["a"])({url:"/file/downloadByAttachmentId/".concat(e),method:"post",data:i})}function L(e){return Object(n["a"])({url:"/doctor/getDetail/".concat(e),method:"get"})}function O(e){return Object(n["a"])({url:"/trial/getReviewerTrialListByEnrollmentStatus",method:"post",data:e})}function $(e){return Object(n["a"])({url:"/Doctor/addDoctorCriterionFile",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/Doctor/deleteDoctorCriterionFile",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/Doctor/getDoctorCriterionFile",method:"post",data:e})}function P(e){return Object(n["a"])({url:"/TrialSiteSurvey/sendEmialVerifyCode",method:"post",data:e})}function E(e){return Object(n["a"])({url:"/TrialSiteSurvey/verifyEmialGetDoctorInfo",method:"post",data:e})}},"33e1":function(e,t,i){"use strict";var n;i.d(t,"a",(function(){return n})),function(e){e[e["Trace"]=0]="Trace",e[e["Debug"]=1]="Debug",e[e["Information"]=2]="Information",e[e["Warning"]=3]="Warning",e[e["Error"]=4]="Error",e[e["Critical"]=5]="Critical",e[e["None"]=6]="None"}(n||(n={}))},3407:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:"阅片标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("667d"),u=3,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"340c":function(e,t,i){"use strict";i("1336")},"340d":function(e,t,i){var n=i("6d8b"),a=i("e887"),r=i("4e47"),o=i("80f0"),s=i("eda2"),l=s.windowOpen,c="sunburstRootToNode",u=a.extend({type:"sunburst",init:function(){},render:function(e,t,i,a){var s=this;this.seriesModel=e,this.api=i,this.ecModel=t;var l=e.getData(),c=l.tree.root,u=e.getViewRoot(),d=this.group,f=e.get("renderLabelForZeroData"),h=[];u.eachNode((function(e){h.push(e)}));var p=this._oldChildren||[];if(v(h,p),w(c,u),a&&a.highlight&&a.highlight.piece){var m=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(m)}else if(a&&a.unhighlight){var g=this.virtualPiece;!g&&c.children.length&&(g=c.children[0].piece),g&&g.onNormal()}function v(e,t){function i(e){return e.getId()}function a(i,n){var a=null==i?null:e[i],r=null==n?null:t[n];b(a,r)}0===e.length&&0===t.length||new o(t,e,i,i).add(a).update(a).remove(n.curry(a,null)).execute()}function b(i,n){if(f||!i||i.getValue()||(i=null),i!==c&&n!==c)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",e,t),l.setItemGraphicEl(i.dataIndex,n.piece)):y(n);else if(i){var a=new r(i,e,t);d.add(a),l.setItemGraphicEl(i.dataIndex,a)}}function y(e){e&&e.piece&&(d.remove(e.piece),e.piece=null)}function w(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",e,t):(s.virtualPiece=new r(i,e,t),d.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var a=function(e){s._rootToNode(n.parentNode)};n.piece._onclickEvent=a,s.virtualPiece.on("click",a)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===t.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";l(o,s)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var a=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(a*a+r*r);return o<=n.r&&o>=n.r0}}}),d=u;e.exports=d},"341e":function(e,t,i){},"342d":function(e,t,i){var n=i("cbe5"),a=i("20c8"),r=i("ee84"),o=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},d=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},f=function(e,t){return(e[0]*t[1]1&&(u*=o(w),h*=o(w));var _=(a===r?-1:1)*o((u*u*(h*h)-u*u*(y*y)-h*h*(b*b))/(u*u*(y*y)+h*h*(b*b)))||0,I=_*u*y/h,x=_*-h*b/u,S=(e+i)/2+l(v)*I-s(v)*x,T=(t+n)/2+s(v)*I+l(v)*x,C=f([1,0],[(b-I)/u,(y-x)/h]),k=[(b-I)/u,(y-x)/h],R=[(-1*b-I)/u,(-1*y-x)/h],D=f(k,R);d(k,R)<=-1&&(D=c),d(k,R)>=1&&(D=0),0===r&&D>0&&(D-=2*c),1===r&&D<0&&(D+=2*c),g.addData(m,S,T,u,h,C,D,v,r)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e){if(!e)return new a;for(var t,i=0,n=0,r=i,o=n,s=new a,l=a.CMD,c=e.match(p),u=0;u=0||"+"===i?"left":"right"},u={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:b/2},f="vertical"===n?a.height:a.width,h=e.getModel("controlStyle"),p=h.get("show",!0),m=p?h.get("itemSize"):0,g=p?h.get("itemGap"):0,v=m+g,y=e.get("label.rotate")||0;y=y*b/180;var _=h.get("position",!0),I=p&&h.get("showPlayBtn",!0),x=p&&h.get("showPrevBtn",!0),S=p&&h.get("showNextBtn",!0),T=0,C=f;return"left"===_||"bottom"===_?(I&&(r=[0,0],T+=v),x&&(o=[T,0],T+=v),S&&(s=[C-m,0],C-=v)):(I&&(r=[C-m,0],C-=v),x&&(o=[0,0],T+=v),S&&(s=[C-m,0],C-=v)),l=[T,C],e.get("inverse")&&l.reverse(),{viewRect:a,mainLength:f,orient:n,rotation:d[n],labelRotation:y,labelPosOpt:i,labelAlign:e.get("label.align")||c[n],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:g}},_position:function(e,t){var i=this._mainGroup,n=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var o=r.create(),s=a.x,l=a.y+a.height;r.translate(o,o,[-s,-l]),r.rotate(o,o,-b/2),r.translate(o,o,[s,l]),a=a.clone(),a.applyTransform(o)}var c=v(a),u=v(i.getBoundingRect()),d=v(n.getBoundingRect()),f=i.position,h=n.position;h[0]=f[0]=c[0][0];var p=e.labelPosOpt;if(isNaN(p)){var m="+"===p?0:1;y(f,u,c,1,m),y(h,d,c,1,1-m)}else{m=p>=0?0:1;y(f,u,c,1,m),h[1]=f[1]+p}function g(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,i,n,a){e[n]+=i[n][a]-t[n][a]}i.attr("position",f),n.attr("position",h),i.rotation=n.rotation=e.rotation,g(i),g(n)},_createAxis:function(e,t){var i=t.getData(),n=t.get("axisType"),a=f.createScaleByModel(t,n);a.getTicks=function(){return i.mapArray(["value"],(function(e){return e}))};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new c("value",a,e.axisExtent,n);return o.model=t,o},_createGroup:function(e){var t=this["_"+e]=new o.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,i,a){var r=i.getExtent();a.get("lineStyle.show")&&t.add(new o.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:n.extend({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,i,n){var a=n.getData(),r=i.scale.getTicks();v(r,(function(e){var r=i.dataToCoord(e),s=a.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[r,0],onclick:g(this._changeTimeline,this,e)},d=I(s,l,t,u);o.setHoverStyle(d,c.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=n):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(e,t,i,n){var a=i.getLabelModel();if(a.get("show")){var r=n.getData(),s=i.getViewLabels();v(s,(function(n){var a=n.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),d=new o.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:g(this._changeTimeline,this,a),silent:!1});o.setTextStyle(d.style,l,{text:n.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),o.setHoverStyle(d,o.setTextStyle({},c))}),this)}},_renderControl:function(e,t,i,n){var a=e.controlSize,r=e.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-a/2,a,a],u=n.getPlayState(),d=n.get("inverse",!0);function f(e,i,u,d){if(e){var f={position:e,origin:[a/2,0],rotation:d?-r:0,rectHover:!0,style:s,onclick:u},h=_(n,i,c,f);t.add(h),o.setHoverStyle(h,l)}}f(e.nextBtnPosition,"controlStyle.nextIcon",g(this._changeTimeline,this,d?"-":"+")),f(e.prevBtnPosition,"controlStyle.prevIcon",g(this._changeTimeline,this,d?"+":"-")),f(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),g(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=g(s._handlePointerDrag,s),e.ondragend=g(s._handlePointerDragend,s),x(e,r,i,n,!0)},onUpdate:function(e){x(e,r,i,n)}};this._currentPointer=I(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var i=this._toAxisCoord(e)[0],n=this._axis,a=h.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),i0&&void 0!==arguments[0])||arguments[0];return new Promise((function(i,n){e.$refs["readingRulesForm"].validate((function(n){n?(e.loading=!0,1===e.form.ReadingType&&(e.form.IsArbitrationReading=!1),e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(r["Ie"])(e.form).then((function(n){e.loading=!1,e.$emit("reloadArbitrationRules"),e.$emit("setArbitrationReading",e.form.IsArbitrationReading),e.$emit("setIsClinicalReading",e.form.IsClinicalReading),e.$emit("setGlobalReading",e.form.IsGlobalReading),e.$emit("setOncologyReading",e.form.IsOncologyReading),e.$emit("setDigitPlaces",e.form.DigitPlaces),1===e.form.ReadingType&&e.$emit("setArbitrationReading",!1),n.IsSuccess&&t&&e.$message.success(e.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(t){e.loading=!1,i(!1)}))):i(!1)}))}))}}},s=o,l=(i("51df"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"2244477a",null);t["default"]=c.exports},35615:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},3577:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"NoticeForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"通知级别: ",prop:"NoticeLevelEnum"}},[i("el-select",{attrs:{placeholder:"通知级别",clearable:"",size:"small"},model:{value:e.form.NoticeLevelEnum,callback:function(t){e.$set(e.form,"NoticeLevelEnum",t)},expression:"form.NoticeLevelEnum"}},e._l(e.dict.type.NoteLevel,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"通知类型: ",prop:"NoticeTypeEnum"}},[i("el-select",{attrs:{placeholder:"通知类型",clearable:"",size:"small"},model:{value:e.form.NoticeTypeEnum,callback:function(t){e.$set(e.form,"NoticeTypeEnum",t)},expression:"form.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用项目: ",prop:"ApplicableProjectEnum"}},[i("el-select",{attrs:{placeholder:"适用项目",clearable:"",size:"small"},model:{value:e.form.ApplicableProjectEnum,callback:function(t){e.$set(e.form,"ApplicableProjectEnum",t)},expression:"form.ApplicableProjectEnum"}},e._l(e.dict.type.NoticeApplicableTrial,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用角色: ",prop:"NoticeUserTypeIdList"}},[i("el-select",{attrs:{multiple:"",placeholder:"使用角色",clearable:"",size:"small"},model:{value:e.form.NoticeUserTypeIdList,callback:function(t){e.$set(e.form,"NoticeUserTypeIdList",t)},expression:"form.NoticeUserTypeIdList"}},e._l(e.roleList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"提醒方式: ",prop:"NoticeModeEnum"}},[i("el-select",{attrs:{placeholder:"提醒方式",clearable:"",size:"small"},model:{value:e.form.NoticeModeEnum,callback:function(t){e.$set(e.form,"NoticeModeEnum",t)},expression:"form.NoticeModeEnum"}},e._l(e.dict.type.NoticeMode,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"开始时间: ",prop:"Code"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"选择开始时间"},model:{value:e.form.StartDate,callback:function(t){e.$set(e.form,"StartDate",t)},expression:"form.StartDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"结束时间: ",prop:"Code"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"选择结束时间"},model:{value:e.form.EndDate,callback:function(t){e.$set(e.form,"EndDate",t)},expression:"form.EndDate"}})],1),e._v(" "),e.form.Id?e._e():i("el-form-item",{attrs:{label:"是否发布: ",prop:"Code"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsPush,callback:function(t){e.$set(e.form,"IsPush",t)},expression:"form.IsPush"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"通知内容: ",prop:"NoticeContent"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.NoticeContent,callback:function(t){e.$set(e.form,"NoticeContent",t)},expression:"form.NoticeContent"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"附件: "}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("7f7f"),i("8b29")),s=i("7eeb"),l=function(){return{Id:null,NoticeLevelEnum:null,NoticeTypeEnum:null,NoticeContent:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:0,StartDate:null,EndDate:null,FileName:null,Path:null,IsPush:!1,NoticeUserTypeIdList:[]}},c={components:{BaseModel:s["default"]},props:{roleList:{type:Array,default:function(){return[]}}},dicts:["NoticeApplicableTrial","NoteLevel","NoteType","NoticeState","NoticeMode"],data:function(){return{btnLoading:!1,form:l(),rules:{NoticeLevelEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeTypeEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeContent:[{required:!0,message:"Please specify",trigger:"blur"}],ApplicableProjectEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeModeEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeUserTypeIdList:[{required:!0,message:"Please specify",trigger:"blur"}]},fileList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{handleRemoveFile:function(){this.form.FileName=null,this.form.Path=null,this.fileList=[]},beforeUpload:function(){this.fileList.length>0&&this.$message.error("最多只能传一个附件")},handlePreview:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(o["c"])(i).then((function(i){t.form.Path=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,this.fileList=[],Object.keys(t).length?(this.form=Object(r["a"])({},t),this.form.FileName&&(this.fileList[0]={name:this.form.FileName,path:this.form.FilePath,fullPath:this.form.FullFilePath}),this.$set(this.form,"NoticeUserTypeIdList",this.form.NoticeUserTypeList.map((function(e){return e.Id})))):this.form=l()},handleSave:function(){var e=this;this.$refs.NoticeForm.validate((function(t){!e.form.Id&&e.form.IsPush&&(e.form.NoticeStateEnum=1),t&&(e.form.StartDate=e.form.StartDate?e.parseTime(e.form.StartDate):null,e.form.EndDate=e.parseTime(e.form.EndDate)?e.parseTime(e.form.EndDate):null,e.btnLoading=!0,Object(o["a"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"35dd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"questions",staticStyle:{width:"600px"},attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("div",{key:t.id},[i("div",{staticStyle:{"font-weight":"bold",padding:"5px 0"}},[e._v(e._s(t.group))]),e._v(" "),e._l(t.questions,(function(t){return i("FormItem",{key:t.id,attrs:{question:t,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})}))],2)})),e._v(" "),i("el-form-item",[i("el-button",[e._v("取消")]),e._v(" "),i("el-button",{on:{click:e.submit}},[e._v("提交")])],1)],2)],1)},a=[],r=i("bd41"),o={name:"Home",components:{FormItem:r["default"]},data:function(){return{questions:[{id:"01",group:"图像质量",questions:[{id:"001",parentId:"",question:"问题1",type:"select",typeValue:"A|B|C",value:"",isRequired:!0,childrens:[{id:"002",parentId:"001",triggleValue:"A",question:"问题1.1",type:"input",typeValue:"",value:"",childrens:[]}]}]},{id:"02",group:"质控问题",questions:[{id:"003",parentId:"",question:"问题2",type:"radio",typeValue:"Yes|No",value:"",childrens:[{id:"004",parentId:"003",triggleValue:"Yes",question:"问题2.1",type:"input",typeValue:"",value:"",childrens:[]},{id:"005",parentId:"003",triggleValue:"No",question:"问题2.2",type:"radio",typeValue:"是|否",value:"",childrens:[{id:"006",parentId:"005",triggleValue:"是",question:"问题2.2.1",type:"input",typeValue:"",value:"",childrens:[]},{id:"007",parentId:"005",triggleValue:"否",question:"问题2.2.2",type:"input",typeValue:"",value:"",childrens:[]}]}]}]}],questionForm:{"001":"","002":"","003":"","004":"","005":"","006":"","007":""}}},methods:{submit:function(){this.$refs["questions"].validate((function(e){}))},resetFormItemData:function(e){this.questionForm[e]=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"35fc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"reading-unit-wrapper"},[e.isShow?i("div",{staticClass:"content"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return e.isPaneShow?i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",loading:e.loading,size:"mini"},on:{click:e.handleSync}},[e._v("\n "+e._s(e.$t("trials:readingUnit:button:sync"))+"\n ")]),e._v(" "),i("el-collapse",{staticClass:"setting-config",model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:readingCriterion"),name:"2"}},[i("ReadingCriterions",{ref:"readingCriterions"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"digit-places":e.digitPlaces},on:{reloadArbitrationRules:e.reloadArbitrationRules}})],1),e._v(" "),e.isGlobalReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:GlobalReading"),name:"5"}},[i("GlobalReading",{ref:"globalReading"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e(),e._v(" "),e.isArbitrationReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:adRules"),name:"3"}},[i("ArbitrationRules",{ref:"arbitrationRules"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e(),e._v(" "),e.isOncologyReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:oncologyReading"),name:"4"}},[i("OncologyForm",{ref:"oncologyForm"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e()],1)],1):e._e()})),1)],1):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("div",{staticClass:"bottom"},[i("el-button",{attrs:{type:"danger"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:readingUnit:button:confirm"))+"\n ")])],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("a481"),i("96cf"),i("3b8d")),o=i("3e42"),s=i("3557"),l=i("411cc"),c=i("317d"),u=i("6469"),d=i("18e9"),f=i("179b"),h=i("7a9e"),p={name:"ReadingUnit",components:{GlobalReading:u["default"],ReadingRules:s["default"],ReadingCriterions:l["default"],ArbitrationRules:c["default"],OncologyForm:d["default"],SignForm:f["default"]},data:function(){return{NODE_ENV:"production",activeCollapse:["1","2","3","4","5"],signCode:null,signVisible:!1,currentUser:zzSessionStorage.getItem("userName"),isConfirm:!0,loading:!1,isArbitrationReading:!1,isClinicalReading:!1,trialCriterionList:[],TrialReadingCriterionId:"0",trialId:this.$route.query.trialId,isPaneShow:!0,isShow:!1,isOncologyReading:!1,isGlobalReading:!1,digitPlaces:0}},watch:{TrialReadingCriterionId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.asyncTrialCriterionDictionary(t);case 2:this.isPaneShow=!1,this.$nextTick((function(){i.isPaneShow=!0}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},mounted:function(){this.getTrialCriterionList()},methods:{handleSync:function(){var e=this;this.$confirm(this.$t("trials:readingUnit:message:sync")).then((function(){e.loading=!0,Object(o["we"])(e.TrialReadingCriterionId).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.asyncTrialCriterionDictionary(e.TrialReadingCriterionId);case 2:e.isPaneShow=!1,e.$nextTick((function(){e.isPaneShow=!0,e.loading=!1}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},asyncTrialCriterionDictionary:function(e){var t=this;return new Promise((function(e){Object(o["N"])({TrialReadingCriterionId:t.TrialReadingCriterionId}).then((function(t){e()}))}))},getTrialCriterionList:function(){var e=this;Object(o["Cd"])(this.trialId,!1).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.trialCriterionList=i.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.isShow=!0;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){}))},setConfirm:function(e){this.isConfirm=e},setDigitPlaces:function(e){this.digitPlaces=e},setIsClinicalReading:function(e){this.isClinicalReading=e},setArbitrationReading:function(e){this.isArbitrationReading=e},setGlobalReading:function(e){this.isGlobalReading=e},setOncologyReading:function(e){this.isOncologyReading=e},updateCriterions:function(){var e=this;this.loading=!0,Object(o["hf"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(t){e.$router.push({path:"/trials/trials-panel/setting/reading-unit?trialId=".concat(e.$route.query.trialId,"&trialCode=").concat(e.$route.query.trialCode,"&researchProgramNo=").concat(e.$route.query.researchProgramNo,"&t=").concat((new Date).getTime())}),e.loading=!1})).catch((function(){e.loading=!1}))},handleConfirm:function(){var e=this;this.loading=!0,Object(o["Pf"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,s,l,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!1,1===i.Result){t.next=5;break}e.$confirm(e.$t("trials:readingUnit:message:msg1"),{type:"warning"}).then((function(){e.updateCriterions()})).catch((function(e){})),t.next=32;break;case 5:if(t.prev=5,n=[],!e.$refs["arbitrationRules"+e.TrialReadingCriterionId]||!e.$refs["arbitrationRules"+e.TrialReadingCriterionId].length){t.next=12;break}return t.next=10,e.$refs["arbitrationRules"+e.TrialReadingCriterionId][0].saveAllSync();case 10:a=t.sent,n.push({isCheck:a,msg:e.$t("trials:readingUnit:adRules")});case 12:return t.next=14,e.$refs["readingRules"+e.TrialReadingCriterionId][0].handleSave(!1);case 14:if(r=t.sent,n.push({isCheck:r,msg:e.$t("trials:readingUnit:readingRules")}),!e.$refs["globalReading"+e.TrialReadingCriterionId]||!e.$refs["globalReading"+e.TrialReadingCriterionId].length){t.next=21;break}return t.next=19,e.$refs["globalReading"+e.TrialReadingCriterionId][0].handleSave(!1);case 19:s=t.sent,n.push({isCheck:s,msg:e.$t("trials:readingUnit:GlobalReading")});case 21:if(!e.$refs["oncologyForm"+e.TrialReadingCriterionId]||!e.$refs["oncologyForm"+e.TrialReadingCriterionId].length){t.next=26;break}return t.next=24,e.$refs["oncologyForm"+e.TrialReadingCriterionId][0].handleSave(!1);case 24:l=t.sent,n.push({isCheck:l,msg:e.$t("trials:readingUnit:oncologyReading")});case 26:n.every((function(e){return!0===e.isCheck}))?Object(o["lf"])({trialId:e.$route.query.trialId,TrialReadingCriterionId:e.TrialReadingCriterionId}).then((function(t){if(t.IsSuccess){var i=h["default"].processSignature.ReadingUnitConfirmation;e.signCode=i,e.signVisible=!0}})):(c=n.filter((function(e){return!1===e.isCheck})),u=c.map((function(e){return e.msg})),u=e.$t("trials:readingUnit:message:msg2").replace("xxx",u),e.$alert(u)),t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](5),console.log(t.t0);case 32:case"end":return t.stop()}}),t,null,[[5,29]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){console.log(222),e.loading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId},signInfo:e};Object(o["kf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.isConfirm=!0,t.$refs["readingRules"+t.TrialReadingCriterionId][0].initPage(),t.$refs["readingCriterions"+t.TrialReadingCriterionId][0].initPage(),t.$refs["arbitrationRules"+t.TrialReadingCriterionId][0].getList(),t.$refs["oncologyForm"+t.TrialReadingCriterionId][0].initForm()),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},reloadArbitrationRules:function(){this.$refs["arbitrationRules"+this.TrialReadingCriterionId][0].getList(),this.$refs["arbitrationRules"+this.TrialReadingCriterionId][0].getTrialJudgyInfo()}}},m=p,g=(i("80cd"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"22396cc4",null);t["default"]=v.exports},3609:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"器官",name:"organs"}},[i("OrgansTbl",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"疗效评估",name:"efficacyAssessment"}},[e.tabs.includes("efficacyAssessment")?i("EfficacyAssessment",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"标准字典",name:"criterionDictionary"}},[e.tabs.includes("criterionDictionary")?i("CriterionDictionary",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}}):e._e()],1)],1)},a=[],r=(i("7f7f"),i("6762"),i("2fdb"),i("4f10")),o=i("e09f"),s=i("f142"),l={name:"CriterionsBaseData",components:{OrgansTbl:r["default"],EfficacyAssessment:o["default"],CriterionDictionary:s["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{activeName:"organs",tabs:["organs"]}},methods:{handleClick:function(e,t){this.tabs.includes(e.name)||this.tabs.push(e.name)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},3644:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:modality")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:"",multiple:"","collapse-tags":""},model:{value:e.listQuery.ReadingTypeIds,callback:function(t){e.$set(e.listQuery,"ReadingTypeIds",t)},expression:"listQuery.ReadingTypeIds"}},e._l(e.$d.ReadingType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:subspeciality")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:"",multiple:"","collapse-tags":""},model:{value:e.listQuery.SubspecialityIds,callback:function(t){e.$set(e.listQuery,"SubspecialityIds",t)},expression:"listQuery.SubspecialityIds"}},e._l(e.$d.Subspeciality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:position")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:""},model:{value:e.listQuery.PositionId,callback:function(t){e.$set(e.listQuery,"PositionId",t)},expression:"listQuery.PositionId"}},e._l(e.$d.Position,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:rank")}},[i("el-select",{staticClass:"handle-select",attrs:{placeholder:e.$t("trials:seletctedReviews:form:rank"),clearable:""},model:{value:e.listQuery.RankId,callback:function(t){e.$set(e.listQuery,"RankId",t)},expression:"listQuery.RankId"}},e._l(e.$d.Rank,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:institution")}},[i("el-select",{staticClass:"handle-select mr10",attrs:{placeholder:e.$t("trials:seletctedReviews:form:institution"),clearable:""},model:{value:e.listQuery.HospitalId,callback:function(t){e.$set(e.listQuery,"HospitalId",t)},expression:"listQuery.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search",loading:e.loading},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",loading:e.loading},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),e.hasPermi(["role:pm"])?i("el-button",{attrs:{type:"primary",disabled:0==e.selectIdArr.length,icon:"el-icon-check",loading:e.loading},on:{click:e.handleApply}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:select"))+"\n ")]):e._e()],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],ref:"selectionList",staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"",width:"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Submitted",label:e.$t("trials:seletctedReviews:table:submitted"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:e.$t("trials:seletctedReviews:table:approved"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:e.$t("trials:seletctedReviews:table:reading"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Speciality",label:e.$t("trials:seletctedReviews:table:specialty"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther?t.row.SpecialityOther:"Other":t.row.Speciality)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Subspeciality",label:e.$t("trials:seletctedReviews:table:subspecialty"),"show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubspecialityIds.map((function(t){return e.$fd("Subspeciality",t,"id")})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:e.$t("trials:seletctedReviews:table:institution"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:seletctedReviews:table:city"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:seletctedReviews:table:country"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:selector"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:selectionTime"),width:"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("db72"),o=i("6071"),s=i("333d"),l=i("4360"),c=i("2f62"),u=i("3e42"),d=function(){return{TrialId:"",ReadingTypeIds:[],SubspecialityIds:[],PageIndex:1,PageSize:20,PositionId:"",RankId:"",HospitalId:"",Asc:!1,SortField:"",AcceptingNewTrial:!0,InformationConfirmed:!0,ContractorStatus:1}},f={name:"Selection",components:{BaseContainer:o["default"],Pagination:s["default"]},dicts:["ReadingType","Subspeciality","Position","Rank"],data:function(){return{list:[],listQuery:d(),total:0,loading:!1,listLoading:!1,selectIdArr:[],otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",token:l["a"].getters.token}},computed:Object(r["a"])({},Object(c["b"])(["hospitalList"])),created:function(){this.initPage()},methods:{initPage:function(){this.getList(),l["a"].dispatch("global/getHospital")},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(u["hd"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApply:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg1"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(u["De"])(t,e.selectIdArr).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","submission"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{};Object(n["a"])(this,i);var r={name:"Length",supportedInteractionTypes:["Mouse","Touch"],svgCursor:b,configuration:{drawHandles:!0,drawHandlesOnHover:!1,hideHandlesIfMoving:!1,renderDashed:!1,digits:2}};return e=t.call(this,a,r),e.throttledUpdateCachedStats=w(e.updateCachedStats,110),e}return Object(a["a"])(i,[{key:"createNewMeasurement",value:function(e){var t=e&&e.currentPoints&&e.currentPoints.image;if(t){var i=e.currentPoints.image,n=i.x,a=i.y;return{visible:!0,active:!0,color:void 0,invalidated:!0,handles:{start:{x:n,y:a,highlight:!0,active:!1},end:{x:n,y:a,highlight:!0,active:!0},textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}}}console.log("required eventData not supplied to tool ".concat(this.name,"'s createNewMeasurement"))}},{key:"pointNearTool",value:function(e,t,i){var n=t&&t.handles&&t.handles.start&&t.handles.end,a=n;return a?!1!==t.visible&&v(e,t.handles.start,t.handles.end,i)<25:(console.log("invalid parameters supplied to tool ".concat(this.name,"'s pointNearTool")),!1)}},{key:"updateCachedStats",value:function(e,t,i){var n=this.configuration.digits,a=y(e),r=a.rowPixelSpacing,o=a.colPixelSpacing,s=(i.handles.end.x-i.handles.start.x)*(o||1),l=(i.handles.end.y-i.handles.start.y)*(r||1),c=Math.sqrt(s*s+l*l);i.length=c.toFixed(n),i.invalidated=!1}},{key:"renderToolData",value:function(e){var t=this,i=e.detail,n=this.configuration,a=n.handleRadius,r=n.drawHandlesOnHover,o=n.hideHandlesIfMoving,s=n.renderDashed,v=n.digits,b=l(e.currentTarget,this.name);if(b)for(var w=d(i.canvasContext.canvas),I=i.image,S=i.element,T=y(I),C=T.rowPixelSpacing,k=T.colPixelSpacing,R=c.getToolWidth(),D=_("globalConfiguration").configuration.lineDash,L=function(e){var n=b.data[e];if(!1===n.visible)return"continue";f(w,(function(e){h(e,t.configuration);var l=u.getColorIfActive(n),c={color:l};s&&(c.lineDash=D),p(e,S,n.handles.start,n.handles.end,c);var d={color:l,handleRadius:a,drawHandlesIfActive:r,hideHandlesIfMoving:o};if(t.configuration.drawHandles&&g(e,i,n.handles,d),!n.handles.textBox.hasMoved){var f={x:Math.max(n.handles.start.x,n.handles.end.x)};f.x===n.handles.start.x?f.y=n.handles.start.y:f.y=n.handles.end.y,n.handles.textBox.x=f.x,n.handles.textBox.y=f.y}var v=10;!0===n.invalidated&&(n.length?t.throttledUpdateCachedStats(I,S,n):t.updateCachedStats(I,S,n));var b=[];n.hasOwnProperty("remark")&&(n.hasOwnProperty("status")&&n.status?b.push("".concat(n.remark,"(").concat(n.status,")")):b.push(n.remark)),b.push($(n,C,k)),m(e,S,n.handles.textBox,b,n.handles,N,l,R,v,!0)}))},O=0;O0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ReadingSetTypeName=this.$fd("ReadingSetType",this.form.ReadingSetType)}this.form.TrialId=this.trialId,this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.addSubjectPR.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["H"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.form.Name=null,e.form.VisitStageId=null,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleVisitChange:function(e){var t=this.visitPlanOptions.filter((function(t){return t.SubjectVisitId===e}));t.length>0?this.form.ExpirationVisitNum=t[0].VisitNum:this.form.ExpirationVisitNum=null},getReadingSetType:function(){var e=this;return this.visitPlanOptions=[],new Promise((function(t,i){Object(o["qd"])(e.data.ReadingSetType,e.data.SubjectId,e.trialReadingCriterionId).then((function(i){e.visitPlanOptions=i.Result,t()})).catch((function(){i()}))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"36bd":function(e,t,i){"use strict";var n=i("4bf8"),a=i("77f1"),r=i("9def");e.exports=function(e){var t=n(this),i=r(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,c=void 0===l?i:a(l,i);while(c>s)t[s++]=e;return t}},"36fb":function(e,t,i){},"36ff":function(e,t,i){},3723:function(e,t,i){"use strict";i("d0b8")},3726:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"text-align":"center"}},[i("div",{staticStyle:{display:"flex","justify-content":"center"}},[e.videoSrc?i("video",{attrs:{id:"video",controls:"",crossorigin:"anonymous",width:"400",height:"270"}},[i("source",{attrs:{src:e.videoSrc,type:"video/mp4"}}),e._v("\n 无法播放,请点击转码\n ")]):i("div",{staticStyle:{border:"2px dashed #999","border-radius":"10px",cursor:"pointer",width:"400px",height:"270px",display:"flex","justify-content":"center","align-items":"center"},on:{click:function(t){return e.$refs.fileInput.click()}}},[e._v("\n 请选择视频文件\n ")])]),e._v(" "),i("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileInput",attrs:{type:"file",accept:"video/*"},on:{change:e.fileChange}}),e._v(" "),e.isVideoToMp4?i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"right","margin-top":"10px"}},[i("div",[e._v("转码进度: ")]),e._v(" "),i("el-progress",{staticStyle:{width:"200px"},attrs:{percentage:e.percentage,format:function(){return e.percentage+"%"}}})],1):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"10px",display:"flex","justify-content":"right","align-items":"center"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isVideoToMp4||e.isDisabled},on:{click:function(t){return e.$refs.fileInput.click()}}},[e._v("选择文件")]),e._v(" "),e.isNeedToMp4?i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.videoSrc||e.isVideoToMp4||e.isDisabled},on:{click:e.videoToMp4}},[e._v("转码")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.videoSrc||e.isVideoToMp4||e.isDisabled},on:{click:e.upload}},[e._v("上传")])],1)])},a=[],r=i("92be"),o=r["a"],s=(i("b510"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},3729:function(e,t,i){var n=i("9e69"),a=i("00fd"),r=i("29f3"),o="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?s:o:l&&l in Object(e)?a(e):r(e)}e.exports=c},3790:function(e,t,i){var n=i("3a56"),a=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),r=a;e.exports=r},"383a":function(e,t,i){},"383a4":function(e,t,i){"use strict";i("fc99")},"383e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container basic-form"},[i("el-card",{staticClass:"box-card"},[i("div",{staticStyle:{width:"1000px"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"basicInfoForm",staticClass:"demo-ruleForm",attrs:{inline:!0,rules:e.rules,model:e.basicInfo,"label-width":"120px",size:"small"}},[i("el-row",[i("el-col",{attrs:{span:12}},[e.basicInfo.ReviewerCode?i("el-form-item",{attrs:{label:"ID: "}},[i("el-input",{attrs:{disabled:"",size:"small"},model:{value:e.basicInfo.ReviewerCode,callback:function(t){e.$set(e.basicInfo,"ReviewerCode",t)},expression:"basicInfo.ReviewerCode"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Surname: ",prop:"LastName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.LastName,callback:function(t){e.$set(e.basicInfo,"LastName",t)},expression:"basicInfo.LastName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Given Name: ",prop:"FirstName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.FirstName,callback:function(t){e.$set(e.basicInfo,"FirstName",t)},expression:"basicInfo.FirstName"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Name CN: ",prop:"ChineseName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.ChineseName,callback:function(t){e.$set(e.basicInfo,"ChineseName",t)},expression:"basicInfo.ChineseName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Gender: ",prop:"Sex"}},[i("el-select",{attrs:{prop:"Sex",placeholder:"Please select gender",size:"small",disabled:"1"===e.$route.query.ReviewStatus},model:{value:e.basicInfo.Sex,callback:function(t){e.$set(e.basicInfo,"Sex",t)},expression:"basicInfo.Sex"}},e._l(e.genderOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Phone: ",prop:"Phone"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.Phone,callback:function(t){e.$set(e.basicInfo,"Phone",t)},expression:"basicInfo.Phone"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Title: ",prop:"TitleIds"}},[i("el-select",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please select Title",size:"small"},model:{value:e.basicInfo.TitleIds[0],callback:function(t){e.$set(e.basicInfo.TitleIds,0,t)},expression:"basicInfo.TitleIds[0]"}},e._l(e.dictionaryList.Title,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"EMail: ",prop:"EMail"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.EMail,callback:function(t){e.$set(e.basicInfo,"EMail",t)},expression:"basicInfo.EMail"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"WeChat: ",prop:"WeChat"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.WeChat,callback:function(t){e.$set(e.basicInfo,"WeChat",t)},expression:"basicInfo.WeChat"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Payment Type: ",prop:"Nation"}},[i("el-select",{staticClass:"mr",attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small",clearable:""},model:{value:e.basicInfo.Nation,callback:function(t){e.$set(e.basicInfo,"Nation",t)},expression:"basicInfo.Nation"}},[i("el-option",{attrs:{value:0,label:"CN"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"Abroad"}})],1)],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{staticStyle:{"margin-left":"120px"}},[i("el-button",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"primary",loading:e.isDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)],1)])],1)},a=[],r=i("db72"),o=i("a8db"),s=(i("96cf"),i("3b8d")),l=i("33ba"),c=i("a599"),u=i("86a6"),d=["TitleList"],f={data:function(){return{basicInfo:{Id:"",ReviewerCode:"",FirstName:"",LastName:"",ChineseName:"",Sex:"",TitleIds:[],Phone:"",EMail:"",WeChat:"",Introduction:"",Nation:0},rules:{FirstName:[{required:!0,message:"Please enter FirstName",trigger:"blur"},{max:50,message:"The maximum length is 50"}],LastName:[{required:!0,message:"Please enter LastName",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ChineseName:[{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please select gender",trigger:"blur"}],TitleIds:[{required:!0,message:"Please select Title",trigger:"blur"}],Phone:[{required:!0,message:"Please enter phone number",trigger:"blur"},{max:20,min:7,message:"The length is 7 to 20"}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:"blur,change"},{max:50,message:"The maximum length is 50"}],WeChat:[{max:50,message:"The maximum length is 50"}]},isDisabled:!1,loading:!1,genderOptions:[{label:"Male",value:0},{label:"Female",value:1}],dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.basicInfoForm.validate((function(t){t&&(e.loading=!0,e.isDisabled=!0,Object(l["b"])(e.basicInfo).then((function(t){e.isDisabled=!1,e.loading=!1,e.$message.success("Saved successfully"),e.id||(e.basicInfo.Id=t.Result.Id,Object(c["a"])("Id",t.Result.Id),e.basicInfo.ReviewerCode=t.Result.ReviewerCode)})).catch((function(){e.isDisabled=!1,e.loading=!1})))}))},initForm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:t=this.$route.query.Id,t&&(this.loading=!0,Object(l["p"])(t).then((function(e){var t=e.Result,n=(t.TitleList,Object(o["a"])(t,d));i.basicInfo=n,i.loading=!1})).catch((function(){i.loading=!1})));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(u["c"])(["Title"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))}}},h=f,p=(i("2a2b"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"1734fa9a",null);t["default"]=m.exports},3842:function(e,t,i){var n=i("6d8b"),a=1e-4;function r(e){return e.replace(/^\s+|\s+$/g,"")}function o(e,t,i,n){var a=t[1]-t[0],r=i[1]-i[0];if(0===a)return 0===r?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(e<=t[0])return i[0];if(e>=t[1])return i[1]}else{if(e>=t[0])return i[0];if(e<=t[1])return i[1]}else{if(e===t[0])return i[0];if(e===t[1])return i[1]}return(e-t[0])/a*r+i[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?r(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),i?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,i=0;while(Math.round(e*t)/t!==e)t*=10,i++;return i}function d(e){var t=e.toString(),i=t.indexOf("e");if(i>0){var n=+t.slice(i+1);return n<0?-n:0}var a=t.indexOf(".");return a<0?0:t.length-1-a}function f(e,t){var i=Math.log,n=Math.LN10,a=Math.floor(i(e[1]-e[0])/n),r=Math.round(i(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20}function h(e,t,i){if(!e[t])return 0;var a=n.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===a)return 0;var r=Math.pow(10,i),o=n.map(e,(function(e){return(isNaN(e)?0:e)/a*r*100})),s=100*r,l=n.map(o,(function(e){return Math.floor(e)})),c=n.reduce(l,(function(e,t){return e+t}),0),u=n.map(o,(function(e,t){return e-l[t]}));while(cd&&(d=u[h],f=h);++l[f],u[f]=0,++c}return l[t]/r}var p=9007199254740991;function m(e){var t=2*Math.PI;return(e%t+t)%t}function g(e){return e>-a&&e=10&&t++,t}function _(e,t){var i,n=w(e),a=Math.pow(10,n),r=e/a;return i=t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10,e=i*a,n>=-20?+e.toFixed(n<0?-n:0):e}function I(e,t){var i=(e.length-1)*t+1,n=Math.floor(i),a=+e[n-1],r=i-n;return r?a+r*(e[n]-a):a}function x(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,i=1,n=0;n=0}t.linearMap=o,t.parsePercent=s,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=d,t.getPixelPrecision=f,t.getPercentWithPrecision=h,t.MAX_SAFE_INTEGER=p,t.remRadian=m,t.isRadianAroundZero=g,t.parseDate=b,t.quantity=y,t.quantityExponent=w,t.nice=_,t.quantile=I,t.reformIntervals=x,t.isNumeric=S},3866:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[i("div",{class:[t.IsCurrentUser?"word-my":"word"]},[1*t.UserTypeEnumInt===14?i("img",{attrs:{src:e.mimAvatar,alt:"MIM"}}):i("img",{attrs:{src:e.irAvatar,alt:"IR"}}),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content"},[14===t.UserTypeEnumInt&&null!==t.MedicalDialogCloseEnum?[i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closeReasonEnum"))+e._s(e.$fd("MedicalDialogCloseEnum",t.MedicalDialogCloseEnum)))]),e._v(" "),t.Content?i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closereasonRemarks"))+e._s(t.Content))]):e._e()]:14!==t.UserTypeEnumInt||t.Content?14===t.UserTypeEnumInt&&t.Content?[i("div",[e._v(e._s(t.Content))])]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isEndorse"))+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.DoctorUserIdeaEnum))+"\n ")]),e._v(" "),2===t.DoctorUserIdeaEnum?i("div",[e._v(" "+e._s(e.$t("trials:medicalFeedback:title:reason"))+e._s(t.DisagreeReason))]):e._e(),e._v(" "),null!==t.MedicalDialogCloseEnum?i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isRequestReread"))+e._s(e.$fd("YesOrNo",t.IsApplyHeavyReading))+"\n ")]):e._e(),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg5"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e()]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg1"))+"\n "),i("ol",[e._v("\n "+e._s(t.Questioning)+"\n ")])]),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg2"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg3"))+"\n "),i("ol",[i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.$fd("AuditAdvice",t.AuditAdviceEnum)))])])]),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg4"))+"\n ")])]],2)])])])})),0),e._v(" "),e.otherInfo&&!e.otherInfo.IsClosedDialog&&14===e.userTypeEnumInt?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{attrs:{disabled:""===e.newMessage,type:"primary"},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleCloseQc}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.otherInfo&&!e.otherInfo.IsClosedDialog&&13===e.userTypeEnumInt?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleIRReply}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:reply"))+"\n ")])],1)]):e._e(),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.previewDialog,width:"600px"},on:{"update:visible":function(t){e.previewDialog=t}}},[i("el-image",{attrs:{src:e.imagePath,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1),e._v(" "),e.irFeedbackForm.visible?i("el-dialog",{attrs:{visible:e.irFeedbackForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.irFeedbackForm.title,width:"1200px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.irFeedbackForm,"visible",t)}}},[i("FeedbackForm",{attrs:{"task-medical-review-id":e.taskMedicalReviewId,"visit-task-id":e.visitTaskId},on:{getList:e.getMessageList,close:function(t){e.irFeedbackForm.visible=!1}}})],1):e._e()],1)},a=[],r=i("3e42"),o=i("a7ea"),s=i("f0da"),l=i.n(s),c=i("cc27"),u=i.n(c),d={name:"ChatForm",components:{FeedbackForm:o["default"]},props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,userId:zzSessionStorage.getItem("userId"),mimAvatar:l.a,irAvatar:u.a,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),ReuploadEnum:0,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId"),otherInfo:{},previewDialog:!1,imagePath:"",irFeedbackForm:{visible:!1,title:""}}},mounted:function(){this.getMessageList()},methods:{getMessageList:function(){var e=this;this.loading=!0;var t={taskMedicalReviewId:this.taskMedicalReviewId};Object(r["qc"])(t).then((function(t){e.otherInfo=t.OtherInfo,e.recordContent=t.Result,e.setScrollHeight(),e.loading=!1})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){var t={taskMedicalReviewId:this.taskMedicalReviewId,content:this.newMessage};this.loading=!0,Object(r["Fe"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.newMessage="",e.getMessageList())})).catch((function(){e.loading=!1}))}},handleCloseQc:function(){this.$emit("handleCloseReply")},previewImage:function(e){this.imagePath="/api/".concat(e),this.previewDialog=!0},handleIRReply:function(){this.irFeedbackForm.title=this.$t("trials:medicalFeedback:title:feedback"),this.irFeedbackForm.visible=!0}}},f=d,h=(i("a9fb"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"1f092bae",null);t["default"]=p.exports},"38a2":function(e,t,i){var n=i("2b17"),a=n.retrieveRawValue,r=i("eda2"),o=r.getTooltipMarker,s=r.formatTpl,l=i("e0d3"),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,d={getDataParams:function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),r=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"color"),u=i.getItemVisual(e,"borderColor"),d=this.ecModel.getComponent("tooltip"),f=d&&d.get("renderMode"),h=c(f),p=this.mainType,m="series"===p,g=i.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:r,dataIndex:a,data:s,dataType:t,value:n,color:l,borderColor:u,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:o({color:l,renderMode:h}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,i,n,r){t=t||"normal";var o=this.getData(i),l=o.getItemModel(e),c=this.getDataParams(e,i);null!=n&&c.value instanceof Array&&(c.value=c.value[n]);var d=l.get("normal"===t?[r||"label","formatter"]:[t,r||"label","formatter"]);if("function"===typeof d)return c.status=t,c.dimensionIndex=n,d(c);if("string"===typeof d){var f=s(d,c);return f.replace(u,(function(t,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),a(o,e,i)}))}},getRawValue:function(e,t){return a(this.getData(t),e)},formatTooltip:function(){}};e.exports=d},"38a6":function(e,t,i){"use strict";i("efe6")},"38b6":function(e,t,i){"use strict";i("7838")},3901:function(e,t,i){var n=i("282b"),a=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(e){var t=a(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),i=Math.max(e,2),n=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[n,n]:[i,i])}};e.exports=r},3902:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"share-image-container"},[i("div",{staticClass:"share-image-banner"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("IRC Management System")]),e._v(" "),i("el-card",{attrs:{shadow:"hover"}},[i("h4",[e._v("请输入提取码:")]),e._v(" "),i("el-form",{ref:"validateForm",attrs:{inline:!0,rules:e.rules,model:e.form}},[i("el-form-item",{attrs:{label:"",prop:"ExtractionCode"}},[i("el-input",{staticStyle:{width:"400px"},model:{value:e.form.ExtractionCode,callback:function(t){e.$set(e.form,"ExtractionCode",t)},expression:"form.ExtractionCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")])],1)],1)],1)],1)])},a=[],r=i("acd9"),o={data:function(){return{resourceId:"",form:{ExtractionCode:""},rules:{ExtractionCode:[{required:!0,message:"请输入提取码",trigger:"blur"},{min:4,max:6,message:"长度在 4 到 6 个字符",trigger:"blur"}]}}},created:function(){this.resourceId=this.$route.query.id},methods:{onSubmit:function(){var e=this;this.$refs["validateForm"].validate((function(t){if(t){var i=e.$loading({target:document.querySelector(".share-image-banner"),fullscreen:!1,lock:!0,text:"Loading...",spinner:"el-icon-loading"});if(!e.resourceId)return;Object(r["b"])(e.resourceId,e.form.ExtractionCode).then((function(t){i.close(),t.IsSuccess&&(zzSessionStorage.setItem("studyId",t.Result.StudyId),zzSessionStorage.setItem("TokenKey",t.Result.Token),e.$store.dispatch("user/setToken",zzSessionStorage.getItem("TokenKey")),e.$router.push({path:"/showdicom?studyId=".concat(t.Result.StudyId,"&TokenKey=").concat(t.Result.Token,"&type=Share")}))})).catch((function(){i.close()}))}}))}}},s=o,l=(i("c2a1"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"37582852",null);t["default"]=c.exports},3916:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"log-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.searchForm,"search-handle":e.searchHandle},on:{search:e.handleSearch,reset:e.handleReset}},[i("template",{slot:"beginTimeSlot"},[i("el-date-picker",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"Beginning date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.searchData.BeginTime,callback:function(t){e.$set(e.searchData,"BeginTime",t)},expression:"searchData.BeginTime"}})],1),e._v(" "),i("template",{slot:"endTimeSlot"},[i("el-date-picker",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"End Date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endPickerOption},model:{value:e.searchData.EndTime,callback:function(t){e.$set(e.searchData,"EndTime",t)},expression:"searchData.EndTime"}})],1)],2)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,sortByColumn:e.sortByColumn,celldblclick:e.celldblclick}})],1)},a=[],r=[{type:"index"},{prop:"LogCategory",label:"Category",minWidth:50,sortable:"custom",showOverflowTooltip:!0},{prop:"ApiPath",label:"Api",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"RequestTime",label:"Request Time",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"ElapsedMilliseconds",label:"Elapsed Milliseconds",minWidth:100,showOverflowTooltip:!0},{prop:"OptUserName",label:"Operator",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"ClientIP",label:"Client IP",minWidth:100,showOverflowTooltip:!0},{prop:"Status",label:"Status",minWidth:70,sortable:"custom",showOverflowTooltip:!0},{prop:"Message",label:"Message",minWidth:70,showOverflowTooltip:!0}],o=[{label:"Reviewer",value:"Reviewer"},{label:"Trial",value:"Trial"},{label:"Enroll",value:"Enroll"},{label:"Workload",value:"Workload"},{label:"Common",value:"Common"},{label:"Institution",value:"Institution"},{label:"Financial",value:"Financial"},{label:"Management",value:"Management"},{label:"Image",value:"Image"}],s=[{type:"Select",label:"Category:",prop:"LogCategory",width:"120px",placeholder:"",options:o,props:{label:"label",value:"value"},change:function(e){return""}},{type:"Input",label:"Keyword:",prop:"Keyword",width:"120px",placeholder:""},{type:"Custom",slot:"beginTimeSlot",label:"Begin Time:",prop:"BeginTime"},{type:"Custom",slot:"endTimeSlot",label:"End Time:",prop:"EndTime"}],l=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],c=i("50fc"),u=i("f36a"),d=i("d13d"),f=i("c0ee"),h=i("fab6"),p=i("4eb5"),m=i.n(p),g=i("2b0e"),v=i("c1df"),b=i.n(v);g["default"].use(m.a);var y=function(){return{LogCategory:"",Keyword:"",BeginTime:b()().subtract(5,"days").format("YYYY-MM-DD"),EndTime:b()().format("YYYY-MM-DD"),PageIndex:1,PageSize:20,Asc:!0,SortField:""}},w={name:"Log",components:{BoxContent:u["default"],SearchForm:d["default"],BaseTable:f["default"]},mixins:[h["a"]],data:function(){var e=this;return{searchData:y(),searchForm:s,searchHandle:l,columns:r,loading:!1,total:0,list:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndTime?t.getTime()>new Date(e.searchData.EndTime).getTime():t.getTime()>Date.now()}},endPickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(c["h"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount}))},handleReset:function(){this.searchData=y(),this.getList()},celldblclick:function(e,t){var i=this;this.$copyText(e[t.property]).then((function(e){i.$message.success("Copyed successfully")}),(function(e){i.$message.error("Cope failed")}))}}},_=w,I=i("2877"),x=Object(I["a"])(_,n,a,!1,null,null,null);t["default"]=x.exports},"392f":function(e,t,i){var n=i("6d8b"),a=n.inherits,r=i("19eb"),o=i("9850");function s(e){r.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i0||0==e.arrID.length,size:"small",loading:e.lockLoading},on:{click:e.handleLock}},[e._v("Lock")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length||0==e.unlockCount,size:"small",loading:e.calcLoading},on:{click:e.handleCalculate}},[e._v("Calculate")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportLoading},on:{click:e.handleExportExcel}},[e._v("Export Summary")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportDetailLoading},on:{click:e.handleExportDetail}},[e._v("Export Details")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportPayrollLoading},on:{click:e.handleExportPayroll}},[e._v("Export Payrolls")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdjustment}},[e._v("Adjustment")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"small"},on:{click:e.handleSetting}},[e._v("Settings")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",attrs:{size:"small",height:"99%",data:e.list,stripe:"","cell-style":e.cellStyle,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorNameInBank",label:"Name CN","show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.DoctorNameInBank?t.row.DoctorNameInBank:t.row.ChineseName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"ID","show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RankName",label:"Rank","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IDCard",label:"Resident ID","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:"Phone Number","show-overflow-tooltip":"","min-width":"115"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankName",label:"Bank","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankCardNumber",label:"Account Number","show-overflow-tooltip":"","min-width":"125"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalPaymentUSD",label:"Payment ($)","min-width":"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s("Current month: "+t.row.PaymentUSD)+"\n "),i("br"),e._v("\n "+e._s("Adjustment: "+t.row.AdjustPaymentUSD)+"\n ")]),e._v(" "),i("div",[e._v("\n "+e._s(t.row.IDCard&&t.row.BankCardNumber&&t.row.RankName?t.row.TotalPaymentUSD.toFixed(2):"Setting Needed")+"\n\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExchangeRate",label:"Exchange Rate","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.ExchangeRate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalPaymentCNY",label:"Payment(¥)","min-width":"110",sortable:"custom",formatter:e.paymentCNFormatter},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s("Current month: "+t.row.PaymentCNY)+"\n "),i("br"),e._v("\n "+e._s("Adjustment: "+t.row.AdjustPaymentCNY)+"\n ")]),e._v(" "),i("div",[e._v(e._s(t.row.ExchangeRate>0?t.row.TotalPaymentCNY:"Setting Needed"))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Status",prop:"IsLock",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.IsLock?"Locked":"Pending"))]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text",disabled:!(t.row.IDCard&&t.row.BankCardNumber)},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("Detail")]),e._v(" "),t.row.IDCard&&t.row.BankCardNumber&&t.row.RankName?e._e():i("el-button",{staticStyle:{color:"red"},attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleSettingDoctor(t.row)}}},[e._v("Setting")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.form.DoctorId,attrs:{title:"Edit",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"reviewerDataForm",attrs:{"label-width":"170px",rules:e.rules,model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"Name: "}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Name CN: ",prop:"DoctorNameInBank"}},[i("el-input",{model:{value:e.form.DoctorNameInBank,callback:function(t){e.$set(e.form,"DoctorNameInBank",t)},expression:"form.DoctorNameInBank"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ID: ",prop:"Code"}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank: ",prop:"Rank"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.RankId,callback:function(t){e.$set(e.form,"RankId",t)},expression:"form.RankId"}},e._l(e.rankList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.RankName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Personal Adjustment ($): ",prop:"Additional"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.Additional,callback:function(t){e.$set(e.form,"Additional",t)},expression:"form.Additional"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Resident ID: ",prop:"IDCard"}},[i("el-input",{model:{value:e.form.IDCard,callback:function(t){e.$set(e.form,"IDCard",t)},expression:"form.IDCard"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Bank: ",prop:"BankName"}},[i("el-input",{model:{value:e.form.BankName,callback:function(t){e.$set(e.form,"BankName",t)},expression:"form.BankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Account Number: ",prop:"BankCardNumber"}},[i("el-input",{model:{value:e.form.BankCardNumber,callback:function(t){e.$set(e.form,"BankCardNumber",t)},expression:"form.BankCardNumber"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("7514"),i("6b54"),i("28a5"),i("c5f6"),i("ac6a"),i("db72")),o=i("333d"),s=i("7878"),l=i("3339"),c=i("6b95"),u=i("4360"),d=i("2f62"),f=i("e8ae"),h=i.n(f),p=i("c4e3"),m=i.n(p),g=i("21a6"),v=function(){return{StatisticsDate:"",KeyWord:"",PageSize:20,PageIndex:1,Asc:!0,SortField:""}},b={name:"EnrollmentsStats",components:{Pagination:o["default"]},filters:{rounding:function(e){return e}},data:function(){return{listQuery:v(),list:[],listLoading:!1,total:0,exchangeRate:"",arrID:"",excelData:[],excelDataCount:0,excelDataPayroll:[],excelDataPayrollCount:0,lockLoading:!1,calcLoading:!1,exportLoading:!1,exportDetailLoading:!1,exportPayrollLoading:!1,form:{},rules:{DoctorNameInBank:[{required:!0,message:"Please specify",trigger:"blur"}],BankName:[{required:!0,message:"Please specify",trigger:"blur"}],BankCardNumber:[{required:!0,message:"Please specify",trigger:"blur"}],IDCard:[{required:!0,message:"Please specify",trigger:"blur"},{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"Incorrect ID card format"}],Rank:[{required:!0,message:"Please select",trigger:["blur","change"]}]},btnDisabled:!1,dialogVisible:!1,pickerOption:{disabledDate:function(e){var t=Date.now();return e.getTime()>t}}}},computed:Object(r["a"])(Object(r["a"])({},Object(d["b"])(["rankList","paymentQuery"])),{},{unlockCount:function(){var e=this,t=0;return this.list.forEach((function(i){e.arrID.indexOf(i.DoctorId)>-1&&(i.IsLock||t++)})),t}}),mounted:function(){this.listQuery.StatisticsDate=new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),this.paymentQuery&&(this.listQuery=this.paymentQuery),this.getList()},destroyed:function(){},methods:Object(r["a"])({getList:function(){var e=this;this.listLoading=!0,this.setQueryParam(this.listQuery),Object(c["p"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CostList.CurrentPageData,e.total=t.Result.CostList.TotalCount,e.exchangeRate=t.Result.ExchangeRate})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=v(),this.listQuery.StatisticsDate=new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),this.getList()},handleLock:function(){var e=this,t={ReviewerIdList:this.arrID,Month:this.listQuery.StatisticsDate};this.lockLoading=!0,Object(c["I"])(t).then((function(t){e.lockLoading=!1,e.getList(),e.$message.success("Locked successfully")})).catch((function(){e.lockLoading=!1}))},handleCalculate:function(){var e=this,t={CalculateMonth:this.listQuery.StatisticsDate,NeedCalculateReviewers:this.arrID};this.calcLoading=!0,Object(c["i"])(t).then((function(t){e.calcLoading=!1,e.getList(),e.$message.success("Calculate successfully")})).catch((function(){e.calcLoading=!1}))},handleAdjustment:function(){this.$router.push({name:"Adjustment",query:{exchangeRate:this.exchangeRate,date:this.listQuery.StatisticsDate}})},handleSetting:function(){this.$router.push({name:"PaymentSettings"})},handleDetail:function(e){this.$router.push({name:"PaymentDetail",query:e})},handleSettingDoctor:function(e){u["a"].dispatch("financials/getRank"),this.form=function(e){var t=e.FirstName,i=e.LastName,n=e.ChineseName,a=e.Code,r=e.DoctorId,o=e.DoctorNameInBank,s=e.IDCard,l=e.BankCardNumber,c=e.BankName,u=e.RankId,d=e.Additional;return{FirstName:t,LastName:i,ChineseName:n,Code:a,DoctorId:r,DoctorNameInBank:o,IDCard:s,BankCardNumber:l,BankName:c,RankId:u,Additional:d}}(e),this.form.Name="".concat(e.LastName," / ").concat(e.FirstName),this.form.DoctorNameInBank=this.form.DoctorNameInBank?this.form.DoctorNameInBank:this.form.ChineseName,this.dialogVisible=!0},handleSave:function(){var e=this;this.btnDisabled=!0;var t=function(e){var t=e.DoctorId,i=e.DoctorNameInBank,n=e.IDCard,a=e.BankCardNumber,r=e.BankName,o=e.RankId,s=e.Additional;return{DoctorId:t,DoctorNameInBank:i,IDCard:n,BankCardNumber:a,BankName:r,RankId:o,Additional:s}}(this.form);Object(c["e"])(t).then((function(t){e.btnDisabled=!1,e.dialogVisible=!1,e.getList(),e.$message.success("Updated successfully")})).catch((function(){e.btnDisabled=!1}))},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i0?Object(s["num2Money"])(e.PaymentCNY+e.AdjustPaymentCNY,2,0):"Setting Needed"},handleExportDetail:function(){var e=this,t=this;t.excelData=[];var i=[];this.list.forEach((function(t){e.arrID.indexOf(t.DoctorId)>-1&&i.push({PaymentId:t.Id,ReviewerId:t.DoctorId,YearMonth:t.YearMonth})})),t.exportDetailLoading=!0,Object(c["C"])(i).then((function(e){t.excelDataCount=e.Result.length,e.Result.forEach((function(e){t.exportDetailExcel(e.DoctorInfo,e.DetailList)}))})).catch((function(){t.exportDetailLoading=!1}))},handleExportPayroll:function(){var e=this,t=this;t.excelDataPayroll=[];var i=[];this.list.forEach((function(t){e.arrID.indexOf(t.DoctorId)>-1&&i.push(t.Id)})),t.exportPayrollLoading=!0,Object(c["q"])(i).then((function(e){t.ExportExcelPayroll(e.Result)})).catch((function(){t.exportPayrollLoading=!1}))},ExportExcelPayroll:function(e){var t=new h.a.Workbook,i=t.addWorksheet(this.listQuery.StatisticsDate);i.properties.defaultRowHeight=22,i.columns=[{key:"ChineseName",width:15},{key:"ResidentId",width:30},{key:"Phone",width:15},{key:"AccountNumber",width:20},{key:"Bank",width:30},{key:"PaymentCNY",width:20},{key:"TaxCNY",width:20},{key:"ActuallyPaidCNY",width:20}];var n=this;i.mergeCells("A1","H2"),i.getCell("A1").value=n.listQuery.StatisticsDate+" Payroll Summary",i.getCell("A1").alignment={vertical:"middle",horizontal:"center"},i.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},i.mergeCells("A3","H3"),i.getCell("A3").value="Month:"+n.listQuery.StatisticsDate,i.getCell("A3").alignment={vertical:"middle",horizontal:"right"},i.getRow(4).values=["Name CN","Resident ID","Phone Number","Account Number","Bank","劳务费总计","应付税额","实付劳务费"],i.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},i.getRow(4).alignment={vertical:"middle",horizontal:"left"},i.addRows(e),i.getColumn(6).numFmt="#,##0.00",i.getColumn(7).numFmt="#,##0.00",i.getColumn(8).numFmt="#,##0.00",i.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),t.xlsx.writeBuffer({base64:!0}).then((function(t){var i=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});n.excelDataPayrollCount=e.length+1,n.excelDataPayroll.push({data:i,fileName:"Payroll Summary_"+n.listQuery.StatisticsDate+".xlsx"}),e.forEach((function(e){n.ExportExcelPayrollDeatil(e)}))}))},ExportExcelPayrollDeatil:function(e){var t=this,i=new h.a.Workbook,n=i.addWorksheet(e.ChineseName+" "+this.listQuery.StatisticsDate);n.properties.defaultRowHeight=25,n.properties.defaultColWidth=30,n.mergeCells("A1","E1"),n.getCell("A1").value="上海致准信息科技有限公司",n.getCell("A1").alignment={vertical:"middle",horizontal:"center"},n.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},n.mergeCells("A2","E2"),n.getCell("A2").value="劳务支付单",n.getCell("A2").alignment={vertical:"middle",horizontal:"center"},n.getCell("A2").font={name:"SimSun",family:4,size:13,bold:!0},n.getRow(3).values=["姓名","身份证号","","工作月份","发放月份"],n.mergeCells("B3","C3");var a=new Date,r=a.getFullYear(),o=a.getMonth()+1;o<10&&(o="0"+o),n.getRow(4).values=[e.ChineseName,e.ResidentId,"",e.YearMonth,r+"-"+o],n.mergeCells("B4","C4"),n.getRow(5).values=["应付金额","代扣税金","实付金额","银行转账",""],n.getRow(6).values=[e.PaymentCNY,e.TaxCNY,e.ActuallyPaidCNY,e.ActuallyPaidCNY,""],n.mergeCells("D5","E5"),n.mergeCells("D6","E6"),n.getRow(7).values=["审核","","经办","",""],n.mergeCells("A7","B7"),n.mergeCells("C7","E7"),n.eachRow((function(e,t){t>2&&e.eachCell((function(e,i){t<7&&(e.alignment={vertical:"center",horizontal:"center"}),e.numFmt="#,##0.00",e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),i.xlsx.writeBuffer({base64:!0}).then((function(i){var n=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(t.excelDataPayroll.push({data:n,fileName:e.ChineseName+"_paystub_"+e.YearMonth+".xlsx"}),t.excelDataPayrollCount===t.excelDataPayroll.length){var a=new m.a;t.excelDataPayroll.forEach((function(e){a.file(e.fileName,e.data)})),a.generateAsync({type:"blob"}).then((function(t){Object(g["saveAs"])(t,"Monthly Payroll "+e.YearMonth+".zip")}))}t.exportPayrollLoading=!1}))},exportDetailExcel:function(e,t){var i=new h.a.Workbook,n=i.addWorksheet(e.ChineseName+" "+e.YearMonth);n.properties.defaultRowHeight=22,n.columns=[{header:"Project ID",key:"TrialCode",width:15},{header:"Type",key:"PaymentType",width:30},{header:"Count",key:"Count",width:15},{header:"Base Price",key:"BasePrice",width:15},{header:"Personal Additional",key:"PersonalAdditional",width:22},{header:"Trial Additional",key:"TrialAdditional",width:22},{header:"Total Price",key:"TotalUnitPrice",width:22},{header:"Total Fee",key:"PaymentUSD",width:22},{header:"Subtotal(¥)",key:"PaymentCNY",width:22}];var a=this,r=0,o=0;t.forEach((function(e){r+=parseFloat(e.PaymentUSD),o+=parseFloat(e.PaymentCNY)}));var s=Number(t.length+1),l=4;n.mergeCells("A1","I2"),n.getCell("A1").value="Monthly Payment",n.getCell("A1").alignment={vertical:"middle",horizontal:"center"},n.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},n.mergeCells("A3","D3"),n.getCell("A3").value="Name:"+e.ChineseName+" ID:"+e.Code,n.mergeCells("E3","I3"),n.getCell("E3").value=" Rank:"+e.PayTitle+" Month:"+e.YearMonth+" Exchange Rate: "+Number(t[0].ExchangeRate).toFixed(2),n.getCell("A3").alignment={vertical:"middle",horizontal:"left"},n.getCell("E3").alignment={vertical:"middle",horizontal:"right"},n.getCell("A4").value="Project ID",n.getCell("B4").value="Read Type",n.getCell("C4").value="Volume",n.getCell("D4").value="Base Rate($)",n.getCell("E4").value="Personal Adjustment($)",n.getCell("F4").value="Project Adjustment($)",n.getCell("G4").value="Adjusted Rate($)",n.getCell("H4").value="Subtotal($)",n.getCell("I4").value="Subtotal(¥)",n.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},n.addRows(t);for(var c=Math.floor(Number(t.length/9)),u=0;u0){var b="A"+(10*c+l+1),y="A"+(10*c+l+p);n.mergeCells(b,y),n.getCell(b).alignment={vertical:"middle",horizontal:"center"}}if(v>0){var w="A"+(10*c+l+p+1),_="A"+(s+l-1);n.mergeCells(w,_),n.getCell(w).alignment={vertical:"middle",horizontal:"center"};var I=0;for(I=0;I3&&e.eachCell((function(e,t){e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),i.xlsx.writeBuffer({base64:!0}).then((function(t){var i=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(a.excelData.push({data:i,fileName:e.ChineseName+"_detail_ "+e.YearMonth+".xlsx"}),a.excelDataCount===a.excelData.length){var n=new m.a;a.excelData.forEach((function(e){n.file(e.fileName,e.data)})),n.generateAsync({type:"blob"}).then((function(t){Object(g["saveAs"])(t,"Monthly Payment Detail_"+e.YearMonth+".zip")})),a.exportDetailLoading=!1}}))},handleExportExcel:function(){var e=this,t=new h.a.Workbook,i=t.addWorksheet(this.listQuery.StatisticsDate);i.properties.defaultRowHeight=22,i.columns=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"DoctorNameInBank",width:15},{key:"Code",width:15},{key:"IDCard",width:20},{key:"Phone",width:15},{key:"BankCardNumber",width:25},{key:"BankName",width:30},{key:"PaymentUSD",width:20},{key:"ExchangeRate",width:20},{key:"PaymentCNY",width:20},{key:"IsLock",width:20}];var n=this,a=0,r=0,o=1,s=this.list.filter((function(t){return e.arrID.indexOf(t.DoctorId)>-1}));s.forEach((function(e){e.Index=o,e.PaymentUSD=e.PaymentUSD+e.AdjustPaymentUSD,e.PaymentCNY=e.PaymentCNY+e.AdjustPaymentCNY,a+=e.PaymentUSD,r+=e.PaymentCNY,e.IsLock=e.IsLock?"Locked":"Pending",o++})),i.mergeCells("A1","M2"),i.getCell("A1").value=n.listQuery.StatisticsDate+" Payment Summary",i.getCell("A1").alignment={vertical:"middle",horizontal:"center"},i.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},i.mergeCells("A3","M3"),i.getCell("A3").value="Month:"+n.listQuery.StatisticsDate,i.getCell("A3").alignment={vertical:"middle",horizontal:"right"},i.getRow(4).values=["","Surname","Given Name","Name CN","ID","Resident ID","Phone Number","Account Number","Bank","Payment($)","Exchange Rate","Payment(¥)","Status"],i.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},i.getRow(4).alignment={vertical:"middle",horizontal:"left"},i.addRows(s),i.addRow(["","Total","","","","","","","",a,"",r,""]),i.getRow(s.length+5).font={name:"SimSun",family:4,size:11,bold:!0},i.getColumn(10).numFmt="#,##0.00",i.getColumn(11).numFmt="#,##0.00",i.getColumn(12).numFmt="#,##0.00",i.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),t.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,"Payment Summary_"+n.listQuery.StatisticsDate+".xlsx");else{var i=document.createElement("a"),a=URL.createObjectURL(t);i.href=a,i.download="Payment Summary_"+n.listQuery.StatisticsDate+".xlsx",document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(a)}),0)}}))}},Object(d["c"])({setQueryParam:"financials/SET_PAYMENTQUERYPARAM"}))},y=b,w=(i("e199"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"23a2239d",null);t["default"]=_.exports},3983:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container financials"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Monthly Payment",name:"MonthlyPayment"}},["MonthlyPayment"==e.activeTab?i("monthly-payment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Payment History",name:"PaymentHistory"}},["PaymentHistory"==e.activeTab?i("payment-history"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Revenues",name:"Revenues"}},["Revenues"==e.activeTab?i("Revenues"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Analysis",name:"Analysis"}},[i("keep-alive",["Analysis"==e.activeTab?i("Analysis"):e._e()],1)],1)],1)],1)},a=[],r=(i("7f7f"),i("db72")),o=i("397a"),s=i("e297"),l=i("4463"),c=i("2610"),u=i("2f62"),d=i("4360"),f={name:"Financials",components:{MonthlyPayment:o["default"],PaymentHistory:s["default"],Revenues:l["default"],Analysis:c["default"]},data:function(){return{activeTab:"MonthlyPayment"}},computed:Object(r["a"])({},Object(u["b"])(["financialsActiveName"])),created:function(){this.activeTab=this.financialsActiveName},methods:{clickTab:function(e,t){this.activeTab=e.name,d["a"].dispatch("financials/setActiveName",e.name)}}},h=f,p=(i("1266"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"39b2":function(e,t,i){},"39b6":function(e,t,i){},"39e1":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"3a1d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basic-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Surname:"}},[i("span",[e._v(e._s(e.basicInfo.LastName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Given Name:"}},[i("span",[e._v(e._s(e.basicInfo.FirstName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Name CN:"}},[i("span",[e._v(e._s(e.basicInfo.ChineseName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"ID:"}},[i("span",[e._v(e._s(e.basicInfo.ReviewerCode))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Gender:"}},[e.isEnglish?i("span",[e._v(e._s(0===e.basicInfo.Sex?"Male":"Female"))]):i("span",[e._v(e._s(0===e.basicInfo.Sex?"男":"女"))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Title:"}},[e.isEnglish?i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.Title)&&e.basicInfo.Title.length>0?e.basicInfo.TitleList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.TitleCNList)&&e.basicInfo.TitleCNList.length>0?e.basicInfo.TitleCNList.join(", "):"")+"\n ")])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Phone:"}},[i("span",[e._v(e._s(e.basicInfo.Phone))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Email:"}},[i("span",[e._v(e._s(e.basicInfo.EMail))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"WeChat:"}},[i("span",[e._v(e._s(e.basicInfo.WeChat))])])],1)],1)],1)],1)},a=[],r={props:{basicInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("7a70"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"3a55":function(e,t,i){"use strict";i("c067")},"3a56":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("50e5"),c=i("cc39"),u=r.each,d=l.eachAxisDim,f=a.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=h(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this.doInit(n)},mergeOption:function(e){var t=h(e);r.merge(this.option,e,!0),r.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;o.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),p(this,e);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,i,n,a){var r=this.dependentModels[t.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new c(t.name,i,this,a));e[t.name+"_"+i]=o}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d((function(t){var i=t.axisIndex;e[i]=s.normalizeToArray(e[i])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d((function(i){null!=e[i.axisIndex]&&(t=!0)}),this);var i=e.orient;return null==i&&t?"orient":t?void 0:(null==i&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),i=this.option,n=this.dependentModels;if(e){var a="vertical"===t?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],e=!1):u(n.singleAxis,(function(n){e&&n.get("orient",!0)===t&&(i.singleAxisIndex=[n.componentIndex],e=!1)}))}e&&d((function(t){if(e){var n=[],a=this.dependentModels[t.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var e;return d((function(t){if(null==e){var i=this.get(t.axisIndex);i.length&&(e=this.dependentModels[t.axis][i[0]])}}),this),e},eachTargetAxis:function(e,t){var i=this.ecModel;d((function(n){u(this.get(n.axisIndex),(function(a){e.call(t,n,a,this,i)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var i=this.getAxisProxy(e,t);return i&&i.getAxisModel()},setRawRange:function(e){var t=this.option,i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(n){null==e[n[0]]&&null==e[n[1]]||(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(i){t[i]=e[i]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var i in t)if(t.hasOwnProperty(i)&&t[i].hostedBy(this))return t[i];for(var i in t)if(t.hasOwnProperty(i)&&!t[i].hostedBy(this))return t[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function h(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function p(e,t){var i=e._rangePropMode,n=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,a){var r=null!=t[e[0]],o=null!=t[e[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var m=f;e.exports=m},"3b50":function(e,t,i){"use strict";i("e64a")},"3ba1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"pageBreakForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"分页名称",prop:"PageName"}},[i("el-input",{model:{value:e.form.PageName,callback:function(t){e.$set(e.form,"PageName",t)},expression:"form.PageName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否公共分页",prop:"IsPublicPage"}},[i("el-radio-group",{model:{value:e.form.IsPublicPage,callback:function(t){e.$set(e.form,"IsPublicPage",t)},expression:"form.IsPublicPage"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsPublicPage"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnable"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={name:"PageBreakList",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{TrialId:"",Id:"",PageName:"",IsPublicPage:!1,IsEnable:!0,ShowOrder:0},rules:{PageName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],IsPublicPage:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){if(Object.keys(this.data).length>0){for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);if(!this.data.Path)return;this.fileList=[{name:this.data.FileName,path:this.data.Path}]}},handleSave:function(){var e=this;this.$refs.pageBreakForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,Object(r["r"])(e.form).then((function(t){e.loading=!1,e.$emit("getList",!0),e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleClose:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"07f9a91f",null);t["default"]=c.exports},"3c0de":function(e,t,i){"use strict";i("b590")},"3c13":function(e,t,i){"use strict";i("bad9")},"3ca6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:visitName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(t){return 4!==t.value?i("el-option",{key:"ReadingCategory"+t.label,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskAllocationState,callback:function(t){e.$set(e.searchData,"TaskAllocationState",t)},expression:"searchData.TaskAllocationState"}},e._l(e.$d.TaskAllocationState,(function(e){return i("el-option",{key:"TaskAllocationState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:reviewAssign:readingTask:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewAssign:readingTask:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewAssign:readingTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:readingTask:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewAssign:readingTask:table:visitName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewAssign:readingTask:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:readingTask:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewAssign:readingTask:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:reviewAssign:readingTask:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskAllocationState",label:e.$t("trials:reviewAssign:readingTask:table:assignStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskAllocationState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:reviewAssign:readingTask:table:role"),sortable:"custom","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:reader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.UserName?[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewAssign:readingTask:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewAssign:readingTask:table:assignTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"分配规则",visible:e.AllocationConfigVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("首次分配规则")]),e._v(" "),i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"60px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addOrEdit()}}},[e._v("\n 添加阅片人\n ")]),e._v(" "),i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"分配对象"}},[i("el-radio-group",{model:{value:e.TrialTaskInfo.TaskAllocateObjEnum,callback:function(t){e.$set(e.TrialTaskInfo,"TaskAllocateObjEnum",t)},expression:"TrialTaskInfo.TaskAllocateObjEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人列表"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.addOrEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("后续分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例随访阅片任务自动分配(在拟分配的阅片人未标记为退出项目状态时)默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2),e._v(" "),i("el-descriptions-item",{attrs:{label:"同一病例随访阅片任务自动分配(在拟分配的阅片人未标记为退出项目状态时)"}},[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例全局任务自动分配(在拟分配的阅片人未标记为退出项目状态时 默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.AutoAlloctionVisible?i("el-dialog",{attrs:{title:"分配阅片人",visible:e.AutoAlloctionVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AutoAlloctionVisible=t}}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:3,border:""}},[i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 分配对象\n ")]),e._v("\n "+e._s(e.$fd("TaskAllocateObj",e.TrialTaskInfo.TaskAllocateObjEnum))+"\n ")],2),e._v(" "),i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 备选医生\n ")]),e._v(" "),i("el-tag",[e._v(e._s(e.TaskAllocationRuleList.length?e.TaskAllocationRuleList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString().replaceAll(",","/"):"无"))])],2)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("受试者阅片人最新关系表")]),e._v(" "),i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.taskSearchData.SiteId,callback:function(t){e.$set(e.taskSearchData,"SiteId",t)},expression:"taskSearchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:"taskSearchData"+t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.taskSearchData.SubjectCode,callback:function(t){e.$set(e.taskSearchData,"SubjectCode",t)},expression:"taskSearchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.DoctorUserId,callback:function(t){e.$set(e.taskSearchData,"DoctorUserId",t)},expression:"taskSearchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否已分配阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsHaveAssigned,callback:function(t){e.$set(e.taskSearchData,"IsHaveAssigned",t)},expression:"taskSearchData.IsHaveAssigned"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否生效"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsAssignConfirmed,callback:function(t){e.$set(e.taskSearchData,"IsAssignConfirmed",t)},expression:"taskSearchData.IsAssignConfirmed"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.openAutoAlloction}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset2}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.autoSubjectAssignDoctor}},[e._v("\n 自动分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n 手动分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.cancelSubjectAssignDoctor()}}},[e._v("\n 解除分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAssignDoctorApplyTask(null)}}},[e._v("\n 生效\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],attrs:{border:"",data:e.SubjectAssignList,stripe:""},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:"中心编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"受试者编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},e._l(t.row.DoctorUserList,(function(t){return i("div",{key:"SubjectCode"+t.UserName,staticStyle:{display:"flex","justify-content":"center","align-items":"center","margin-right":"5px"}},[i("el-tag",[e._v("\n "+e._s(t.UserName+"("+t.FullName+")")+"\n ")])],1)})),0):e._e()]}}],null,!1,4042622574)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组001)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(t.row.DoctorUserList[0].UserName+"("+t.row.DoctorUserList[0].FullName+")")+"\n ")])],1):e._e()]}}],null,!1,479975459)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组002)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(t.row.DoctorUserList[1].UserName+"("+t.row.DoctorUserList[1].FullName+")")+"\n ")])],1):e._e()]}}],null,!1,979808675)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否分配阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAssignedDoctorUser?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))])]}}],null,!1,76085216)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否生效","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}],null,!1,1672716963)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"绑定时间",width:"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUserList.length?t.row.DoctorUserList[0].AssignTime:"")+"\n ")]}}],null,!1,1889675366)}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-connection",title:"应用"},on:{click:function(i){return e.manualAssignDoctorApplyTask(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-close",title:"清空阅片人"},on:{click:function(i){return e.cancelSubjectAssignDoctor(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-refresh-right",title:"手动分配"},on:{click:function(i){return e.manualAllocation(t.row)}}})]}}],null,!1,1674162749)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.SubjectAssignListTotal,page:e.taskSearchData.PageIndex,limit:e.taskSearchData.PageSize},on:{"update:page":function(t){return e.$set(e.taskSearchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.taskSearchData,"PageSize",t)},pagination:e.openAutoAlloction}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{id:"TaskAllocationRuleList",title:"选择阅片人",visible:e.manualAllocationVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("div",[i("div",{staticStyle:{"line-height":"32px"}},[e._v("\n 当前项目阅片模式为:"+e._s(e.$fd("ReadingMethod",e.ReadingType))+"\n ")]),e._v(" "),2===e.ReadingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择阅片人为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v("组001:"+e._s(e.TaskAllocationRuleSelectList[0].UserName.toString()+"("+e.TaskAllocationRuleSelectList[0].FullName+")"))]):e._e(),e._v(" "),e.TaskAllocationRuleSelectList.length>1?i("el-tag",[e._v("组002:"+e._s(e.TaskAllocationRuleSelectList[1].UserName.toString()+"("+e.TaskAllocationRuleSelectList[1].FullName+")"))]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#f00","margin-bottom":"20px"}},[e._v("\n 双重阅片模式下,阅片人根据勾选顺序进行分组\n ")]),e._v(" "),1===e.ReadingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择阅片人为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v(e._s(e.TaskAllocationRuleSelectList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString()))]):e._e()],1):e._e()]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""},on:{"selection-change":e.handleTaskAllocationRuleListSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,228767710)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,3338179)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,4239279070)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,617846255)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,1142938874)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,934377311)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}],null,!1,805216297)}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.manualAllocationVisible=!1,e.TaskAllocationRuleSelectList=[]}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveTaskAllocationRuleSelectList}},[e._v("\n 分配\n ")])],1)],1):e._e(),e._v(" "),e.readVisible?i("el-dialog",{attrs:{title:"分配",visible:e.readVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.applyVisible?i("el-dialog",{attrs:{title:"分配",visible:e.applyVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.applyVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.WaitApplyVisible?i("el-dialog",{attrs:{title:"确定生效吗?",visible:e.WaitApplyVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.WaitApplyVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.WaitApplyList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,228767710)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,3338179)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,4239279070)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后受试者比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount>0?(100*(t.row.SelfApplyedSubjectCount+t.row.WaitApplySelfSubjectCount)/(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,876227081)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,617846255)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后任务比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount>0?(100*(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount)/(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,2167506441)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,1142938874)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后总任务量","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(e._s(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,261709692)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,934377311)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后待处理任务量","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(" "+e._s(t.row.SelfUndoTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,518290002)})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.WaitApplyVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.manualAssignDoctorApplyTaskSave}},[e._v("\n 确定\n ")])],1)],1):e._e()],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=(i("c5f6"),i("3e42")),l=i("958c"),c=i("853a"),u=i("6071"),d=i("333d"),f=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,TrialReadingCriterionId:null}},h=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,TrialReadingCriterionId:null}},p={name:"TrialsNotice",components:{BaseContainer:u["default"],Pagination:d["default"],AddOrEditTaskAllocationRule:c["default"]},props:{allocationReadingCategory:{type:Number},allocationSubjectCode:{type:String},trialReadingCriterionId:{type:Number}},data:function(){return{trialCriterionList:[],searchData:f(),taskSearchData:h(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},ReadingType:null,rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null}},mounted:function(){this.searchData.ReadingCategory=this.allocationReadingCategory,this.searchData.SubjectCode=this.allocationSubjectCode,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.getDoctorUserSelectList(),this.getSite(),this.getList(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm("是否确定分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm("是否确定取消分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success("保存成功"),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("生效成功"),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId})))};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error("该项目没有有效阅片人")})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm("确定执行自动分配?").then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("自动分配成功"),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e,t=this;if(0!==this.TaskAllocationRuleSelectList.length)if(e=2===this.ReadingType?2:1,this.TaskAllocationRuleSelectList.length===e){this.loading=!0,this.btnLoading=!0;var i={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(e,i){return{DoctorUserId:e.DoctorUserId,ArmEnum:1===t.ReadingType?1:i+1}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0};Object(l["g"])(i).then((function(e){t.loading=!1,t.btnLoading=!1,t.openAutoAlloction(),t.TaskAllocationRuleSelectList=[],t.SubjectAssignSelectList=[],t.getDoctorUserSelectList(),t.$message.success("分配成功"),t.manualAllocationVisible=!1})).catch((function(){t.loading=!1,t.btnLoading=!1}))}else this.$message.error("当前阅片模式为".concat(this.$fd("ReadingMethod",this.ReadingType),",请选择正确阅片人数量"));else this.$message.error("请选择阅片人")},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},cancelSubjectAssignDoctor:function(e){var t=this;e?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var i={SubjectIdList:[e.SubjectId],TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(i).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):0!==this.SubjectAssignSelectList.length?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var e={SubjectIdList:t.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(e).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):this.$message.error("请勾选要清空阅片人的受试者")},manualAllocation:function(e){e&&(this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error("请勾选要分配的受试者")},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.AllocationConfigVisible=!1,e.getList(),e.$message.success("保存成功")})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.UserName,"(").concat(e.FullName,")的任务分配规则?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!1).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["ke"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReset2:function(){this.taskSearchData=h(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=(i("811f"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"1ce9d17e",null);t["default"]=v.exports},"3cd6":function(e,t,i){var n=i("6d8b"),a=i("48a9"),r=i("607d"),o=i("72b6"),s=i("2306"),l=i("3842"),c=i("ef6a"),u=i("cbb0"),d=i("e0d3"),f=l.linearMap,h=n.each,p=Math.min,m=Math.max,g=12,v=6,b=o.extend({type:"visualMap.continuous",init:function(){b.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,r=a.get("textGap"),o=a.itemSize,l=this._shapes.barGroup,c=this._applyTransform([o[0]/2,0===i?-r:o[1]+r],l),u=this._applyTransform(0===i?"bottom":"top",l),d=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===d?"middle":u,textAlign:"horizontal"===d?u:"center",text:n,textFont:f.getFont(),textFill:f.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,i=this._shapes,a=t.itemSize,r=this._orient,o=this._useHandle,s=u.getItemAlign(t,this.api,a),l=i.barGroup=this._createBarGroup(s);l.add(i.outOfRange=y()),l.add(i.inRange=y(null,o?S(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),d=m(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,a,d,r,s),this._createHandle(l,1,a,d,r,s)),this._createIndicator(l,a,d,r),e.add(l)},_createHandle:function(e,t,i,a,o){var l=n.bind(this._dragHandle,this,t,!1),c=n.bind(this._dragHandle,this,t,!0),u=y(w(t,a),S(this._orient),l,c);u.position[0]=i[0],e.add(u);var d=this.visualMapModel.textStyleModel,f=new s.Text({draggable:!0,drift:l,onmousemove:function(e){r.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:d.getFont(),textFill:d.getTextColor()}});this.group.add(f);var h=["horizontal"===o?a/2:1.5*a,"horizontal"===o?0===t?-1.5*a:1.5*a:0===t?-a/2:a/2],p=this._shapes;p.handleThumbs[t]=u,p.handleLabelPoints[t]=h,p.handleLabels[t]=f},_createIndicator:function(e,t,i,n){var a=y([[0,0]],"move");a.position[0]=t[0],a.attr({invisible:!0,silent:!0}),e.add(a);var r=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:r.getFont(),textFill:r.getTextColor()}});this.group.add(o);var l=["horizontal"===n?i/2:v+3,0],c=this._shapes;c.indicator=a,c.indicatorLabel=o,c.indicatorLabelPoint=l},_dragHandle:function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(e,a[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():x(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[f(t[0],i,n,!0),f(t[1],i,n,!0)]},_updateInterval:function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,a=[0,i.itemSize[1]];c(t,n,a,e,0);var r=i.getExtent();this._dataInterval=[f(n[0],a,r,!0),f(n[1],a,r,!0)]},_updateView:function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,a=[0,t.itemSize[1]],r=e?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,r,"inRange"),s=this._createBarVisual(i,i,a,"outOfRange");n.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,o)},_createBarVisual:function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),s=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(i,s);return{barColor:new a(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(e,t){var i=100,n=[],a=(e[1]-e[0])/i;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;re[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/i})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||i?"horizontal"===t&&i?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||i?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;h([0,1],(function(o){var l=a[o];l.setStyle("fill",t.handlesColor[o]),l.position[1]=e[o];var c=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));r[o].setStyle({x:c[0],y:c[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(e,t,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,l=[0,o[1]],c=f(e,r,l,!0),u=this._shapes,d=u.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",_(!!i,n,c,o[1]));var h={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",h);d.setStyle("fill",p);var m=s.applyTransform(u.indicatorLabelPoint,s.getTransform(d,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),b=this._orient;g.setStyle({text:(i||"")+a.formatValueText(t),textVerticalAlign:"horizontal"===b?v:"middle",textAlign:"horizontal"===b?"center":v,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);n[1]=p(m(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();e=p(m(a[0],e),a[1]);var o=I(i,r,a),s=[e-o,e+o],l=f(e,a,r,!0),c=[f(s[0],a,r,!0),f(s[1],a,r,!0)];s[0]a[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var h=this._hoverLinkDataIndices,g=[];(t||x(i))&&(g=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var v=d.compressBatches(h,g);this._dispatchHighDown("downplay",u.makeHighDownBatch(v[0],i)),this._dispatchHighDown("highlight",u.makeHighDownBatch(v[1],i))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,i=this.visualMapModel;if(t&&null!=t.dataIndex){var n=this.ecModel.getSeriesByIndex(t.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(t.dataType),r=a.get(i.getDataDimension(a),t.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,i,a){var r=s.getTransform(t,a?null:this.group);return s[n.isArray(e)?"applyTransform":"transformDirection"](e,r,i)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(e,t,i,n){return new s.Polygon({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){r.stop(e.event)},ondragend:n})}function w(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function _(e,t,i,n){return e?[[0,-p(t,m(i,0))],[v,0],[0,p(t,m(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function I(e,t,i){var n=g/2,a=e.get("hoverLinkDataSize");return a&&(n=f(a,t,i,!0)/2),n}function x(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function S(e){return"vertical"===e?"ns-resize":"ew-resize"}var T=b;e.exports=T},"3ce3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-card",{staticClass:"Security",staticStyle:{width:"800px"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("admin:Security")))])]),e._v(" "),i("el-form",{ref:"userAccount",staticStyle:{width:"600px"},attrs:{model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-form-item",{attrs:{label:e.$t("admin:OldPassWord"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.OldPassWord,callback:function(t){e.$set(e.user,"OldPassWord",t)},expression:"user.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:NewPassWord"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.NewPassWord,callback:function(t){e.$set(e.user,"NewPassWord",t)},expression:"user.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ConfirmPassWord"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.ConfirmPassWord,callback:function(t){e.$set(e.user,"ConfirmPassWord",t)},expression:"user.ConfirmPassWord"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)],1)],1)},a=[],r=i("db72"),o=i("50fc"),s=i("4360"),l=i("2f62"),c=i("8237"),u=i.n(c),d={data:function(){return{user:{},userFormRules:{OldPassWord:[{required:!0,message:"Please specify",trigger:"blur"}],NewPassWord:[{required:!0,message:"Please specify",trigger:"blur"},{min:6,max:20,message:"Passwords consist of 6-20 characters",trigger:"blur"}],ConfirmPassWord:[{required:!0,message:"Please specify",trigger:"blur"},{min:6,max:20,message:"Passwords consist of 6-20 characters",trigger:"blur"}]}}},computed:Object(r["a"])({},Object(l["b"])(["userId"])),created:function(){""===this.userId&&s["a"].dispatch("user/getInfo")},methods:{save:function(){var e=this;this.$refs.userAccount.validate((function(t){if(t){if(e.user.NewPassWord!==e.user.ConfirmPassWord)return void e.$message.error("The two passwords differ");var i={UserId:e.userId,NewPassWord:u()(e.user.NewPassWord),OldPassWord:u()(e.user.OldPassWord)};Object(o["r"])(i).then((function(t){t.IsSuccess&&e.$message({message:"Updated successfully",type:"success"})}))}}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"3ce7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tp-list data-list"},[i("div",{staticClass:"filter-container"},[i("span",[e._v("Subject ID:")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small"},model:{value:e.listQuery.SubjectCode,callback:function(t){e.$set(e.listQuery,"SubjectCode",t)},expression:"listQuery.SubjectCode"}}),e._v(" "),i("span",[e._v("Status:")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.Status,callback:function(t){e.$set(e.listQuery,"Status",t)},expression:"listQuery.Status"}},[i("el-option",{attrs:{value:30,label:"待读"}}),e._v(" "),i("el-option",{attrs:{value:80,label:"已读"}})],1),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",size:"small"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"TrialId",sortable:"custom","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialIndication",label:"Indication",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"Subject ID","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:"Status","show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.handleStatus(t.row.Status)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"UpdateTime","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goAdReport(t.row)}}},[e._v("Detail")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=i("3e42"),o=i("333d"),s=function(){return{SubjectCode:"",Status:30,WorkloadType:3,Expedited:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:s(),listLoading:!1,total:0,row:{},trialCode:"",types:[{Type:"TP",Value:1},{Type:"Global",Value:2},{Type:"AD",Value:3}]}},created:function(){this.listQuery.TrialId=zzSessionStorage.getItem("trialId"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["me"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},goAdReport:function(e){this.$router.push({name:"adTask",query:e})},handleStatus:function(e){return 30===e?"待读":80===e?"已读":""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},c=l,u=(i("e254"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"838a4de0",null);t["default"]=d.exports},"3cf3":function(e,t,i){"use strict";i("49dc")},"3d18":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r}));var n=[{type:"index"},{prop:"KeyName",label:"Key",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Value",label:"Value",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ValueCN",label:"Value CN",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ShowOrder",label:"Show Order",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a=[{type:"index"},{prop:"KeyName",label:"Key",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Value",label:"Value",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ShowOrder",label:"Show Order",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],r={visible:!1,title:"",width:"600px",showClose:!0}},"3d24":function(e,t,i){"use strict";i("ebd6c")},"3d8c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[2!==e.auditState&&14===e.userTypeEnumInt?i("el-form-item",{staticStyle:{"text-align":"right",width:"500px"}}):e._e(),e._v(" "),e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"audit-state":e.state},on:{resetFormItemData:e.resetFormItemData}})}))],2):e._e()],1)},a=[],r=(i("ac6a"),i("c5f6"),i("3e42")),o=i("9c7e"),s={name:"QuestionTpl",components:{FormItem:o["default"]},props:{questionAnswerList:{type:Array,default:function(){return[]}},taskMedicalReviewId:{type:String,required:!0},auditState:{type:Number,required:!0}},data:function(){return{loading:!1,questionForm:{},isRender:!1,trialId:"",readingTaskState:0,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),state:1*zzSessionStorage.getItem("userTypeEnumInt")===14?this.auditState:2}},mounted:function(){this.trialId=this.$route.query.trialId,this.getQuestions()},methods:{handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["questions"].validate((function(a){if(a){t.loading=!0;var o=[];for(var s in t.questionForm)o.push({id:s,answer:t.questionForm[s]});var l={visitTaskId:t.visitTaskId,taskMedicalReviewId:t.taskMedicalReviewId,questionAnswerList:o};Object(r["Be"])(l).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}else n()}))}))},save:function(){var e=this;return new Promise((function(t,i){e.$refs["questions"].validate((function(n){if(n){e.loading=!0;var a=[];for(var o in e.questionForm)a.push({id:o,answer:e.questionForm[o]});var s={visitTaskId:e.visitTaskId,taskMedicalReviewId:e.taskMedicalReviewId,questionAnswerList:a};Object(r["Be"])(s).then((function(i){e.loading=!1,t(!0)})).catch((function(){e.loading=!1,i()}))}else t(!1)}))}))},getQuestions:function(){var e=this;this.loading=!0;var t=[];this.questionAnswerList.map((function(i){"group"===i.Type&&0===i.Childrens.length||(t.push(i),"group"!==i.Type&&"summary"!==i.Type&&(e.$set(e.questionForm,i.Id,i.Answer?i.Answer:""),i.Childrens.length>0&&e.setChild(i.Childrens)))})),this.questions=t,this.isRender=!0,this.loading=!1},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=null}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"3d96":function(e,t,i){},"3da5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tp-list data-list"},[i("div",{staticClass:"filter-container"},[i("span",[e._v("Subject ID:")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small"},model:{value:e.listQuery.SubjectCode,callback:function(t){e.$set(e.listQuery,"SubjectCode",t)},expression:"listQuery.SubjectCode"}}),e._v(" "),i("span",[e._v("Status:")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.Status,callback:function(t){e.$set(e.listQuery,"Status",t)},expression:"listQuery.Status"}},[i("el-option",{attrs:{value:30,label:"待读"}}),e._v(" "),i("el-option",{attrs:{value:80,label:"已读"}})],1),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",size:"small"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"TrialId",sortable:"custom","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialIndication",label:"Indication",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"Subject ID","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit Name","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:"Visit Num","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:"Status","show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.handleStatus(t.row.Status)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"UpdateTime","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("Read")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=i("3e42"),o=i("333d"),s=function(){return{SubjectCode:"",Status:30,WorkloadType:1,Expedited:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:s(),listLoading:!1,total:0,row:{},trialCode:"",types:[{Type:"TP",Value:1},{Type:"Global",Value:2},{Type:"AD",Value:3}]}},created:function(){this.listQuery.TrialId=zzSessionStorage.getItem("trialId"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["me"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleDetail:function(e){1===e.VisitNum?this.$router.push({name:"baselineTask",query:e}):this.$router.push({name:"VisitTask",query:e});var t=this.$router.resolve({path:"/showdicom",query:{studyId:e.StudyId,tpCode:e.WorkloadCode,baseLine:1===e.VisitNum,type:"TP",token:zzSessionStorage.getItem("TokenKey")}});window.setTimeout((function(){window.open(t.href,"_blank")}),1e3)},handleStatus:function(e){return 30===e||40===e?"待读":80===e?"已读":""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},c=l,u=(i("9f39"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"3d0ebc70",null);t["default"]=d.exports},"3e15":function(e,t,i){var n,a;!function(r,o){n=o,a="function"===typeof n?n.call(t,i,t,e):n,void 0===a||(e.exports=a)}(0,(function(){function e(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var i=document.getElementsByTagName("head")[0];i.insertBefore(t,i.firstChild);for(var n,a=document.createElement("a"),r=1;r0&&e.unfinished);e.unfinished||this._zr.flush()}}},ne.getDom=function(){return this._dom},ne.getZr=function(){return this._zr},ne.setOption=function(e,t,i){if(this._disposed)we(this.id);else{var n;if(A(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[Z]=!0,!this._model||t){var a=new h(this._api),r=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,r,a)}this._model.setOption(e,De),i?(this[X]={silent:n},this[Z]=!1):(oe(this),re.update.call(this),this._zr.flush(),this[X]=!1,this[Z]=!1,ue.call(this,n),de.call(this,n))}},ne.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ne.getModel=function(){return this._model},ne.getOption=function(){return this._model&&this._model.getOption()},ne.getWidth=function(){return this._zr.getWidth()},ne.getHeight=function(){return this._zr.getHeight()},ne.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ne.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ne.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return r.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ne.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,i=this._model,n=[],a=this;$(t,(function(e){i.eachComponent({mainType:e},(function(e){var t=a._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return $(n,(function(e){e.group.ignore=!1})),r}we(this.id)},ne.getConnectedDataURL=function(e){if(this._disposed)we(this.id);else if(s.canvasSupported){var t="svg"===e.type,i=this.group,n=Math.min,o=Math.max,l=1/0;if(Pe[i]){var c=l,u=l,d=-l,f=-l,h=[],p=e&&e.pixelRatio||1;r.each(Ae,(function(a,s){if(a.group===i){var l=t?a.getZr().painter.getSvgDom().innerHTML:a.getRenderedCanvas(r.clone(e)),p=a.getDom().getBoundingClientRect();c=n(p.left,c),u=n(p.top,u),d=o(p.right,d),f=o(p.bottom,f),h.push({dom:l,left:p.left,top:p.top})}})),c*=p,u*=p,d*=p,f*=p;var m=d-c,g=f-u,v=r.createCanvas(),b=a.init(v,{renderer:t?"svg":"canvas"});if(b.resize({width:m,height:g}),t){var y="";return $(h,(function(e){var t=e.left-c,i=e.top-u;y+=''+e.dom+""})),b.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&b.painter.setBackgroundColor(e.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}return e.connectedBackgroundColor&&b.add(new w.Rect({shape:{x:0,y:0,width:m,height:g},style:{fill:e.connectedBackgroundColor}})),$(h,(function(e){var t=new w.Image({style:{x:e.left*p-c,y:e.top*p-u,image:e.dom}});b.add(t)})),b.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ne.convertToPixel=r.curry(ae,"convertToPixel"),ne.convertFromPixel=r.curry(ae,"convertFromPixel"),ne.containPixel=function(e,t){if(!this._disposed){var i,n=this._model;return e=_.parseFinder(n,e),r.each(e,(function(e,n){n.indexOf("Models")>=0&&r.each(e,(function(e){var a=e.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(t);else if("seriesModels"===n){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(i|=r.containPoint(t,e))}}),this)}),this),!!i}we(this.id)},ne.getVisual=function(e,t){var i=this._model;e=_.parseFinder(i,e,{defaultMainType:"series"});var n=e.seriesModel,a=n.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?a.indexOfRawIndex(e.dataIndex):null;return null!=r?a.getItemVisual(r,t):a.getVisual(t)},ne.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ne.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var re={prepareAndUpdate:function(e){oe(this),re.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,r=this._scheduler;if(t){r.restoreData(t,e),r.performSeriesTasks(t),a.create(t,i),r.performDataProcessorTasks(t,e),le(this,t),a.update(t,i),pe(t),r.performVisualTasks(t,e),me(this,t,i,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)n.setBackgroundColor(l);else{var c=o.parse(l);l=o.stringify(c,"rgb"),0===c[3]&&(l="transparent")}be(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var a=[];t.eachComponent((function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,t,n,e);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();t.eachSeries((function(a){var r=i._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,t,n,e);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:o}),ve(i,t,n,e,o),be(t,this._api)}},updateView:function(e){var t=this._model;t&&(y.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),me(this,this._model,this._api,e),be(t,this._api))},updateVisual:function(e){re.update.call(this,e)},updateLayout:function(e){re.update.call(this,e)}};function oe(e){var t=e._model,i=e._scheduler;i.restorePipelines(t),i.prepareStageTasks(),he(e,"component",t,i),he(e,"chart",t,i),i.plan()}function se(e,t,i,n,a){var o=e._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var c=i.excludeSeriesId;null!=c&&(c=r.createHashMap(_.normalizeToArray(c))),o&&o.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else $(e._componentsViews.concat(e._chartsViews),u);function u(n){n&&n.__alive&&n[t]&&n[t](n.__model,o,e._api,i)}}function le(e,t){var i=e._chartsMap,n=e._scheduler;t.eachSeries((function(e){n.updateStreamModes(e,i[e.__viewId])}))}function ce(e,t){var i=e.type,n=e.escapeConnect,a=Ce[i],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&P(s[0]),this[Z]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=r.map(e.batch,(function(t){return t=r.defaults(r.extend({},t),e),t.batch=null,t})));var d,f=[],h="highlight"===i||"downplay"===i;$(c,(function(e){d=a.action(e,this._model,this._api),d=d||r.extend({},e),d.type=o.event||d.type,f.push(d),h?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||h||s||(this[X]?(oe(this),re.update.call(this,e),this[X]=!1):re[l].call(this,e)),d=u?{type:o.event||i,escapeConnect:n,batch:f}:f[0],this[Z]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ue(e){var t=this._pendingActions;while(t.length){var i=t.shift();ce.call(this,i,e)}}function de(e){!e&&this.trigger("updated")}function fe(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[X]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function he(e,t,i,n){for(var a="component"===t,r=a?e._componentsViews:e._chartsViews,o=a?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;ct.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function Ie(e,t){var i=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==i&&e.setStyle("blend",i),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",i)}))}))}function xe(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))}))}function Se(e){var t=e._coordSysMgr;return r.extend(new d(e),{getCoordinateSystems:r.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}}})}function Te(){this.eventInfo}ne._initEvents=function(){$(ye,(function(e){var t=function(t){var i,n=this.getModel(),a=t.target,o="globalout"===e;if(o)i={};else if(a&&null!=a.dataIndex){var s=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=s&&s.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r.extend({},a.eventData));if(i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&n.getComponent(l,c),d=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:d},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),$(ke,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ne.isDisposed=function(){return this._disposed},ne.clear=function(){this._disposed?we(this.id):this.setOption({series:[]},!0)},ne.dispose=function(){if(this._disposed)we(this.id);else{this._disposed=!0,_.setAttribute(this.getDom(),Fe,"");var e=this._api,t=this._model;$(this._componentsViews,(function(i){i.dispose(t,e)})),$(this._chartsViews,(function(i){i.dispose(t,e)})),this._zr.dispose(),delete Ae[this.id]}},r.mixin(ie,c),Te.prototype={constructor:Te,normalizeQuery:function(e){var t={},i={},n={};if(r.isString(e)){var a=P(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(e,(function(e,a){for(var r=!1,l=0;l0&&u===a.length-c.length){var d=a.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,r=!0)}}s.hasOwnProperty(a)&&(i[a]=e,r=!0),r||(n[a]=e)}))}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t,i){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,r,"name")&&u(c,r,"dataIndex")&&u(c,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,r));function u(e,t,i,n){return null==e[i]||t[n||i]===e[i]}},afterTrigger:function(){this.eventInfo=null}};var Ce={},ke={},Re=[],De=[],Le=[],Oe=[],$e={},Ne={},Ae={},Pe={},Ee=new Date-0,Me=new Date-0,Fe="_echarts_instance_";function je(e){var t=0,i=1,n=2,a="__connectUpdateStatus";function r(e,t){for(var i=0;i-w}function x(e,t){var i=t?e.textFill:e.fill;return null!=i&&i!==h}function S(e,t){var i=t?e.textStroke:e.stroke;return null!=i&&i!==h}function T(e,t){t&&C(e,"transform","matrix("+f.call(t,",")+")")}function C(e,t,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&e.setAttribute(t,i)}function k(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function R(e,t,i,n){if(x(t,i)){var a=i?t.textFill:t.fill;a="transparent"===a?h:a,C(e,"fill",a),C(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else C(e,"fill",h);if(S(t,i)){var r=i?t.textStroke:t.stroke;r="transparent"===r?h:r,C(e,"stroke",r);var o=i?t.textStrokeWidth:t.lineWidth,s=!i&&t.strokeNoScale?n.getLineScale():1;C(e,"stroke-width",o/s),C(e,"paint-order",i?"stroke":"fill"),C(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(C(e,"stroke-dasharray",t.lineDash.join(",")),C(e,"stroke-dashoffset",p(t.lineDashOffset||0))):C(e,"stroke-dasharray",""),t.lineCap&&C(e,"stroke-linecap",t.lineCap),t.lineJoin&&C(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&C(e,"stroke-miterlimit",t.miterLimit)}else C(e,"stroke",h)}function D(e){for(var t=[],i=e.data,n=e.len(),a=0;a=b:-w>=b),k=w>0?w%b:w%b+b,R=!1;R=!!C||!I(T)&&k>=v===!!S;var D=_(l+u*g(h)),L=_(c+f*m(h));C&&(w=S?b-1e-4:1e-4-b,R=!0,9===a&&t.push("M",D,L));var O=_(l+u*g(h+w)),$=_(c+f*m(h+w));t.push("A",_(u),_(f),p(x*y),+R,+S,O,$);break;case d.Z:o="Z";break;case d.R:O=_(i[a++]),$=_(i[a++]);var N=_(i[a++]),A=_(i[a++]);t.push("M",O,$,"L",O+N,$,"L",O+N,$+A,"L",O,$+A,"L",O,$);break}o&&t.push(o);for(var P=0;P$){for(;L0&&void 0!==arguments[0])||arguments[0];return new Promise((function(i,n){e.$refs["readingCriterionsForm"].validate((function(n){n?(e.loading=!0,t||(e.form.IsSignSave=!0),e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(r["We"])(e.form).then((function(n){e.loading=!1,n.IsSuccess&&t&&e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("reloadArbitrationRules"),i(!0)})).catch((function(t){e.loading=!1,i(!1)}))):i(!1)}))}))},reloadArbitrationRules:function(){this.$emit("reloadArbitrationRules")},handleConfig:function(){}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"414c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-form",{ref:"qualifiedForm",attrs:{model:e.reportResult}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Qualified for Review:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.Qualified,callback:function(t){e.$set(e.reportResult,"Qualified",t)},expression:"reportResult.Qualified"}},[i("el-radio",{attrs:{label:!0}},[e._v("Qualified")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Qualified")])],1),e._v(" "),!1===e.reportResult.Qualified?i("div",[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.AffectRead,callback:function(t){e.$set(e.reportResult,"AffectRead",t)},expression:"reportResult.AffectRead"}},[i("el-radio",{attrs:{label:!0}},[e._v("Affect")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Affect")])],1),e._v(" "),i("el-input",{attrs:{type:"textarea",rows:4,placeholder:"Please input Reason Or Note"},model:{value:e.reportResult.AffectReadNote,callback:function(t){e.$set(e.reportResult,"AffectReadNote",t)},expression:"reportResult.AffectReadNote"}})],1):e._e()],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-nodular Target Lesions (Non-lymph Node Target Lesions)",name:"Non-lymphNodeTarget",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.NonlymphNodeTargetList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRES",label:"Long Axis Measurement(mm)","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Anatomy Description","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Nodular Target Lesions (Lymph Node Target Lesions)",name:"LymphNodeTarget",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.LymphNodeTargetList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRES",label:"Short Axis Measurement(mm)","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-target Lesion",name:"Non-targetLesion",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.NontargetLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100",disabled:e.isReportSaved},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small"},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Measurements Calculation",name:"MeasurementsCalculation",disabled:""}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[i("span",{staticStyle:{"margin-left":"10px"}},[e._v("SOD(mm):")]),e._v(" "),i("el-input",{attrs:{disabled:""},model:{value:e.SOD,callback:function(t){e.SOD=t},expression:"SOD"}})],1)]),e._v(" "),i("el-col",{attrs:{span:6,offset:6}},[i("div",{staticClass:"grid-content bg-purple"},[i("span",{staticStyle:{"margin-left":"10px"}},[e._v("Non-nodular Lesions SOD(mm):")]),e._v(" "),i("el-input",{attrs:{disabled:""},model:{value:e.NonnodularLesionsSOD,callback:function(t){e.NonnodularLesionsSOD=t},expression:"NonnodularLesionsSOD"}})],1)])],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Disease Situation",name:"DiseaseSituation",disabled:""}},[i("el-form",{ref:"situationForm",attrs:{model:e.reportResult,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"DiseaseSituation",label:"Disease present or absent:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.DiseaseSituation,callback:function(t){e.$set(e.reportResult,"DiseaseSituation",t)},expression:"reportResult.DiseaseSituation"}},[i("el-radio",{attrs:{label:1}},[e._v("Present")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("Absent")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("NE")])],1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"Comments",label:"Comments"}},[i("el-input",{staticStyle:{margin:"10px"},attrs:{type:"textarea",rows:2,placeholder:"Comment",disabled:e.isReportSaved},model:{value:e.reportResult.Comment,callback:function(t){e.$set(e.reportResult,"Comment",t)},expression:"reportResult.Comment"}})],1)],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.addBaseLine}},[e._v("Save")]),e._v(" "),i("el-button",{staticStyle:{float:"left","margin-left":"600px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.submiteReport}},[e._v("Submit Report")])],1)],1)},a=[],r=(i("55dd"),i("28a5"),i("ac6a"),i("0a05")),o={name:"WorkloadTask",data:function(){return{isReportSaved:!1,pageTPInfo:"",activeNames:["ImageQualityAssessment","Non-lymphNodeTarget","LymphNodeTarget","Non-targetLesion","MeasurementsCalculation","DiseaseSituation"],NonlymphNodeTargetEditVisible:!1,LymphNodeTargetEditVisible:!1,NontargetLesionEditVisible:!1,lymphNodeTargetFormModel:{},nonlymphNodeTargetFormModel:{},nontargetLesionFormModel:{},NonlymphNodeTargetList:[],LymphNodeTargetList:[],NontargetLesionList:[],imageLabelList:[],imageDataHasUpdate:!1,reportResult:{TpCode:"",Qualified:"",DiseaseProgression:"",NotEvaluable:"",Timepoint:"",TrialCode:"",SubjectCode:"",VisitNum:"",VisitName:"",DiseaseSituation:"",Comment:"",TPId:"",DicomStudyId:""}}},computed:{SOD:function(){var e=0;return this.NonlymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),this.LymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),e},NonnodularLesionsSOD:function(){var e=0;return this.NonlymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),e}},created:function(){this.pageTPInfo=this.$route.query,this.reportResult.TpCode=this.pageTPInfo.WorkloadCode,this.reportResult.TrialCode=this.pageTPInfo.TrialCode,this.reportResult.SubjectCode=this.pageTPInfo.SubjectCode,this.reportResult.VisitNum=this.pageTPInfo.VisitNum,this.reportResult.VisitName=this.pageTPInfo.VisitName,this.reportResult.TPId=this.pageTPInfo.WorkloadId,this.reportResult.DicomStudyId=this.pageTPInfo.StudyId,this.isReportSaved=80===this.pageTPInfo.Status,this.getBLLineLesion()},mounted:function(){var e=this;window.addEventListener("storage",(function(t){if(-1!==t.url.indexOf("baseLine")&&"measureData"===t.key){var i=JSON.parse(t.newValue),n=i[e.pageTPInfo.WorkloadCode];if(i){e.imageDataHasUpdate=!0,e.imageLabelList=[],n.forEach((function(t){return e.imageLabelList.push(t)}));var a=n.filter((function(e){return 1===e.lesionType})),r=n.filter((function(e){return 2===e.lesionType})),o=n.filter((function(e){return 3===e.lesionType}));a.length>0&&(a.forEach((function(t){var i=t.lesionLocation.split("-");t.TRORRES=t.lesionValue.substring(0,t.lesionValue.length-2),t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.NonlymphNodeTargetList.filter((function(e){return e.lesionValue===t.lesionValue&&e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.NonlymphNodeTargetList=a),r.length>0&&(r.forEach((function(t){var i=t.lesionLocation.split("-");t.TRORRES=t.lesionValue.substring(0,t.lesionValue.length-2),t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.LymphNodeTargetList.filter((function(e){return e.lesionValue===t.lesionValue&&e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.LymphNodeTargetList=r),o.length>0&&(o.forEach((function(t){var i=t.lesionLocation.split("-");t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.NontargetLesionList.filter((function(e){return e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.NontargetLesionList=o),delete i[e.pageTPInfo.WorkloadCode],localStorage.setItem("measureData",JSON.stringify(i))}}}))},methods:{getBLLineLesion:function(){var e=this,t=this;Object(r["f"])(this.pageTPInfo.TrialCode,this.pageTPInfo.SubjectCode,this.pageTPInfo.WorkloadCode).then((function(i){i.Result.LesionInformation.length>0&&(t.NonlymphNodeTargetList=i.Result.LesionInformation.filter((function(e){return 1===e.LesionType})),t.LymphNodeTargetList=i.Result.LesionInformation.filter((function(e){return 2===e.LesionType})),t.NontargetLesionList=i.Result.LesionInformation.filter((function(e){return 3===e.LesionType}))),i.Result.ReportResult&&(t.reportResult=i.Result.ReportResult),t.reportResult.TpCode=e.pageTPInfo.WorkloadCode}))},addBaseLine:function(){var e=this,t=this;this.$refs.qualifiedForm.validate((function(i){i&&e.$refs.situationForm.validate((function(i){if(i){var n=[];t.NonlymphNodeTargetList.length+t.LymphNodeTargetList.length>5&&n.push("The number of target lesions should not exceed 5 .");var a=t.NonlymphNodeTargetList.map((function(e,t){if(e.TULOC)return e.TULOC})),o=t.LymphNodeTargetList.map((function(e,t){if(e.TULOC)return e.TULOC})),s=a.concat(o),l=t.getCount(s,1);if(l[0].count>2){n.push("The number of lesions in the same organ should not exceed 2 ");var c=n.join("\n");e.$alert(c,"target lesion",{confirmButtonText:"确定"})}var u=[];e.NonlymphNodeTargetList.forEach((function(t){u.push({LesionType:1,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.LymphNodeTargetList.forEach((function(t){u.push({LesionType:2,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.NontargetLesionList.forEach((function(t){u.push({LesionType:3,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"None TARGET",TUSTRESC:"None TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.$confirm("Sure fill in all the information?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["d"])({lesionInformation:u,reportResult:e.reportResult,sumOfDiameter:e.SOD,sumDiameterOfNonLymphNode:e.NonnodularLesionsSOD}).then((function(t){e.getBLLineLesion(),e.$message.success("saved successfully")}))})),t.imageDataHasUpdate&&t.saveImageLabel()}}))}))},saveImageLabel:function(){var e=this,t={};t.TpCode=this.pageTPInfo.WorkloadCode,t.ImageLabelList=[],this.imageLabelList.forEach((function(i){t.ImageLabelList.push({StudyId:e.pageTPInfo.StudyId,LabelValue:JSON.stringify(i),SeriesId:i.seriesId,InstanceId:i.instanceId})})),Object(r["o"])(t).then((function(t){e.imageDataHasUpdate=!1,e.$message.success("saved imgeLable successfully")}))},submiteReport:function(){var e=this;Object(r["q"])(this.pageTPInfo.WorkloadId).then((function(t){e.$message.success("Report saved successfully"),e.isReportSaved=!0}))},getCount:function(e,t,i){for(var n,a={},r=[],o=0,s=e.length;o=2||e.fileList.length>=e.question.ImageCount||e.task.VisitTaskId!==e.visitTaskId||e.question.IsShowInDicom},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2||e.task.VisitTaskId!==e.visitTaskId||e.question.IsShowInDicom},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)},a=[],r=(i("20d6"),i("7f7f"),i("386d"),i("28a5"),i("c5f6"),i("3e42")),o={name:"CustomizeReportPageUpload",props:{task:{Type:Object,required:!0},question:{Type:Object,required:!0},visitTaskId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},initUrl:{type:String,default:""}},data:function(){return{imgVisible:!1,imageUrl:null,accept:".png,.jpg,.jpeg",fileList:[]}},mounted:function(){var e=this;console.log(this.initUrl),console.log(this.readingTaskState),this.urls=""===this.initUrl?[]:this.initUrl.split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))},methods:{checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setImageUrl",t.urls.length>0?t.urls.join("|"):"")),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("bdab5"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"3c669c59",null);t["default"]=c.exports},"41ef":function(e,t,i){var n=i("d51b"),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?r(parseFloat(e)/100*255):r(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function d(e,t,i){return e+(t-e)*i}function f(e,t,i,n,a){return e[0]=t,e[1]=i,e[2]=n,e[3]=a,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new n(20),m=null;function g(e,t){m&&h(m,t),m=p.put(e,m||t.slice())}function v(e,t){if(e){t=t||[];var i=p.get(e);if(i)return h(t,i);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in a)return h(t,a[n]),g(e,t),t;if("#"!==n.charAt(0)){var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===n.length){var s=n.substr(0,r),u=n.substr(r+1,o-(r+1)).split(","),d=1;switch(s){case"rgba":if(4!==u.length)return void f(t,0,0,0,1);d=c(u.pop());case"rgb":return 3!==u.length?void f(t,0,0,0,1):(f(t,l(u[0]),l(u[1]),l(u[2]),d),g(e,t),t);case"hsla":return 4!==u.length?void f(t,0,0,0,1):(u[3]=c(u[3]),b(u,t),g(e,t),t);case"hsl":return 3!==u.length?void f(t,0,0,0,1):(b(u,t),g(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===n.length){var m=parseInt(n.substr(1),16);return m>=0&&m<=4095?(f(t,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1),g(e,t),t):void f(t,0,0,0,1)}if(7===n.length){m=parseInt(n.substr(1),16);return m>=0&&m<=16777215?(f(t,(16711680&m)>>16,(65280&m)>>8,255&m,1),g(e,t),t):void f(t,0,0,0,1)}}}}function b(e,t){var i=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),a=c(e[2]),o=a<=.5?a*(n+1):a+n-a*n,s=2*a-o;return t=t||[],f(t,r(255*u(s,o,i+1/3)),r(255*u(s,o,i)),r(255*u(s,o,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,i,n=e[0]/255,a=e[1]/255,r=e[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,c=(s+o)/2;if(0===l)t=0,i=0;else{i=c<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,d=((s-a)/6+l/2)/l,f=((s-r)/6+l/2)/l;n===s?t=f-d:a===s?t=1/3+u-f:r===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,i,c];return null!=e[3]&&h.push(e[3]),h}}function w(e,t){var i=v(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0,i[n]>255?i[n]=255:e[n]<0&&(i[n]=0);return R(i,4===i.length?"rgba":"rgb")}}function _(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function I(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),l=t[a],c=t[o],u=n-a;return i[0]=r(d(l[0],c[0],u)),i[1]=r(d(l[1],c[1],u)),i[2]=r(d(l[2],c[2],u)),i[3]=s(d(l[3],c[3],u)),i}}var x=I;function S(e,t,i){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),l=v(t[a]),c=v(t[o]),u=n-a,f=R([r(d(l[0],c[0],u)),r(d(l[1],c[1],u)),r(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return i?{color:f,leftIndex:a,rightIndex:o,value:n}:f}}var T=S;function C(e,t,i,n){if(e=v(e),e)return e=y(e),null!=t&&(e[0]=o(t)),null!=i&&(e[1]=c(i)),null!=n&&(e[2]=c(n)),R(b(e),"rgba")}function k(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),R(e,"rgba")}function R(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}t.parse=v,t.lift=w,t.toHex=_,t.fastLerp=I,t.fastMapToColor=x,t.lerp=S,t.mapToColor=T,t.modifyHSL=C,t.modifyAlpha=k,t.stringify=R},4203:function(e,t,i){},"421a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"basic-info"},[e.otherInfo.SubjectCode?i("span",[e._v(e._s(""+e.otherInfo.SubjectCode))]):e._e(),e._v(" "),e.otherInfo.ReadingNameOrTaskBlindName?i("span",[e._v("("+e._s(""+e.otherInfo.ReadingNameOrTaskBlindName)+")")]):e._e()]),e._v(" "),e.cdList.length>0?i("div",{staticClass:"basic-content"},e._l(e.cdList,(function(t){return i("div",{key:t.Id,staticClass:"cd-wrapper"},[i("div",{staticClass:"cd-name-wrapper"},[e._v(e._s(t.ClinicalDataSetName))]),e._v(" "),1===t.ClinicalUploadType?e._l(t.FileList,(function(t){return i("div",{key:t.Id,staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,1)}}},[e._v("\n "+e._s(t.FileName)+"\n ")])})):i("div",{staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,0)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:title:table"))+"\n ")])],2)})),0):i("div",{staticClass:"basic-content-empty"},[i("span",[e._v(e._s(e.$t("trials:clinicaldara:title:nodata")))])])]),e._v(" "),i("div",{staticClass:"right-wrapper"},[1===e.selected.type?i("div",{staticClass:"right-content"},[i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.selected.filePath,width:"100%",height:"100%",frameborder:"0"}})]):0===e.selected.type?i("div",{staticClass:"right-content",staticStyle:{padding:"10px","overflow-y":"auto"}},[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1):e._e()])])},a=[],r=i("3e42"),o=i("c1df"),s=i.n(o),l={name:"MultipleNoneDicom",props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{selected:{id:"",type:null,fileName:"",filePath:"",clinicalTableData:[]},cdList:[],otherInfo:{},moment:s.a,loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visitTaskId:this.visitTaskId,readingClinicalDataId:"",readingId:""};Object(r["Rc"])(t).then((function(t){if(e.cdList=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1,e.cdList.length>0){var i=1===e.cdList[0].ClinicalUploadType?1:0,n=1===i?e.cdList[0].FileList[0]:e.cdList[0];e.preview(n,i)}})).catch((function(){e.loading=!1}))},preview:function(e,t){this.$set(this.selected,"id",e.Id),this.$set(this.selected,"type",t),1===t?(this.$set(this.selected,"fileName",e.FileName),this.$set(this.selected,"filePath",e.Path)):this.$set(this.selected,"clinicalTableData",e.ClinicalTableData)}}},c=l,u=(i("0e3c"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"429f":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return a}));var n=[{type:"index"},{prop:"UserType",label:"User Type",minWidth:120,showOverflowTooltip:!0},{prop:"UserTypeShortName",label:"Shortname",minWidth:100,showOverflowTooltip:!0},{prop:"Type",label:"Group",hidden:!0,minWidth:100,showOverflowTooltip:!0,slot:"TypeSlot"},{prop:"Description",label:"Description",minWidth:100,showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:100,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a={visible:!1,title:"",width:"600px",showClose:!0}},"42e5":function(e,t){var i=function(e){this.colorStops=e||[]};i.prototype={constructor:i,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var n=i;e.exports=n},"42f6":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("22d1"),o=i("07d7"),s=i("82f9"),l=i("eda2"),c=i("3842"),u=i("2306"),d=i("133d"),f=i("f934"),h=i("4319"),p=i("17d6"),m=i("697e"),g=i("ff2e"),v=i("e0d3"),b=v.getTooltipRenderMode,y=a.bind,w=a.each,_=c.parsePercent,I=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=n.extendComponentView({type:"tooltip",init:function(e,t){if(!r.node){var i,n=e.getComponent("tooltip"),a=n.get("renderMode");this._renderMode=b(a),"html"===this._renderMode?(i=new o(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)}),this._newLine="
    "):(i=new s(t),this._newLine="\n"),this._tooltipContent=i}},render:function(e,t,i){if(!r.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");p.register("itemTooltip",this._api,y((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(e,t,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(e,t,i,n){if(n.from!==this.uid&&!r.node){var a=T(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=I;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(e,t,i,n))return;var l=d(n,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:n.position,target:l.el},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},a))}},manuallyHideTip:function(e,t,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(T(n,i))},_manuallyAxisShowTip:function(e,t,i,n){var a=n.seriesIndex,r=n.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=t.getSeriesByIndex(a);if(s){var l=s.getData();e=S([l.getItemModel(r),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}}},_tryShow:function(e,t){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;a&&a.length?this._showAxisTooltip(a,e):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,i,t)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,i,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var i=e.get("showDelay");t=a.bind(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},_showAxisTooltip:function(e,t){var i=this._ecModel,n=this._tooltipModel,r=[t.offsetX,t.offsetY],o=[],s=[],c=S([t.tooltipOption,n]),u=this._renderMode,d=this._newLine,f={};w(e,(function(e){w(e.dataByAxis,(function(e){var t=i.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value,r=[];if(t&&null!=n){var c=g.getValueLabel(n,t.axis,i,e.seriesDataIndices,e.valueLabelOpt);a.each(e.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),d=o.dataIndexInside,h=l&&l.getDataParams(d);if(h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=m.getAxisRawValue(t.axis,n),h.axisValueLabel=c,h){s.push(h);var p,g=l.formatTooltip(d,!0,null,u);if(a.isObject(g)){p=g.html;var v=g.markers;a.merge(f,v)}else p=g;r.push(p)}}));var h=c;"html"!==u?o.push(r.join(d)):o.push((h?l.encodeHTML(h)+d:"")+r.join(d))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var h=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(c,o,s,Math.random(),r[0],r[1],h,void 0,f)}))},_showSeriesItemTooltip:function(e,t,i){var n=this._ecModel,r=t.seriesIndex,o=n.getSeriesByIndex(r),s=t.dataModel||o,l=t.dataIndex,c=t.dataType,u=s.getData(c),d=S([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),f=d.get("trigger");if(null==f||"item"===f){var h,p,m=s.getDataParams(l,c),g=s.formatTooltip(l,!1,c,this._renderMode);a.isObject(g)?(h=g.html,p=g.markers):(h=g,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,h,m,v,e.offsetX,e.offsetY,e.position,e.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,i){var n=t.tooltip;if("string"===typeof n){var a=n;n={content:a,formatter:a}}var r=new h(n,this._tooltipModel,this._ecModel),o=r.get("content"),s=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,i,n,a,r,o,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,d=e.get("formatter");o=o||e.get("position");var f=t;if(d&&"string"===typeof d)f=l.formatTpl(d,i,!0);else if("function"===typeof d){var h=y((function(t,n){t===this._ticket&&(u.setContent(n,c,e),this._updatePosition(e,o,a,r,u,i,s))}),this);this._ticket=n,f=d(i,n,h)}u.setContent(f,c,e),u.show(e),this._updatePosition(e,o,a,r,u,i,s)}},_updatePosition:function(e,t,i,n,r,o,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),d=e.get("align"),h=e.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof t&&(t=t([i,n],o,r.el,p,{viewSize:[l,c],contentSize:u.slice()})),a.isArray(t))i=_(t[0],l),n=_(t[1],c);else if(a.isObject(t)){t.width=u[0],t.height=u[1];var m=f.getLayoutRect(t,{width:l,height:c});i=m.x,n=m.y,d=null,h=null}else if("string"===typeof t&&s){var g=R(t,p,u);i=g[0],n=g[1]}else{g=C(i,n,r,l,c,d?null:20,h?null:20);i=g[0],n=g[1]}if(d&&(i-=D(d)?u[0]/2:"right"===d?u[0]:0),h&&(n-=D(h)?u[1]/2:"bottom"===h?u[1]:0),e.get("confine")){g=k(i,n,r,l,c);i=g[0],n=g[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,i=!!t&&t.length===e.length;return i&&w(t,(function(t,n){var a=t.dataByAxis||{},r=e[n]||{},o=r.dataByAxis||[];i&=a.length===o.length,i&&w(a,(function(e,t){var n=o[t]||{},a=e.seriesDataIndices||[],r=n.seriesDataIndices||[];i&=e.value===n.value&&e.axisType===n.axisType&&e.axisId===n.axisId&&a.length===r.length,i&&w(a,(function(e,t){var n=r[t];i&=e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=e,!!i},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){r.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function S(e){var t=e.pop();while(e.length){var i=e.pop();i&&(h.isInstance(i)&&(i=i.get("tooltip",!0)),"string"===typeof i&&(i={formatter:i}),t=new h(i,t,t.ecModel))}return t}function T(e,t){return e.dispatchAction||a.bind(t.dispatchAction,t)}function C(e,t,i,n,a,r,o){var s=i.getOuterSize(),l=s.width,c=s.height;return null!=r&&(e+l+r>n?e-=l+r:e+=r),null!=o&&(t+c+o>a?t-=c+o:t+=o),[e,t]}function k(e,t,i,n,a){var r=i.getOuterSize(),o=r.width,s=r.height;return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function R(e,t,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=t.width,c=t.height;switch(e){case"inside":o=t.x+l/2-n/2,s=t.y+c/2-a/2;break;case"top":o=t.x+l/2-n/2,s=t.y-a-r;break;case"bottom":o=t.x+l/2-n/2,s=t.y+c+r;break;case"left":o=t.x-n-r,s=t.y+c/2-a/2;break;case"right":o=t.x+l+r,s=t.y+c/2-a/2}return[o,s]}function D(e){return"center"===e||"middle"===e}e.exports=x},4303:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"80px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("CustomWwwcForm:form:label:ww")}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,precision:0,step:1},model:{value:e.form.ww,callback:function(t){e.$set(e.form,"ww",t)},expression:"form.ww"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("CustomWwwcForm:form:label:wl")}},[i("el-input-number",{attrs:{"controls-position":"right",precision:0,step:1},model:{value:e.form.wc,callback:function(t){e.$set(e.form,"wc",t)},expression:"form.wc"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r={name:"CustomWwwcForm",data:function(){return{form:{ww:null,wc:null},rules:{ww:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],wc:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&e.$emit("setWwwc",e.form)}))},handleCancel:function(){this.$emit("close")}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},4308:function(e,t,i){"use strict";i("8cf6")},4319:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=i("625e"),l=s.enableClassExtend,c=s.enableClassCheck,u=i("3901"),d=i("9bdb"),f=i("fe21"),h=i("551f"),p=n.mixin,m=o();function g(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}function v(e,t,i){for(var n=0;n0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.Total)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" (Need setting trial unit price)")])]):t.row.MissingTrialCodes.length>0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.Total)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" ("+e._s(t.row.MissingTrialCodes.join(","))+" need setting trial unit price)")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.Total)))])]}}],null,!1,3489361780)})],2):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:"Revenues Price Verification",visible:e.dialogVisible,size:"small",width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.verifyList.length>0?i("div",{staticClass:"verify-wrapper"},e._l(e.verifyList,(function(t,n){return i("div",{key:n,staticStyle:{"margin-bottom":"5px","word-break":"keep-all","word-wrap":"break-word"}},[e._v("\n Trial ID:\n "),i("span",{staticStyle:{"font-weight":"bold","margin-right":"5px"}},[e._v(e._s(t.trialCode))]),e._v(" "),i("span",[e._v("("+e._s(t.priceType.join(", "))+" "),i("span",{staticStyle:{color:"red"}},[e._v("did not set unit price")]),e._v(")")])])})),0):i("div",[e._v("\n No data.\n ")])])],1)},a=[],r=(i("ac6a"),i("db72")),o=(i("c5f6"),i("333d")),s=(i("7878"),i("4360")),l=i("2f62"),c=i("6b95"),u=[{label:"Trial ID",width:"90",prop:"TrialCode"},{label:"Expedited",width:"110",prop:"Expedited"},{label:"Indication",width:"110",prop:"Indication"},{label:"CRO",width:"90",prop:"Cro"},{label:"Name",width:"90",prop:"FullName"},{label:"Name CN",width:"100",prop:"ChineseName"},{label:"Reviewer ID",width:"115",prop:"ReviewerCode"},{label:"Month",width:"100",prop:"YearMonth"}],d=[{label:"Trial ID",width:"105",prop:"TrialCode"},{label:"Expedited",width:"105",prop:"Expedited"},{label:"Indication",width:"105",prop:"Indication"},{label:"CRO",width:"105",prop:"Cro"}],f=[{label:"Name",width:"105",prop:"FullName"},{label:"Name CN",width:"105",prop:"ChineseName"},{label:"Reviewer ID",width:"120",prop:"ReviewerCode"}],h=[{label:"Month",width:"100",prop:"YearMonth"}];function p(e){return 0===e?u:1===e?d:2===e?f:3===e?h:[]}var m=i("0340"),g=i("3339"),v=function(){return{CroId:"",TrialCode:"",Reviewer:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),EndDate:new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),StatType:3,PageIndex:1,PageSize:20,Asc:!0,SortField:""}},b={components:{Pagination:o["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){var e=this;return{listQuery:v(),list:[],total:0,listLoading:!1,beginPickerOption:{disabledDate:function(t){return e.listQuery.EndDate?t.getTime()>new Date(e.listQuery.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginDate).getTime():t.getTime()>Date.now()}},statsType:[{label:"Monthly",value:3},{label:"Trial",value:1},{label:"Reviewer",value:2},{label:"Detail",value:0}],cols:[],arrID:[],tableHeight:0,dialogVisible:!1,dialogLoading:!1,verifyList:[]}},computed:Object(r["a"])({},Object(l["b"])(["croList","revenusQuery"])),mounted:function(){s["a"].dispatch("global/getCROList"),this.revenusQuery&&(this.listQuery=this.revenusQuery),this.cols=p(this.listQuery.StatType),this.getList()},methods:Object(r["a"])({getList:function(){var e=this;this.listLoading=!0,Object(c["x"])(this.listQuery).then((function(t){e.listLoading=!1,e.tableHeight=e.$refs.listContainer.clientHeight-10+"px",e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.Expedited=0===e.Expedited?"No":1===e.Expedited?"24-Hour":"48-Hour",e.LastName&&e.FirstName&&(e.FullName="".concat(e.LastName," / ").concat(e.FirstName))})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList(),this.setQueryParam(this.listQuery)},handleReset:function(){var e=this.listQuery.StatType;this.listQuery=v(),this.listQuery.StatType=e,this.getList()},handleStatsTypeChange:function(e){this.tableHeight=0,this.cols=p(e),this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.PageIndex=1,this.listQuery.Asc=!0,this.listQuery.SortField="",this.$refs.revenusList.doLayout(),this.arrID=[],this.getList(),this.$refs.revenusList.doLayout()},handleVerify:function(){var e=this;this.dialogLoading=!0;var t={beginDate:this.listQuery.BeginDate,endDate:this.listQuery.EndDate};Object(c["y"])(t).then((function(t){e.dialogLoading=!1,e.dialogVisible=!0,e.verifyList=[],t.Result&&t.Result.forEach((function(t){var i={};for(var n in i.trialCode=t.TrialCode,i.priceType=[],t)!1===t[n]&&i.priceType.push(n);e.verifyList.push(i)}))}))},handleExport:function(){var e=this,t=this.$refs.croSelection.selectedLabel,i="".concat(this.listQuery.BeginDate,"--").concat(this.listQuery.EndDate),n=[],a="",r=[],o=[],s=[],l=0,c=1,u=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));u.forEach((function(t){l+=t.Total,t.Index=c++,1===e.listQuery.StatType&&(0===t.Expedited?t.Expedited="No":1===t.Expedited?t.Expedited="24-Hour":t.Expedited="48-Hour")})),0===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"TrialCode",width:20},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"FullName",width:30},{key:"ChineseName",width:15},{key:"ReviewerCode",width:15},{key:"YearMonth",width:15},{key:"Total",width:20}],a=t?"Type:Detail CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Detail Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Trial ID","Expedited","Indication","CRO","Name","Name CN","Reviewer ID","Month","Total($)"],o=[{colIndex:10,format:"#,##0.00"}],s=["","Total(Current Page)","","","","","","","",l]):1===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"TrialCode",width:20},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"Total",width:20}],a=t?"Type:Trial CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Trial Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Trial ID","Expedited","Indication","CRO","Total($)"],o=[{colIndex:6,format:"#,##0.00"}],s=["","Total(Current Page)","","","",l]):2===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"FullName",width:30},{key:"ChineseName",width:15},{key:"ReviewerCode",width:15},{key:"Total",width:20}],a=t?"Type:Reviewer CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Reviewer Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Name","Name CN","Reviewer ID","Total($)"],o=[{colIndex:5,format:"#,##0.00"}],s=["","Total(Current Page)","","",l]):(n=[{key:"Index",width:5},{key:"YearMonth",width:40},{key:"Total",width:40}],a=t?"Type:Monthly CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Monthly Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Month","Total($)"],o=[{colIndex:3,format:"#,##0.00"}],s=["","Total(Current Page)",l]),Object(m["a"])(i,n,"Revenues",a,r,u,s,o)},handleSetting:function(){this.$router.push({name:"RevenuesSetting"})},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("Total"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:g["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"FullName"===e.prop?this.listQuery.SortField="LastName":this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},4573:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=2*Math.PI;e.moveTo(i+t.r,n),e.arc(i,n,t.r,0,a,!1),e.moveTo(i+t.r0,n),e.arc(i,n,t.r0,0,a,!0)}});e.exports=a},4576:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"457a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"qcQuestionForm",attrs:{model:e.form,rules:e.rules,"label-width":"130px",size:"small"}},[i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型"}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},[i("el-option",{attrs:{value:"select",label:"下拉框"}}),e._v(" "),i("el-option",{attrs:{value:"input",label:"单行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"textarea",label:"多行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"radio",label:"单选框"}})],1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:"选项: ",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"父问题"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:"父问题触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否必填"}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"启用状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("启用")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("停用")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("e56e")),l=i("7eeb"),c=function(){return{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:""}},u={name:"QcQuestionForm",components:{BaseModel:l["default"]},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{btnLoading:!1,form:c(),rules:{QuestionName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],TypeValue:[{required:!0,message:"Please specify",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"The maximum length is 200"}],ParentTriggerValue:[{required:!0,message:"Please select",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},parentOptions:[],parentTriggerValOptions:[],loading:!1}},mounted:function(){},methods:{openDialog:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.Id||(this.form=c()),this.model_cfg.visible=!0,this.model_cfg.title=t,n={id:i.Id?i.Id:"",typeArray:["select","radio"]},e.next=6,this.getParentQsOpntions(n);case 6:i.ParentId&&(a=this.parentOptions.findIndex((function(e){return e.Id===i.ParentId})),-1!==a&&(this.parentTriggerValOptions=this.parentOptions[a].TypeValue.split("|"))),Object.keys(i).length&&i.Id&&(this.form=Object(r["a"])({},i));case 8:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.qcQuestionForm.validate((function(t){t&&(e.btnLoading=!0,Object(s["n"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},getParentQsOpntions:function(e){var t=this;return new Promise((function(i,n){t.loading=!0,Object(s["nb"])(e).then((function(e){t.parentOptions=e.Result,t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValue=""}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"45b7":function(e,t,i){},"45e6":function(e,t,i){},"45f0":function(e,t,i){"use strict";i("8c49")},4650:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t,i){var n,r={},o="toggleSelected"===e;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?i[e]():(i[e](t.name),n=i.isSelected(t.name));var s=i.getData();a.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&n:r[t]=n}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}n.registerAction("legendToggleSelect","legendselectchanged",a.curry(r,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",a.curry(r,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",a.curry(r,"inverseSelect")),n.registerAction("legendSelect","legendselected",a.curry(r,"select")),n.registerAction("legendUnSelect","legendunselected",a.curry(r,"unSelect"))},4663:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"canvas",staticClass:"cornerstone-element",staticStyle:{position:"relative"},attrs:{id:"canvas","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{contextmenu:function(t){return t.preventDefault(),e.onContextmenu(t)},mousemove:e.sliderMousemove,mouseup:e.sliderMouseup}},[e.stack.imageRendered&&e.isReadingTaskViewInOrder?i("div",{staticClass:"info-visit",on:{dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("div",{staticClass:"arrw_div_wrapper",style:{cursor:e.stack.visitTaskNum<=e.minVistNum?"not-allowed":"pointer",color:e.stack.visitTaskNum<=e.minVistNum?"#888":"#fff"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSeries(t,-1)},dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("i",{staticClass:"el-icon-caret-left"})]),e._v(" "),i("div",{staticClass:"blind_name_wrapper"},[e._v("\n "+e._s(e.stack.taskBlindName)+"\n ")]),e._v(" "),i("div",{staticClass:"arrw_div_wrapper",style:{cursor:e.stack.visitTaskNum>=e.maxVistNum?"not-allowed":"pointer",color:e.stack.visitTaskNum>=e.maxVistNum?"#888":"#fff"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSeries(t,1)},dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("i",{staticClass:"el-icon-caret-right"})])]):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-series"},[e.isReadingShowSubjectInfo?i("h2",{staticStyle:{color:"#f44336",padding:"5px 0px",margin:"0"}},[e._v(e._s(e.subjectCode)+" "+e._s(e.stack.taskBlindName))]):e._e(),e._v(" "),i("div",[e._v("Series: #"+e._s(e.dicomInfo.series))]),e._v(" "),i("div",[e._v("Image: #"+e._s(e.dicomInfo.frame))]),e._v(" "),i("div",[e._v(e._s(e.dicomInfo.modality))])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-image"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.mousePosition.mo,expression:"mousePosition.mo"}]},[e._v("\n Pos: "+e._s(e.mousePosition.x?e.mousePosition.x.toFixed(0):"")+", "+e._s(e.mousePosition.y?e.mousePosition.y.toFixed(0):"")+"\n ")]),e._v(" "),"CT"!==e.dicomInfo.modality&&"DR"!==e.dicomInfo.modality&&"CR"!==e.dicomInfo.modality||!e.mousePosition.mo?"PT"===e.dicomInfo.modality&&e.mousePosition.suv?i("div",[e._v("\n Density: "+e._s(-1===e.digitPlaces?e.mousePosition.suv:e.mousePosition.suv.toFixed(e.digitPlaces))+" SUV\n ")]):e.mousePosition.mo?i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+"\n ")]):e._e():i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+" HU\n ")]),e._v(" "),i("div",[e._v("\n W*H: "+e._s(e.dicomInfo.size)+"\n ")]),e._v(" "),i("div",[e._v("Zoom: "+e._s(e.dicomInfo.zoom))])]),e._v(" "),i("div",{staticClass:"info-subject"},[i("div",[e._v(e._s(e.stack.description))])]),e._v(" "),i("div",{ref:"sliderBox",staticClass:"my_slider_box",staticStyle:{position:"absolute",right:"1px",height:"calc(100% - 140px)",transform:"translateY(-50%)",top:"calc(50% - 30px)",width:"10px",background:"#333",cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.goViewer(t)}}},[i("div",{staticStyle:{"z-index":"10",background:"#9e9e9e",height:"20px",width:"100%",position:"absolute",top:"0",cursor:"move"},style:{top:e.height+"%"},on:{mousedown:function(t){return t.stopPropagation(),e.sliderMousedown(t)}}})]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",top:"30px",color:"#f44336",transform:"translateX(-50%)"}},[e._v("\n "+e._s(e.markers.top)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",right:"15px",color:"#f44336",transform:"translateY(-50%)"}},[e._v("\n "+e._s(e.markers.right)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",bottom:"15px",color:"#f44336",transform:"translateX(-50%)"}},[e._v("\n "+e._s(e.markers.bottom)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",left:"15px",color:"#f44336",transform:"translateY(-50%)"}},[e._v("\n "+e._s(e.markers.left)+"\n ")]),e._v(" "),i("div",{staticClass:"info-instance"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.location,expression:"dicomInfo.location"}]},[e._v("Location: "+e._s(e.dicomInfo.location))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.thick,expression:"dicomInfo.thick"}]},[e._v("Slice Thickness: "+e._s(e.dicomInfo.thick)+"mm")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.wwwc,expression:"dicomInfo.wwwc"}]},[e._v("WW/WL: "+e._s(e.dicomInfo.wwwc))])])])},a=[],r=i("75fc"),o=(i("7f7f"),i("5df3"),i("1c4c"),i("ac6a"),i("6762"),i("2fdb"),i("28a5"),i("20d6"),i("84b4"),i("db72")),s=(i("c5f6"),i("9b92")),l=i("2b0e"),c=i("2f62"),u=i("e5d9"),d=i("81d9"),f=i("6e43"),h=i("e6ad"),p=i("c8b5"),m=i.n(p),g=i("365d"),v=i("ac6b"),b=i("1529"),y=i("d225"),w=i("b0b4"),_=i("4e2b"),I=i("c603"),x=h["external"],S=h["getToolState"],T=h["toolStyle"],C=h["toolColors"],k=h["import"]("drawing/getNewContext"),R=h["import"]("drawing/draw"),D=h["import"]("drawing/drawHandles"),L=h["import"]("drawing/drawRect"),O=h["import"]("drawing/drawLinkedTextBox"),$=h["import"]("drawing/setShadow"),N=h["import"]("util/calculateSUV"),A=h["import"]("util/getROITextBoxCoords"),P=h["import"]("util/numbersWithCommas"),E=h["import"]("util/throttle"),M=h["import"]("tools/cursors"),F=h["import"]("util/getPixelSpacing"),j=h["getModule"],V=function(e){Object(_["a"])(i,e);var t=Object(I["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(y["a"])(this,i);var a={name:"RectangleRoi",supportedInteractionTypes:["Mouse","Touch"],configuration:{drawHandles:!0,drawHandlesOnHover:!1,hideHandlesIfMoving:!1,renderDashed:!1},svgCursor:M};return e=t.call(this,n,a),e.throttledUpdateCachedStats=E(e.updateCachedStats,110),e}return Object(w["a"])(i,[{key:"createNewMeasurement",value:function(e){var t=e&&e.currentPoints&&e.currentPoints.image;if(t)return{visible:!0,active:!0,color:void 0,invalidated:!0,handles:{start:{x:e.currentPoints.image.x,y:e.currentPoints.image.y,highlight:!0,active:!1},end:{x:e.currentPoints.image.x,y:e.currentPoints.image.y,highlight:!0,active:!0},initialRotation:e.viewport.rotation,textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}};console.log("required eventData not supplied to tool ".concat(this.name,"'s createNewMeasurement"))}},{key:"pointNearTool",value:function(e,t,i,n){var a=t&&t.handles&&t.handles.start&&t.handles.end,r=a;if(r||console.log("invalid parameters supplied to tool ".concat(this.name,"'s pointNearTool")),!r||!1===t.visible)return!1;var o="mouse"===n?15:25,s=x.cornerstone.pixelToCanvas(e,t.handles.start),l=x.cornerstone.pixelToCanvas(e,t.handles.end),c={left:Math.min(s.x,l.x),top:Math.min(s.y,l.y),width:Math.abs(s.x-l.x),height:Math.abs(s.y-l.y)},u=x.cornerstoneMath.rect.distanceToPoint(c,i);return u5&&void 0!==arguments[5]?arguments[5]:{},d=arguments.length>6?arguments[6]:void 0,f=u.showMinMax||!1,h=[],p=[];if(!t){var m=c&&0!==c.mean,g=Q(n,u.showHounsfieldUnits),v="Mean: ".concat(P(r.toFixed(2))," ").concat(g),b="Std Dev: ".concat(P(o.toFixed(2))," ").concat(g);if(m){var y=" SUV: ",w="".concat(y).concat(P(c.mean.toFixed(2))),_="".concat(y).concat(P(c.stdDev.toFixed(2))),I=Math.floor(e.measureText("".concat(b," ")).width);while(e.measureText(v).width0?2*t.scale:t.scale/2,d["setViewport"](this.canvas,t)},reloadCanvas:function(){d["resize"](this.canvas)},mouseMove:function(e){var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=Math.round(a.image.x),o=Math.round(a.image.y),s={};r>=0&&o>=0&&r=2||(this.image=e.detail.image,this.getToolStateInfo(e))},mouseDown:function(e){console.log("mouseDown"),this.image=e.detail.image,this.isFirstChangeTask&&this.pointNearTool(e)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},pointNearTool:function(e){for(var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=h["globalImageIdSpecificToolStateManager"],o=0;o-1&&this.disabledMarks.length>0&&this.disabledMarks.indexOf(l.data[u].remark)>-1)return!0;if(u=l.data.findIndex((function(e){return J(i,e.handles,a.canvas)})),u>-1&&this.disabledMarks.length>0&&this.disabledMarks.indexOf(l.data[u].remark)>-1)return!0}}return!1},getDisabledMarks:function(e){var t=[];return e.map((function(e){0!==e.LesionType&&1!==e.LesionType&&7!==e.LesionType||!e.IsFirstChangeTask||t.push(e.OrderMarkName)})),t},getRGBPixels:function(e,t,i,n,a){if(e){t=Math.round(t),i=Math.round(i);var r,o,s,l=d["getEnabledElement"](e),c=[],u=0,f=l.image.getPixelData();if(l.image.color)for(o=0;oi)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);a=a>this.stack.imageIds.length?this.stack.imageIds.length:a<0?0:a,this.height=n,this.stack.currentImageIdIndex!==a&&X(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},getMeasureData:function(){var e=this,t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));this.measureData=this.visitTaskList[t].MeasureData;var i=h["globalImageIdSpecificToolStateManager"],n=this.stack.imageIds[this.stack.currentImageIdIndex];return i.clearImageIdToolState(n),d["updateImage"](this.canvas,!0),!0},onContextmenu:function(e){var t=this;if(this.isBaseline||this.readingTaskState>=2||10===this.CriterionType)return!1;var i=e.offsetX,n=e.offsetY,a=h["globalImageIdSpecificToolStateManager"],r=d["getEnabledElement"](this.canvas),o=r.image.imageId;this.measuredTools.map((function(r){var s=a.getImageIdToolState(o,r);if(s){var l=new(h["".concat(r,"Tool")]),c=s.data.findIndex((function(e){return l.pointNearTool(t.canvas,e,{x:i,y:n},"mouse")}));if(-1===c)return!1;var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===s.data[c].uuid})),d=null;return u>-1&&(d=t.measureData[u].RowId),!!d&&(t.selectedLesion=s.data[c],t.$contextmenu({items:[{label:"Split",divided:!0,onClick:function(){t.handleSplit()}}],event:e,x:e.clientX,y:e.clientY,customClass:"class-a",zIndex:3,minWidth:100}),!1)}}))},handleSplit:function(){var e=this,t=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data&&t.MeasureData.data.uuid===e.selectedLesion.uuid}));t>-1&&s["a"].$emit("split",this.measureData[t])},getToolStateInfo:function(e){var t=e.detail,i=t.element,n=t.currentPoints,a=t.image,r=t.viewport,o=a.imageId,s=o.split("/")[o.split("/").length-1],l=null;s.includes("?frame=")&&(l=s.split("?frame=")[1],s=s.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(l))?0:parseInt(l),s=s.split(".")[0];for(var c=h["globalImageIdSpecificToolStateManager"],u=0;u-1){var g={};g.studyId=this.stack.studyId,g.seriesId=this.stack.seriesId,g.instanceId=s,g.frame=this.stack.frame?this.stack.frame:0,g.data=f.data[m],g.type=d,g.thick=this.dicomInfo.thick;var v=f.data[m].uuid,b=this.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===v}));if(b>-1){var y=this.measureData[b].OrderMarkName;if(-1!==this.disabledMarks.indexOf(y)&&this.disabledMarks)return e.stopImmediatePropagation(),e.stopPropagation(),void e.preventDefault();g.ww=Math.round(r.voi.windowWidth),g.wc=Math.round(r.voi.windowCenter);var w=this.measureData[b],_=this.canvas.querySelector("canvas");return g.pictureBaseStr=_.toDataURL("image/png",1),void this.$emit("modifyMeasureData",{measureData:g,questionInfo:w})}}}}},stackScrollCallback:function(e){var t=e.detail;this.isScrollSync&&this.$emit("scrollSync",{canvasIndex:this.canvasIndex,direction:t.direction}),this.stack.currentImageIdIndex=e.detail.newImageIdIndex,this.stack.imageIdIndex=e.detail.newImageIdIndex,this.series.imageIdIndex=e.detail.newImageIdIndex,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1)},getSeriesLoadStatus:function(){var e=this,t=-1,i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));if(-1===i)return t;var n=this.visitTaskList[i].StudyList,a=n.findIndex((function(t){return t.StudyId===e.stack.studyId}));if(-1===a)return t;var r=n[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e.stack.seriesId}));return-1===o?t:r[o].loadStatus?1:0},renderMeasuredData:function(e){var t=this;this.stack.frame=isNaN(parseInt(this.stack.frame))?0:parseInt(this.stack.frame);var i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=e.detail.element,a=h["globalImageIdSpecificToolStateManager"];this.measureData.forEach((function(i){if(i.MeasureData&&(2===t.activeTool&&t.readingTaskState<2?i.MeasureData&&t.activeToolName===i.MeasureData.type?h["setToolActiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):h["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):1===t.activeTool&&t.readingTaskState<2?h["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):h["setToolEnabledForElement"](n,i.MeasureData.type,{mouseButtonMask:1}),console.log("renderMeasuredData",t.stack.frame),t.stack.instanceId.includes(i.InstanceId)&&(i.NumberOfFrames===t.stack.frame||!i.NumberOfFrames)&&i.MeasureData)){var r=a.getImageIdToolState(e.detail.image.imageId,i.MeasureData.type);if(r&&r.data.length>0){var o=r.data.findIndex((function(e){return e.uuid===i.MeasureData.data.uuid}));-1===o&&a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}else a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}}))},initWwc:function(){if(this.isFirstLoadIns){for(var e=0;e-1){var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===o.data[c].uuid}));u>-1&&s["a"].$emit("setCollapseActive",t.measureData[u])}}}))},loadImageStack:function(e){var t=this;return new Promise((function(i){t.isCurrentTask=e.isCurrentTask,t.isBaseline=e.isBaseline,t.readingTaskState=e.readingTaskState,t.isCurrentTask&&t.readingTaskState<2?t.activeTool=1:t.activeTool=0,t.series=e,t.stack.seriesId=e.seriesId,t.stack.studyId=e.studyId,t.stack.seriesNumber=e.seriesNumber,t.stack.imageIds=e.imageIds,t.stack.currentImageIdIndex=e.imageIdIndex?e.imageIdIndex:0,t.stack.imageIdIndex=e.imageIdIndex,t.stack.firstImageLoading=!0,t.stack.visitTaskId=e.visitTaskId,t.stack.taskBlindName=e.taskBlindName,t.stack.description=e.description,t.stack.studyIndex=e.studyIndex,t.stack.seriesIndex=e.seriesIndex,t.stack.sliceThickness=e.sliceThickness,t.stack.instanceCount=e.instanceCount;var n=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t.stack.visitTaskNum=t.visitTaskList[n].VisitTaskNum,t.isFirstChangeTask=t.visitTaskList[n].IsFirstChangeTask,t.isFirstChangeTask&&(t.disabledMarks=t.getDisabledMarks(t.visitTaskList[n].MeasureData)),t.maxVistNum=t.visitTaskList[t.visitTaskList.length-1].VisitTaskNum,t.minVistNum=t.visitTaskList[0].VisitTaskNum,t.measureData=t.visitTaskList[n].MeasureData;var a=t.stack.imageIds[t.stack.currentImageIdIndex],r=a.split("/")[a.split("/").length-1],o=null;r.includes("?frame=")&&(o=r.split("?frame=")[1],r=r.split("?frame=")[0]),t.stack.frame=isNaN(parseInt(o))?0:parseInt(o),r=r.split(".")[0],t.stack.instanceId=r;var s=h["globalImageIdSpecificToolStateManager"];s.clearImageIdToolState(e.imageIds),t.toolState.clipPlaying&&t.toggleClipPlay(),t.toolState.viewportInvert=!1,t.toolState.dicomInfoVisible=!1;var l=t.$refs.canvas;d["enable"](l),l.tabIndex=0,l.focus();var c=t;d["loadAndCacheImage"](t.stack.imageIds[t.stack.currentImageIdIndex]).then((function(e){c.onFirstImageLoaded(e),i()})).catch((function(e){e.error&&e.error.message&&t.$message.error(e.error.message),i()}))}))},onFirstImageLoaded:function(e){var t=this;console.log("onFirstImageLoaded");var i=this.$refs.canvas,n=d["getDefaultViewportForImage"](this.canvas,e);if(d["displayImage"](this.canvas,e,n),!this.toolState.initialized){this.toolState.initialized=!0;var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){var n=e.getAttribute("data-tool"),a=h["".concat(n,"Tool")];if(a){var r=h["getToolForElement"](i,a);r||("Length"===n?h["addToolForElement"](i,g["a"],{configuration:{handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0,digits:t.digitPlaces,drawHandles:!0}}):"Bidirectional"===n?h["addToolForElement"](i,v["a"],{configuration:{digits:t.digitPlaces,drawHandles:!0}}):"ArrowAnnotate"===n?h["addToolForElement"](i,b["a"],{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):"RectangleRoi"===n?h["addToolForElement"](i,V,{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):h["addToolForElement"](i,a))}})),h["getToolForElement"](i,h["WwwcRegionTool"])||h["addToolForElement"](i,h["WwwcRegionTool"]),h["getToolForElement"](i,h["StackScrollMouseWheelTool"])||h["addToolForElement"](i,h["StackScrollMouseWheelTool"]),h["setToolActiveForElement"](i,"StackScrollMouseWheel",{}),h["getToolForElement"](i,G["a"])||h["addToolForElement"](i,G["a"]),h["setToolActiveForElement"](i,"ScaleOverlay",{})}h["addStackStateManager"](this.canvas,["stack","playClip"]),h["addToolState"](this.canvas,"stack",this.stack),d["updateImage"](i,!0),this.stack.firstImageLoading=!1,this.toolState.dicomInfoVisible=!0;var r=e.imageId.split("/")[e.imageId.split("/").length-1],o=null;r.includes("?frame=")&&(o=r.split("?frame=")[1],r=r.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(o))?0:parseInt(o),r=r.split(".")[0],this.stack.instanceId=r,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1),this.resetWwwc()},onNewImage:function(e){console.log("cornerstonenewimage");var t=e.detail.image,i=h["globalImageIdSpecificToolStateManager"],n=t.imageId;i.clearImageIdToolState(n),e.detail.enabledElement.options={};var a=e.detail.image.data;this.dicomInfo.hospital=a.string("x00080080"),this.dicomInfo.pid=a.string("x00120040"),this.dicomInfo.name=a.string("x00100010"),this.dicomInfo.age=a.string("x00101010"),this.dicomInfo.sex=a.string("x00100040"),this.dicomInfo.acc=a.string("x00080050"),this.dicomInfo.modality=a.string("x00080060"),this.dicomInfo.time=this.formatDicomDateTime(a.string("x00080020"),a.string("x00080030")),this.dicomInfo.series=a.string("x00200011"),this.dicomInfo.frame="".concat(this.stack.currentImageIdIndex+1,"/").concat(this.stack.imageIds.length),this.dicomInfo.size="".concat(a.uint16("x00280011"),"*").concat(a.uint16("x00280010"));var r=a.floatString("x00280030");r&&(this.dicomInfo.pixel=r.toFixed(2)),this.dicomInfo.thick=a.floatString("x00180050"),this.dicomInfo.thick&&(this.dicomInfo.thick=this.dicomInfo.thick.toFixed(2))},getScreenshots:function(){var e=this.canvas.querySelector("canvas"),t=e.toDataURL("image/png",1);return t},formatDicomDateTime:function(e,t){return e&&(e="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2))),t&&(t="".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),t?"".concat(e," ").concat(t):"".concat(e," 00:00:00")},onImageLoaded:function(e){console.log("onImageLoaded")},onImageRendered:function(e){console.log("onImageRendered"),this.stack.imageRendered=!0;var t=e.detail.image.imageId,i=t.split("/")[t.split("/").length-1],n=null;i.includes("?frame=")&&(n=i.split("?frame=")[1],i=i.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(n))?0:parseInt(n),i=i.split(".")[0],this.imageId!==i&&(this.getOrientationMarker(e.detail.element),this.isFirstLoadIns=!1,this.imageId=i),this.stack.instanceId=i;var a=e.detail.viewport;this.dicomInfo.wwwc="".concat(Math.round(a.voi.windowWidth),"/").concat(Math.round(a.voi.windowCenter)),this.dicomInfo.zoom=a.scale.toFixed(4);var r=e.detail.image.data,o=r.string("x00200032");this.dicomInfo.location=o?Number(o.split("\\")[o.split("\\").length-1]).toFixed(2):"",this.renderMeasuredData(e)},getOrientationMarker:function(e){var t=d["getEnabledElement"](e),i=d["metaData"].get("imagePlaneModule",t.image.imageId);if(i&&i.rowCosines&&i.columnCosines){var n=Object(W["a"])(i.rowCosines),a=Object(W["a"])(i.columnCosines),r=Object(Y["a"])(n),o=Object(Y["a"])(a),s={top:o,bottom:a,left:r,right:n};s&&(this.orientationMarkers=[o,n,a,r],this.originalMarkers=[o,n,a,r],this.setMarkers())}},onMeasurementcompleted:function(e){if(!(this.readingTaskState>=2)){var t=d["getEnabledElement"](this.canvas),i=t.viewport;console.log("completed"),this.activeTool=1,this.activeToolName="";var n=t.image.imageId,a=n.split("/")[n.split("/").length-1],r=null;if(a.includes("?frame=")&&(r=a.split("?frame=")[1],a=a.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(r))?0:parseInt(r),a=a.split(".")[0],"Length"===e.detail.toolName||"ArrowAnnotate"===e.detail.toolName||"RectangleRoi"===e.detail.toolName){var o={};o.studyId=this.stack.studyId,o.seriesId=this.stack.seriesId,o.instanceId=a,o.frame=this.stack.frame?this.stack.frame:0,o.data=e.detail.measurementData,o.type=e.detail.toolName,o.thick=this.dicomInfo.thick,o.ww=Math.round(i.voi.windowWidth),o.wc=Math.round(i.voi.windowCenter);var s=this.canvas.querySelector("canvas");o.pictureBaseStr=s.toDataURL("image/png",1),this.$emit("setMeasureData",o),h["setToolPassiveForElement"](this.canvas,e.detail.toolName)}else if("Bidirectional"===e.detail.toolName){var l=Object(K["a"])(e.detail.measurementData,t.image,this.digitPlaces),c=l.longestDiameter,u=l.shortestDiameter,f={};f.studyId=this.stack.studyId,f.seriesId=this.stack.seriesId,f.instanceId=a,f.frame=this.stack.frame?this.stack.frame:0,f.data=e.detail.measurementData,f.type=e.detail.toolName,f.thick=this.dicomInfo.thick,f.ww=Math.round(i.voi.windowWidth),f.wc=Math.round(i.voi.windowCenter),f.data.longestDiameter=c,f.data.shortestDiameter=u;var p=this.canvas.querySelector("canvas");f.pictureBaseStr=p.toDataURL("image/png",1),this.$emit("setMeasureData",f),h["setToolPassiveForElement"](this.canvas,e.detail.toolName)}}},onMeasurementremoved:function(e){},onMeasurementmodified:function(e){console.log("modified")},measurementMouseUpHandler:function(e){console.log("measurementMouseUp")},updateImage:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=h["globalImageIdSpecificToolStateManager"],a=d["getEnabledElement"](this.canvas),r=a.image.imageId;n.clearImageIdToolState(r),d["updateImage"](a,!0)},toggleSeries:function(e,t){var i=this;e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),this.measuredTools.forEach((function(e){h["setToolEnabledForElement"](i.canvas,e)}));var n=this.stack.visitTaskNum+t;if(!(nthis.maxVistNum)){var a=d["getEnabledElement"](this.canvas),r=a.image.imageId,o=r.split("/")[r.split("/").length-1];o.includes("?frame=")&&(o=o.split("?frame=")[0]),o=o.split(".")[0];var l=this.measureData.findIndex((function(e){return e.InstanceId===o})),c=null;l>-1&&(c=this.measureData[l]),this.series.imageIdIndex=this.stack.currentImageIdIndex,s["a"].$emit("toggleSeries",{series:this.series,type:t,canvasIndex:this.canvasIndex,measureData:c})}},removeToolState:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data.uuid===e.data.uuid}));if(n>-1){this.measureData.splice(n,1);var a=d["getEnabledElement"](this.canvas),r=h["globalImageIdSpecificToolStateManager"],o=a.image.imageId;r.clearImageIdToolState(o),d["updateImage"](a,!0)}},getToolForElement:function(e){for(var t=!1,i=0;ii.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){d["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=d["getImage"](this.canvas);d["setViewport"](this.canvas,d["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?h["orientationMarkers"].enable(this.canvas):h["orientationMarkers"].disable(this.canvas),d["updateImage"](this.canvas)},setColormap:function(e){var t=d["getViewport"](this.canvas);t.colormap=e,d["setViewport"](this.canvas,t),d["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=d["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;this.index=this.stack.currentImageIdIndex+e,t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&X(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return h["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,h["playClip"](this.canvas,this.dicomInfo.fps),h["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=d["getViewport"](this.canvas);e.invert=!1;var t=d["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,d["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=d["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,d["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=d["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,d["setViewport"](this.canvas,e)},activateZoom:function(){h["addTool"](h["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),h["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=d["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,d["setViewport"](this.canvas,e)},setMarkers:function(){var e=Object(r["a"])(this.orientationMarkers);for(var t in this.markers){var i=e.shift(0);this.markers[t]=i}},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):3===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=d["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),d["setViewport"](this.canvas,o)},saveImage:function(){var e=d["getImage"](this.canvas).data.string("x00080018");h["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&d["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=d["getEnabledElement"](this.canvas);e.viewport.scale=1,d["updateImage"](this.canvas)}},removeLabel:function(e){var t=X(this.canvas,e.data.imageIdIndex),i=this;Promise.all([t]).then((function(t){h["removeToolState"](i.canvas,e.type,e.data),d["updateImage"](i.canvas)}))},setToolPassive:function(e){h["setToolPassiveForElement"](this.canvas,e),this.activeTool=1,this.activeToolName=""},setToolActive:function(e){var t=this;this.activeTool=2,this.activeToolName=e,this.$nextTick((function(){h["isToolActiveForElement"](t.canvas,e)||h["setToolActiveForElement"](t.canvas,e,{mouseButtonMask:1})}))},setToolEnabled:function(e){this.activeToolName="",h["setToolEnabledForElement"](this.canvas,e),this.activeTool=0,this.readingTaskState=2},setAllToolsPassive:function(){var e=this;h["store"].state.tools.forEach((function(t){h["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){h["getToolForElement"](this.canvas,h["ReferenceLinesTool"])||h["addToolForElement"](this.canvas,h["ReferenceLinesTool"]),h["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),h["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,h["getToolForElement"](this.canvas,h["".concat(t,"Tool")])||h["addToolForElement"](this.canvas,h["".concat(t,"Tool")]),h["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),h["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t0&&(this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path}]),this.form.Id=this.data.Id,this.form.FileTypeId=this.data.FileTypeId,this.form.Name=this.data.Name,this.form.Path=this.data.Path,this.form.IsDeleted=this.data.IsDeleted,this.form.SignViewMinimumMinutes=this.data.SignViewMinimumMinutes),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(c["c"])(["Sys_Document"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))},getUserType:function(){var e=this;Object(l["de"])().then((function(t){e.userTypeOptions=t.Result,e.form.Id&&(e.form.NeedConfirmedUserTypeIdList=e.data.NeedConfirmedUserTypeIds)})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("must be in pdf format"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Qb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysAttachmentFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["v"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["pdf"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},d=u,f=(i("ce0b"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"46f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{ref:"taskTbl",staticClass:"historicAssess_wrapper",attrs:{data:e.taskList,"row-class-name":e.rowClass}},[i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:medicalFeedback:table:taskName"),width:"200",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:medicalFeedback:table:taskBlindName"),width:"200",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),e.judgeQuestion&&e.judgeQuestion.length>0?e._l(e.judgeQuestion,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.JudgeQuestionAnswerInfoList[n]&&3===t.row.JudgeQuestionAnswerInfoList[n].QuestionGenre&&t.row.JudgeQuestionAnswerInfoList[n].DictionaryCode?i("span",[e._v("\n "+e._s(t.row.JudgeQuestionAnswerInfoList[n].Answer?e.$fd(t.row.JudgeQuestionAnswerInfoList[n].DictionaryCode,parseInt(t.row.JudgeQuestionAnswerInfoList[n].Answer)):"")+"\n ")]):i("span",[e._v("\n "+e._s(t.row.JudgeQuestionAnswerInfoList.length>n?t.row.JudgeQuestionAnswerInfoList[n].Answer:"")+"\n ")])]}}],null,!0)})})):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:medicalFeedback:title:currentReader"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.TaskId)}}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OtherArmEnum",label:e.$t("trials:medicalFeedback:title:otherReader"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OtherTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.OtherTaskId)}}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.OtherArmEnum))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalTaskName",label:e.$t("trials:medicalFeedback:title:relatedGlobalTask"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.GlobalTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.GlobalTaskId)}}},[e._v("\n "+e._s(t.row.GlobalTaskName)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"JudgeTaskName",label:e.$t("trials:medicalFeedback:title:relatedadjudicationTask"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.JudgeTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.JudgeTaskId)}}},[e._v("\n "+e._s(t.row.JudgeTaskName)+"\n ")]):e._e()]}}])})],2)},a=[],r=i("5f87"),o={name:"VReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{taskList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=[];this.auditInfo.TaskList.length>0&&this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList&&this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList.map((function(t){e.push(t.QuestionName)})),this.judgeQuestion=e,this.taskList=this.auditInfo.TaskList},handleView:function(e,t){var i=this.$route.query.trialId,n=Object(r["a"])(),a=this.rowData.CriterionType,o=this.rowData.ReadingTool;o=isNaN(parseInt(o))?null:parseInt(o);var s=this.rowData.IsReadingTaskViewInOrder,l=this.rowData.TrialReadingCriterionId,c="";c=0===o?"/readingDicoms?TrialReadingCriterionId=".concat(l,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(t,"&isReadingTaskViewInOrder=").concat(s,"&criterionType=").concat(a,"&readingTool=").concat(o,"&TokenKey=").concat(n,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(l,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(t,"&isReadingTaskViewInOrder=").concat(s,"&criterionType=").concat(a,"&readingTool=").concat(o,"&TokenKey=").concat(n,"&key=").concat((new Date).getTime());var u=this.$router.resolve({path:c});window.open(u.href,"_blank")},rowClass:function(e){var t=e.row;e.rowIndex;if(t.IsCurrentTask)return"highlight_row"}}},s=o,l=(i("d55a"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},4713:function(e,t,i){"use strict";i("2f19")},"471e":function(e,t){function i(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)}}}}e.exports=i},4738:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-server",use:"icon-server-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},4784:function(e,t,i){var n=i("3eba"),a=i("f706"),r=i("c8ef"),o=i("1687"),s=i("87c3"),l=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new a(r)},render:function(e,t,i){var n=e.getData(),a=this._symbolDraw;a.updateData(n),this.group.add(a.group)},updateTransform:function(e,t,i){var n=e.getData();this.group.dirty();var a=s().reset(e);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=o.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},"479b":function(e,t,i){},"47ad":function(e,t,i){},"47b4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"场景: ",prop:"ScenarioId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.ScenarioId,callback:function(t){e.$set(e.form,"ScenarioId",t)},expression:"form.ScenarioId"}},e._l(e.scenarioOption,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"标题: ",prop:"Title"}},[i("el-input",{model:{value:e.form.Title,callback:function(t){e.$set(e.form,"Title",t)},expression:"form.Title"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"正文: ",prop:"Body"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Body,callback:function(t){e.$set(e.form,"Body",t)},expression:"form.Body"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"发件箱: ",prop:"FromEmail"}},[i("el-input",{model:{value:e.form.FromEmail,callback:function(t){e.$set(e.form,"FromEmail",t)},expression:"form.FromEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"发件箱授权码: ",prop:"AuthorizationCode"}},[i("el-input",{model:{value:e.form.AuthorizationCode,callback:function(t){e.$set(e.form,"AuthorizationCode",t)},expression:"form.AuthorizationCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人: ",prop:"ReceiveEmail"}},[i("el-input",{model:{value:e.form.ReceiveEmail,callback:function(t){e.$set(e.form,"ReceiveEmail",t)},expression:"form.ReceiveEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"抄送邮箱: ",prop:"CopyEmail"}},[i("el-input",{model:{value:e.form.CopyEmail,callback:function(t){e.$set(e.form,"CopyEmail",t)},expression:"form.CopyEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否需要回执: ",prop:"IsReturnRequired"}},[i("el-radio-group",{model:{value:e.form.IsReturnRequired,callback:function(t){e.$set(e.form,"IsReturnRequired",t)},expression:"form.IsReturnRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急: ",prop:"IsUrgent"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否自动发送: ",prop:"IsAutoSend"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form.Id?i("el-form-item",{attrs:{label:"是否启用: ",prop:"IsEnable"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",AuthorizationCode:"",ScenarioId:"",Title:"",Body:"",FromEmail:"",ReceiveEmail:"",CopyEmail:"",IsReturnRequired:!0,IsUrgent:!0,IsEnable:!0,IsAutoSend:!0},rules:{Code:[{required:!0,message:"Please select",trigger:["blur"]}],ScenarioId:[{required:!0,message:"Please select",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&"ScenarioId"!==t&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getScenarios:function(){var e=this;Object(o["V"])(["Email_Scenario"]).then((function(t){e.scenarioOption=t.Result,e.form.Id&&(e.form.ScenarioId=e.data.ScenarioId)})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.emailForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["i"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"47c1":function(e,t,i){},"480e":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("2306"),o=i("cd84"),s=i("6d8b");function l(e,t,i){var n=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}}));var a=t.length,r=0;return function(e){for(var n=r;n=0;n--){o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}return n>=0&&n=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=a.extendChartView({type:"heatmap",render:function(e,t,i){var n;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(i){i===e&&(n=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):u(a)&&this._renderOnGeo(a,e,n,i)},incrementalPrepareRender:function(e,t,i){this.group.removeAll()},incrementalRender:function(e,t,i,n){var a=t.coordinateSystem;a&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,i,n,a){var o,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),d=c.getAxis("y");o=u.getBandWidth(),l=d.getBandWidth()}for(var f=this.group,h=e.getData(),p="itemStyle",m="emphasis.itemStyle",g="label",v="emphasis.label",b=e.getModel(p).getItemStyle(["color"]),y=e.getModel(m).getItemStyle(),w=e.getModel(g),_=e.getModel(v),I=c.type,x="cartesian2d"===I?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],S=i;S=0?n+=m:n-=m:w>=0?n-=m:n+=m}return n}function p(e,t){var i=[],r=n.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,n){var u=e.getLayout(),d=e.getVisual("fromSymbol"),f=e.getVisual("toSymbol");u.__original||(u.__original=[a.clone(u[0]),a.clone(u[1])],u[2]&&u.__original.push(a.clone(u[2])));var p=u.__original;if(null!=u[2]){if(a.copy(s[0],p[0]),a.copy(s[1],p[2]),a.copy(s[2],p[1]),d&&"none"!==d){var m=o(e.node1),g=h(s,p[0],m*t);r(s[0][0],s[1][0],s[2][0],g,i),s[0][0]=i[3],s[1][0]=i[4],r(s[0][1],s[1][1],s[2][1],g,i),s[0][1]=i[3],s[1][1]=i[4]}if(f&&"none"!==f){m=o(e.node2),g=h(s,p[1],m*t);r(s[0][0],s[1][0],s[2][0],g,i),s[1][0]=i[1],s[2][0]=i[2],r(s[0][1],s[1][1],s[2][1],g,i),s[1][1]=i[1],s[2][1]=i[2]}a.copy(u[0],s[0]),a.copy(u[1],s[2]),a.copy(u[2],s[1])}else{if(a.copy(l[0],p[0]),a.copy(l[1],p[1]),a.sub(c,l[1],l[0]),a.normalize(c,c),d&&"none"!==d){m=o(e.node1);a.scaleAndAdd(l[0],l[0],c,m*t)}if(f&&"none"!==f){m=o(e.node2);a.scaleAndAdd(l[1],l[1],c,-m*t)}a.copy(u[0],l[0]),a.copy(u[1],l[1])}}))}e.exports=p},"482c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-post",use:"icon-post-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},4880:function(e,t,i){},"489f":function(e,t,i){"use strict";i("750f")},"48a9":function(e,t,i){var n=i("6d8b"),a=i("42e5"),r=function(e,t,i,n,r,o){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,a.call(this,r)};r.prototype={constructor:r},n.inherits(r,a);var o=r;e.exports=o},"48ac":function(e,t,i){var n=i("3eba"),a=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),r=a;e.exports=r},"48c7":function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}n.merge(s.prototype,o);var c={offset:0};r("x",s,l,c),r("y",s,l,c);var u=s;e.exports=u},"48cc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"MedicalManagerDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:allocation:MIM"),prop:"MedicalManagerUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.MedicalManagerUserId,callback:function(t){e.$set(e.form,"MedicalManagerUserId",t)},expression:"form.MedicalManagerUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{key:e.UserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.UserId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}},selectList:{type:Array,default:function(){return[]}}},data:function(){return{form:{MedicalManagerUserId:null,TaskOptType:1},rules:{MedicalManagerUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,this.data.Id?(this.form.TaskIdList=[this.data.Id],this.form.TaskOptType=2,this.form.MedicalManagerUserId=this.data.MedicalManagerUserId):this.form.TaskIdList=Object.assign([],this.selectList.map((function(e){return e.Id})))},methods:{save:function(){var e=this;this.$refs.MedicalManagerDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(r["X"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"7e02151d",null);t["default"]=c.exports},"48de":function(e,t,i){"use strict";i("a8b5")},"48fb":function(e,t,i){"use strict";i.d(t,"e",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o})),i.d(t,"d",(function(){return s})),i.d(t,"c",(function(){return l}));var n=i("b775");function a(e){return Object(n["a"])({url:"/statistics/getWorkloadByTrialAndReviewer",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/statistics/getEnrollStatByReviewer",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/statistics/getEnrollStatByTrial",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/statistics/getParticipateTrialStat",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/statistics/getParticipateTrialList/".concat(e),method:"get"})}},"491a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-config"},[i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"访视阅片",name:"0"}},[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"阅片问题"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{disabled:0===e.list.length,size:"mini",type:"primary"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n 预览\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 添加\n ")]):e._e()],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"criterionQSList",attrs:{height:"100",data:e.list,stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupName",label:"分组","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupEnName",label:"分组(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:"名称(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"题型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:"是否显示","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:"是否裁判问题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:"是否在阅片页面显示",width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:"是否在全局阅片显示",width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"250","show-overflow-tooltip":"",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleLook(t.row)}}},[e._v("\n 查看\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:"table"!==t.row.Type},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 表格问题\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{type:"danger",size:"mini",disabled:t.row.IsEnable},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"全局阅片",name:"Global"}},[i("EvaluationOfGlobalConfig",{attrs:{data:e.data,"criterion-id":e.criterionId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"肿瘤学阅片",name:"Oncology"}},[i("EvaluationOfOncologyConfig",{attrs:{data:e.data,"criterion-id":e.criterionId}})],1)],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("CriterionQuestionForm",{ref:"addOrEdit",attrs:{data:e.rowData,type:e.type},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,fullscreen:"","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",[i("ECRF",{attrs:{"criterion-id":e.criterionId}})],1)]):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("TableQsList",{attrs:{"criterion-id":e.criterionId,"reading-question-id":e.rowData.Id,"is-complete-config":e.data.IsCompleteConfig,"lesion-type":e.rowData.LesionType}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("333d"),l=i("923b"),c=i("aaa2"),u=i("78f5"),d=i("df51"),f=i("06d8"),h=function(){return{QuestionName:"",PageIndex:1,PageSize:20}},p={name:"QcQuestions",components:{Pagination:s["default"],CriterionQuestionForm:l["default"],ECRF:d["default"],TableQsList:f["default"],EvaluationOfOncologyConfig:c["default"],EvaluationOfGlobalConfig:u["default"]},props:{criterionId:{type:String,required:!0},data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:h(),list:[],total:0,type:null,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:""}}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.criterionQSList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.ReadingQuestionCriterionSystemId=this.criterionId,Object(o["ub"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionSystemId:this.criterionId,Id:""},this.type="add",this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleLook:function(e){this.rowData=Object(r["a"])({},e),this.type="look",this.addOrEdit.title="查看",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.type="edit",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["L"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.config.title="".concat(this.$fd("LesionType",e.LesionType),":表格问题"),this.config.visible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=h(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=i("2877"),v=Object(g["a"])(m,n,a,!1,null,"3cdf3a80",null);t["default"]=v.exports},4942:function(e,t,i){var n=i("2cf4"),a=n.debugMode,r=function(){};1===a&&(r=console.error);var o=r;e.exports=o},4946:function(e,t,i){"use strict";i("919a")},4955:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"49be":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"49dc":function(e,t,i){},"49e3":function(e,t,i){"use strict";i("1644")},"49e4":function(e,t,i){"use strict";i("cddb")},"49e8":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("d81e"),o=r.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var n=t.coordinateSystem;if("geo"===n.type){var r=o(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&a.each(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))},"4a01":function(e,t,i){var n=i("6d8b"),a=i("1fab"),r=i("607d"),o=i("a4fe");function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=n.bind,i=t(l,this),r=t(c,this),o=t(u,this),s=t(d,this),h=t(f,this);a.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,a){this.disable(),this._opt=n.defaults(n.clone(a)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",h))},this.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",h)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(r.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,i)&&(this._x=t,this._y=i,this._dragging=!0)}}function c(e){if(this._dragging&&m("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var t=e.offsetX,i=e.offsetY,n=this._x,a=this._y,s=t-n,l=i-a;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&r.stop(e.event),p(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:a,newX:t,newY:i})}}function u(e){r.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function d(e){var t=m("zoomOnMouseWheel",e,this._opt),i=m("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,a=Math.abs(n),r=e.offsetX,o=e.offsetY;if(0!==n&&(t||i)){if(t){var s=a>3?1.4:a>1?1.2:1.1,l=n>0?s:1/s;h(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:r,originY:o})}if(i){var c=Math.abs(n),u=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);h(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:r,originY:o})}}}function f(e){if(!o.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;h(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function h(e,t,i,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(r.stop(n.event),p(e,t,i,n,a))}function p(e,t,i,a,r){r.isAvailableBehavior=n.bind(m,null,i,a),e.trigger(t,r)}function m(e,t,i){var a=i[e];return!e||a&&(!n.isString(a)||t.event[a+"Key"])}n.mixin(s,a);var g=s;e.exports=g},"4a1d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","font-size":"15px"}},[e._v("\n "+e._s("en"===e.language?e.question.GroupEnName:e.question.GroupName)+"\n ")])]):[i("el-form-item",{class:["group"===e.question.Type?"mb":""],attrs:{label:""+("en"===e.language?e.question.QuestionEnName:e.question.QuestionName),prop:e.question.Id,rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur","change"]}]}},["select"===e.question.Type?i("el-select",{attrs:{clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})})):e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:String(t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e()],1)],e._v(" "),e._l(e.question.Childrens,(function(t){return i("AssessmentFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),i("db72")),o=i("2f62"),s={name:"AssessmentFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}}},data:function(){return{}},computed:Object(r["a"])({},Object(o["b"])(["language"])),watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)}}},l=s,c=(i("18e2"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"51d4180b",null);t["default"]=u.exports},"4a3f":function(e,t,i){var n=i("401b"),a=n.create,r=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),d=1/3,f=a(),h=a(),p=a();function m(e){return e>-l&&el||e<-l}function v(e,t,i,n,a){var r=1-a;return r*r*(r*e+3*a*t)+a*a*(a*n+3*r*i)}function b(e,t,i,n,a){var r=1-a;return 3*(((t-e)*r+2*(i-t)*a)*r+(n-i)*a*a)}function y(e,t,i,n,a,r){var l=n+3*(t-i)-e,c=3*(i-2*t+e),f=3*(t-e),h=e-a,p=c*c-3*l*f,g=c*f-9*l*h,v=f*f-3*c*h,b=0;if(m(p)&&m(g))if(m(c))r[0]=0;else{var y=-f/c;y>=0&&y<=1&&(r[b++]=y)}else{var w=g*g-4*p*v;if(m(w)){var _=g/p,I=(y=-c/l+_,-_/2);y>=0&&y<=1&&(r[b++]=y),I>=0&&I<=1&&(r[b++]=I)}else if(w>0){var x=s(w),S=p*c+1.5*l*(-g+x),T=p*c+1.5*l*(-g-x);S=S<0?-o(-S,d):o(S,d),T=T<0?-o(-T,d):o(T,d);y=(-c-(S+T))/(3*l);y>=0&&y<=1&&(r[b++]=y)}else{var C=(2*p*c-3*l*g)/(2*s(p*p*p)),k=Math.acos(C)/3,R=s(p),D=Math.cos(k),L=(y=(-c-2*R*D)/(3*l),I=(-c+R*(D+u*Math.sin(k)))/(3*l),(-c+R*(D-u*Math.sin(k)))/(3*l));y>=0&&y<=1&&(r[b++]=y),I>=0&&I<=1&&(r[b++]=I),L>=0&&L<=1&&(r[b++]=L)}}return b}function w(e,t,i,n,a){var r=6*i-12*t+6*e,o=9*t+3*n-3*e-9*i,l=3*t-3*e,c=0;if(m(o)){if(g(r)){var u=-l/r;u>=0&&u<=1&&(a[c++]=u)}}else{var d=r*r-4*o*l;if(m(d))a[0]=-r/(2*o);else if(d>0){var f=s(d),h=(u=(-r+f)/(2*o),(-r-f)/(2*o));u>=0&&u<=1&&(a[c++]=u),h>=0&&h<=1&&(a[c++]=h)}}return c}function _(e,t,i,n,a,r){var o=(t-e)*a+e,s=(i-t)*a+t,l=(n-i)*a+i,c=(s-o)*a+o,u=(l-s)*a+s,d=(u-c)*a+c;r[0]=e,r[1]=o,r[2]=c,r[3]=d,r[4]=d,r[5]=u,r[6]=l,r[7]=n}function I(e,t,i,n,a,o,l,u,d,m,g){var b,y,w,_,I,x=.005,S=1/0;f[0]=d,f[1]=m;for(var T=0;T<1;T+=.05)h[0]=v(e,i,a,l,T),h[1]=v(t,n,o,u,T),_=r(f,h),_=0&&_=0&&u<=1&&(a[c++]=u)}}else{var d=o*o-4*r*l;if(m(d)){u=-o/(2*r);u>=0&&u<=1&&(a[c++]=u)}else if(d>0){var f=s(d),h=(u=(-o+f)/(2*r),(-o-f)/(2*r));u>=0&&u<=1&&(a[c++]=u),h>=0&&h<=1&&(a[c++]=h)}}return c}function C(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n}function k(e,t,i,n,a){var r=(t-e)*n+e,o=(i-t)*n+t,s=(o-r)*n+r;a[0]=e,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i}function R(e,t,i,n,a,o,l,u,d){var m,g=.005,v=1/0;f[0]=l,f[1]=u;for(var b=0;b<1;b+=.05){h[0]=x(e,i,a,b),h[1]=x(t,n,o,b);var y=r(f,h);y=0&&y0&&(e.resumeList=t.Result,e.filterByLanguage()),e.loading=!1})).catch((function(){e.loading=!1}))},handleUploadFile:function(e){var t=this;if(this.repeat=!1,this.checkFileSuffix(e.file.name)>-1){var i=this.resumeList.some((function(t){return t.FileName===e.file.name}));i?this.$confirm("Override the existing resume?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){t.repeat=!0,t.uploadFile(e.file,e.data.language)})).catch((function(e){})):this.uploadFile(e.file,e.data.language)}else this.$message.error("Must be in ".concat(this.accept," format"))},uploadFile:function(e,t){var i=this;this.isDisabled=!0;var n=this.resumeList;Object(r["f"])(e,"Resume",this.doctorId).then((function(a){if(i.repeat){var r=n.findIndex((function(t,i){return t.FileName===e.name}));n[r].Path=a.Result.FilePath,n[r].FullPath=a.Result.FullFilePath,n[r].ReUpload=!0,n[r].Language=t}else{var o={DoctorId:i.doctorId,Type:"Resume",Path:a.Result.FilePath,FullPath:a.Result.FullFilePath,FileName:e.name,Language:t};n.push(o)}i.saveUploadFiles(n)})).catch((function(){i.isDisabled=!1}))},saveUploadFiles:function(e){var t=this;Object(r["c"])(e).then((function(e){t.resumeList=e.Result,t.filterByLanguage(),t.isDisabled=!1,t.$message.success("Uploaded successfully")})).catch((function(){t.isDisabled=!1}))},filterByLanguage:function(){var e=this;this.resumeListEN=[],this.resumeListCN=[],this.resumeList.map((function(t){2===t.Language?e.resumeListEN.push(t):1===t.Language&&e.resumeListCN.push(t)}))},checkFileSuffix:function(e){var t=".doc, .docx",i=e.lastIndexOf("."),n=e.substring(i+1,e.length).toLocaleLowerCase();return t.search(n)},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleRemoveFile:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["a"])(e.Id,e.Path).then((function(i){i.IsSuccess&&(t.resumeList.splice(t.resumeList.findIndex((function(t){return t.Id===e.Id})),1),t.filterByLanguage(),t.$message({message:"Deleted successfully!",type:"success"}))}))})).catch((function(e){}))},handleSetOfiical:function(e){var t=this;Object(r["e"])(this.doctorId,e.Id,e.Language).then((function(e){e.IsSuccess&&(t.getResumeList(),t.$message({message:"Saved successfully!",type:"success"}))}))},handleLanguageClick:function(e){this.dialogVisible=!0,this.language=e.Language,this.currentRow=e},setResumeLanguage:function(){var e=this;Object(r["d"])(this.doctorId,this.currentRow.Id,this.language).then((function(t){t.IsSuccess&&(e.dialogVisible=!1,e.getResumeList(),e.$message({message:"Saved successfully!",type:"success"}))}))}}},s=o,l=(i("bddc"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"4aa23":function(e,t,i){var n=i("cbe5"),a=i("897a"),r=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:a(n.prototype.brush),buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r0||0,0),r=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,c=Math.cos(o),u=Math.sin(o);e.moveTo(c*a+i,u*a+n),e.lineTo(c*r+i,u*r+n),e.arc(i,n,r,o,s,!l),e.lineTo(Math.cos(s)*a+i,Math.sin(s)*a+n),0!==a&&e.arc(i,n,a,s,o,l),e.closePath()}});e.exports=r},"4aad":function(e,t,i){"use strict";i("f77f")},"4ab1":function(e,t,i){var n=i("8727"),a=n.createElement,r=i("6d8b"),o=i("cbe5"),s=i("0da8"),l=i("76a5"),c=i("3f8e"),u=c.path,d=c.image,f=c.text,h="0",p="1";function m(e,t,i,n,a){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}m.prototype.createElement=a,m.prototype.getDefs=function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?e?(i=t.insertBefore(this.createElement("defs"),t.firstChild),i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},m.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e[this._domName]&&i.contains(e[this._domName]))"function"===typeof t&&t(e);else{var n=this.add(e);n&&(e[this._domName]=n)}}},m.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},m.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},m.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return r.each(this._tagNames,(function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))})),t},m.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;r.each(e,(function(e){e[t._markLabel]=h}))},m.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},m.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;r.each(t,(function(t){t[i._markLabel]!==p&&e.removeChild(t)}))}},m.prototype.getSvgProxy=function(e){return e instanceof o?u:e instanceof s?d:e instanceof l?f:u},m.prototype.getTextSvgElement=function(e){return e.__textSvgEl},m.prototype.getSvgElement=function(e){return e.__svgEl};var g=m;e.exports=g},"4ae4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"oncologyReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("肿瘤学阅片")])]),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.previewCD}},[e._v("\n 临床数据\n ")]),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n 保存\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n 确认\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"影像学阅片结果",align:"center",prop:""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:"全局是否有更新","show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n 查看详情\n ")]):e._e()]}}],null,!1,1077507909)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:"访视点注释","show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:"肿瘤学阅片结果",align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:"结论","show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.trialEvaluations,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):i("span",[e._v(e._s(t.row.EvaluationResult))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v("原因")]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)}):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往肿瘤学阅片结果")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"肿瘤学阅片","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("179b"),c={name:"OncologyReview",components:{SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,loading:!1,priorLoading:!1,priorList:[],questionCols:[],oncologyInfo:{},trialEvaluations:[]}},mounted:function(){this.getList(),this.isReadingShowPreviousResults&&this.getPriorList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["yc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];if(t.Result.OncologyVisits.length>0){var n=t.Result.OncologyVisits[0];n.QuestionList.map((function(e){i.push(e.QuestionName)}))}e.questionCols=i,e.trialEvaluations=t.Result.TrialEvaluationResult?t.Result.TrialEvaluationResult.split("|"):[],e.oncologyInfo=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;this.loading=!0;var i=this.oncologyInfo.OncologyVisits.findIndex((function(e){return!e.EvaluationResult}));if(!(i>-1)){this.loading=!0;var n=[];this.oncologyInfo.OncologyVisits.map((function(e){e.EvaluationResult&&n.push({visitTaskId:e.VisitTaskId,evaluationResult:e.EvaluationResult,evaluationReason:e.EvaluationReason})}));var a={oncologyTaskId:this.visitTaskId,oncologyQuestionList:n};return new Promise((function(i,n){Object(r["Ne"])(a).then((function(n){t.loading=!1,t.getList(),e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,n(!1)}))}))}this.loading=!1,this.$confirm("肿瘤学阅片结论不能为空!",{type:"warning",distinguishCancelAndClose:!0}).then((function(){return Promise.reject(!1)})).catch((function(e){return Promise.reject(!1)}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handleConfirm:function(){var e=this;this.handleSave(!1).then((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{oncologyTaskId:this.visitTaskId},signInfo:e};Object(r["cf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getPriorList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(e,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(i.href,"_blank")},previewCD:function(){var e=Object(s["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.oncologyInfo.SubjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.oncologyInfo.OncologyTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},u=c,d=(i("3fde"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"85903ddc",null);t["default"]=f.exports},"4b08":function(e,t,i){var n=i("7dcf"),a=n.extend({type:"dataZoom.select"});e.exports=a},"4b17":function(e,t,i){var n=i("6428");function a(e){var t=n(e),i=t%1;return t===t?i?t-i:t:0}e.exports=a},"4b1d":function(e,t,i){"use strict";i("d394")},"4b35":function(e,t,i){"use strict";i("26c0")},"4b8a":function(e,t,i){"use strict";i("73d8")},"4b92":function(e,t,i){"use strict";i("74b3")},"4bba":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUser",label:e.$t("trials:adjustRecord:table:connfirmor"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:adjustRecord:table:connfirmTime"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"InconsistentCount",label:e.$t("trials:adjustRecord:table:record"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:0===t.row.InconsistentCount,type:"text",size:"small"},on:{click:function(i){return e.handleDownLoad(t.row)}}},[e._v("\n "+e._s(e.$t("trials:adjustRecord:action:download"))+"\n ")])]}}])})],1)},a=[],r=i("3e42"),o={name:"VisitPlanAdjust",data:function(){return{loading:!1,list:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(r["lc"])(t).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleDownLoad:function(e){var t=this;this.loading=!0,Object(r["Fb"])(e.Id).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"4bf6":function(e,t,i){var n=i("66fc"),a=i("697e"),r=i("f934"),o=r.getLayoutRect,s=i("6d8b"),l=s.each;function c(e,t,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,i),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,i){var r=this.dimension,o=new n(r,a.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===o.type;o.onBand=s&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),a.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=o({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),n=i?[0,e.width]:[0,e.height],a=t.reverse?1:0;t.setExtent(n[a],n[1-a]),this._updateAxisTransform(t,i?e.x:e.y)},_updateAxisTransform:function(e,t){var i=e.getExtent(),n=i[0]+i[1],a=e.isHorizontal();e.toGlobalCoord=a?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord=a?function(e){return e-t}:function(e){return n-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[a]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var u=c;e.exports=u},"4bf81":function(e,t){},"4c4f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"shortcut-key-input",class:{cursor:e.focus},style:e.$props.style,attrs:{tabindex:"0"},on:{focus:e.handleFocus,blur:function(t){e.focus=!1},keydown:e.handleKeydown}},[e.key.text?[i("span",[e._v(e._s(e.key.text)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:e.handleDeleteKey}})])]:i("div",{staticClass:"placeholder"},[e._v(e._s(e.placeholder))])],2)},a=[],r=(i("2fdb"),i("6762"),i("ac6a"),i("5df3"),i("1c4c"),Array.from({length:10},(function(e,t){return"Digit".concat(t)}))),o=Array.from({length:10},(function(e,t){return"Numpad".concat(t)})),s=Array.from({length:26},(function(e,t){return"Key".concat(String.fromCharCode(t+65).toUpperCase())})),l=["Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight"],c=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","PageUp","PageDown","Equal","Minus","Space"],u={name:"HotKeyInput",props:{hotkey:{type:Object,required:!0},verify:{type:Function,default:function(){return!0}},hotkeyId:{type:String,required:!0},placeholder:{type:String,default:""},range:{type:Array,default:function(){return["NUMBER","NUMPAD","ABC","OTHER"]}}},data:function(){return{focus:!1,key:{controlKey:"",text:""},keyRange:[]}},watch:{key:{handler:function(e){e.controlKey&&(this.focus=!1),this.$emit("update:hotkey",this.key)},immediate:!0},hotkey:{handler:function(e){e.text&&(this.key.text=e.text,this.key.controlKey=e.controlKey)},immediate:!0},range:{handler:function(e){var t=this,i={NUMBER:r,NUMPAD:o,ABC:s,OTHER:c};e.forEach((function(e){t.keyRange=t.keyRange.concat(i[e.toUpperCase()])}))},immediate:!0}},methods:{handleFocus:function(){this.key.text||(this.focus=!0)},handleDeleteKey:function(){this.key.text="",this.key.controlKey="",this.$emit("update:hotkey",this.key)},handleKeydown:function(e){console.log(e);var t=e.altKey,i=e.ctrlKey,n=e.shiftKey,a=e.key,r=e.code;if(!l.includes(a)){if(!this.keyRange.includes(r))return;var o="";[{key:t,text:"Alt"},{key:i,text:"Ctrl"},{key:n,text:"Shift"}].forEach((function(e){e.key&&(o&&(o+="+"),o+=e.text)})),a&&(o&&(o+="+"),"ArrowUp"===a?o+="↑":"ArrowDown"===a?o+="↓":"ArrowLeft"===a?o+="←":"ArrowRight"===a?o+="→":"PageUp"===a?o+="Page Up":"PageDown"===a?o+="Page Down":"+"===a&&n?o="+":"="!==a||n?"-"!==a||n?" "===a&&"Space"===r?o="Space":o+=a.toUpperCase():o="-":o="="),this.addHotkey({text:o,controlKey:{altKey:t,ctrlKey:i,shiftKey:n,key:a,code:r}})}e.preventDefault()},addHotkey:function(e){e.id=this.hotkeyId,this.verify(e)&&(this.key.text=e.text,this.key.controlKey=e.controlKey)}}},d=u,f=(i("1cf3"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3b901506",null);t["default"]=h.exports},"4c58":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"history-chat"},[i("el-tabs",{attrs:{"tab-position":"left",type:"card"},on:{"tab-click":e.clickTab}},e._l(e.list,(function(t,n){return i("el-tab-pane",{key:t.Id},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.ChallengeCode)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.IsClosed,expression:"!item.IsClosed"}],staticClass:"el-icon-message-solid",staticStyle:{color:"red"}})]),e._v(" "),i("div",{staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(t.DialogList,(function(t){return i("div",{key:t.Id},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),t.IsClosed?e._e():i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===t.ReuploadEnum||3===t.ReuploadEnum,expression:"(item.ReuploadEnum === 0 || item.ReuploadEnum === 3) "},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:apply-reupload"],expression:"['trials:trials-panel:visit:crc-upload:apply-reupload']"}],attrs:{type:"primary",loading:e.applyBtnLoading},on:{click:function(i){return e.handleCRCApplyReupload(t)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:applyReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===t.ReuploadEnum,expression:"item.ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:reupload"],expression:"['trials:trials-panel:visit:crc-upload:reupload']"}],attrs:{type:"primary",loading:e.uploadBtnLoading},on:{click:function(t){return e.openUploadDialog(n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:reupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===t.ReuploadEnum,expression:"item.ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:set-reupload-finished"],expression:"['trials:trials-panel:visit:crc-upload:set-reupload-finished']"}],attrs:{type:"primary",disabled:t.IsReuploaded,loading:e.reuploadedFinishbtnLoading},on:{click:function(t){return e.handleSetUploadFinished(n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:reuploadFinished"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:send"],expression:"['trials:trials-panel:visit:crc-upload:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:function(i){return e.handleReply(t.Id,n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:send"))+"\n ")])],1)])])])})),1),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"append-to-body":"","custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.trialCode,expression:"trialCode"}]},[e._v(e._s(e.trialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.TrialSiteCode,expression:"data.TrialSiteCode"}]},[e._v(e._s(e.data.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.SubjectCode,expression:"data.SubjectCode"}]},[e._v(e._s(e.data.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.VisitName,expression:"data.VisitName"}]},[e._v(e._s(e.data.VisitName+" ("+e.data.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{display:"flex","flex-direction":"column"}},[i("el-tabs",{staticStyle:{flex:"1"},attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[i("upload-dicom-files",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.Id},on:{close:e.closeUpload,getList:e.reFreshList}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:uploadNonDicoms:tab:uploadNonDicoms"),name:"non-dicom"}},["non-dicom"===e.activeName?i("upload-non-dicom-files",{attrs:{data:e.data,"allow-add-or-edit":!0,"body-parts":e.bodyParts,modalities:e.modalities,"subject-visit-id":e.data.Id},on:{getList:e.reFreshList}}):e._e()],1),e._v(" "),e.data.IsBaseLine&&e.clinicalEnum>0?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.Id,"allow-add-or-edit":!0,"enum-type":e.clinicalEnum},on:{getList:e.reFreshList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.Id},on:{closeDialog:e.closeClinicalDataSignDialog}})],1):e._e()],1)},a=[],r=i("75fc"),o=(i("28a5"),i("ac6a"),i("c5f6"),i("3e42")),s=i("9a3b"),l=i("268e"),c=i.n(l),u=i("19c3"),d=i.n(u),f=i("011b"),h=i.n(f),p=i("303f"),m=i.n(p),g=i("0280"),v=i("4ebb"),b=i("dda6"),y=i("179b"),w=i("5be4"),_=i("7a9e"),I={name:"HistoryChat",components:{UploadDicomFiles:g["default"],UploadNonDicomFiles:v["default"],UploadClinicalData:b["default"],SignForm:y["default"]},props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{list:[],loading:!1,btnLoading:!1,newMessage:"",userId:zzSessionStorage.getItem("userId"),trialCode:this.$route.query.trialCode,adminAvatar:c.a,pmAvatar:d.a,crcAvatar:h.a,qcAvatar:m.a,uploadVisible:!1,activeName:"dicom",currentChallengeIndex:null,signVisible:!1,signCode:"",currentUser:zzSessionStorage.getItem("userName"),trialId:this.$route.query.trialId,uploadBtnLoading:!1,applyBtnLoading:!1,reuploadedFinishbtnLoading:!1}},mounted:function(){this.initChat()},methods:{clickTab:function(e){this.setScrollHeight(1*e.index)},initChat:function(e){var t=this,i=[];this.loading=!0,Object(o["Ob"])(this.data.Id,this.data.QCProcessEnum).then((function(n){n.Result.forEach((function(n){var a=[];n.Content&&-1!==n.Content.indexOf("|")?a=n.Content.split("|"):n.Content&&""!==n.Content&&a.push(n.Content);var o=a.map((function(e){return"
  • ".concat(e,"
  • ")})),s="\n
    ".concat(t.$t("trials:qcQuality:dialog:qcContent"),"\n
      \n ").concat(o.join(""),"\n
    \n
    \n

    \n ").concat(t.$t("trials:qcQuality:dialogTips:tip"),"\n

    \n

    ").concat(t.$t("trials:qcQuality:dialog:deadline"),": ").concat(n.DeadlineTime?n.DeadlineTime:t.$t("trials:qcQuality:dialog:none"),"

    "),l=zzSessionStorage.getItem("userId"),c=[];c.push({IsCurrentUser:n.CreateUserId===l,TalkContent:s,CreateTime:n.CreateTime,CreateUserName:n.CreateUserName,CreateUserId:n.CreateUserId,UserTypeEnum:n.UserTypeEnum}),c.push.apply(c,Object(r["a"])(n.DialogList)),i.push({Id:n.Id,ChallengeCode:n.ChallengeCode,IsClosed:n.IsClosed,ReuploadEnum:1*n.ReuploadEnum,DialogList:c,Content:n.Content,DeadlineTime:n.DeadlineTime,IsOverTime:n.IsOverTime}),t.list=Object.assign({},i),t.loading=!1,t.setScrollHeight(e||0)}))})).catch((function(){t.loading=!1}))},setScrollHeight:function(e){setTimeout((function(){var t=document.querySelectorAll(".chat-content")[e];t.scrollTop=t.scrollHeight}),100)},handleReply:function(e,t){var i=this;if(this.newMessage){this.btnLoading=!0;var n={talkContent:this.newMessage,qcChallengeId:e,subjectVisitId:this.data.Id};Object(o["G"])(this.data.TrialId,n).then((function(e){e.IsSuccess&&(i.initChat(t),i.newMessage=""),i.btnLoading=!1})).catch((function(){i.btnLoading=!1}))}},openUploadDialog:function(e){var t=this,i=this.list[e].Id;i&&(this.uploadBtnLoading=!0,Object(o["Lf"])(this.trialId,i).then((function(e){t.uploadBtnLoading=!1,e.IsSuccess&&(w["a"].studyList=[],t.uploadVisible=!0)})).catch((function(){t.initChat(e),t.$emit("getList"),t.uploadBtnLoading=!1})))},closeUpload:function(){this.uploadVisible=!1},reFreshList:function(){this.$emit("getList")},handleSetUploadFinished:function(e){var t=this;if(this.clinicalEnum>0&&this.data.IsBaseLine){this.currentChallengeIndex=e;var i=_["default"].processSignature.ClinicalDataConfirmation;this.signCode=i,this.signVisible=!0}else this.$confirm(this.$t("trials:crcQuestion:message:reuploadConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.currentChallengeIndex=e,t.setReuploadFinished()})).catch((function(){}))},setReuploadFinished:function(e){var t=this;this.loading=!0;var i=Object.assign({},this.list[this.currentChallengeIndex]),n={data:{QcChallengeId:i.Id,TrialId:this.trialId,SetOrCancel:!0},signInfo:e};this.loading=!0,this.reuploadedFinishbtnLoading=!0,Object(s["d"])(n).then((function(i){t.loading=!1,t.reuploadedFinishbtnLoading=!1,i.IsSuccess&&(e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.list[t.currentChallengeIndex].ReuploadEnum=3,t.initChat(),t.reFreshList())})).catch((function(){t.loading=!1,t.reuploadedFinishbtnLoading=!1,t.$refs["signForm"].btnLoading=!1}))},closeClinicalDataSignDialog:function(e,t){e?this.setReuploadFinished(t):this.signVisible=!1},handleCRCApplyReupload:function(e){var t=this;this.$confirm(this.$t("trials:crcQuestion:message:applyReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.applyBtnLoading=!0,Object(o["S"])(t.trialId,t.data.Id,e.Id).then((function(i){t.applyBtnLoading=!1,i.IsSuccess&&(e.ReuploadEnum=1,t.initChat(),t.$forceUpdate(),t.reFreshList())})).catch((function(){t.applyBtnLoading=!1}))})).catch((function(){}))}}},x=I,S=(i("502f"),i("2877")),T=Object(S["a"])(x,n,a,!1,null,"8c6137ee",null);t["default"]=T.exports},"4c86":function(e,t,i){var n=i("6d8b"),a=n.each,r=i("bda7"),o=i("e0d3"),s=o.makeInner,l=i("320a"),c=i("1792"),u=i("6bd4"),d=i("a7f2"),f=s(),h={load:function(e,t,i){var n=f(t).parsed;if(n)return n;var o,s=t.specialAreas||{},h=t.geoJSON;try{o=h?r(h,i):[]}catch(m){throw new Error("Invalid geoJson format\n"+m.message)}return l(e,o),a(o,(function(t){var i=t.name;c(e,t),u(e,t),d(e,t);var n=s[i];n&&t.transformTo(n.left,n.top,n.width,n.height)})),f(t).parsed={regions:o,boundingRect:p(o)}}};function p(e){for(var t,i=0;i0?o:s)}function u(e,t){return t.get(e>0?a:r)}}};e.exports=l},"4cef":function(e,t){var i=/\s/;function n(e){var t=e.length;while(t--&&i.test(e.charAt(t)));return t}e.exports=n},"4d11":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Code:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyName,callback:function(t){e.$set(e.searchData,"KeyName",t)},expression:"searchData.KeyName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"KeyName",label:"KeyName","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"Description","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"Value","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"ValueCN","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("ab11"),s=i("f36a"),l=function(){return{asc:!0,sortField:"",code:"",keyName:"",IsConfig:!0,PageIndex:1,PageSize:20}},c={name:"DictionaryConfig",components:{BoxContent:s["default"],DictionaryTypeConfigForm:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"4d24":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"4d62":function(e,t,i){var n=i("2306"),a=i("6d8b"),r=i("e887");function o(e,t){n.Group.call(this);var i=new n.Polygon,a=new n.Polyline,r=new n.Text;this.add(i),this.add(a),this.add(r),this.highDownOnUpdate=function(e,t){"emphasis"===t?(a.ignore=a.hoverIgnore,r.ignore=r.hoverIgnore):(a.ignore=a.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(e,t,!0)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,i){var r=this.childAt(0),o=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,r.useStyle({}),i?(r.setShape({points:c.points}),r.setStyle({opacity:0}),n.initProps(r,{style:{opacity:u}},o,t)):n.updateProps(r,{style:{opacity:u},shape:{points:c.points}},o,t);var d=s.getModel("itemStyle"),f=e.getItemVisual(t,"color");r.setStyle(a.defaults({lineJoin:"round",fill:f},d.getItemStyle(["opacity"]))),r.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),n.setHoverStyle(this)},s._updateLabel=function(e,t){var i=this.childAt(1),a=this.childAt(2),r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");n.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},r,t),n.updateProps(a,{style:{x:l.x,y:l.y}},r,t),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=o.getModel("label"),d=o.getModel("emphasis.label"),f=o.getModel("labelLine"),h=o.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");n.setLabelStyle(a.style,a.hoverStyle={},u,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),a.ignore=a.normalIgnore=!u.get("show"),a.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!f.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:c}),i.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle()},a.inherits(o,n.Group);var c=r.extend({type:"funnel",render:function(e,t,i){var n=e.getData(),a=this._data,r=this.group;n.diff(a).add((function(e){var t=new o(n,e);n.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var i=a.getItemGraphicEl(t);i.updateData(n,e),r.add(i),n.setItemGraphicEl(e,i)})).remove((function(e){var t=a.getItemGraphicEl(e);r.remove(t)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},"4d85":function(e,t,i){var n=i("e46b"),a=i("4f85"),r=a.extend({type:"series.gauge",getInitialData:function(e,t){return n(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),o=r;e.exports=o},"4d89":function(e,t,i){"use strict";i("815e")},"4dc3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organ"),name:"organs"}},[i("OrgansTbl",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,"is-from-system":e.isFromSystem,"is-confirm":e.isConfirm}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:dict"),name:"criterionDictionary"}},[i("CriterionDictionary",{attrs:{"criterion-id":e.trialReadingCriterionId,"is-complete-config":e.isConfirm}})],1)],1)},a=[],r=(i("7f7f"),i("6762"),i("2fdb"),i("ba8d")),o=i("2e99"),s={name:"CriterionsBaseData",components:{OrgansTbl:r["default"],CriterionDictionary:o["default"]},props:{trialReadingCriterionId:{type:String,required:!0},isFromSystem:{type:Boolean,required:!0},isConfirm:{type:Boolean,required:!0}},data:function(){return{activeName:"organs",tabs:["organs"]}},methods:{handleClick:function(e,t){this.tabs.includes(e.name)||this.tabs.push(e.name)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"4df0":function(e,t,i){},"4e08":function(e,t,i){(function(e){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof e&&(i=e.__DEV__),"undefined"===typeof i&&(i=!0);var n=i;t.__DEV__=n}).call(this,i("c8ba"))},"4e10":function(e,t,i){var n=i("6d8b"),a=i("e46b"),r=i("4f85"),o=i("eda2"),s=o.encodeHTML,l=o.addCommas,c=i("7023"),u=i("2b17"),d=u.retrieveRawAttr,f=i("5b87"),h=i("0f99"),p=h.makeSeriesEncodeForNameBased,m=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=a(this,{coordDimensions:["value"],encodeDefaulter:n.curry(p,this)}),i=t.mapDimension("value"),r=n.createHashMap(),o=[],s=[],l=0,c=t.count();l":"\n";return u.join(", ")+p+s(o+" : "+r)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),i=this.coordinateSystem,n=i.getRegion(t);return n&&i.dataToPoint(n.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});n.mixin(m,c);var g=m;e.exports=g},"4e13":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"research-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.researchInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Research,callback:function(t){e.$set(e.researchInfo,"Research",t)},expression:"researchInfo.Research"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.ResearchCN,callback:function(t){e.$set(e.researchInfo,"ResearchCN",t)},expression:"researchInfo.ResearchCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Grants,callback:function(t){e.$set(e.researchInfo,"Grants",t)},expression:"researchInfo.Grants"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.GrantsCN,callback:function(t){e.$set(e.researchInfo,"GrantsCN",t)},expression:"researchInfo.GrantsCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Publications,callback:function(t){e.$set(e.researchInfo,"Publications",t)},expression:"researchInfo.Publications"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonors,callback:function(t){e.$set(e.researchInfo,"AwardsHonors",t)},expression:"researchInfo.AwardsHonors"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonorsCN,callback:function(t){e.$set(e.researchInfo,"AwardsHonorsCN",t)},expression:"researchInfo.AwardsHonorsCN"}})],1)],1)],1)},a=[],r={props:{researchInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("643c"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"4e36":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"dicom-container",staticStyle:{width:"100%",height:"100%"}},[(e.isReadingTaskViewInOrder||!e.isReadingTaskViewInOrder&&e.isShow)&&e.readingCategory&&1===e.readingCategory&&0!==e.CriterionType?i("div",{staticClass:"reading-wrapper"},[i("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"before-leave":e.beforeLeave},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:review"),name:"read"}},[e.tabs.includes("read")?i("ReadPage",{attrs:{"trial-id":e.trialId,"visit-task-id":e.visitTaskId,"subject-id":e.subjectId,"subject-code":e.subjectCode,"is-show":e.isShow,"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-task-view-in-order":e.isReadingTaskViewInOrder,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:report"),name:"report"}},[e.tabs.includes("report")&&e.isShow?i("ReportPage",{ref:"reportPage",attrs:{"question-form-change-state":e.questionFormChangeState,"visit-task-id":e.visitTaskId}}):e._e()],1)],1)],1):e._e(),e._v(" "),(e.isReadingTaskViewInOrder||!e.isReadingTaskViewInOrder&&e.isShow)&&e.readingCategory&&1===e.readingCategory&&0===e.CriterionType?i("div",{staticClass:"reading-wrapper"},[i("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"before-leave":e.beforeLeaveCustomize},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:review"),name:"read"}},[e.tabs.includes("read")?i("CustomizeReadPage",{attrs:{"trial-id":e.trialId,"visit-task-id":e.visitTaskId,"subject-id":e.subjectId,"subject-code":e.subjectCode,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"ise-c-r-f-show-in-dicom-reading":e.IseCRFShowInDicomReading,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile}}):e._e()],1),e._v(" "),e.IseCRFShowInDicomReading?e._e():i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:report"),name:"report"}},[e.isShow?i("CustomizeReportPage",{ref:"reportPage",attrs:{"visit-task-id":e.visitTaskId}}):e._e()],1)],1)],1):e.isShow&&e.readingCategory&&2===e.readingCategory?i("GlobalReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&4===e.readingCategory?i("AdReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&5===e.readingCategory?i("OncologyReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e._e(),e._v(" "),i("el-dialog",{staticStyle:{margin:"0px"},attrs:{width:"75%",visible:e.dialogVisible,"custom-class":"dialog-container","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",{staticClass:"dialog-footer",attrs:{slot:"title"},slot:"title"},[e._v("\n "+e._s(e.$t("trials:reading:dagTitle:msg1"))+"\n ")]),e._v(" "),i("div",{style:{height:e.dialogH,margin:0}},[i("ClinicalData",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId}})],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirmCD}},[e._v(e._s(e.$t("trials:reading:button:confirm")))])],1)])],1)},a=[],r=(i("6762"),i("2fdb"),i("96cf"),i("3b8d")),o=(i("a481"),i("3e42")),s=i("689e"),l=i("d34b"),c=i("96a9"),u=i("196d"),d=i("6501"),f=i("7962"),h=i("b706"),p=i("421a"),m=i("9b92"),g=i("4360"),v=i("5f87"),b=i("a599"),y={name:"Reading",components:{ReadPage:s["default"],ReportPage:c["default"],GlobalReview:d["default"],AdReview:f["default"],OncologyReview:h["default"],ClinicalData:p["default"],CustomizeReadPage:l["default"],CustomizeReportPage:u["default"]},data:function(){return{activeName:"",tabs:[],trialId:"",subjectCode:"",subjectId:"",visitTaskId:"",loading:!1,readingCategory:null,isReadingShowSubjectInfo:!1,isReadingShowPreviousResults:!1,isExistsClinicalData:!1,isExistsNoDicomFile:!1,isNeedReadClinicalData:!1,isReadClinicalData:!1,digitPlaces:2,isReadingTaskViewInOrder:!1,firstTaskReadingCategory:null,criterionType:null,readingTool:null,dialogVisible:!1,dialogH:0,TrialReadingCriterionId:null,isNewSubject:null,isShow:!1,IseCRFShowInDicomReading:!1,isQualityIssueSaved:!1,questionFormChangeState:!1,questionFormChangeNum:0}},mounted:function(){var e=this;if(m["a"].$on("questionFormChange",(function(t){0!==e.questionFormChangeNum&&(e.questionFormChangeState=t),e.questionFormChangeNum++})),m["a"].$on("getNextTask",(function(){e.isQualityIssueSaved=!1,e.firstTaskReadingCategory=e.readingCategory,e.isReadingTaskViewInOrder||g["a"].dispatch("reading/resetVisitTasks"),e.getTaskInfo(1)})),this.activeName=this.$router.currentRoute.query.tabName?this.$router.currentRoute.query.tabName:"read",this.tabs.push(this.activeName),this.trialId=this.$router.currentRoute.query.trialId,this.subjectCode=this.$router.currentRoute.query.subjectCode,this.subjectId=this.$router.currentRoute.query.subjectId,this.visitTaskId=this.$router.currentRoute.query.visitTaskId,this.isReadingTaskViewInOrder=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),this.criterionType=this.$router.currentRoute.query.criterionType,this.readingTool=this.$router.currentRoute.query.readingTool,this.TrialReadingCriterionId=this.$router.currentRoute.query.TrialReadingCriterionId,this.isNewSubject=this.$router.currentRoute.query.isNewSubject,this.isNewSubject&&this.isReadingTaskViewInOrder){var t=this.$t("trials:reading:warnning:msg1");t=t.replace("xxx",this.subjectCode),this.$message.success(t),Object(b["a"])("isNewSubject","")}this.$router.currentRoute.query.TokenKey&&(g["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(b["a"])("TokenKey","")),g["a"].dispatch("reading/resetVisitTasks"),this.getTaskInfo(),this.dialogH=this.$refs["container"].clientHeight-250+"px",window.addEventListener("resize",(function(){e.dialogH=e.$refs["container"].clientHeight-250+"px"}))},beforeDestroy:function(){m["a"].$off("getNextTask")},methods:{getTaskInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.loading=!0;var i={subjectId:this.subjectId,trialId:this.trialId,subjectCode:this.subjectCode,visitTaskId:this.$router.currentRoute.query.visitTaskId,trialReadingCriterionId:this.$router.currentRoute.query.TrialReadingCriterionId};Object(o["vc"])(i).then(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.isShow=!1,e.visitTaskId=n.Result.VisitTaskId,e.subjectId!==n.Result.SubjectId?(g["a"].dispatch("reading/resetVisitTasks"),a=Object(v["a"])(),window.location.href="/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.trialId,"&subjectCode=").concat(n.Result.SubjectCode,"&subjectId=").concat(n.Result.SubjectId,"&isReadingTaskViewInOrder=").concat(e.isReadingTaskViewInOrder,"&criterionType=").concat(e.criterionType,"&readingTool=").concat(e.readingTool,"&TokenKey=").concat(a,"&isNewSubject=1")):e.isReadingTaskViewInOrder&&1===n.Result.ReadingCategory||g["a"].dispatch("reading/resetVisitTasks"),e.subjectId=n.Result.SubjectId,e.subjectCode=n.Result.SubjectCode,e.taskBlindName=n.Result.TaskBlindName,e.isReadingShowSubjectInfo=n.Result.IsReadingShowSubjectInfo,e.isReadingShowPreviousResults=n.Result.IsReadingShowPreviousResults,e.isExistsNoDicomFile=n.Result.IsExistsNoDicomFile,e.isExistsClinicalData=n.Result.IsExistsClinicalData,e.isReadClinicalData=n.Result.IsReadClinicalData,e.isNeedReadClinicalData=n.Result.IsNeedReadClinicalData,e.CriterionType=n.Result.CriterionType,e.digitPlaces=n.Result.DigitPlaces,e.IseCRFShowInDicomReading=n.Result.IseCRFShowInDicomReading,localStorage.setItem("CriterionType",n.Result.CriterionType),localStorage.setItem("digitPlaces",n.Result.DigitPlaces),e.readingCategory=n.Result.ReadingCategory,e.questionFormChangeState=!1,e.questionFormChangeNum=0,e.isExistsClinicalData&&e.isNeedReadClinicalData&&!e.isReadClinicalData&&(e.dialogVisible=!0),1===n.Result.ReadingCategory&&(e.activeName="read",e.tabs=[e.activeName]),1===e.firstTaskReadingCategory&&1===n.Result.ReadingCategory&&e.isReadingTaskViewInOrder&&t&&(e.activeName="read",e.tabs=[e.activeName],e.$nextTick((function(){m["a"].$emit("getNextVisitInfo"),m["a"].$emit("getReportInfo")}))),e.isShow=!0,e.loading=!1;case 25:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},beforeLeaveCustomize:function(e,t){return this.isShow="read"===t,Promise.resolve(!0)},myConfirm:function(e){var t=this;return new Promise((function(i){t.$confirm(e,{type:"warning",showCancelButton:!0}).then((function(){i(!0)})).catch((function(){i(!1)}))}))},beforeLeave:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("read"!==i){e.next=6;break}return this.tabs.push(t),this.$nextTick((function(){n.$refs.reportPage.setScrollTop(1)})),e.abrupt("return",Promise.resolve(!0));case 6:return console.log(t),this.tabs.includes(t)||this.tabs.push(t),e.abrupt("return",Promise.resolve(!0));case 9:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(o["Hf"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,e.isQualityIssueSaved=!0,t()})).catch((function(){e.loading=!1,e.isQualityIssueSaved=!1,i()}))}))},handleConfirmCD:function(){var e=this;this.loading=!0;var t=this.visitTaskId;Object(o["te"])({visitTaskId:t}).then((function(t){e.loading=!1,e.dialogVisible=!1,e.isReadClinicalData=!0})).catch((function(){e.loading=!1}))}}},w=y,_=(i("f40c"),i("2877")),I=Object(_["a"])(w,n,a,!1,null,"bd43a304",null);t["default"]=I.exports},"4e3f":function(e,t,i){},"4e47":function(e,t,i){var n=i("6d8b"),a=i("2306"),r={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(e,t,i){a.Group.call(this);var n=new a.Sector({z2:o});n.seriesIndex=t.seriesIndex;var r=new a.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){r.ignore=r.hoverIgnore}function c(){r.ignore=r.normalIgnore}this.add(n),this.add(r),this.updateData(!0,e,"normal",t,i),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,i,r,o){this.node=t,t.piece=this,r=r||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=n.extend({},c);u.label=null;var f=d(t,r,o);p(t,r,f);var h,m=l.getModel("itemStyle").getItemStyle();if("normal"===i)h=m;else{var g=l.getModel(i+".itemStyle").getItemStyle();h=n.merge(g,m)}h=n.defaults({lineJoin:"bevel",fill:h.fill||f},h),e?(s.setShape(u),s.shape.r=c.r0,a.updateProps(s,{shape:{r:c.r}},r,t.dataIndex),s.useStyle(h)):"object"===typeof h.fill&&h.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(a.updateProps(s,{shape:u},r),s.useStyle(h)):a.updateProps(s,{shape:u,style:h},r),this._updateLabel(r,f,i);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),e){var b=r.getShallow("highlightPolicy");this._initEvents(s,t,r,b)}this._seriesModel=r||this._seriesModel,this._ecModel=o||this._ecModel,a.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(t.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,t.node,e)?i.piece.childAt(0).trigger("highlight"):e!==r.NONE&&i.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,i){var r=this.node.getModel(),o=r.getModel("label"),s="normal"===i||"emphasis"===i?o:r.getModel(i+".label"),l=r.getModel("emphasis.label"),c=s.get("formatter"),u=c?i:"normal",d=n.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===k("show")&&(d="");var f=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var p=f.endAngle-f.startAngle;null!=h&&Math.abs(p)Math.PI/2?"right":"left"):I&&"center"!==I?"left"===I?(g=f.r0+_,v>Math.PI/2&&(I="right")):"right"===I&&(g=f.r-_,v>Math.PI/2&&(I="left")):(g=(f.r+f.r0)/2,I="center"),m.attr("style",{text:d,textAlign:I,textVerticalAlign:k("verticalAlign")||"middle",opacity:k("opacity")});var x=g*b+f.cx,S=g*y+f.cy;m.attr("position",[x,S]);var T=k("rotate"),C=0;function k(e){var t=s.get(e);return null==t?o.get(e):t}"radial"===T?(C=-v,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===T?(C=Math.PI/2-v,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):"number"===typeof T&&(C=T*Math.PI/180),m.attr("rotation",C)},c._initEvents=function(e,t,i,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()},s=function(){a.onDownplay()},l=function(){a.onHighlight()};i.isAnimationEnabled()&&e.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",s).on("highlight",l)},n.inherits(l,a.Group);var u=l;function d(e,t,i){var n=e.getVisual("color"),a=e.getVisual("visualMeta");a&&0!==a.length||(n=null);var r=e.getModel("itemStyle").get("color");if(r)return r;if(n)return n;if(0===e.depth)return i.option.color[0];var o=i.option.color.length;return r=i.option.color[f(e)%o],r}function f(e){var t=e;while(t.depth>1)t=t.parentNode;var i=e.getAncestors()[0];return n.indexOf(i.children,t)}function h(e,t,i){return i!==r.NONE&&(i===r.SELF?e===t:i===r.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,i){var n=t.getData();n.setItemVisual(e.dataIndex,"color",i)}e.exports=u},"4e5a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"4e83":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName: ",prop:"Code"}},[i("el-input",{model:{value:e.form.KeyName,callback:function(t){e.$set(e.form,"KeyName",t)},expression:"form.KeyName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ValueCN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",IsEnable:!1,IsConfig:!0}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"4e9f":function(e,t,i){var n=i("22d1"),a=i("29a8"),r=i("2145"),o=a.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!n.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":i.get("type",!0)||"png",s=t.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!==typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,a+"."+o)}else{var f=i.get("lang"),h='',p=window.open();p.document.write(h)}else{var m=document.createElement("a");m.download=a+"."+o,m.target="_blank",m.href=s;var g=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(g)}},r.register("saveAsImage",s);var c=s;e.exports=c},"4ebb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"non-dicom-wrapper"},[i("div",{staticStyle:{"text-align":"right"}},[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-plus",type:"primary",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),e.handleAdd(t)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.nonDicomStudyList}},[i("el-table-column",{attrs:{prop:"CodeView",label:e.$t("trials:uploadNonDicoms:table:studyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modality",label:e.$t("trials:uploadNonDicoms:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPart",label:e.$t("trials:uploadNonDicoms:table:bodyPart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:uploadNonDicoms:table:files")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FileCount?i("el-popover",{attrs:{trigger:"click",placement:"bottom"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.filesLoading,expression:"filesLoading"}],attrs:{data:e.nonDicomfilesList,height:"300",size:"small"}},[i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadNonDicoms:table:fileName"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:uploadNonDicoms:action:preview"),size:"small"},nativeOn:{click:function(i){i.preventDefault(),"MP4"===n.row.type?e.handleLookVideo(t.row):e.handlePreviewImg(n.row)}}}),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadNonDicoms:action:delete"),size:"small"},nativeOn:{click:function(i){i.preventDefault(),"MP4"===n.row.type?e.hadnleDeleteVideo(t.row):e.handleDeleteFile(n.row.Id)}}}):e._e()]}}],null,!0)})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){return i.preventDefault(),e.handleGetFilesList(t.row)}}},[e._v("\n "+e._s(t.row.FileCount)+"\n ")])],1)],1):i("span",[e._v(e._s(t.row.FileCount))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ImageDate",label:e.$t("trials:uploadNonDicoms:table:studyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.ImageDate).format("YYYY-MM-DD"))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:uploadNonDicoms:table:updateTime")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-upload2",circle:"",title:e.$t("trials:uploadNonDicoms:action:upload")},nativeOn:{click:function(i){return i.preventDefault(),e.handleUpload(t.row)}}}):e._e(),e._v(" "),e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:uploadNonDicoms:action:edit")},nativeOn:{click:function(i){return i.preventDefault(),e.handleEdit(t.row)}}}):e._e(),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadNonDicoms:action:delete")},nativeOn:{click:function(i){return i.preventDefault(),e.handleDelete(t.row)}}}):e._e()]}}])})],1),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{visible:e.dialogVisible,"close-on-click-modal":!1,title:e.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"editForm",attrs:{model:e.form,"label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[e.form.CodeView?i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.CodeView,callback:function(t){e.$set(e.form,"CodeView",t)},expression:"form.CodeView"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:modality"),prop:"Modality",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.form.Modality,callback:function(t){e.$set(e.form,"Modality",t)},expression:"form.Modality"}},e._l(e.trialModalitys,(function(t){return""!==t?i("el-radio",{key:t,staticStyle:{"margin-bottom":"15px"},attrs:{label:t}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:bodyPart"),prop:"BodyParts",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.form.BodyParts,callback:function(t){e.$set(e.form,"BodyParts",t)},expression:"form.BodyParts"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:studyDate"),prop:"ImageDate",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.ImageDate,callback:function(t){e.$set(e.form,"ImageDate",t)},expression:"form.ImageDate"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.dialogVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:dialogTitle:upload"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("form",{ref:"uploadForm",attrs:{id:"inputForm"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:uploadNonDicoms:label:fileType")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"upload"},[i("input",{staticClass:"select-file",attrs:{multiple:"multiple",webkitdirectory:"",directory:"",accept:"*/*",type:"file",name:"uploadFolder",title:""},on:{change:function(t){return e.beginScanFiles(t)}}}),e._v(" "),i("div",{staticClass:"btn-select"},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:button:selectFolder"))+"\n ")])]),e._v(" "),i("div",{staticClass:"upload"},[i("input",{staticClass:"select-file",attrs:{multiple:"",accept:e.faccept.join(","),type:"file",name:"uploadFile",title:""},on:{change:function(t){return e.beginScanFiles(t)}}}),e._v(" "),i("div",{staticClass:"btn-select"},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:button:select"))+"\n ")])])])],1),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",attrs:{data:e.fileList,height:"300"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"name",label:e.$t("trials:uploadNonDicoms:table:fileName"),"min-width":"180"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",icon:"el-icon-delete",circle:"",title:e.$t("trials:crcUpload:action:delete")},on:{click:function(i){return e.handleRemoveFile(t.row)}}})]}}],null,!1,2505973250)})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length,loading:e.btnLoading},on:{click:e.beginUpload}},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:action:upload"))+"\n ")])],1)],1):e._e(),e._v(" "),e.uploadVideoVisible?i("el-dialog",{attrs:{visible:e.uploadVideoVisible,"upload-video-visible":"","close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:title:xfuploadvideo"),width:"480px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.uploadVideoVisible=t}}},[i("upload-videos",{on:{uploadOver:e.uploadOver}})],1):e._e(),e._v(" "),e.lookVideoVisible?i("el-dialog",{attrs:{visible:e.lookVideoVisible,"upload-video-visible":"","close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:title:xflookvideo"),width:"480px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.lookVideoVisible=t}}},[i("div",{staticStyle:{display:"flex","justify-content":"center"}},[e.lookVideoVisible?i("video",{attrs:{id:"video",controls:"",crossorigin:"anonymous",width:"400",height:"270"}},[i("source",{attrs:{src:e.currentRow.VideoUrl,type:"video/mp4"}})]):e._e()]),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.lookVideoVisible=!1}}},[e._v("\n 关闭\n ")])],1)]):e._e(),e._v(" "),e.previewImgVisible?i("el-dialog",{attrs:{visible:e.previewImgVisible,title:e.$t("trials:uploadNonDicoms:dialogTitle:preview"),"append-to-body":"",width:"565px"},on:{"update:visible":function(t){e.previewImgVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.imageLoading,expression:"imageLoading"}],staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[i("el-image",{staticStyle:{height:"500px",width:"500px"},attrs:{src:"/api"+e.imgUrl,fit:"fit"},on:{error:function(t){e.imageLoading=!1},load:function(t){e.imageLoading=!1}}})],1)]):e._e()],1)},a=[],r=(i("a481"),i("ac6a"),i("7f7f"),i("20d6"),i("db72")),o=(i("28a5"),i("3e42")),s=i("5f87"),l=i("3726"),c=i("c1df"),u=i.n(c),d={name:"UploadNonDicomFiles",components:{uploadVideos:l["default"]},props:{bodyParts:{type:String,default:""},modalities:{type:String,default:""},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0},allowAddOrEdit:{type:Boolean,default:!1}},data:function(){return{lookVideoVisible:!1,nonDicomStudyList:[],dialogVisible:!1,loading:!1,trialBodyPartTypes:[],trialModalitys:[],btnLoading:!1,title:"",form:{CodeView:"",Id:"",BodyPart:"",BodyParts:[],Modality:"",ImageDate:""},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},uploadVisible:!1,fileList:[],selectArr:[],faccept:[".jpg",".jpeg",".png",".bmp"],fCount:0,currentRow:{},filesLoading:!1,nonDicomfilesList:[],previewImgVisible:!1,imageLoading:!1,fileUrl:"",type:"",uploadVideoVisible:!1,trialId:this.$route.query.trialId,moment:u.a}},mounted:function(){this.getNoneDicomList(),this.trialBodyPartTypes=this.bodyParts?this.bodyParts.split("|"):[],this.trialModalitys=this.modalities?this.modalities.split("|"):[]},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(o["xc"])(this.subjectVisitId).then((function(t){e.nonDicomStudyList=t.Result.map((function(e){return e.VideoObjectName&&(e.FileCount+=1),e})),e.loading=!1})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title=this.$t("trials:uploadNonDicoms:dialogTitle:add"),this.form.Id="",this.form.CodeView="",this.form.BodyPart="",this.form.Modality="",this.form.ImageDate="",this.form.BodyParts=[],this.dialogVisible=!0},handleEdit:function(e){this.title=this.$t("trials:uploadNonDicoms:dialogTitle:edit");var t=Object(r["a"])({},e),i=t.CodeView,n=t.Id,a=t.BodyPart,o=t.Modality,s=t.ImageDate;this.form.CodeView=i,this.form.Id=n,this.form.BodyPart=a,this.form.Modality=o,this.form.ImageDate=s,this.form.BodyParts=this.form.BodyPart.split(", "),this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.editForm.validate((function(t){t&&(e.btnLoading=!0,e.form.BodyPart=e.form.BodyParts.join(", "),e.form.TrialId=e.trialId,e.form.SiteId=e.data.SiteId,e.form.SubjectId=e.data.SubjectId,e.form.SubjectVisitId=e.subjectVisitId,Object(o["k"])(e.form).then((function(t){e.btnLoading=!1,e.$refs.editForm.resetFields(),e.getNoneDicomList(),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")),e.dialogVisible=!1})).catch((function(){e.btnLoading=!1})))}))},handleDelete:function(e){var t=this,i="";i=e.FileCount>0?this.$t("trials:uploadNonDicoms:message:deleteStudyAndFiles"):this.$t("trials:uploadNonDicoms:message:delete"),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["gb"])(t.trialId,t.subjectVisitId,e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.$emit("getList"),t.nonDicomStudyList.splice(t.nonDicomStudyList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:uploadNonDicoms:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleUpload:function(e){this.fileList=[],this.uploadVisible=!0,this.fCount=0,this.currentRow=Object(r["a"])({},e)},handleLookVideo:function(e){this.currentRow=Object(r["a"])({},e),this.lookVideoVisible=!0},handleUploadVideo:function(e){this.uploadVideoVisible=!0,this.currentRow=Object(r["a"])({},e)},hadnleDeleteVideo:function(e){var t=this;this.$confirm(this.$t("trials:uploadNonDicoms:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.filesLoading=!0,t.loading=!0;var i=Object.assign({},e);i.VideoName="",i.VideoObjectName="",i.VideoUrl="",i.UploadVideoTime="",Object(o["k"])(i).then((function(e){t.filesLoading=!1,t.loading=!1,t.nonDicomfilesList.pop(),t.$emit("getList"),t.$message.success(t.$t("trials:uploadNonDicoms:message:deletedSuccessfully")),t.getNoneDicomList()})).catch((function(){t.filesLoading=!1,t.loading=!1}))}))},uploadOver:function(e,t,i){var n=this;if(e){var a=Object.assign({},this.currentRow);a.VideoName=i,a.VideoObjectName=t.name,a.VideoUrl=t.url,a.UploadVideoTime=this.parseTime(new Date),Object(o["k"])(a).then((function(e){n.getNoneDicomList(),n.uploadVideoVisible=!1,n.$emit("getList"),n.$message.success(n.$t("components:uploadvideo:message:xf1"))})).catch((function(){n.uploadVideoVisible=!1}))}},beginScanFiles:function(e){var t=this,i=e.target.files,n=[];i.forEach((function(e){var i=e.name.substring(e.name.lastIndexOf(".")).toLocaleLowerCase();-1!==t.faccept.indexOf(i)&&t.fileList.findIndex((function(t){return t.name===e.name}))>-1&&n.push(e.name)}));var a=this;if(n.length>0){var r=this.$createElement,o=this.$t("trials:uploadNonDicoms:message:exsitSameFile").replace("xxx",n.join(", "));this.$msgbox({message:r("div",{style:"maxHeight:300px;overflow: auto;"},[r("p",null,o),r("p",null,this.$t("trials:uploadNonDicoms:message:isContinueUpload"))]),type:"warning",showCancelButton:!0}).then((function(){a.pendingUploadQuene(i)})).catch((function(){a.resetUploadForm()}))}else a.pendingUploadQuene(i)},pendingUploadQuene:function(e){for(var t=0;t1)this.$message.error(this.$t("trials:uploadNonDicoms:message:uploadSize"));else{for(var n=new FormData,a=0;a=0&&o>=0&&ri)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);this.height=n,this.stack.currentImageIdIndex!==a&&S(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},getMeasureData:function(){var e=this,t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));this.measureData=this.visitTaskList[t].MeasureData;var i=p["globalImageIdSpecificToolStateManager"],n=this.stack.imageIds[this.stack.currentImageIdIndex];i.clearImageIdToolState(n),f["updateImage"](this.canvas,!0)},onContextmenu:function(e){var t=this;if(this.isBaseline||this.readingTaskState>=2||10===this.CriterionType)return!1;var i=e.offsetX,n=e.offsetY,a=p["globalImageIdSpecificToolStateManager"],r=f["getEnabledElement"](this.canvas),o=r.image.imageId;this.measuredTools.map((function(r){var s=a.getImageIdToolState(o,r);if(s){var l=new(p["".concat(r,"Tool")]),c=s.data.findIndex((function(e){return l.pointNearTool(t.canvas,e,{x:i,y:n},"mouse")}));if(-1===c)return!1;var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===s.data[c].uuid})),d=null;return u>-1&&(d=t.measureData[u].RowId),!!d&&(t.selectedLesion=s.data[c],t.$contextmenu({items:[{label:"Split",divided:!0,onClick:function(){t.handleSplit()}}],event:e,x:e.clientX,y:e.clientY,customClass:"class-a",zIndex:3,minWidth:100}),!1)}}))},handleSplit:function(){var e=this,t=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data&&t.MeasureData.data.uuid===e.selectedLesion.uuid}));t>-1&&l["a"].$emit("split",this.measureData[t])},mouseUp:function(e){console.log("mouseUp"),this.image=e.detail.image,this.getToolStateInfo(e)},mouseDown:function(e){console.log("mouseDown"),this.image=e.detail.image},getToolStateInfo:function(e){var t=this,i=e.detail,n=i.element,a=i.currentPoints,r=i.image,o=r.imageId,s=o.split("/")[o.split("/").length-1];s=s.split(".")[0];var l=p["globalImageIdSpecificToolStateManager"];this.measuredTools.map((function(i){var r=l.getImageIdToolState(e.detail.image.imageId,i);if(r){var o=new(p["".concat(i,"Tool")]),c=r.data.findIndex((function(e){return o.pointNearTool(n,e,a.canvas,"mouse")}));if(c>-1){var u={};u.studyId=t.stack.studyId,u.seriesId=t.stack.seriesId,u.instanceId=s,u.data=r.data[c],u.type=i,u.thick=t.dicomInfo.thick;var d=r.data[c].uuid,f=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===d}));if(f>-1){var h=t.measureData[f];t.$emit("modifyMeasureData",{measureData:u,questionInfo:h})}}}}))},stackScrollCallback:function(e){var t=this,i=e.detail;this.isScrollSync&&this.$emit("scrollSync",{canvasIndex:this.canvasIndex,direction:i.direction}),this.stack.currentImageIdIndex=e.detail.newImageIdIndex;var n=new Date((new Date).setHours(23,59,59,999)).getTime();s["a"].loadAndCacheImagePlus(this.stack.imageIds[this.stack.currentImageIdIndex],this.stack.seriesId,n).then((function(e){t.height=100*t.stack.currentImageIdIndex/(t.stack.imageIds.length-1)})).catch((function(e){console.log(e)}))},getSeriesLoadStatus:function(){var e=this,t=-1,i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));if(-1===i)return t;var n=this.visitTaskList[i].StudyList,a=n.findIndex((function(t){return t.StudyId===e.stack.studyId}));if(-1===a)return t;var r=n[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e.stack.seriesId}));return-1===o?t:r[o].loadStatus?1:0},renderMeasuredData:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=e.detail.element,a=p["globalImageIdSpecificToolStateManager"];this.measureData.forEach((function(i){if(2===t.activeTool&&t.readingTaskState<2?t.activeToolName===i.MeasureData.type?p["setToolActiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):p["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):1===t.activeTool&&t.readingTaskState<2?p["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):p["setToolEnabledForElement"](n,i.MeasureData.type,{mouseButtonMask:1}),t.stack.instanceId.includes(i.InstanceId)&&i.MeasureData){var r=a.getImageIdToolState(e.detail.image.imageId,i.MeasureData.type);if(r&&r.data.length>0){var o=r.data.findIndex((function(e){return e.uuid===i.MeasureData.data.uuid}));-1===o&&a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}else a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}}))},mouseClick:function(e){var t=this,i=e.detail,n=i.element,a=i.currentPoints,r=p["globalImageIdSpecificToolStateManager"];this.measuredTools.map((function(i){var o=r.getImageIdToolState(e.detail.image.imageId,i);if(o){var s=new(p["".concat(i,"Tool")]),c=o.data.findIndex((function(e){return s.pointNearTool(n,e,a.canvas,"mouse")}));if(c>-1){var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===o.data[c].uuid}));u>-1&&l["a"].$emit("setCollapseActive",t.measureData[u])}}}))},loadImageStack:function(e){var t=this;return new Promise((function(i){t.isCurrentTask=e.isCurrentTask,t.isBaseline=e.isBaseline,t.readingTaskState=e.readingTaskState,t.isCurrentTask&&t.readingTaskState<2?t.activeTool=1:t.activeTool=0,t.series=e,t.stack.seriesId=e.seriesId,t.stack.studyId=e.studyId,t.stack.seriesNumber=e.seriesNumber,t.stack.imageIds=e.imageIds,t.stack.currentImageIdIndex=e.imageIdIndex?e.imageIdIndex:0,t.stack.firstImageLoading=!0,t.stack.visitTaskId=e.visitTaskId,t.stack.taskBlindName=e.taskBlindName,t.stack.description=e.description;var n=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t.measureData=t.visitTaskList[n].MeasureData;var a=t.stack.imageIds[t.stack.currentImageIdIndex],r=a.split("/")[a.split("/").length-1];r=r.split(".")[0],t.stack.instanceId=r;var o=p["globalImageIdSpecificToolStateManager"];o.clearImageIdToolState(e.imageIds),t.toolState.clipPlaying&&t.toggleClipPlay(),t.toolState.viewportInvert=!1,t.toolState.dicomInfoVisible=!1;var s=t.$refs.canvas;f["enable"](s),s.tabIndex=0,s.focus();var l=t;f["loadAndCacheImage"](t.stack.imageIds[t.stack.currentImageIdIndex]).then((function(e){l.onFirstImageLoaded(e),i()})).catch((function(e){e.error&&e.error.message&&t.$message.error(e.error.message),i()}))}))},onFirstImageLoaded:function(e){var t=this;console.log("onFirstImageLoaded");var i=this.$refs.canvas,n=f["getDefaultViewportForImage"](this.canvas,e);if(f["displayImage"](this.canvas,e,n),!this.toolState.initialized){this.toolState.initialized=!0;var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){var n=e.getAttribute("data-tool"),a=p["".concat(n,"Tool")];if(a){var r=p["getToolForElement"](i,a);r||("Length"===n?p["addToolForElement"](i,v["a"],{configuration:{handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0,digits:t.digitPlaces}}):"Bidirectional"===n?p["addToolForElement"](i,b["a"],{digits:t.digitPlaces}):"ArrowAnnotate"===n?p["addToolForElement"](i,y["a"],{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):p["addToolForElement"](i,a))}})),p["getToolForElement"](i,p["StackScrollMouseWheelTool"])||p["addToolForElement"](i,p["StackScrollMouseWheelTool"]),p["setToolActiveForElement"](i,"StackScrollMouseWheel",{}),p["getToolForElement"](i,w["a"])||p["addToolForElement"](i,w["a"]),p["setToolActiveForElement"](i,"ScaleOverlay",{})}p["addStackStateManager"](this.canvas,["stack","playClip"]),p["addToolState"](this.canvas,"stack",this.stack),f["updateImage"](i,!0),this.stack.firstImageLoading=!1,this.toolState.dicomInfoVisible=!0;var r=e.imageId.split("/")[e.imageId.split("/").length-1];r=r.split(".")[0],this.stack.instanceId=r,this.resetWwwc()},onNewImage:function(e){console.log("cornerstonenewimage"),e.detail.enabledElement.options={};var t=e.detail.image.data;this.dicomInfo.hospital=t.string("x00080080"),this.dicomInfo.pid=t.string("x00120040"),this.dicomInfo.name=t.string("x00100010"),this.dicomInfo.age=t.string("x00101010"),this.dicomInfo.sex=t.string("x00100040"),this.dicomInfo.acc=t.string("x00080050"),this.dicomInfo.modality=t.string("x00080060"),this.dicomInfo.time=this.formatDicomDateTime(t.string("x00080020"),t.string("x00080030")),this.dicomInfo.series=t.string("x00200011"),this.dicomInfo.frame="".concat(this.stack.currentImageIdIndex+1,"/").concat(this.stack.imageIds.length),this.dicomInfo.size="".concat(t.uint16("x00280010"),"*").concat(t.uint16("x00280011")),this.dicomInfo.pixel&&(this.dicomInfo.pixel=this.dicomInfo.pixel.toFixed(2)),this.dicomInfo.thick=t.floatString("x00180050"),this.dicomInfo.thick&&(this.dicomInfo.thick=this.dicomInfo.thick.toFixed(2))},formatDicomDateTime:function(e,t){return e&&(e="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2))),t&&(t="".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),t?"".concat(e," ").concat(t):"".concat(e," 00:00:00")},onImageLoaded:function(e){console.log("onImageLoaded")},onImageRendered:function(e){console.log("onImageRendered");var t=e.detail.image.imageId,i=t.split("/")[t.split("/").length-1];i=i.split(".")[0],this.imageId!==i&&(this.getOrientationMarker(e.detail.element),this.imageId=i),this.stack.instanceId=i;var n=e.detail.viewport;this.dicomInfo.wwwc="".concat(Math.round(n.voi.windowWidth),"/").concat(Math.round(n.voi.windowCenter)),this.dicomInfo.zoom=n.scale.toFixed(2);var a=e.detail.image.data,r=a.string("x00200032");this.dicomInfo.location=r?Number(r.split("\\")[r.split("\\").length-1]).toFixed(2):"",this.renderMeasuredData(e)},getOrientationMarker:function(e){var t=f["getEnabledElement"](e),i=f["metaData"].get("imagePlaneModule",t.image.imageId);if(i&&i.rowCosines&&i.columnCosines){var n=Object(_["a"])(i.rowCosines),a=Object(_["a"])(i.columnCosines),r=Object(I["a"])(n),o=Object(I["a"])(a),s={top:o,bottom:a,left:r,right:n};s&&(this.orientationMarkers=[o,n,a,r],this.originalMarkers=[o,n,a,r],this.setMarkers())}},onMeasurementcompleted:function(e){console.log("completed"),this.activeTool=1,this.activeToolName="";var t=f["getEnabledElement"](this.canvas),i=t.image.imageId,n=i.split("/")[i.split("/").length-1];if(n=n.split(".")[0],"Length"===e.detail.toolName||"ArrowAnnotate"===e.detail.toolName){var a={};a.studyId=this.stack.studyId,a.seriesId=this.stack.seriesId,a.instanceId=n,a.data=e.detail.measurementData,a.type=e.detail.toolName,a.thick=this.dicomInfo.thick,console.log(e.detail.measurementData),this.$emit("setMeasureData",a),p["setToolPassiveForElement"](this.canvas,e.detail.toolName)}else if("Bidirectional"===e.detail.toolName){var r=Object(x["a"])(e.detail.measurementData,t.image,this.digitPlaces),o=r.longestDiameter,s=r.shortestDiameter,l={};l.studyId=this.stack.studyId,l.seriesId=this.stack.seriesId,l.instanceId=n,l.data=e.detail.measurementData,l.type=e.detail.toolName,l.thick=this.dicomInfo.thick,l.data.longestDiameter=o,l.data.shortestDiameter=s,this.$emit("setMeasureData",l),p["setToolPassiveForElement"](this.canvas,e.detail.toolName)}},onMeasurementremoved:function(e){},onMeasurementmodified:function(e){console.log("modified")},measurementMouseUpHandler:function(e){console.log("measurementMouseUp")},updateImage:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=p["globalImageIdSpecificToolStateManager"],a=f["getEnabledElement"](this.canvas),r=a.image.imageId;n.clearImageIdToolState(r),f["updateImage"](a,!0)},removeToolState:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data.uuid===e.data.uuid}));if(n>-1){this.measureData.splice(n,1);var a=f["getEnabledElement"](this.canvas),r=p["globalImageIdSpecificToolStateManager"],o=a.image.imageId;r.clearImageIdToolState(o),f["updateImage"](a,!0)}},getToolForElement:function(e){for(var t=!1,i=0;ii.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){f["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=f["getImage"](this.canvas);f["setViewport"](this.canvas,f["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?p["orientationMarkers"].enable(this.canvas):p["orientationMarkers"].disable(this.canvas),f["updateImage"](this.canvas)},setColormap:function(e){var t=f["getViewport"](this.canvas);t.colormap=e,f["setViewport"](this.canvas,t),f["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=f["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;this.index=this.stack.currentImageIdIndex+e,t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&S(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return p["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,p["playClip"](this.canvas,this.dicomInfo.fps),p["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=f["getViewport"](this.canvas);e.invert=!1;var t=f["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,f["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=f["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,f["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=f["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,f["setViewport"](this.canvas,e)},activateZoom:function(){p["addTool"](p["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),p["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=f["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,f["setViewport"](this.canvas,e)},setMarkers:function(){var e=Object(r["a"])(this.orientationMarkers);for(var t in this.markers){var i=e.shift(0);this.markers[t]=i}},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):3===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=f["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),f["setViewport"](this.canvas,o)},saveImage:function(){var e=f["getImage"](this.canvas).data.string("x00080018");p["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&f["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=f["getEnabledElement"](this.canvas);e.viewport.scale=1,f["updateImage"](this.canvas)}},removeLabel:function(e){var t=S(this.canvas,e.data.imageIdIndex),i=this;Promise.all([t]).then((function(t){p["removeToolState"](i.canvas,e.type,e.data),f["updateImage"](i.canvas)}))},setToolPassive:function(e){p["setToolPassiveForElement"](this.canvas,e),this.activeTool=1,this.activeToolName=""},setToolActive:function(e){var t=this;this.activeTool=2,this.activeToolName=e,this.$nextTick((function(){p["setToolActiveForElement"](t.canvas,e,{mouseButtonMask:1})}))},setToolEnabled:function(e){this.activeToolName="",p["setToolEnabledForElement"](this.canvas,e),this.activeTool=0,this.readingTaskState=2},setAllToolsPassive:function(){var e=this;p["store"].state.tools.forEach((function(t){p["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){p["getToolForElement"](this.canvas,p["ReferenceLinesTool"])||p["addToolForElement"](this.canvas,p["ReferenceLinesTool"]),p["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),p["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,p["getToolForElement"](this.canvas,p["".concat(t,"Tool")])||p["addToolForElement"](this.canvas,p["".concat(t,"Tool")]),p["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),p["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t0?e[0].Path:"",this.currentRow.SowName=e.length>0?e[0].FileName:"",this.currentRow.SowFullPath=e.length>0?e[0].FullPath:""},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},timeFormatter:function(e){if(e.CreateTime)return Object(u["formatUTCTime"])(e.CreateTime)}}},g=m,v=(i("38b6"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"58c97edd",null);t["default"]=b.exports},"4f10":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"器官类型"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"部位"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Part,callback:function(t){e.$set(e.searchData,"Part",t)},expression:"searchData.Part"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"器官"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TULOC,callback:function(t){e.$set(e.searchData,"TULOC",t)},expression:"searchData.TULOC"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否淋巴结"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.IsLymphNodes,callback:function(t){e.$set(e.searchData,"IsLymphNodes",t)},expression:"searchData.IsLymphNodes"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleSet}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:set"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.lesionType.visible=!0}}},[e._v("\n 病灶关联配置\n ")]),e._v(" "),e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"器官类型","min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Classification",label:"分类","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClassificationEN",label:"分类(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:"部位","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PartEN",label:"部位(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:"器官","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOCEN",label:"器官(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:"位置","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULATEN",label:"位置(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsLymphNodes",label:"是否淋巴结","min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsLymphNodes?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCanEditPosition",label:"是否可以编辑","min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsCanEditPosition?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"备注","show-overflow-tooltip":""}}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("OrganForm",{attrs:{data:e.rowData,"criterion-id":e.criterionId},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.lesionType.visible?i("el-dialog",{attrs:{visible:e.lesionType.visible,"close-on-click-modal":!1,title:e.lesionType.title,width:"800px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.lesionType,"visible",t)}}},[i("LesionTypeTbl",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig},on:{close:function(t){e.lesionType.visible=!1}}})],1):e._e(),e._v(" "),e.criterion.visible?i("el-dialog",{attrs:{visible:e.criterion.visible,"close-on-click-modal":!1,title:e.criterion.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.criterion,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"criterionForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"标准",prop:"CriterionId",rules:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{model:{value:e.form.CriterionId,callback:function(t){e.$set(e.form,"CriterionId",t)},expression:"form.CriterionId"}},e._l(e.criterions,(function(t){return i("el-option",{key:t.CriterionId,attrs:{label:t.CriterionName,value:t.CriterionId,disabled:e.criterionId===t.CriterionId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.criterion.visible=!1}}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("abb1"),d=i("af70"),f=function(){return{SystemCriterionId:"",OrganType:null,PageIndex:1,PageSize:20,TULOC:null,TULAT:null,IsLymphNodes:null}},h={name:"OrgansList",components:{BaseContainer:l["default"],Pagination:c["default"],OrganForm:u["default"],LesionTypeTbl:d["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:f(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1},lesionType:{title:"病灶器官关联关系",visible:!1},criterion:{title:"默认数据配置",visible:!1},formLoading:!1,form:{CriterionId:""},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getCriterions(),this.getList()},methods:{synchronizeSystemOrganToTrial:function(){var e=this;this.loading=!0,Object(s["if"])({TrialReadingCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.$message.success("同步成功")})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.SystemCriterionId=this.criterionId,Object(o["kb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getLesionTypes:function(){var e=this;return new Promise((function(t,i){Object(o["db"])({criterionId:e.criterionId}).then((function(i){e.lesionTypes=i.Result,t()})).catch((function(){i()}))}))},handleAdd:function(){this.rowData={SystemCriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["F"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},getCriterions:function(){var e=this;Object(s["ud"])().then((function(t){e.criterions=t.Result}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSet:function(){this.criterion.visible=!0,this.form.CriterionId=""},handleSave:function(){var e=this;this.$refs["criterionForm"].validate((function(t){if(t){e.formLoading=!0;var i={FromCriterionId:e.form.CriterionId,ToCriterionId:e.criterionId};Object(o["Ob"])(i).then((function(t){e.getList(),e.criterion.visible=!1,e.formLoading=!1})).catch((function(){e.formLoading=!1}))}}))}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"4f63":function(e,t,i){"use strict";i("76f3")},"4f6d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rates-container"},[i("div",{staticClass:"title"},[i("p",[e._v("Volume Reward")]),e._v(" "),i("span",{staticClass:"tipInfo"},[e._v(e._s(e.tipInfo))]),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{type:"danger",size:"small",disabled:e.btnSaveDisabled},on:{click:e.handleSave}},[e._v("Save")]),e._v(" "),i("el-button",{staticClass:"addBtn",attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.list,size:"small",stripe:"","cell-style":e.cellStyle}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Min",label:"Min","min-width":"50",formatter:e.minFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Max",label:"Max","min-width":"50","show-overflow-tooltip":"",formatter:e.maxFormatter}}),e._v(" "),i("el-table-column",{attrs:{prop:"Price",label:"Additional Pay ($)","show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Price)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.$index,t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticStyle:{"text-align":"right","margin-top":"5px"},attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{key:e.timer,attrs:{title:e.title,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"rewardForm",attrs:{"label-width":"150px",rules:e.rules,model:e.rewardForm,size:"small"}},[i("el-form-item",{attrs:{label:"Min: ",prop:"Min"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Min,callback:function(t){e.$set(e.rewardForm,"Min",t)},expression:"rewardForm.Min"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Max: ",prop:"Max"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Max,callback:function(t){e.$set(e.rewardForm,"Max",t)},expression:"rewardForm.Max"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Additional Pay ($): ",prop:"Price"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Price,callback:function(t){e.$set(e.rewardForm,"Price",t)},expression:"rewardForm.Price"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSaveForm()}}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("55dd"),i("ac6a"),i("c5f6"),i("333d")),o=i("6b95"),s=function(){return{PageIndex:1,PageSize:20,Asc:!1,SortField:""}},l={name:"VolumeReward",components:{Pagination:r["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{listQuery:s(),list:[],listLoading:!1,total:0,tipInfo:"",btnSaveDisabled:!0,dialogVisible:!1,title:"",timer:"",minError:[],maxError:[],rewardForm:{},rules:{Price:[{required:!0,message:"Please specify",trigger:"blur"}],Min:[{required:!0,message:"Please specify",trigger:"blur"}],Max:[{required:!0,message:"Please specify",trigger:"blur"}]}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["H"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.rewardForm={},this.title="Add",this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e,t){this.title="Edit",this.rewardForm=JSON.parse(JSON.stringify(t)),this.rewardForm.index=e,this.timer=(new Date).getTime(),this.dialogVisible=!0},handleSaveForm:function(){var e=this;this.$refs.rewardForm.validate((function(t){t&&(e.rewardForm.Id?e.list.forEach((function(t){t.Id===e.rewardForm.Id&&(t.Min=e.rewardForm.Min,t.Max=e.rewardForm.Max,t.Price=e.rewardForm.Price)})):e.list.push({Id:(new Date).getTime(),Price:e.rewardForm.Price,Min:e.rewardForm.Min,Max:e.rewardForm.Max}),e.btnSaveDisabled=!1,e.list.sort(e.compare("Min")),e.dialogVisible=!1,e.tipInfo="Please Save",e.handelCheckError())}))},compare:function(e){return function(t,i){var n=t[e],a=i[e];return n-a}},handleDelete:function(e,t){var i=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Yes",cancelButtonText:"No"}).then((function(){i.list.splice(e,1),i.tipInfo="Please Save",i.btnSaveDisabled=!1,i.list.sort(i.compare("Min")),i.handelCheckError()}))},handleSave:function(){var e=this;this.handelCheckError(),this.minError.length>0||this.maxError.length>0?this.tipInfo="Validate Error":0!==this.list.length?Object(o["h"])(this.list).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success("Updated successfully!"),e.tipInfo="",e.btnSaveDisabled=!0)})).catch((function(t){e.$message({message:t,type:"error"})})):this.tipInfo="Error: At least one record"},handelCheckError:function(){this.minError=[],this.maxError=[];for(var e=0;eNumber(this.list[e].Max)&&this.maxError.push({index:e,value:"( must bigger than"+this.list[e].Min+" )",column:2}))},cellStyle:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex,n=this.minError.filter((function(e){return e.index===t}))[0],a=this.maxError.filter((function(e){return e.index===t}))[0];return n&&n.column===i||a&&a.column===i?"color:red":void 0},minFormatter:function(e,t,i,n){var a=this.minError.filter((function(e){return e.index===n}))[0];return a?i+a.value:i},maxFormatter:function(e,t,i,n){var a=this.maxError.filter((function(e){return e.index===n}))[0];return a?i+a.value:i}}},c=l,u=(i("fbef"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"67e34046",null);t["default"]=d.exports},"4f7f":function(e,t,i){"use strict";var n=i("c26b"),a=i("b39a"),r="Set";e.exports=i("e0b8")(r,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(a(this,r),e=0===e?0:e,e)}},n)},"4f85":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("22d1"),o=i("eda2"),s=o.formatTime,l=o.encodeHTML,c=o.addCommas,u=o.getTooltipMarker,d=i("e0d3"),f=i("6cb7"),h=i("e47b"),p=i("38a2"),m=i("f934"),g=m.getLayoutParams,v=m.mergeLayoutParam,b=i("f47d"),y=b.createTask,w=i("0f99"),_=w.prepareSource,I=w.getSource,x=i("2b17"),S=x.retrieveRawValue,T=d.makeInner(),C=f.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=y({count:D,reset:L}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),_(this);var a=this.getInitialData(e,i);$(a,this),this.dataTask.context.data=a,T(this).dataBeforeProcessed=a,k(this)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,n=i?g(e):{},r=this.subType;f.hasClass(r)&&(r+="Series"),a.merge(e,t.getTheme().get(this.subType)),a.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&v(e,n,i)},mergeOption:function(e,t){e=a.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&v(this.option,e,i),_(this);var n=this.getInitialData(e,t);$(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,T(this).dataBeforeProcessed=n,k(this)},fillDataTextStyle:function(e){if(e&&!a.isTypedArray(e))for(var t=["show"],i=0;i":"\n",f="richText"===n,h={},p=0;function m(i){var o=a.reduce(i,(function(e,t,i){var n=v.getDimensionInfo(i);return e|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),d=[];function m(e,i){var a=v.getDimensionInfo(i);if(a&&!1!==a.otherDims.tooltip){var m=a.type,g="sub"+r.seriesIndex+"at"+p,b=u({color:I,type:"subItem",renderMode:n,markerId:g}),y="string"===typeof b?b:b.content,w=(o?y+l(a.displayName||"-")+": ":"")+l("ordinal"===m?e+"":"time"===m?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));w&&d.push(w),f&&(h[g]=I,++p)}}b.length?a.each(b,(function(t){m(S(v,e,t),t)})):a.each(i,m);var g=o?f?"\n":"
    ":"",y=g+d.join(g||", ");return{renderMode:n,content:y,style:h}}function g(e){return{renderMode:n,content:l(c(e)),style:h}}var v=this.getData(),b=v.mapDimension("defaultedTooltip",!0),y=b.length,w=this.getRawValue(e),_=a.isArray(w),I=v.getItemVisual(e,"color");a.isObject(I)&&I.colorStops&&(I=(I.colorStops[0]||{}).color),I=I||"transparent";var x=y>1||_&&!y?m(w):g(y?S(v,e,b[0]):_?w[0]:w),T=x.content,C=r.seriesIndex+"at"+p,k=u({color:I,type:"item",renderMode:n,markerId:C});h[C]=I,++p;var R=v.getName(e),D=this.name;d.isNameSpecified(this)||(D=""),D=D?l(D)+(t?": ":o):"";var L="string"===typeof k?k:k.content,O=t?L+D+T:D+L+(R?l(R)+": "+T:T);return{html:O,markers:h}},isAnimationEnabled:function(){if(r.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,i){var n=this.ecModel,a=h.getColorFromPalette.call(this,e,t,i);return a||(a=n.getColorFromPalette(e,t,i)),a},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(e){var t=e.name;d.isNameSpecified(e)||(e.name=R(e)||t)}function R(e){var t=e.getRawData(),i=t.mapDimension("seriesName",!0),n=[];return a.each(i,(function(e){var i=t.getDimensionInfo(e);i.displayName&&n.push(i.displayName)})),n.join(" ")}function D(e){return e.model.getRawData().count()}function L(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),O}function O(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $(e,t){a.each(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,a.curry(N,t))}))}function N(e){var t=A(e);t&&t.setOutputEnd(this.count())}function A(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}a.mixin(C,p),a.mixin(C,h);var P=C;e.exports=P},"4fa9":function(e,t,i){},"4fac":function(e,t,i){var n=i("620b"),a=i("9c2c");function r(e,t,i){var r=t.points,o=t.smooth;if(r&&r.length>=2){if(o&&"spline"!==o){var s=a(r,o,i,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var l=r.length,c=0;c<(i?l:l-1);c++){var u=s[2*c],d=s[2*c+1],f=r[(c+1)%l];e.bezierCurveTo(u[0],u[1],d[0],d[1],f[0],f[1])}}else{"spline"===o&&(r=n(r,i)),e.moveTo(r[0][0],r[0][1]);c=1;for(var h=r.length;c0&&t.prefetchInstanceCount0){var n=[],a=e.Result;a.forEach((function(e){var t=[];e.InstancePathList.forEach((function(e){t.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),n.push({imageIds:t,seriesId:e.Id,seriesUid:e.SeriesInstanceUid,seriesNumber:e.SeriesNumber,sliceThickness:e.SliceThickness,modality:e.Modality,description:e.Description,previewImageUrl:"/api/series/preview/".concat(e.Id),instanceCount:e.InstanceCount,prefetchInstanceCount:0,hasLabel:e.HasLabel,keySeries:e.KeySeries,tpCode:i.tpCode,loadStatus:!1,imageloadedArr:[]})})),i.seriesList=n,i.seriesList.length>0&&t.$nextTick((function(){i.$refs.dicomViewer.loadImageStack(i.seriesList[0])}))}}))},previewImageLoad:function(){this.previewImageCount++,this.previewImageCount===this.seriesCount&&this.loadAllImages()},previewImageLoadError:function(){this.previewImageCount++,this.previewImageCount===this.seriesCount&&this.loadAllImages()},showSeriesImage:function(e,t){var i=e.currentTarget,n=document.querySelectorAll("[series-type]");Array.from(n).forEach((function(e){e.classList.remove("viewerSideActive")})),i.classList.add("viewerSideActive"),this.currentSeriesIndex=t,this.$refs.dicomViewer.loadImageStack(this.seriesList[t])},loadAllImages:function(){d["a"].startTaskTimer();var e=this;this.seriesList.forEach((function(t){t.imageIds.forEach((function(t){e.load(t)}))}))},load:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999;return new Promise((function(n,a){var r=t.buildImageRequestTask(e,{priority:i});d["a"].addTaskIntoPool(r).then((function(e){n(e)})).catch((function(e){a(e),console.log(e)}))}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])(Object(r["a"])({key:e},t),{},{execute:function(){return s["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},unload:function(){this.cachedImages.sort(this.compare),l["wadouri"].dataSetCacheManager.unload(this.cachedImages[0].uri),this.cachedImages.splice(0,1)},compare:function(e,t){return e.timeStamp>t.timeStamp?-1:e.timeStamp=this.seriesList[r].instanceCount&&(this.seriesList[r].prefetchInstanceCount=this.seriesList[r].instanceCount,this.seriesList[r].loadStatus=!0))}}}},p=h,m=(i("cdaa5"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"502f":function(e,t,i){"use strict";i("5289")},5049:function(e,t,i){"use strict";i("d943")},5055:function(e,t,i){"use strict";i("4fa9")},"506e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"status-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Pending:"}},[e.statusList.Submitted?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=5&TokenKey="+e.tokenKey},target:"_blank",title:"Pending client approval"}},[e._v(e._s(e.statusList.Submitted))])],1):i("span",[e._v(e._s(e.statusList.Submitted))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Approved:"}},[e.statusList.Approved?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=8&TokenKey="+e.tokenKey},target:"_blank",title:"Approved, waiting for training"}},[e._v(e._s(e.statusList.Approved))])],1):i("span",[e._v(e._s(e.statusList.Approved))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Reading:"}},[e.statusList.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=10&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(e.statusList.Reading))])],1):i("span",[e._v(e._s(e.statusList.Reading))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"On Vacation:"}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.holiday))]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.initHolidayList}},[e._v("Planned Vacation")])],1)],1)],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"35%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.total,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=i("33ba"),o=i("7878"),s=i("5f87"),l={props:{basicInfo:{type:Object,default:function(){return{}}},statusList:{type:Object,default:function(){return{}}},doctorId:{type:String,default:""},holiday:{type:String,default:""}},data:function(){return{list:[],total:0,dialogVisible:!1,loading:!1,pageIndex:1,pageSize:10,tokenKey:Object(s["a"])()}},methods:{initHolidayList:function(){var e=this;this.dialogVisible=!0,this.loading=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount),e.loading=!1})).catch((function(){e.loading=!1}))},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},c=l,u=(i("a990"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"50e5":function(e,t,i){var n=i("6d8b"),a=i("eda2"),r=["x","y","z","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function s(e){return n.indexOf(o,e)>=0}function l(e,t){e=e.slice();var i=n.map(e,a.capitalFirst);t=(t||[]).slice();var r=n.map(t,a.capitalFirst);return function(a,o){n.each(e,(function(e,n){for(var s={name:e,capital:i[n]},l=0;l=0}function r(e,a){var r=!1;return t((function(t){n.each(i(e,t)||[],(function(e){a.records[t.name][e]&&(r=!0)}))})),r}function o(e,a){a.nodes.push(e),t((function(t){n.each(i(e,t)||[],(function(e){a.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},"50fc":function(e,t,i){"use strict";i.d(t,"m",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"g",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"v",(function(){return l})),i.d(t,"l",(function(){return c})),i.d(t,"e",(function(){return u})),i.d(t,"s",(function(){return d})),i.d(t,"r",(function(){return f})),i.d(t,"k",(function(){return h})),i.d(t,"j",(function(){return p})),i.d(t,"u",(function(){return m})),i.d(t,"t",(function(){return g})),i.d(t,"i",(function(){return v})),i.d(t,"a",(function(){return b})),i.d(t,"d",(function(){return y})),i.d(t,"h",(function(){return w})),i.d(t,"p",(function(){return _})),i.d(t,"b",(function(){return I})),i.d(t,"f",(function(){return x})),i.d(t,"o",(function(){return S})),i.d(t,"q",(function(){return T}));var n=i("b775");function a(e){return Object(n["a"])({url:"/user/getUserList",method:"post",data:e})}function r(){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/0",method:"get"})}function o(e){return Object(n["a"])({url:"/institution/getInstitutionList/".concat(e),method:"get"})}function s(e){return Object(n["a"])({url:"/user/addUser",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/user/updateUser",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/user/getUser/".concat(e),method:"get"})}function u(e){return Object(n["a"])({url:"/user/deleteUser/".concat(e),method:"delete"})}function d(e){return Object(n["a"])({url:"/user/resetPassword/".concat(e),method:"get"})}function f(e){return Object(n["a"])({url:"/user/modifyPassword",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/menu/getRoleMenuFunction/".concat(e),method:"get"})}function p(e,t){return Object(n["a"])({url:"/menu/getRoleFunction/".concat(e,"/").concat(t),method:"get"})}function m(e){return Object(n["a"])({url:"/menu/updateRoleMenu",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/menu/updateRoleFunction",method:"post",data:e})}function v(){return Object(n["a"])({url:"/menu/getMenuFunction",method:"get"})}function b(e){return Object(n["a"])({url:"/menu/addOrUpdateMenu",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/menu/deleteMenuFunction/".concat(e),method:"delete"})}function w(e){return Object(n["a"])({url:"/log/getLogList",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeRoleList",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/UserTypeRole/addOrUpdateUserTypeRole",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/UserTypeRole/deleteUserTypeRole/".concat(e),method:"delete"})}function S(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/".concat(e),method:"get"})}function T(e){return Object(n["a"])({url:"/User/initSetUserNameAndPwd?NewUserName=".concat(e.NewUserName,"&UserId=").concat(e.UserId,"&NewPwd=").concat(e.NewPwd,"&access_token=").concat(e.access_token),method:"get"})}},"51cc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"basic-info"},[e.otherInfo.SubjectCode?i("span",[e._v(e._s(""+e.otherInfo.SubjectCode))]):e._e(),e._v(" "),e.otherInfo.ReadingNameOrTaskBlindName?i("span",[e._v("("+e._s(""+e.otherInfo.ReadingNameOrTaskBlindName)+")")]):e._e()]),e._v(" "),e.cdList.length>0?i("div",{staticClass:"basic-content"},e._l(e.cdList,(function(t){return i("div",{key:t.Id,staticClass:"cd-wrapper"},[i("div",{staticClass:"cd-name-wrapper"},[e._v(e._s(t.ClinicalDataSetName))]),e._v(" "),1===t.ClinicalUploadType?e._l(t.FileList,(function(t){return i("div",{key:t.Id,staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,1)}}},[e._v("\n "+e._s(t.FileName)+"\n ")])})):i("div",{staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,0)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:title:table"))+"\n ")])],2)})),0):i("div",{staticClass:"basic-content-empty"},[i("span",[e._v(e._s(e.$t("trials:clinicaldara:title:nodata")))])])]),e._v(" "),i("div",{staticClass:"right-wrapper"},[1===e.selected.type?i("div",{staticClass:"right-content"},[i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.selected.filePath,width:"100%",height:"100%",frameborder:"0"}})]):0===e.selected.type?i("div",{staticClass:"right-content",staticStyle:{padding:"10px","overflow-y":"auto"}},[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1):e._e()])])},a=[],r=i("3e42"),o=i("4360"),s=i("a599"),l=i("c1df"),c=i.n(l),u={name:"MultipleNoneDicom",data:function(){return{selected:{id:"",type:null,fileName:"",filePath:"",clinicalTableData:[]},cdList:[],otherInfo:{},moment:c.a,loading:!1}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectId:this.$router.currentRoute.query.subjectId,trialId:this.$router.currentRoute.query.trialId,readingId:this.$router.currentRoute.query.readingId?this.$router.currentRoute.query.readingId:"",visitTaskId:this.$router.currentRoute.query.visitTaskId?this.$router.currentRoute.query.visitTaskId:"",readingClinicalDataId:this.$router.currentRoute.query.readingClinicalDataId?this.$router.currentRoute.query.readingClinicalDataId:""};Object(r["Rc"])(t).then((function(t){if(e.cdList=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1,e.cdList.length>0){var i=1===e.cdList[0].ClinicalUploadType?1:0,n=1===i?e.cdList[0].FileList[0]:e.cdList[0];e.preview(n,i)}})).catch((function(){e.loading=!1}))},preview:function(e,t){this.$set(this.selected,"id",e.Id),this.$set(this.selected,"type",t),1===t?(this.$set(this.selected,"fileName",e.FileName),this.$set(this.selected,"filePath",e.Path)):this.$set(this.selected,"clinicalTableData",e.ClinicalTableData)}}},d=u,f=(i("5c13"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"51df":function(e,t,i){"use strict";i("1ddd")},5248:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"text-align":"right"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,border:"",stripe:""}},[i("el-table-column",{attrs:{label:"","min-width":50},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:reviewTrack:title:fileName"),"min-width":50},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-download",circle:"",title:e.$t("trials:reviewTrack:title:download"),size:"mini"},on:{click:function(i){return e.handleExport(t.row.ExportCatogory)}}})]}}])})],1)],1)},a=[],r=i("db72"),o=i("3f2a"),s=i("958c"),l={name:"exportList",data:function(){return{loading:!0,trialCriterionList:[],TrialReadingCriterionId:null,trialId:null,list:[]}},props:{data:{type:Object,default:function(){return{}}}},watch:{TrialReadingCriterionId:function(e){var t=this;"0"!==e&&(this.loading=!0,Object(o["q"])({TrialReadingCriterionId:e}).then((function(e){t.list=e.Result,t.loading=!1})).catch((function(){t.loading=!0})))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{handleExport:function(e){var t=this,i=Object(r["a"])({},this.data);switch(i.TrialReadingCriterionId=this.TrialReadingCriterionId,e){case 0:Object(o["l"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 1:Object(o["h"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 2:Object(o["e"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 3:Object(o["c"])(i).then((function(e){})).catch((function(){t.loading=!1}));break}},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"24969426",null);t["default"]=d.exports},"526f":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i("2b0e");const a=n["default"].prototype.$isServer,r=(a||Number(document.documentMode),function(){return!a&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)}}()),o=function(){return!a&&document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}:function(e,t,i){e&&t&&e.detachEvent("on"+t,i)}}()},"527a":function(e,t,i){var n=i("6d8b"),a=i("3842");function r(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.coordinateSystem,n={},r=i.getRect();n.rect=r;var s=e.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,"horizontal"===l.orient){s[0]=a.parsePercent(s[0],r.height),s[1]=a.parsePercent(s[1],r.height);var c=r.height-s[0]-s[1];o(t,e,c)}else{s[0]=a.parsePercent(s[0],r.width),s[1]=a.parsePercent(s[1],r.width);var u=r.width-s[0]-s[1];o(t,e,u)}t.setLayout("layoutInfo",n)}))}function o(e,t,i){if(e.count())for(var a,r=t.coordinateSystem,o=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=n.map(o,(function(t){return n.map(t.indices,(function(t){var i=r.dataToPoint(e.get(l,t));return i[1]=e.get(c,t),i}))})),d=s(u),f=d.y0,h=i/d.max,p=o.length,m=o[0].indices.length,g=0;gr&&(r=c),n.push(c)}for(var u=0;ur&&(r=f)}return o.y0=a,o.max=r,o}e.exports=r},5289:function(e,t,i){},"52dd":function(e,t,i){},"536f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"participantForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px",inline:!0}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:lastName"),prop:"LastName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.LastName,callback:function(t){e.$set(e.form,"LastName",t)},expression:"form.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:firstName"),prop:"FirstName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.FirstName,callback:function(t){e.$set(e.form,"FirstName",t)},expression:"form.FirstName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:role"),prop:"TrialRoleNameId"}},[i("el-select",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.TrialRoleNameId,callback:function(t){e.$set(e.form,"TrialRoleNameId",t)},expression:"form.TrialRoleNameId"}},e._l(e.dictionaryList.SiteSurvey_UserRoles,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:phone"),prop:"Phone"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:email"),prop:"Email"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:organization"),prop:"OrganizationName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.OrganizationName,callback:function(t){e.$set(e.form,"OrganizationName",t)},expression:"form.OrganizationName"}})],1),e._v(" "),i("el-row",[e.hasPermi(["role:pm","role:apm"])?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:isGenerate")}},[i("el-radio-group",{staticStyle:{width:"200px"},on:{change:e.handleIsGenerateAccountChange},model:{value:e.form.IsGenerateAccount,callback:function(t){e.$set(e.form,"IsGenerateAccount",t)},expression:"form.IsGenerateAccount"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])&&e.form.IsGenerateAccount?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:userType"),prop:"UserTypeId"}},[i("el-select",{staticStyle:{width:"200px"},attrs:{disabled:!e.form.IsGenerateAccount},model:{value:e.form.UserTypeId,callback:function(t){e.$set(e.form,"UserTypeId",t)},expression:"form.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1):e._e()],1),e._v(" "),e.errorMsg?i("el-form-item",{attrs:{label:""}},[e.errorMsg?i("span",{staticStyle:{"font-size":"12px",color:"#f66"}},[e._v(e._s(e.errorMsg))]):e._e()]):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("456d"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("896b")),l=i("86a6"),c=i("a599"),u={name:"ResearchParticipantForm",props:{data:{type:Object,default:function(){return{}}},state:{type:Number,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.Email&&a.test(e.form.Email)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:researchForm:formRule:email"))),e.sendDisabled=!0)}};return{form:{Id:"",LastName:null,FirstName:null,TrialRoleNameId:"",UserTypeId:null,Phone:null,Email:null,OrganizationName:"",IsGenerateAccount:!1,IsDisable:!1},rules:{LastName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],FirstName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],TrialRoleNameId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur","change"]}],UserTypeId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur"]}],Phone:[{min:11,max:11,message:"请输入11位手机号码",trigger:"blur"},{pattern:/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}],Email:[{required:!0,validator:t,trigger:["blur"]}]},btnLoading:!1,userRoles:[],userTypeOptions:[],userTypeEnumInt:0,errorMsg:"",dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:Object.keys(this.data).forEach((function(e){t.form[e]=t.data[e]})),zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt"),this.getUserType());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs["participantForm"].validate((function(t){if(t){e.btnLoading=!0,e.form.TrialSiteSurveyId||(e.form.TrialSiteSurveyId=Object(c["b"])("trialSiteSurveyId"));var i=Object(c["b"])("trialId");Object(s["c"])(i,e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(t){t.Result&&(e.$set(e.form,"LastName",t.Result.LastName),e.$set(e.form,"FirstName",t.Result.FirstName),e.$set(e.form,"Phone",t.Result.Phone),e.errorMsg=t.ErrorMessage),e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("close")},getUserType:function(){var e=this;Object(s["j"])(3).then((function(t){e.userTypeOptions=t.Result}))},getDicData:function(){var e=this;Object(l["c"])(["SiteSurvey_UserRoles"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))},handleIsCorrectChange:function(e){e||(this.form.IsGenerateAccount=!1)},handleIsGenerateAccountChange:function(e){e||(this.form.UserTypeId="")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"53f3":function(e,t){function i(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=e.option.nodeScaleRatio,n=t.scale,a=n&&n[0]||1,r=t.getZoom(),o=(r-1)*i+1;return o/a}function n(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=i,t.getSymbolSize=n},"542c":function(e,t,i){},5450:function(e,t,i){i("7419"),i("29a9")},"54b7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-form",{ref:"qualifiedForm",attrs:{model:e.reportResult}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Qualified for Review:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.Qualified,callback:function(t){e.$set(e.reportResult,"Qualified",t)},expression:"reportResult.Qualified"}},[i("el-radio",{attrs:{label:!0}},[e._v("Qualified")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Qualified")])],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{name:"Non-lymphNodeTarget",title:"Non-nodular Target Lesions (Non-lymph Node Target Lesions)",disabled:""}},[i("div",{staticClass:"toolbar"},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("Lesions Operate:")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.nonlymphNodeTargetMergeDisable||e.isReportSaved},on:{click:e.nonlymphNodeTargetMerge}},[e._v("Merge")]),e._v(" "),i("span",{staticStyle:{"margin-right":"20px"}},[e._v("SplitCount:")]),e._v(" "),i("el-input",{staticClass:"mr",staticStyle:{width:"80px"},attrs:{placeholder:"Split Count",disabled:e.nonlymphNodeTargetSplitDisable||e.isReportSaved,size:"small",type:"number",min:"2"},model:{value:e.nonlymphNodeTargetSplitCount,callback:function(t){e.nonlymphNodeTargetSplitCount=t},expression:"nonlymphNodeTargetSplitCount"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.nonlymphNodeTargetSplitDisable||e.isReportSaved},on:{click:e.nonlymphNodeTargetSplit}},[e._v("Split")])],1),e._v(" "),i("el-table",{ref:"nonlymphNodeTargetBLTable",attrs:{data:e.BLNonlymphNodeTargetList,stripe:"",size:"small"},on:{"selection-change":e.handleNonlymphNodeTargetListSelectionChange}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{type:"selection",align:"left",width:"50",selectable:e.canNonlymphNodeTargetOpt}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s((t.row.TULOC||"")+" "+(t.row.TULAT||"")+" "+(t.row.TUDIR||""))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:t.row.VISITNUM!=e.pageTPInfo.VisitNum||e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint:"}},[i("el-table-column",{attrs:{label:"Current scan has covered","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",clearable:"",disabled:1==t.row.VISITNUM?e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)})):e.isReportSaved},on:{change:function(i){return e.nonlymphNodeTargetCoveredLesionChange(t.row.CurrentLesion)}},model:{value:t.row.CurrentLesion.CoveredLesion,callback:function(i){e.$set(t.row.CurrentLesion,"CoveredLesion",i)},expression:"scope.row.CurrentLesion.CoveredLesion"}},[i("el-option",{attrs:{value:!0,label:"YES"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"NO"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Long Axis Measurement(mm)","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:1==t.row.VISITNUM&&e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},on:{change:function(i){return e.nonlymphNodeTargetMeasurementChange(t.row)}},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}},e._l(e.VisitNonlymphNodeTargetList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.TRORRES+" "+e.TULOC+" "+e.TULAT+" "+e.TUDIR,value:e.TRORRES,disabled:e.HasSelected}})})),1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:1==t.row.VISITNUM&&e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"40",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VISITNUM==e.pageTPInfo.VisitNum?i("el-button",{attrs:{type:"text",size:"small",disabled:e.isReportSaved},on:{click:function(i){return e.handlenonlymphNodeTargetDelete(t.row)}}},[e._v("Delete")]):e._e()]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Nodular Target Lesions (Lymph Node Target Lesions)",name:"LymphNodeTarget",disabled:""}},[i("div",{staticClass:"toolbar"},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("Lesions Operate:")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.lymphNodeTargetMergeDisable||e.isReportSaved},on:{click:e.lymphNodeTargetMerge}},[e._v("Merge")]),e._v(" "),i("span",{staticStyle:{"margin-right":"20px"}},[e._v("SplitCount:")]),e._v(" "),i("el-input",{staticClass:"mr",staticStyle:{width:"80px"},attrs:{placeholder:"Split Count",disabled:e.lymphNodeTargetSplitDisable||e.isReportSaved,size:"small",type:"number",min:"2"},model:{value:e.lymphNodeTargetSplitCount,callback:function(t){e.lymphNodeTargetSplitCount=t},expression:"lymphNodeTargetSplitCount"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.lymphNodeTargetSplitDisable||e.isReportSaved},on:{click:e.lymphNodeTargetSplit}},[e._v("Split")])],1),e._v(" "),i("el-table",{ref:"lymphNodeTargetBLTable",attrs:{data:e.BLLymphNodeTargetList,stripe:"",size:"small"},on:{"selection-change":e.handleLymphNodeTargetListSelectionChange}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{type:"selection",align:"left",width:"50",selectable:e.canLymphNodeTargetOpt}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s((t.row.TULOC||"")+" "+(t.row.TULAT||"")+" "+(t.row.TUDIR||""))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:t.row.VISITNUM!=e.pageTPInfo.VisitNum||e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Current scan has covered","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",disabled:1==t.row.VISITNUM?e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)})):e.isReportSaved},on:{change:function(i){return e.lymphNodeTargetCoveredLesionChange(t.row.CurrentLesion)}},model:{value:t.row.CurrentLesion.CoveredLesion,callback:function(i){e.$set(t.row.CurrentLesion,"CoveredLesion",i)},expression:"scope.row.CurrentLesion.CoveredLesion"}},[i("el-option",{attrs:{value:!0,label:"YES"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"NO"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Short Axis Measurement(mm)","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:1==t.row.VISITNUM&&e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},on:{change:function(i){return e.lymphNodeTargetMeasurementChange(t.row)}},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}},e._l(e.VisitLymphNodeTargetList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.TRORRES+" "+e.TULOC+" "+e.TULAT+" "+e.TUDIR,value:e.TRORRES,disabled:e.HasSelected}})})),1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:1==t.row.VISITNUM&&e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"40",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VISITNUM==e.pageTPInfo.VisitNum?i("el-button",{attrs:{type:"text",size:"small",disabled:e.isReportSaved},on:{click:function(i){return e.handlelymphNodeTargetDelete(t.row)}}},[e._v("Delete")]):e._e()]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-target Lesion",name:"Non-targetLesion",disabled:""}},[i("el-table",{ref:"nontargetLesionTable",attrs:{data:e.BLNontargetLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Lesion Assessment","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRESU",label:"Lesion status","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticClass:"mr",staticStyle:{width:"100%"},attrs:{size:"small",clearable:""},on:{change:function(t){return e.nonTargetLesionStatusChange()}},model:{value:t.row.CurrentLesion.TRORRESU,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRESU",i)},expression:"scope.row.CurrentLesion.TRORRESU"}},[i("el-option",{attrs:{value:"Exist",label:"Exist"}}),e._v(" "),i("el-option",{attrs:{value:"Disappear",label:"Disappear"}}),e._v(" "),i("el-option",{attrs:{value:"Identify progress",label:"Identify progress"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous New Lesion",name:"PreviousNewLesion",disabled:""}},[i("el-table",{ref:"previousNewLesionTable",attrs:{data:e.PreviousNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{label:"First"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Lesion Assessment","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTRORRESU",label:"Lesion status","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticClass:"mr",staticStyle:{width:"100%"},attrs:{size:"small",clearable:""},model:{value:t.row.CurrentLesion.TRORRESU,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRESU",i)},expression:"scope.row.CurrentLesion.TRORRESU"}},[i("el-option",{attrs:{value:"Exist",label:"Exist"}}),e._v(" "),i("el-option",{attrs:{value:"Disappear",label:"Disappear"}}),e._v(" "),i("el-option",{attrs:{value:"Identify progress",label:"Identify progress"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNote",label:"Comments","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Equivocal New Lesion",name:"EquivocalNewLesion",disabled:""}},[i("el-table",{ref:"equivocalNewLesionTable",attrs:{data:e.EquivocalNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Unequivocal New Lesion",name:"UnequivocalNewLesion",disabled:""}},[i("el-table",{ref:"unequivocalNewLesionTable",attrs:{data:e.UnequivocalNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Measurements Calculation",name:"MeasurementsCalculation",disabled:""}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Sum of Diameter(SOD)(mm) :"+e._s(e.SumOfDiameter))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Non-nodular Lesions SOD(mm) :"+e._s(e.NonnodularLesionsSOD))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Baseline SOD :"+e._s(e.BaselineSOD))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Baseline SOD % change :"+e._s(e.BaselineSODChange))])])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("\n Timepoint of Nadir SOD :"+e._s(e.TimepointOfNadirSOD+"("+e.MinVisitInfo.MinSum+")")+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Nadir SOD increase(mm) :"+e._s(e.NadirSODIncrease))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Nadir SOD % increase :"+e._s(e.NadirSODIncreasePercent))])])],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Efficacy Assessment",name:"EfficacyAssessment",disabled:""}},[i("el-form",{ref:"efficacyAssessmentForm",attrs:{model:e.efficacyAssessment,"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"TargetLesion",label:"Target Lesion","label-width":"150px",rules:[{required:!1,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:e.targetLesionAssessmentChange},model:{value:e.efficacyAssessment.TargetLesion,callback:function(t){e.$set(e.efficacyAssessment,"TargetLesion",t)},expression:"efficacyAssessment.TargetLesion"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"PR",label:" 部分缓解(PR)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"SD",label:"疾病稳定(SD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:18}},[e.efficacyAssessment.RequireTargetLesionNote?i("el-form-item",{attrs:{prop:"TargetLesionNote",label:"Note: ",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.TargetLesionNote,callback:function(t){e.$set(e.efficacyAssessment,"TargetLesionNote",t)},expression:"efficacyAssessment.TargetLesionNote"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"Non_targetLesion",label:"Non-target Lesion","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:function(t){return e.non_targetLesionAssessmentChange(e.efficacyAssessment.Non_targetLesion)}},model:{value:e.efficacyAssessment.Non_targetLesion,callback:function(t){e.$set(e.efficacyAssessment,"Non_targetLesion",t)},expression:"efficacyAssessment.Non_targetLesion"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"Non-CR/Non-PD",label:"非完全缓解/非疾病进展(Non-CR/Non-PD)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),e.efficacyAssessment.RequireNon_targetLesionNote?i("el-col",{attrs:{span:18}},[i("el-form-item",{attrs:{prop:"Non_targetLesionNote",label:"Note: ",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.Non_targetLesionNote,callback:function(t){e.$set(e.efficacyAssessment,"Non_targetLesionNote",t)},expression:"efficacyAssessment.Non_targetLesionNote"}})],1)],1):e._e()],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"OverallAssessment",label:"Overall Assessment","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:function(t){return e.overallAssessmentChange(e.efficacyAssessment.OverallAssessment)}},model:{value:e.efficacyAssessment.OverallAssessment,callback:function(t){e.$set(e.efficacyAssessment,"OverallAssessment",t)},expression:"efficacyAssessment.OverallAssessment"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"PR",label:" 部分缓解(PR)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"SD",label:"疾病稳定(SD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),e.efficacyAssessment.RequireOverallAssessmentNote?i("el-col",{attrs:{span:18}},[i("el-form-item",{attrs:{label:"Note: ",prop:"OverallAssessmentNote",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.OverallAssessmentNote,callback:function(t){e.$set(e.efficacyAssessment,"OverallAssessmentNote",t)},expression:"efficacyAssessment.OverallAssessmentNote"}})],1)],1):e._e()],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments",name:"Comments",disabled:""}},[i("el-form",{ref:"commentsForm",attrs:{model:e.reportResult,"label-width":"100px",inline:!0}},[i("el-form-item",{attrs:{prop:"DiseaseProgression",label:"Disease Progression","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.DiseaseProgression,callback:function(t){e.$set(e.reportResult,"DiseaseProgression",t)},expression:"reportResult.DiseaseProgression"}})],1),e._v(" "),i("el-form-item",{attrs:{prop:"DiseaseProgression",label:"NotEvaluable","label-width":"100px"}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.NotEvaluable,callback:function(t){e.$set(e.reportResult,"NotEvaluable",t)},expression:"reportResult.NotEvaluable"}})],1),e._v(" "),i("el-form-item",{attrs:{prop:"Timepoint",label:"Timepoint","label-width":"100px"}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.Timepoint,callback:function(t){e.$set(e.reportResult,"Timepoint",t)},expression:"reportResult.Timepoint"}})],1)],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.addVistLine}},[e._v("Save")]),e._v(" "),i("el-button",{staticStyle:{float:"right","margin-right":"600px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.submiteReport}},[e._v("Submit Report")])],1)],1)])},a=[],r=(i("28a5"),i("c5f6"),i("ac6a"),i("0a05")),o={name:"WorkloadTask",props:["globalRowVisitNum","visitTpCode"],data:function(){return{isReportSaved:!1,pageTPInfo:"",efficacyAssessment:{TargetLesion:"",RequireTargetLesionNote:!1,Non_targetLesion:"",RequireNon_targetLesionNote:!1,OverallAssessment:"",RequireOverallAssessmentNote:!1,efficacyAssessmentNote:""},previousOverallAssessment:{visitName:"",overallAssessment:""},measurementsCalculation:{SumOfDiameter:"",NonnodularLesionsSOD:"",BaselineSODChange:"",BaselineSOD:"",NadirSODIncrease:"",NadirSODIncreasePercent:"",TimepointOfNadirSOD:""},activeNames:["ImageQualityAssessment","Non-lymphNodeTarget","LymphNodeTarget","Non-targetLesion","EfficacyAssessment","Comments","PreviousNewLesion","EquivocalNewLesion","UnequivocalNewLesion","MeasurementsCalculation"],VisitNontargetLesionList:[],VisitNonlymphNodeTargetList:[],VisitLymphNodeTargetList:[],nonlymphNodeTargetSplitCount:0,nonlymphNodeTargetDisableIds:[],nonlymphNodeTargetSelectArray:[],BLNonlymphNodeTargetList:[],nonlymphNodeTargetMergeDisable:!0,nonlymphNodeTargetSplitDisable:!0,lymphNodeTargetSplitCount:0,lymphNodeTargetDisableIds:[],lymphNodeTargetSelectArray:[],BLLymphNodeTargetList:[],lymphNodeTargetMergeDisable:!0,lymphNodeTargetSplitDisable:!0,BLNontargetLesionList:[],PreviousNewLesionList:[],EquivocalNewLesionList:[],UnequivocalNewLesionList:[],imageLabelList:[],imageDataHasUpdate:!1,reportResult:{Qualified:"",DiseaseProgression:"",NotEvaluable:"",Timepoint:"",TrialCode:"",SubjectCode:"",VisitNum:"",VisitName:"",DiseaseSituation:"",Comment:"",TPId:"",DicomStudyId:""},MinVisitInfo:{MinSum:0,MinVistName:""}}},computed:{NonlymphNodeTargetSplitOrMergeArray:function(){var e=this;return this.BLNonlymphNodeTargetList.filter((function(t){return t.VISITNUM===e.pageTPInfo.VisitNum||-1!==t.TULNKID.indexOf("/")||-1!==t.TULNKID.indexOf(".")}))},LymphNodeTargetSplitOrMergeArray:function(){var e=this;return this.BLLymphNodeTargetList.filter((function(t){return t.VISITNUM===e.pageTPInfo.VisitNum||-1!==t.TULNKID.indexOf("/")||-1!==t.TULNKID.indexOf(".")}))},SumOfDiameter:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),e.toFixed(1)},NonnodularLesionsSOD:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),e.toFixed(1)},BaselineSODChange:function(){var e=0,t=0;return this.BLNonlymphNodeTargetList.forEach((function(i){e+=Number(i.CurrentLesion.TRORRES),t+=Number(i.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(i){e+=Number(i.CurrentLesion.TRORRES),t+=Number(i.TRORRES)})),(100*(e-t)/t).toFixed(1)+"%"},BaselineSOD:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.TRORRES)})),e},NadirSODIncrease:function(){var e=0;this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)}));var t=this.MinVisitInfo.MinSum;return(e-t).toFixed(1)},NadirSODIncreasePercent:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),(100*e/this.NadirSODIncrease).toFixed(1)+"%"},TimepointOfNadirSOD:function(){return this.MinVisitInfo.MinVistName}},created:function(){var e=this;this.pageTPInfo=this.$route.query,this.globalRowVisitNum&&(this.pageTPInfo.VisitNum=this.globalRowVisitNum,this.pageTPInfo.WorkloadCode=this.visitTpCode),this.isReportSaved=80===this.pageTPInfo.Status,this.reportResult.TpCode=this.pageTPInfo.WorkloadCode,this.reportResult.TrialCode=this.pageTPInfo.TrialCode,this.reportResult.SubjectCode=this.pageTPInfo.SubjectCode,this.reportResult.VisitNum=this.pageTPInfo.VisitNum,this.reportResult.VisitName=this.pageTPInfo.VisitName,this.reportResult.TPId=this.pageTPInfo.WorkloadId,this.reportResult.DicomStudyId=this.pageTPInfo.StudyId,Object(r["m"])(this.pageTPInfo.TrialCode,this.pageTPInfo.SubjectCode,this.pageTPInfo.VisitNum,this.pageTPInfo.WorkloadCode).then((function(t){e.BLNonlymphNodeTargetList=t.Result.BLLesionList.filter((function(e){return 1===e.LesionType})),e.BLLymphNodeTargetList=t.Result.BLLesionList.filter((function(e){return 2===e.LesionType})),e.BLNontargetLesionList=t.Result.BLLesionList.filter((function(e){return 3===e.LesionType})),e.MinVisitInfo=t.Result.MinVisitInfo,e.reportResult.TpCode=e.pageTPInfo.WorkloadCode,e.reportResult=t.Result.ReportResult?t.Result.ReportResult:e.reportResult,e.efficacyAssessment=t.Result.Efficacy,e.efficacyAssessment.RequireOverallAssessmentNote=e.efficacyAssessment.OverallAssessmentNote.length>0,e.efficacyAssessment.RequireTargetLesionNote=e.efficacyAssessment.TargetLesionNote.length>0,e.efficacyAssessment.RequireNon_targetLesionNote=e.efficacyAssessment.Non_targetLesionNote.length>0,e.PreviousNewLesionList=t.Result.PreviousNewLesionList,e.EquivocalNewLesionList=0!==t.Result.EquivocalNewLesionList.length?t.Result.EquivocalNewLesionList:e.EquivocalNewLesionList,e.UnequivocalNewLesionList=0!==t.Result.UnequivocalNewLesionList.length?t.Result.UnequivocalNewLesionList:e.UnequivocalNewLesionList,Object(r["i"])(e.pageTPInfo.WorkloadCode).then((function(t){t.Result.length>0&&(t.Result.forEach((function(t){e.imageLabelList.push(JSON.parse(t.LabelValue))})),e.handelImageLabelDataLogic(e.imageLabelList))}))}))},mounted:function(){var e=this;window.addEventListener("storage",(function(t){if(-1!==t.url.indexOf("baseLine")&&"measureData"===t.key){var i=JSON.parse(t.newValue),n=i[e.pageTPInfo.WorkloadCode];i&&(e.imageDataHasUpdate=!0,e.imageLabelList=[],n.forEach((function(t){return e.imageLabelList.push(t)})),e.handelImageLabelDataLogic(n),delete i[e.pageTPInfo.WorkloadCode],localStorage.setItem("measureData",JSON.stringify(i)))}}))},methods:{nonTargetLesionStatusChange:function(){this.efficacyAssessment.Non_targetLesion="",this.efficacyAssessment.OverallAssessment=""},targetLesionAssessmentChange:function(e){var t=this;if(e){var i=0,n=0,a=0,r=0,o=0,s=0;this.BLNonlymphNodeTargetList.forEach((function(e){e.CurrentLesion.TRORRES&&(a++,i+=Number(e.CurrentLesion.TRORRES)),e.TRORRES&&(n+=Number(e.TRORRES))}));var l=!0;if(this.BLLymphNodeTargetList.forEach((function(e){e.CurrentLesion.TRORRES&&(s++,r+=Number(e.CurrentLesion.TRORRES),e.CurrentLesion.TRORRES>=10&&(l=!1)),e.TRORRES&&(o+=Number(e.TRORRES))})),0===s&&0===a&&this.BLNonlymphNodeTargetList.length+this.BLLymphNodeTargetList.length>0&&this.$alert("基线有测量数据,当前未给基线的病灶选择访视数据,请确认","提示",{confirmButtonText:"确定"}),"CR"===e){if(i>0||!1===l)return void this.$confirm("完全缓解一般指的是:非结节靶病灶的长径总和为0mm、所有靶淋巴结病灶的短径必须减少至<10 mm,坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("PR"===e){var c=(n+o-r-i)/(n+o);c<.3&&this.$confirm("部分缓解一般指的是:靶病灶总径与基线相比减低至少30%. 当前为:"+(100*c).toFixed(2)+"%. 坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("PD"===e){var u=(n+o-this.MinVisitInfo.MinSum)/this.MinVisitInfo.MinSum,d=n+o-this.MinVisitInfo.MinSum;u>=.2&&d>5||this.$confirm("疾病进展(PD)一般指的是:以靶病灶直径之和的最小值为参照,直径和增加≥20%;且必须满足直径和的绝对值增加至少5 mm. 当前直径和增加:"+100*u+"%.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("SD"===e){var f=(n+o-r-i)/(n+o),h=(n+o-this.MinVisitInfo.MinSum)/this.MinVisitInfo.MinSum,p=n+o-this.MinVisitInfo.MinSum;f<.3||h<.2||p<5||this.$confirm("疾病稳定(SD):介于PR及PD之间.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}}else this.efficacyAssessment.RequireTargetLesionNote=!1},non_targetLesionAssessmentChange:function(e){var t=this;if(e){var i=0;if(this.BLNontargetLesionList.forEach((function(e){e.CurrentLesion.TRORRESU&&i++})),i===this.BLNontargetLesionList.length){if(this.BLNontargetLesionList.length>0){var n=this.BLNontargetLesionList.filter((function(e){return"Disappear"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));if("CR"===e)n.length!==this.BLNontargetLesionList.length&&this.$confirm("完全缓解一般指的是:所有非靶病灶消失.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}));else if("Non-CR/Non-PD"===e){var a=this.BLNontargetLesionList.filter((function(e){return"Exist"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));a.length<1&&this.$confirm("部分缓解一般指的是:存在一个或多个非靶病灶持续存在.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}))}else if("PD"===e){var r=this.BLNontargetLesionList.filter((function(e){return"Identify progress"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));0===r.length&&this.$confirm("疾病进展一般指的是:已存在的非靶病灶出现明确进展.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}))}}}else this.$alert("当前未填写完基线的非靶病灶选择访视数据,请确认","提示",{confirmButtonText:"确定"})}else this.efficacyAssessment.RequireNon_targetLesionNote=!1},overallAssessmentChange:function(e){var t=this;if(e){var i=0===this.UnequivocalNewLesionList.length;if(this.BLNonlymphNodeTargetList.length+this.BLNontargetLesionList.length>0){if(!this.efficacyAssessment.Non_targetLesion||!this.efficacyAssessment.TargetLesion)return this.$alert("请先选择靶病灶和非靶病灶评估结果后,再选择总体疗效","提示",{confirmButtonText:"确定"}),void(this.efficacyAssessment.OverallAssessment="");"CR"!==this.efficacyAssessment.TargetLesion||0!==this.BLNontargetLesionList.length&&"CR"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"CR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为CR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"CR"!==this.efficacyAssessment.TargetLesion||"Non-CR/Non-PD"!==this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"PR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"PR"!==this.efficacyAssessment.TargetLesion||"PD"===this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"PR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"SD"!==this.efficacyAssessment.TargetLesion||"PD"===this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"SD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为SD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"NE"===this.efficacyAssessment.TargetLesion&&"PD"!==this.efficacyAssessment.Non_targetLesion&&!1===i&&"NE"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为NE.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"PD"!==this.efficacyAssessment.TargetLesion&&"PD"!==this.efficacyAssessment.Non_targetLesion&&!i||"PD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1}))}else{if(!this.efficacyAssessment.Non_targetLesion)return this.$alert("请先选择非靶病灶评估结果后,再选择总体疗效","提示",{confirmButtonText:"确定"}),void(this.efficacyAssessment.OverallAssessment="");"CR"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"CR"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为CR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"Non-CR/Non-PD"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"Non-CR/Non-PD"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为Non-CR/Non-PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"NE"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"NE"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为NE.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),!i&&"PD"!==this.efficacyAssessment.Non_targetLesion||"PD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1}))}}else this.efficacyAssessment.RequireOverallAssessmentNote=!1},handelImageLabelDataLogic:function(e){var t=this,i=e,n=i.filter((function(e){return 1===e.lesionType})),a=i.filter((function(e){return 2===e.lesionType})),r=i.filter((function(e){return 3===e.lesionType})),o=i.filter((function(e){return 4===e.lesionType})),s=i.filter((function(e){return 5===e.lesionType}));n.length>0&&(n.forEach((function(e){var t=e.lesionLocation.split("-");e.TRORRES=e.lesionValue.substring(0,e.lesionValue.length-2),e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||"",e.HasSelected=!1})),t.VisitNonlymphNodeTargetList=n,t.VisitNonlymphNodeTargetList.forEach((function(e){t.BLNonlymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))),a.length>0&&(a.forEach((function(e){var t=e.lesionLocation.split("-");e.TRORRES=e.lesionValue.substring(0,e.lesionValue.length-2),e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||"",e.HasSelected=!1})),t.VisitLymphNodeTargetList=a,t.VisitLymphNodeTargetList.forEach((function(e){t.BLLymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))),r.length>0&&r.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),o.length>0&&(o.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),t.EquivocalNewLesionList=o),s.length>0&&(s.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),t.UnequivocalNewLesionList=s)},handlenonlymphNodeTargetDelete:function(e){this.BLNonlymphNodeTargetList=this.BLNonlymphNodeTargetList.filter((function(t){return t.TULNKID!==e.TULNKID}))},nonlymphNodeTargetCoveredLesionChange:function(e){this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.TRORRES&&(t.HasSelected=!1)})),e.TRORRES="",e.Note=""},lymphNodeTargetCoveredLesionChange:function(e){this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.TRORRES&&(t.HasSelected=!1)})),e.TRORRES="",e.Note=""},nonlymphNodeTargetMeasurementChange:function(e){var t=this;if(this.efficacyAssessment.TargetLesion="",this.efficacyAssessment.OverallAssessment="",e.CurrentLesion.TRORRES){e.CurrentLesion.TRORRESCopy=e.CurrentLesion.TRORRES;var i=this.VisitNonlymphNodeTargetList.filter((function(t){return t.TRORRES===e.CurrentLesion.TRORRES}))[0];e.VISITNUM===this.pageTPInfo.VisitNum?(e.TULOC=i.TULOC,e.TULAT=i.TULAT,e.TUDIR=i.TUDIR):e.TULOC!==i.TULOC||e.TULAT!==i.TULAT||e.TUDIR!==i.TUDIR?this.$confirm("BaseLine: ".concat(e.TULOC+" "+e.TULAT+" "+e.TUDIR," Current: ").concat(i.TULOC+" "+i.TULAT+" "+i.TUDIR,",confirm ?"),"tips",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then((function(){t.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))})).catch((function(){e.CurrentLesion.TRORRES="",t.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}))})):this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))}else this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}));this.VisitNonlymphNodeTargetList.forEach((function(e){e.HasSelected=!1,t.BLNonlymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))},nonlymphNodeTargetSplit:function(){var e=this,t=parseInt(this.nonlymphNodeTargetSplitCount);if(0!==t&&1!==t){var i=this.BLNonlymphNodeTargetList.filter((function(t){return t.TUSEQ===e.nonlymphNodeTargetSelectArray[0]}))[0];i.CurrentLesion.CoveredLesion="",i.CurrentLesion.Note="",i.CurrentLesion.TRORRES="";for(var n=1;n<=t;n++)this.BLNonlymphNodeTargetList.push({TULNKID:i.TULNKID+"."+n,TUGRPID:i.TULNKID,VISITNUM:this.pageTPInfo.VisitNum,CurrentLesion:{Note:this.nonlymphNodeTargetSelectArray[0]+"split"+n}});this.nonlymphNodeTargetSplitCount=0,this.$refs.nonlymphNodeTargetBLTable.clearSelection()}},nonlymphNodeTargetMerge:function(){var e=this,t=[];this.nonlymphNodeTargetSelectArray.forEach((function(i){var n=e.BLNonlymphNodeTargetList.filter((function(e){return e.TUSEQ===i}))[0];n.CurrentLesion.CoveredLesion="",n.CurrentLesion.Note="",n.CurrentLesion.TRORRES="",t.push(n.TULNKID)})),this.BLNonlymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:t.join("/"),CurrentLesion:{Note:this.nonlymphNodeTargetSelectArray.join("/")+"Merge"}}),this.$refs.nonlymphNodeTargetBLTable.clearSelection()},handleNonlymphNodeTargetListSelectionChange:function(e){for(var t=[],i=0;i=2?(this.nonlymphNodeTargetSplitDisable=!0,this.nonlymphNodeTargetMergeDisable=!1):1===this.nonlymphNodeTargetSelectArray.length?(this.nonlymphNodeTargetSplitDisable=!1,this.nonlymphNodeTargetMergeDisable=!0):(this.nonlymphNodeTargetSplitDisable=!0,this.nonlymphNodeTargetMergeDisable=!0)},canNonlymphNodeTargetOpt:function(e){var t=!0;return e.VISITNUM===this.pageTPInfo.VisitNum&&(t=!1),this.NonlymphNodeTargetSplitOrMergeArray.forEach((function(i){-1!==i.TULNKID.indexOf(e.TULNKID)&&(t=!1)})),t},handlelymphNodeTargetDelete:function(e){this.BLLymphNodeTargetList=this.BLLymphNodeTargetList.filter((function(t){return t.TULNKID!==e.TULNKID}))},lymphNodeTargetMeasurementChange:function(e){var t=this;if(this.efficacyAssessment.TargetLesion="",this.efficacyAssessment.OverallAssessment="",e.CurrentLesion.TRORRES){e.CurrentLesion.TRORRESCopy=e.CurrentLesion.TRORRES;var i=this.VisitLymphNodeTargetList.filter((function(t){return t.TRORRES===e.CurrentLesion.TRORRES}))[0];e.VISITNUM===this.pageTPInfo.VisitNum?(e.TULOC=i.TULOC,e.TULAT=i.TULAT,e.TUDIR=i.TUDIR):e.TULOC!==i.TULOC||e.TULAT!==i.TULAT||e.TUDIR!==i.TUDIR?this.$confirm("BaseLine: ".concat(e.TULOC+" "+e.TULAT+" "+e.TUDIR," Current: ").concat(i.TULOC+" "+i.TULAT+" "+i.TUDIR,",confirm ?"),"tips",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then((function(){t.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))})).catch((function(){e.CurrentLesion.TRORRES="",t.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}))})):this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))}else this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}));this.VisitLymphNodeTargetList.forEach((function(e){e.HasSelected=!1,t.BLLymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))},lymphNodeTargetSplit:function(){var e=this,t=parseInt(this.lymphNodeTargetSplitCount);if(0!==t&&1!==t){var i=this.BLLymphNodeTargetList.filter((function(t){return t.TUSEQ===e.lymphNodeTargetSelectArray[0]}))[0];i.CurrentLesion.CoveredLesion="",i.CurrentLesion.Note="",i.CurrentLesion.TRORRES="";for(var n=1;n<=t;n++)this.BLLymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:i.TULNKID+"."+n,TUGRPID:i.TULNKID,CurrentLesion:{Note:this.lymphNodeTargetSelectArray[0]+"split"+n}});this.lymphNodeTargetSplitCount=0,this.$refs.lymphNodeTargetBLTable.clearSelection()}},lymphNodeTargetMerge:function(){var e=this,t=[];this.lymphNodeTargetSelectArray.forEach((function(i){var n=e.BLLymphNodeTargetList.filter((function(e){return e.TUSEQ===i}))[0];n.CurrentLesion.CoveredLesion="",n.CurrentLesion.Note="",n.CurrentLesion.TRORRES="",t.push(n.TULNKID)})),this.BLLymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:t.join("/"),CurrentLesion:{Note:this.lymphNodeTargetSelectArray.join("/")+"Merge"}}),this.$refs.lymphNodeTargetBLTable.clearSelection()},handleLymphNodeTargetListSelectionChange:function(e){for(var t=[],i=0;i=2?(this.lymphNodeTargetSplitDisable=!0,this.lymphNodeTargetMergeDisable=!1):1===this.lymphNodeTargetSelectArray.length?(this.lymphNodeTargetSplitDisable=!1,this.lymphNodeTargetMergeDisable=!0):(this.lymphNodeTargetSplitDisable=!0,this.lymphNodeTargetMergeDisable=!0)},canLymphNodeTargetOpt:function(e){var t=!0;return e.VISITNUM===this.pageTPInfo.VisitNum&&(t=!1),this.LymphNodeTargetSplitOrMergeArray.forEach((function(i){-1!==i.TULNKID.indexOf(e.TULNKID)&&(t=!1)})),t},submiteReport:function(){var e=this;Object(r["q"])(this.pageTPInfo.WorkloadId).then((function(t){e.$message.success("Report saved successfully"),e.isReportSaved=!0}))},saveImageLabel:function(){var e=this,t={};t.TpCode=this.pageTPInfo.WorkloadCode,t.ImageLabelList=[],this.imageLabelList.forEach((function(i){t.ImageLabelList.push({StudyId:e.pageTPInfo.StudyId,LabelValue:JSON.stringify(i),SeriesId:i.seriesId,InstanceId:i.instanceId})})),Object(r["o"])(t).then((function(t){e.imageDataHasUpdate=!1,e.$message.success("saved imgeLable successfully")}))},addVistLine:function(){var e=this,t=this,i=!0,n=!0,a=!0;if(this.$refs.qualifiedForm.validate((function(e){e||(i=!1)})),this.$refs.commentsForm.validate((function(e){e||(n=!1)})),this.$refs.efficacyAssessmentForm.validate((function(e){e||(a=!1)})),i&&n&&a){var o=[],s=[];this.BLNonlymphNodeTargetList.forEach((function(t){t.VISITNUM===e.pageTPInfo.VisitNum?s.push({LesionType:1,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.CurrentLesion.Note,TRGRPID:"",TRDTC:"",TRDY:0,CoveredLesion:t.CurrentLesion.CoveredLesion}):t.VISITNUM!==e.pageTPInfo.VisitNum&&t.CurrentLesion.CoveredLesion&&o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note,CoveredLesion:t.CurrentLesion.CoveredLesion})})),this.BLLymphNodeTargetList.forEach((function(t){t.VISITNUM===e.pageTPInfo.VisitNum?s.push({LesionType:2,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.CurrentLesion.Note,TRGRPID:"",TRDTC:"",TRDY:0,CoveredLesion:t.CurrentLesion.CoveredLesion}):t.VISITNUM!==e.pageTPInfo.VisitNum&&t.CurrentLesion.CoveredLesion&&o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note,CoveredLesion:t.CurrentLesion.CoveredLesion})})),this.BLNontargetLesionList.forEach((function(t){o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note})})),this.PreviousNewLesionList.forEach((function(t){o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note})})),this.EquivocalNewLesionList.forEach((function(t){s.push({LesionType:4,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"",TUSTRESC:"",TUNAM:"",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),this.UnequivocalNewLesionList.forEach((function(t){s.push({LesionType:5,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"",TUSTRESC:"",TUNAM:"",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})}));var l=[],c={StudyGuid:this.pageTPInfo.StudyId,TrialGuid:this.pageTPInfo.TrialId,SubjectGuid:this.pageTPInfo.SubjectId,STUDYID:this.pageTPInfo.TrialCode,DOMAIN:"",USUBJID:this.pageTPInfo.SubjectCode,RSGRPID:"",RSREFID:"",RSSPID:this.pageTPInfo.Sponsor,RSLNKID:"",RSLNKGRP:"",RSTESTCD:"TRGRESP",RSTEST:"Target Response",RSCAT:"",RSORRES:this.efficacyAssessment.TargetLesion,RSSTRESC:this.efficacyAssessment.TargetLesion,RSSTAT:"",RSREASND:"",RSNAM:"",RSEVAL:"",RSEVALID:"",RSACPTFL:"",VISITNUM:this.pageTPInfo.VisitNum,VISIT:this.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",RSDTC:"",RSDY:0},u=JSON.parse(JSON.stringify(c));c.Note=this.efficacyAssessment.TargetLesionNote,u.RSTESTCD="NTRGRESP",u.RSTEST="Non-target Response",u.RSORRES=this.efficacyAssessment.Non_targetLesion,u.RSSTRESC=this.efficacyAssessment.Non_targetLesion,u.Note=this.efficacyAssessment.Non_targetLesionNote;var d=JSON.parse(JSON.stringify(c));d.RSTESTCD="OVRLRESP",d.RSTEST="Overall Response",d.RSORRES=this.efficacyAssessment.OverallAssessment,d.RSSTRESC=this.efficacyAssessment.OverallAssessment,d.Note=this.efficacyAssessment.OverallAssessmentNote,l.push(c),l.push(u),l.push(d);var f={STUDYID:this.pageTPInfo.TrialCode,TRSPID:this.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:this.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:"",TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:"",TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:this.pageTPInfo.VisitNum,VISIT:this.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:""},h=JSON.parse(JSON.stringify(f));h.TRTEST="Sum of Diameter",h.TRTESTCD="SUMDIAM",h.TRORRES=this.SumOfDiameter;var p=JSON.parse(JSON.stringify(f));p.TRTEST="Sum Diameters of Non Lymph NodeTumors",p.TRTESTCD="SUMNLNLD",p.TRORRES=this.NonnodularLesionsSOD,o.push(h),o.push(p),this.$confirm("Sure fill in all the information?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["p"])({LesionInformation:s,TrList:o,ReportResult:e.reportResult,RSList:l,PreviousOverallAssessment:e.previousOverallAssessment}).then((function(t){e.$message.success("added successfully")}))})),t.imageDataHasUpdate&&t.saveImageLabel()}}}},s=o,l=(i("38a6"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"54fb":function(e,t){function i(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),i=e.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:n,color:a})}))}e.exports=i},"551d":function(e,t,i){"use strict";i("f380")},"551f":function(e,t,i){var n=i("282b"),a=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(e,t){var i=a(this,e,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=r},5522:function(e,t,i){i("23e0"),i("1748"),i("6c12")},5524:function(e,t,i){},5572:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"visitForm",attrs:{model:e.form,rules:e.rules,"label-width":"150px",size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:subjectId"),prop:"SubjectId"}},[""===e.form.Id?i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:""},on:{change:e.handleSubjectChange},model:{value:e.form.SubjectId,callback:function(t){e.$set(e.form,"SubjectId",t)},expression:"form.SubjectId"}},e._l(e.subjectOptions,(function(e){return i("el-option",{key:e.SubjectId,attrs:{label:e.Code,value:e.SubjectId,disabled:3===e.Status}})})),1):i("el-input",{attrs:{disabled:""},model:{value:e.form.SubjectCode,callback:function(t){e.$set(e.form,"SubjectCode",t)},expression:"form.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:visitName"),prop:"VisitName"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{disabled:1*e.data.SubmitState===2||e.form.InPlan||e.form.IsFinalVisit},model:{value:e.form.VisitName,callback:function(t){e.$set(e.form,"VisitName",t)},expression:"form.VisitName"}}),e._v(" "),!e.form.InPlan&&e.form.IsFinalVisit?i("span",{staticStyle:{color:"red"}},[e._v("\n *"+e._s(e.$t("trials:crcUpload:form:setFinalAssessment1").replaceAll("xxx",e.otherInfo.OutEnrollmentVisitName))+"\n ")]):e._e()],1),e._v(" "),e.form.InPlan?e._e():i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:preVisitName"),prop:"OutPlanPreviousVisitId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",disabled:1*e.data.SubmitState===2},on:{change:e.handleSubjectVisitChange},model:{value:e.form.OutPlanPreviousVisitId,callback:function(t){e.$set(e.form,"OutPlanPreviousVisitId",t)},expression:"form.OutPlanPreviousVisitId"}},e._l(e.subjectVisitOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.VisitName,value:e.Id}})})),1)],1),e._v(" "),e.form.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate&&""!==e.form.Id?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.form,"SubjectFirstGiveMedicineTime",t)},expression:"form.SubjectFirstGiveMedicineTime"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading,disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("3e42"),l={name:"VisitForm",props:{data:{type:Object,default:function(){return{}}},otherInfo:{type:Object,default:function(){return{}}}},data:function(){return{siteOptions:[],subjectOptions:[],subjectVisitOptions:[],btnLoading:!1,form:{Id:"",SiteId:"",SubjectId:"",VisitName:"",VisitNum:"",OutPlanPreviousVisitId:null,LastVisit:"",VisitExecuted:0,InPlan:!1,SubjectFirstGiveMedicineTime:"",IsEnrollmentConfirm:!1,PDState:0,IsLostVisit:!1,IsFinalVisit:!1},rules:{SiteId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],SubjectId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],VisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],LastVisit:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],OutPlanPreviousVisitId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},loading:!1,isDisabled:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},trialId:this.$route.query.trialId,showFinalVisitWarning:!1}},computed:{isUploadedData:function(){var e=this.data.NoneDicomStudyCount+this.data.DicomStudyCount;return e>0}},mounted:function(){console.log(this.$d.YesOrNo),this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,this.isDisabled=!0,e.next=4,Object(s["Zd"])(this.trialId);case 4:if(t=e.sent,this.siteOptions=t.Result,this.form.SiteId=this.siteOptions[0].SiteId,this.handleSiteChange(this.form.SiteId),!Object.keys(this.data).length||!this.data.Id){e.next=15;break}return e.next=11,Object(s["rd"])(this.data.SubjectId);case 11:i=e.sent,n=i.Result,this.subjectVisitOptions=n,this.form=Object(r["a"])({},this.data);case 15:this.form.TrialId=this.trialId,this.loading=!1,this.isDisabled=!1;case 18:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.visitForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.trialId,Object(s["z"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("closeDialog"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},cancel:function(){this.$emit("closeDialog")},getSubjectList:function(){var e=this;Object(s["pd"])(this.form.SiteId,this.trialId).then((function(t){e.subjectOptions=t.Result}))},handleSiteChange:function(e){this.form.SubjectId="",this.subjectVisitOptions=[],e?this.getSubjectList():this.subjectOptions=[]},getVisitList:function(){var e=this;Object(s["rd"])(this.form.SubjectId).then((function(t){e.subjectVisitOptions=t.Result}))},handleSubjectChange:function(e){this.form.LastVisit="",this.form.VisitNum="",e?this.getVisitList():this.subjectVisitOptions=[]},handleSubjectVisitChange:function(e){if(e){var t=this.subjectVisitOptions.filter((function(t){return t.Id===e}));this.form.VisitNum=t[0].VisitNum+.1}},handleIsFinalVisitChange:function(e){!this.form.InPlan&&e?this.form.VisitName=this.otherInfo.OutEnrollmentVisitName:this.form.InPlan||(this.form.VisitName=this.data.VisitName),e?(this.showFinalVisitWarning=!0,this.form.IsLostVisit=!1):this.showFinalVisitWarning=!1},handlePdStateChange:function(e){e&&(this.form.IsLostVisit=!1)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},5576:function(e,t,i){var n=i("6d8b"),a=i("4a01"),r=i("88b3"),o="\0_ec_dataZoom_roams";function s(e,t){var i=u(e),a=t.dataZoomId,o=t.coordId;n.each(i,(function(e,i){var r=e.dataZoomInfos;r[a]&&n.indexOf(t.allCoordIds,o)<0&&(delete r[a],e.count--)})),f(i);var s=i[o];s||(s=i[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=d(e,s),s.dispatchAction=n.curry(h,e)),!s.dataZoomInfos[a]&&s.count++,s.dataZoomInfos[a]=t;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),r.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var i=u(e);n.each(i,(function(e){e.controller.dispose();var i=e.dataZoomInfos;i[t]&&(delete i[t],e.count--)})),f(i)}function c(e){return e.type+"\0_"+e.id}function u(e){var t=e.getZr();return t[o]||(t[o]={})}function d(e,t){var i=new a(e.getZr());return n.each(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(i){var a=[];n.each(t.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var r=(n.getRange||{})[e],o=r&&r(t.controller,i);!n.dataZoomModel.get("disabled",!0)&&o&&a.push({dataZoomId:n.dataZoomId,start:o[0],end:o[1]})}})),a.length&&t.dispatchAction(a)}))})),i}function f(e){n.each(e,(function(t,i){t.count||(t.controller.dispose(),delete e[i])}))}function h(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(e,(function(e){var n=e.dataZoomModel,o=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");a[i+o]>a[i+t]&&(t=o),r&=n.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}t.register=s,t.unregister=l,t.generateCoordId=c},5582:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"questionForm",attrs:{model:e.form,"label-width":"120px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName"),prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:typeValue"),prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:e.$t("trials:qcCfg:message:typeValue"),type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:taskType"),prop:"ReadingCategory"}},[i("el-select",{on:{change:function(t){e.readingCategoryChange(t,e.form)}},model:{value:e.form.ReadingCategory,callback:function(t){e.$set(e.form,"ReadingCategory",t)},expression:"form.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentQs")}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentTriggerValue"),prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:order"),prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("3e42")),s={name:"MedicalAuditQSFrom",props:{data:{type:Object,default:function(){return{}}},trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error(e.$t("trials:medicalFeedbackCfg:message:msg2"))):n()}};return{form:{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:"",ReadingCategory:""},rules:{QuestionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TypeValue:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"".concat(this.$t("common:ruleMessage:maxLength")," 200")}],ParentTriggerValue:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ReadingCategory:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},trialId:"",loading:!1,parentOptions:[],parentTriggerValOptions:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={trialId:this.trialId,id:this.data.Id?this.data.Id:"",readingCategory:this.data.ReadingCategory?this.data.ReadingCategory:"",TrialReadingCriterionId:this.trialReadingCriterionId},e.next=4,this.getParentQsOpntions(t);case 4:if(this.data.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.Id===a.data.ParentId})),-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))),Object.keys(this.data).length>0)for(n in this.form)this.data.hasOwnProperty(n)&&(this.form[n]=this.data[n]);this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.questionForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["s"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1})))}))},getParentQsOpntions:function(e){var t=this;return new Promise((function(i,n){Object(o["Pc"])(e).then((function(e){t.parentOptions=e.Result,i()})).catch((function(){n()}))}))},readingCategoryChange:function(e,t){if(e){var i={trialId:this.trialId,id:this.form.Id,readingCategory:e,TrialReadingCriterionId:this.trialReadingCriterionId};this.parentOptions=[],this.parentTriggerValOptions=[],this.getParentQsOpntions(i),this.form.ParentId="",this.form.ParentTriggerValue=""}},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.form.ReadingCategory=this.parentOptions[i].ReadingCategory)}this.form.ParentTriggerValue=""},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},handleClose:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"558b":function(e,t,i){"use strict";i("ab08")},5591:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.form,size:"small",disabled:"look"===e.type,rules:e.rules,"label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"类型",prop:"Type"}},[i("el-select",{on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label,disabled:"group"===e.label||"table"===e.label||"summary"===e.label||"upload"===e.label}})})),1)],1),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称(EN)",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"input"===e.form.Type?i("el-form-item",{attrs:{label:"选项类型",prop:"TableQuestionType",rules:[{required:"input"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.tableQuestionTypeChange(t,e.form)}},model:{value:e.form.TableQuestionType,callback:function(t){e.$set(e.form,"TableQuestionType",t)},expression:"form.TableQuestionType"}},e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value,disabled:"radio"===e.form.Type&&(1===t.value||2===t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),0===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"单位"}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),2===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"关联问题",prop:"DependParentId"}},[i("el-select",{model:{value:e.form.DependParentId,callback:function(t){e.$set(e.form,"DependParentId",t)},expression:"form.DependParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"DependParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),1===e.form.TableQuestionType||e.form.DependParentId?i("el-form-item",{attrs:{label:"关联字段",prop:"DataTableColumn"}},[i("el-select",{model:{value:e.form.DataTableColumn,callback:function(t){e.$set(e.form,"DataTableColumn",t)},expression:"form.DataTableColumn"}},e._l(e.$d.OrganColumn,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),3===e.form.TableQuestionType||2===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode",rules:[{required:3===e.form.TableQuestionType,message:"请选择",trigger:"blur"}]}},[i("el-select",{model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValue"}},[i("el-select",{model:{value:e.form.RelevanceValue,callback:function(t){e.$set(e.form,"RelevanceValue",t)},expression:"form.RelevanceValue"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题标识",prop:"QuestionMark"}},[i("el-select",{model:{value:e.form.QuestionMark,callback:function(t){e.$set(e.form,"QuestionMark",t)},expression:"form.QuestionMark"}},e._l(e.$d.QuestionMark,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:"最大上传个数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"重复出现最大次数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,max:10},model:{value:e.form.MaxRowCount,callback:function(t){e.$set(e.form,"MaxRowCount",t)},expression:"form.MaxRowCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"全局阅片是否显示"}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"look"===e.type},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("3e42")),s=i("e56e"),l={name:"AddOrUpdateTableQs",props:{data:{type:Object,default:function(){return{}}},readingQuestionId:{type:String,required:!0},criterionId:{type:String,required:!0},type:{type:String,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{form:{Id:"",ReadingQuestionId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ValueType:"",Unit:"",ParentId:"",ParentTriggerValue:"",ShowOrder:0,ShowQuestion:null,IsRequired:!0,Remark:"",RelevanceId:"",RelevanceValue:"",DataTableName:"",DataTableColumn:"",DictionaryCode:"",TableQuestionType:null,MaxRowCount:null,DependParentId:"",QuestionMark:null,LimitEdit:null,GlobalReadingShowType:null},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"最大长度为 200"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValue:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValue:[{required:!0,message:"请选择",trigger:"blur"}],DataTableName:[{required:!0,message:"请选择",trigger:"blur"}],DataTableColumn:[{required:!0,message:"请选择",trigger:"blur"}],DependParentId:[{required:!0,message:"请选择",trigger:"blur"}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],tblOptions:[],colOptions:[],dicList:[]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getBasicConfigSelect();case 2:return e.next=4,this.getParentQuestions();case 4:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(r=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){r.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=r)))}case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.tableQsForm.validate((function(t){t&&(e.loading=!0,e.form.SystemCriterionId=e.criterionId,e.form.ReadingQuestionId=e.readingQuestionId,Object(o["w"])(e.form).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1})))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionId:e.readingQuestionId,id:e.data.Id};Object(o["Zc"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getBasicConfigSelect:function(){var e=this;Object(s["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},isShowQuestionChange:function(e,t){2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValue=""):(t.ParentId="",t.ParentTriggerValue="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValue="")},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n}}t.ParentTriggerValue=""},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=n}}t.RelevanceValue=""},tableQuestionTypeChange:function(e,t){t.DictionaryCode="",t.DataTableColumn="",t.DataTableName="",t.DependParentId="",t.TypeValue=""},dataTableNameChange:function(e,t){if(e){var i=this.tblOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.colOptions=this.tblOptions[i].Columns)}t.DataTableColumn=""},qsTypeChange:function(e,t){t.TypeValue="",t.ValueType="",t.Unit="",t.TableQuestionType=null,t.DependParentId="",t.DataTableColumn="",t.DataTableName="",t.DictionaryCode=""},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"eb2aabc8",null);t["default"]=d.exports},5599:function(e,t,i){"use strict";i("a4dc")},"559d":function(e,t,i){"use strict";i("26de")},"55ac":function(e,t,i){var n=i("6d8b");function a(e,t,i){if(e&&n.indexOf(t,e.type)>=0){var a=i.getData().tree.root,r=e.targetNode;if("string"===typeof r&&(r=a.getNodeById(r)),r&&a.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=a.getNodeById(o)))return{node:r}}}function r(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function o(e,t){var i=r(e);return n.indexOf(i,t)>=0}function s(e,t){var i=[];while(e){var n=e.dataIndex;i.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return i.reverse(),i}t.retrieveTargetInfo=a,t.getPathToRoot=r,t.aboveViewRoot=o,t.wrapTreePathInfo=s},"55c6":function(e,t,i){},"55d9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[i("div",{staticClass:"title"},[e._v("\n 文件列表\n ")]),e._v(" "),i("div",{staticClass:"left-content"},e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("Preview",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex},on:{selectedImg:e.selectedImg}}):e._e()],1)])],1)},a=[],r=(i("20d6"),i("3e42")),o=i("4360"),s=i("a599"),l=i("bcd4"),c={name:"Notice",components:{Preview:l["default"]},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:""},previewVisible:!1,studyList:[],subjectVisitId:"",sudyId:"",loading:!1}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.subjectVisitId=this.$router.currentRoute.query.subjectVisitId,this.studyId=this.$router.currentRoute.query.studyId,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(r["xc"])(this.subjectVisitId,this.studyId).then((function(t){e.studyList=t.Result,e.loading=!1;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0}}},u=c,d=(i("ace0"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"660b14ad",null);t["default"]=f.exports},5608:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:grouptConsistencyAnalysis:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:grouptConsistencyAnalysis:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValidVisitCount",label:e.$t("trials:grouptConsistencyAnalysis:table:validVisitCount"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReReadingOrBackInfluenceAnalysis",label:e.$t("trials:grouptConsistencyAnalysis:table:backImpact"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReReadingOrBackInfluenceAnalysis?e._e():i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]),e._v(" "),t.row.IsReReadingOrBackInfluenceAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("trials:grouptConsistencyAnalysis:button:create"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o=i("6071"),s=i("333d"),l=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,TaskConsistentRuleId:null}},c={name:"TrialsNotice",components:{BaseContainer:o["default"],Pagination:s["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,trialId:this.$route.query.trialId,SelectList:[],btnLoading:!1}},mounted:function(){this.searchData.TaskConsistentRuleId=this.data.Id,this.searchData.DoctorUserId=this.data.AnalysisDoctorUser.UserId,this.getList()},methods:{selectable:function(e){return!e.IsHaveGeneratedTask},handleSelectChange:function(e){this.SelectList=e},save:function(){var e=this;if(0!==this.SelectList.length){this.btnLoading=!0,this.loading=!0;var t={TaskConsistentRuleId:this.searchData.TaskConsistentRuleId,SubejctIdList:this.SelectList.map((function(e){return e.SubjectId})),DoctorUserId:this.searchData.DoctorUserId};Object(r["p"])(t).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.close()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error(this.$t("trials:grouptConsistencyAnalysis:message:msg1"))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(r["y"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},5616:function(e,t,i){},"562e":function(e,t,i){var n=i("6d8b");function a(e){null!=e&&n.extend(this,e),this.otherDims={}}var r=a;e.exports=r},5644:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.QuestionName)+"\n ")]):[1===e.question.ShowQuestion&&String(e.questionForm[e.question.ParentId])===String(e.question.ParentTriggerValue)||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._e()],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0?e._l(e.question.Childrens,(function(t){return i("CriterionFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e()],2)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o=i("e56e"),s={name:"CriterionFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"".concat(t)})}))),1===this.question.TableQuestionType&&null!==this.question.LesionType&&this.getOrganInfoList()},methods:{getOrganInfoList:function(){var e=this,t={lesionType:this.question.LesionType,systemCriterionId:this.criterionId};Object(o["jb"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},l=s,c=(i("8026"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"085ce07e",null);t["default"]=u.exports},5651:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{disabled:""},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"600"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:"阅片标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("AttachmentForm",{attrs:{data:e.currentRow,"is-distinguish-criteria":e.isDistinguishCriteria},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=(i("c5f6"),i("e56e")),s=i("6071"),l=i("333d"),c=i("ace7"),u=3,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],AttachmentForm:c["default"]},props:{businessScenarioEnum:{type:Number,required:!0},isDistinguishCriteria:{type:Boolean,required:!0}},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u,BusinessScenarioEnum:this.businessScenarioEnum},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},5678:function(e,t,i){"use strict";i("ac21")},5693:function(e,t){function i(e,t){var i,n,a,r,o,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?i=n=a=r=d:d instanceof Array?1===d.length?i=n=a=r=d[0]:2===d.length?(i=a=d[0],n=r=d[1]):3===d.length?(i=d[0],n=r=d[1],a=d[2]):(i=d[0],n=d[1],a=d[2],r=d[3]):i=n=a=r=0,i+n>c&&(o=i+n,i*=c/o,n*=c/o),a+r>c&&(o=a+r,a*=c/o,r*=c/o),n+a>u&&(o=n+a,n*=u/o,a*=u/o),i+r>u&&(o=i+r,i*=u/o,r*=u/o),e.moveTo(s+i,l),e.lineTo(s+c-n,l),0!==n&&e.arc(s+c-n,l+n,n,-Math.PI/2,0),e.lineTo(s+c,l+u-a),0!==a&&e.arc(s+c-a,l+u-a,a,0,Math.PI/2),e.lineTo(s+r,l+u),0!==r&&e.arc(s+r,l+u-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+i),0!==i&&e.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}t.buildPath=i},"56c1":function(e,t,i){"use strict";i("aff8")},"575e":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-online",use:"icon-online-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},5777:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"edit-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$t("admin:user"),name:"user"}},[i("user-info",{attrs:{"user-id":e.userId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("admin:password"),name:"account"}},[e.load.account?i("Account",{attrs:{"user-id":e.userId}}):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("dcb4")),o=i("91e9"),s={name:"EditUser",components:{UserInfo:r["default"],Account:o["default"]},data:function(){return{activeTab:"user",userId:"",load:{role:!1,account:!1}}},created:function(){this.userId=this.$router.currentRoute.query.Id},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"57a4":function(e,t,i){"use strict";i("2345")},"57fa":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);t["default"]=s},"580a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{staticClass:"box-card",staticStyle:{width:"800px"},attrs:{size:"small"}},[i("div",[i("el-button",{attrs:{type:"danger"},on:{click:e.handleReset}},[e._v("Reset Password")])],1)])},a=[],r=i("50fc"),o={name:"Account",props:{userId:{type:String,default:""}},methods:{handleReset:function(){var e=this;this.$confirm("Sure to reset password?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["s"])(e.userId).then((function(t){t.IsSuccess&&e.$message({message:"Reset password successfully",type:"success"})}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},5837:function(e,t,i){},"585a":function(e,t,i){(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;e.exports=i}).call(this,i("c8ba"))},5866:function(e,t,i){var n=i("ef2b"),a=n.forceLayout,r=i("1c5f"),o=r.simpleLayout,s=i("94e4"),l=s.circularLayout,c=i("3842"),u=c.linearMap,d=i("401b"),f=i("6d8b"),h=i("0c37"),p=h.getCurvenessForEdge;function m(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var i=e.preservedPoints||{},n=e.getGraph(),r=n.data,s=n.edgeData,c=e.getModel("force"),h=c.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,i[t]||[NaN,NaN])})):h&&"none"!==h?"circular"===h&&l(e,"value"):o(e);var m=r.getDataExtent("value"),g=s.getDataExtent("value"),v=c.get("repulsion"),b=c.get("edgeLength");f.isArray(v)||(v=[v,v]),f.isArray(b)||(b=[b,b]),b=[b[1],b[0]];var y=r.mapArray("value",(function(e,t){var i=r.getItemLayout(t),n=u(e,m,v);return isNaN(n)&&(n=(v[0]+v[1])/2),{w:n,rep:n,fixed:r.getItemModel(t).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),w=s.mapArray("value",(function(t,i){var a=n.getEdgeByIndex(i),r=u(t,g,b);isNaN(r)&&(r=(b[0]+b[1])/2);var o=a.getModel(),s=f.retrieve3(o.get("lineStyle.curveness"),-p(a,e,i,!0),0);return{n1:y[a.node1.dataIndex],n2:y[a.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),_=(t=e.coordinateSystem,t.getBoundingRect()),I=a(y,w,{rect:_,gravity:c.get("gravity"),friction:c.get("friction")}),x=I.step;I.step=function(e){for(var t=0,a=y.length;t0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("aa81"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"58df":function(e,t,i){var n=i("6d8b"),a=i("2306");function r(e,t,i,r){var o=i.axis;if(!o.scale.isBlank()){var s=i.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=r.coordinateSystem.getRect(),d=o.getTicksCoords({tickModel:s,clamp:!0});if(d.length){var f=c.length,h=e.__splitAreaColors,p=n.createHashMap(),m=0;if(h)for(var g=0;g0){for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.data.Path&&(this.fileList=[{name:this.data.FileName,path:this.data.Path}])}},save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,e.form.ClinicalDataSetName=e.$fd("ClinicalDataType",e.form.ClinicalDataSetEnum),Object(r["d"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleUploadFile:function(e){var t=this;this.loading=!0,Object(o["xf"])(e.file).then((function(e){if(t.loading=!1,e.IsSuccess){t.form.Path=e.Result[0].Path,t.form.FileName=e.Result[0].FileName;var i={name:t.form.FileName,path:t.form.Path};t.fileList.push(i)}})).catch((function(){t.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("(必须是doc/docx格式)"),!1)},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.FileName=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("只允许上传一个文件")},checkFileSuffix:function(e){var t=["doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)},handleUploadRoleChange:function(e){0===e&&2===this.form.ClinicalDataLevel&&(this.form.ClinicalDataLevel=null),1===e&&0===this.form.ClinicalUploadType&&(this.form.ClinicalUploadType=null)},close:function(){this.$emit("close")}}},l=s,c=(i("8858"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"ad83576c",null);t["default"]=u.exports},5951:function(e,t,i){},5973:function(e,t,i){"use strict";i("17b0")},5986:function(e,t,i){},"59fb":function(e,t,i){"use strict";i("965a")},"5a43":function(e,t){function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i'});o.a.add(s);t["default"]=s},"5aa9":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.isObject,o=a.each,s=a.map,l=a.indexOf,c=(a.retrieve,i("f934")),u=c.getLayoutRect,d=i("697e"),f=d.createScaleByModel,h=d.ifAxisCrossZero,p=d.niceScaleExtent,m=d.estimateLabelUnionRect,g=i("cbe9"),v=i("ec02"),b=i("2039"),y=i("ee1a"),w=y.getStackedDimension;function _(e,t,i){return e.getCoordSysModel()===t}function I(e,t,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,i),this.model=e}i("8ed2");var x=I.prototype;function S(e,t,i,n){i.getAxesOnZeroOf=function(){return a?[a]:[]};var a,r=e[t],o=i.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)T(r[l])&&(a=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&T(r[c])&&!n[u(r[c])]){a=r[c];break}a&&(n[u(a)]=!0)}function u(e){return e.dim+"_"+e.index}}function T(e){return e&&"category"!==e.type&&"time"!==e.type&&h(e)}function C(e,t){var i=e.getExtent(),n=i[0]+i[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return n-e+t}}x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model),o(i.x,(function(e){p(e.scale,e.model)})),o(i.y,(function(e){p(e.scale,e.model)}));var n={};o(i.x,(function(e){S(i,"y",e,n)})),o(i.y,(function(e){S(i,"x",e,n)})),this.resize(this.model,t)},x.resize=function(e,t,i){var n=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=n;var a=this._axesList;function r(){o(a,(function(e){var t=e.isHorizontal(),i=t?[0,n.width]:[0,n.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),C(e,t?n.x:n.y)}))}r(),!i&&e.get("containLabel")&&(o(a,(function(e){if(!e.model.get("axisLabel.inside")){var t=m(e);if(t){var i=e.isHorizontal()?"height":"width",a=e.model.get("axisLabel.margin");n[i]-=t[i]+a,"top"===e.position?n.y+=t.height+a:"left"===e.position&&(n.x+=t.width+a)}}})),r())},x.getAxis=function(e,t){var i=this._axesMap[e];if(null!=i){if(null==t)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[t]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(e,t){if(null!=e&&null!=t){var i="x"+e+"y"+t;return this._coordsMap[i]}r(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;nnew Promise((t,i)=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.onerror=({target:{error:{code:e}}})=>{i(Error("File could not be read! Code="+e))},n.readAsArrayBuffer(e)});e.exports=async e=>{let t=e;if("undefined"===typeof e)return new Uint8Array;if("string"===typeof e)if(/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e))t=atob(e.split(",")[1]).split("").map(e=>e.charCodeAt(0));else{const i=await fetch(n(e));t=await i.arrayBuffer()}else(e instanceof File||e instanceof Blob)&&(t=await a(e));return new Uint8Array(t)}},"5adc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"阅片标准"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CriterionName,callback:function(t){e.$set(e.searchData,"CriterionName",t)},expression:"searchData.CriterionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("添加")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionName",label:"标准名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionType",label:"标准类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCompleteConfig",label:"是否配置完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsCompleteConfig?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示序号","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n eCRF\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleBaseDataConfig(t.row)}}},[e._v("\n 基础数据\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.addDialog.visible?i("el-dialog",{attrs:{title:e.addDialog.title,visible:e.addDialog.visible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"500px"},on:{"update:visible":function(t){return e.$set(e.addDialog,"visible",t)}}},[i("AddCriterion",{attrs:{data:e.rowData},on:{close:function(t){e.addDialog.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{title:"eCRF",visible:e.configVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("criterions-config",{attrs:{"criterion-id":e.rowData.Id,data:e.rowData}})],1):e._e(),e._v(" "),e.configBaseDataVisible?i("el-dialog",{attrs:{title:"基础数据配置",visible:e.configBaseDataVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configBaseDataVisible=t}}},[i("CriterionsBaseData",{attrs:{"criterion-id":e.rowData.Id,"is-complete-config":e.rowData.IsCompleteConfig}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("491a"),u=i("3609"),d=i("337a"),f=function(){return{CriterionName:"",PageIndex:1,PageSize:20}},h={name:"QcQuestions",components:{BoxContent:s["default"],Pagination:l["default"],CriterionsConfig:c["default"],CriterionsBaseData:u["default"],AddCriterion:d["default"]},data:function(){return{searchData:f(),list:[],total:0,loading:!1,rowData:{},configVisible:!1,configBaseDataVisible:!1,addDialog:{title:"",visible:!1}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["tb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addDialog.title="添加",this.addDialog.visible=!0,this.rowData={}},handleEdit:function(e){this.addDialog.title="编辑",this.addDialog.visible=!0,this.rowData=Object(r["a"])({},e)},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{distinguishCancelAndClose:!0,type:"warning"}).then((function(){t.loading=!0,Object(o["K"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success("保存成功!"),t.getList())})).catch((function(){t.loading=!1}))})).catch((function(){}))},changeStatus:function(e,t){var i=this,n="";e?(n="是否确认更改?",t.IsCompleteConfig=!1):(n="是否确认更改?",t.IsCompleteConfig=!0),this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){i.loading=!0;var e={id:t.Id,isCompleteConfig:!t.IsCompleteConfig};Object(o["Nb"])(e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success("保存成功!"),i.getList())})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleBaseDataConfig:function(e){this.rowData=Object(r["a"])({},e),this.configBaseDataVisible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=f(),this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"5ade":function(e,t,i){},"5aee":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icon-body"},[i("el-input",{staticStyle:{position:"relative"},attrs:{clearable:"",placeholder:"请输入图标名称"},on:{clear:e.filterIcons},nativeOn:{input:function(t){return e.filterIcons(t)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]),e._v(" "),i("div",{staticClass:"icon-list"},e._l(e.iconList,(function(t,n){return i("div",{key:n,on:{click:function(i){return e.selectedIcon(t)}}},[i("svg-icon",{staticStyle:{height:"30px",width:"16px"},attrs:{"icon-class":t}}),e._v(" "),i("span",[e._v(e._s(t))])],1)})),0)],1)},a=[],r=(i("6762"),i("2fdb"),i("7f7f"),i("4917"),i("ac6a"),i("23f1")),o=function(e){return e.keys()},s=/\.\/(.*)\.svg/,l=o(r).map((function(e){return e.match(s)[1]})),c=l,u={name:"IconSelect",data:function(){return{name:"",iconList:c}},methods:{filterIcons:function(){var e=this;this.iconList=c,this.name&&(this.iconList=this.iconList.filter((function(t){return t.includes(e.name)})))},selectedIcon:function(e){this.$emit("selected",e),document.body.click()},reset:function(){this.name="",this.iconList=c}}},d=u,f=(i("bce5"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"0273f142",null);t["default"]=h.exports},"5af2":function(e,t,i){},"5b69":function(e,t,i){var n=i("2306"),a=i("3eba"),r=i("6d8b"),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,i){var n=e.getGraphicEl(),a=u(e,t);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",a)}))}function f(e,t){var i=u(e,t),n=e.getGraphicEl();n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var h=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var i=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+i,t.y2),e.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(e.lineTo(t.x2,t.y2+i),e.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=a.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,i){var a=this,r=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,c=s.height,u=e.getData(),d=e.getData("edge"),f=e.get("orient");this._model=e,o.removeAll(),o.attr("position",[s.x,s.y]),r.eachEdge((function(t){var i=new h;i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,r,s,u,p,m,g,v,b=t.getModel("lineStyle"),y=b.get("curveness"),w=t.node1.getLayout(),_=t.node1.getModel(),I=_.get("localX"),x=_.get("localY"),S=t.node2.getLayout(),T=t.node2.getModel(),C=T.get("localX"),k=T.get("localY"),R=t.getLayout();switch(i.shape.extent=Math.max(1,R.dy),i.shape.orient=f,"vertical"===f?(a=(null!=I?I*l:w.x)+R.sy,r=(null!=x?x*c:w.y)+w.dy,s=(null!=C?C*l:S.x)+R.ty,u=null!=k?k*c:S.y,p=a,m=r*(1-y)+u*y,g=s,v=r*y+u*(1-y)):(a=(null!=I?I*l:w.x)+w.dx,r=(null!=x?x*c:w.y)+R.sy,s=null!=C?C*l:S.x,u=(null!=k?k*c:S.y)+R.ty,p=a*(1-y)+s*y,m=r,g=a*y+s*(1-y),v=u),i.setShape({x1:a,y1:r,x2:s,y2:u,cpx1:p,cpy1:m,cpx2:g,cpy2:v}),i.setStyle(b.getItemStyle()),i.style.fill){case"source":i.style.fill=t.node1.getVisual("color");break;case"target":i.style.fill=t.node2.getVisual("color");break}n.setHoverStyle(i,t.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),d.setItemGraphicEl(t.dataIndex,i)})),r.eachNode((function(t){var i=t.getLayout(),a=t.getModel(),r=a.get("localX"),s=a.get("localY"),d=a.getModel("label"),f=a.getModel("emphasis.label"),h=new n.Rect({shape:{x:null!=r?r*l:i.x,y:null!=s?s*c:i.y,width:i.dx,height:i.dy},style:a.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(h.style,p,d,f,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),h.setStyle("fill",t.getVisual("color")),n.setHoverStyle(h,p),o.add(h),u.setItemGraphicEl(t.dataIndex,h),h.dataType="node"})),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n);r.get("draggable")&&(t.drift=function(t,r){a._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){a._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),d.eachItemGraphicEl((function(t,n){var r=d.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&o.setClipPath(m(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,i,n){var a=e.getData(),u=a.graph,h=n.dataIndex,p=a.getItemModel(h),m=n.edgeDataIndex;if(null!=h||null!=m){var g=u.getNodeByIndex(h),v=u.getEdgeByIndex(m);if(u.eachNode((function(e){d(e,o,.1)})),u.eachEdge((function(e){d(e,l,.1)})),g){f(g,s);var b=p.get("focusNodeAdjacency");"outEdges"===b?r.each(g.outEdges,(function(e){e.dataIndex<0||(f(e,c),f(e.node2,s))})):"inEdges"===b?r.each(g.inEdges,(function(e){e.dataIndex<0||(f(e,c),f(e.node1,s))})):"allEdges"===b&&r.each(g.edges,(function(e){e.dataIndex<0||(f(e,c),e.node1!==g&&f(e.node1,s),e.node2!==g&&f(e.node2,s))}))}v&&(f(v,c),f(v.node1,s),f(v.node2,s))}},unfocusNodeAdjacency:function(e,t,i,n){var a=e.getGraph();a.eachNode((function(e){d(e,o)})),a.eachEdge((function(e){d(e,l)}))}});function m(e,t,i){var a=new n.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return n.initProps(a,{shape:{width:e.width+20}},t,i),a}e.exports=p},"5b87":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.each,o=a.createHashMap,s=i("ec34"),l=i("4c86"),c=i("c92f"),u=i("9850"),d={geoJSON:l,svg:c},f={load:function(e,t,i){var n,a=[],s=o(),l=o(),c=p(e);return r(c,(function(o){var c=d[o.type].load(e,o,i);r(c.regions,(function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),a.push(e),s.set(i,e),l.set(i,e.center)}));var u=c.boundingRect;u&&(n?n.union(u):n=u.clone())})),{regions:a,regionsMap:s,nameCoordMap:l,boundingRect:n||new u(0,0,0,0)}},makeGraphic:h("makeGraphic"),removeGraphic:h("removeGraphic")};function h(e){return function(t,i){var n=p(t),a=[];return r(n,(function(n){var r=d[n.type][e];r&&a.push(r(t,n,i))})),a}}function p(e){var t=s.retrieveMap(e)||[];return t}e.exports=f},"5be4":function(e,t,i){"use strict";t["a"]={studyList:[]}},"5bec":function(e,t,i){},"5bef":function(e,t,i){"use strict";i("c6bd")},"5c13":function(e,t,i){"use strict";i("72f0")},"5c2b":function(e,t,i){"use strict";i("b8aa")},"5c34":function(e,t,i){},"5c80":function(e,t,i){"use strict";i("aa5c")},"5c90":function(e,t,i){"use strict";i("d873")},"5ca9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"previous-files-wrapper"},[i("form",{ref:"uploadForm",attrs:{id:"inputForm"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:attachment:message:pdf")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"btn btn-link",staticStyle:{position:"relative",overflow:"hidden",display:"inline-block"},attrs:{id:"directoryInputWrapper"}},[i("el-button",{attrs:{size:"small"}},[e._v(e._s(e.$t("trials:uploadClinicalData:button:selectFile")))]),e._v(" "),i("input",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer"},attrs:{type:"file",name:"file",multiple:"",accept:e.faccept.join(",")},on:{change:function(t){return e.beginScanFiles(t)}}})],1)])],1),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",attrs:{data:e.fileList,height:"300"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"name",label:e.$t("trials:uploadClinicalData:table:fileName"),"min-width":"180"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length,loading:e.btnLoading},on:{click:e.handleUploadFile}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:button:uploadFile"))+"\n ")])],1)],1)},a=[],r=(i("7f7f"),i("3e42")),o={props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){return{fileList:[],btnLoading:!1,faccept:[".pdf"],trialId:this.$route.query.trialId,selectArr:[],addFileList:[]}},methods:{beginScanFiles:function(e){for(var t=e.target.files,i=0;i0?i("span",[i("span",[e._v(e._s(e.$t("trials:crcUpload:label:noneDicom"))+": "+e._s(t.row.NoneDicomStudyCount)+",")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:crcUpload:label:clinicalData"))+": "+e._s(t.row.IsHaveClinicalData?"w/":"w/o"))])]):i("span",[e._v(e._s(e.$t("trials:crcUpload:label:noneDicom"))+": "+e._s(t.row.NoneDicomStudyCount))])]),e._v(" "),i("span",[e._v("\n "+e._s(t.row.IsBaseLine&&e.OtherInfo.ClinicalInformationTransmissionEnum>0?[t.row.DicomStudyCount,t.row.NoneDicomStudyCount,t.row.IsHaveClinicalData?"w/":"w/o"].join(", "):[t.row.DicomStudyCount,t.row.NoneDicomStudyCount].join(", "))+"\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EarliestScanDate",label:e.$t("trials:qcCheck:table:eScanDate"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EarliestScanDate?e.moment(t.row.EarliestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:qcCheck:table:lScanDate"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitTime",label:e.$t("trials:qcCheck:table:submitTime"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:qcCheck:table:auditState"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.AuditState===0?i("span",[e._v("--")]):1*t.row.AuditState===3?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("AuditStatePE",1*t.row.AuditState)))]):1*t.row.AuditState===4&&1===t.row.QCProcessEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("AuditStatePE",1*t.row.AuditState))+"\n ")]):1*t.row.AuditState===4&&2===t.row.QCProcessEnum||1*t.row.AuditState===5&&2===t.row.QCProcessEnum||1*t.row.AuditState===6&&2===t.row.QCProcessEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState))+"\n ")]):1*t.row.AuditState===7?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState)))]):1*t.row.AuditState===8?i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0!==e.OtherInfo.QCProcessEnum,expression:"OtherInfo.QCProcessEnum !== 0"}],attrs:{prop:"PreliminaryAuditUserName",label:e.$t("trials:qcCheck:table:reviewer"),"show-overflow-tooltip":"","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[!t.row.PreliminaryAuditUserName||e.hasPermi(["role:iqc"])&&t.row.AuditState<7&&e.userId!==t.row.PreliminaryAuditUserId&&e.hasPermi(["role:iqc"])&&!(t.row.AuditState>=7)?i("span",[e._v(e._s(t.row.PreliminaryAuditUserName))]):i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleViewPrimaryQC(t.row)}}},[e._v("\n "+e._s(t.row.PreliminaryAuditUserName)+"\n ")]),e._v(" "),t.row.PreliminaryAuditUserName&&2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:preliminary"))+"\n ")]):e._e(),e._v(" "),t.row.ReviewAuditUserName?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleViewReviewQC(t.row)}}},[e._v("\n "+e._s(t.row.ReviewAuditUserName)+"\n ")]):e._e(),e._v(" "),t.row.ReviewAuditUserName&&2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:review"))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0!==e.OtherInfo.QCProcessEnum,expression:"OtherInfo.QCProcessEnum !== 0"}],attrs:{prop:"CurrentActionUserName",label:e.$t("trials:qcCheck:table:crrentUser"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),0!==e.OtherInfo.QCProcessEnum&&e.hasPermi(["trials:trials-panel:visit:qc-check:receive","trials:trials-panel:visit:qc-check:release","trials:trials-panel:visit:qc-check:audit"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.AuditState>=3?i("div",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:receive"],expression:"['trials:trials-panel:visit:qc-check:receive']"}],attrs:{title:e.$t("trials:qcCheck:button:receive"),circle:"",icon:"el-icon-lock",disabled:t.row.PreliminaryAuditUserId===e.userId||t.row.IsTake||t.row.AuditState>6},on:{click:function(i){return e.handleReciveTask(t.row,!0)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:release"],expression:"['trials:trials-panel:visit:qc-check:release']"}],attrs:{title:e.$t("trials:qcCheck:button:release"),circle:"",icon:"el-icon-unlock",disabled:!(t.row.CurrentActionUserId===e.userId)||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handleReciveTask(t.row,!1)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:release"],expression:"['trials:trials-panel:visit:qc-check:release']"}],attrs:{title:e.$t("trials:crcQuestion:button:replaceTask"),circle:"",icon:"el-icon-refresh",disabled:t.row.CurrentActionUserId===e.userId||t.row.PreliminaryAuditUserId===e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handleReplaceTask(t.row)}}}),e._v(" "),1===t.row.QCProcessEnum?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:audit"),circle:"",icon:"el-icon-edit-outline",disabled:!!t.row.CurrentActionUserId&&t.row.CurrentActionUserId!==e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handlePrimaryQC(t.row)}}}):e._e(),e._v(" "),2===t.row.QCProcessEnum&&1*t.row.AuditState<6?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:preliminaryAudit"),circle:"",icon:"el-icon-edit-outline",disabled:!!t.row.CurrentActionUserId&&t.row.CurrentActionUserId!==e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handlePrimaryQC(t.row)}}}):e._e(),e._v(" "),2===t.row.QCProcessEnum&&1*t.row.AuditState>=6?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:review"),circle:"",icon:"el-icon-edit-outline",disabled:t.row.PreliminaryAuditUserId===e.userId||!t.row.IsTake||1*t.row.AuditState>6||t.row.CurrentActionUserId!==e.userId},on:{click:function(i){return e.handleSecondaryQC(t.row)}}}):e._e()],1):e._e()]}}],null,!1,4247995633)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("div",{staticClass:"remark"},[i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:finalVisit"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:finalVisitDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:lostVisit"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:lostVisitDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:pd"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:pdDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:enrollmentConfirm"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:enrollmentConfirmDetail")))]),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:preliminary"))+"\n ")]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",[e._v(": "+e._s(e.$t("trials:qcCheck:label:preliminaryAudit")))]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:review"))+"\n ")]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",[e._v(": "+e._s(e.$t("trials:qcCheck:label:reviewAudit")))]):e._e()]),e._v(" "),e.qcVisible?i("el-dialog",{attrs:{visible:e.qcVisible,fullscreen:!0,"close-on-click-modal":!1,"custom-class":"qc-dialog"},on:{"update:visible":function(t){e.qcVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{separator:"/"}},[e.trialCode?i("el-breadcrumb-item",[e._v(e._s(e.trialCode))]):e._e(),e._v(" "),e.rowData.TrialSiteCode?i("el-breadcrumb-item",[e._v(e._s(e.rowData.TrialSiteCode))]):e._e(),e._v(" "),e.rowData.SubjectCode?i("el-breadcrumb-item",[e._v(e._s(e.rowData.SubjectCode))]):e._e(),e._v(" "),e.rowData.VisitName?i("el-breadcrumb-item",[e._v("\n "+e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")")+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{staticClass:"qc-dialog-body"},[e.qcVisible?i("quality-assurance",{attrs:{data:e.rowData,disabled:!!e.rowData.disabled&&e.rowData.disabled,"q-type":e.rowData.qcType?e.rowData.qcType:1},on:{getList:e.getList,nextTask:e.nextTask}}):e._e()],1)]):e._e(),e._v(" "),e.studyVisible?i("el-dialog",{attrs:{visible:e.studyVisible,"close-on-click-modal":!1,fullscreen:!0,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.studyVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SiteCode,expression:"rowData.SiteCode"}]},[e._v(e._s(e.rowData.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body"},[i("el-form",{staticClass:"base-search-form",staticStyle:{padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.OtherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && OtherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.OtherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && OtherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.OtherInfo.IsPDProgressView,expression:"!rowData.IsBaseLine && OtherInfo.IsPDProgressView"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",[i("h4",{staticClass:"box-title"},[e._v(e._s(e.$t("trials:audit:tab:dicoms")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("DicomFiles",{attrs:{data:e.rowData}}):e._e()],1)],1),e._v(" "),i("div",[i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.$t("trials:audit:tab:nonDicoms")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadNonDicomFiles",{attrs:{"body-parts":e.OtherInfo.BodyPartTypes,modalities:e.OtherInfo.Modalitys,data:e.rowData,"allow-add-or-edit":!1,"subject-visit-id":e.rowData.Id}}):e._e()],1)],1),e._v(" "),e.OtherInfo.ClinicalInformationTransmissionEnum>0?i("div",[i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.$t("trials:audit:tab:clinicalData")))]),e._v(" "),e.OtherInfo.ClinicalInformationTransmissionEnum>0?i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadClinicalData",{attrs:{"enum-type":e.OtherInfo.ClinicalInformationTransmissionEnum,data:e.rowData,"subject-visit-id":e.rowData.Id,"allow-add-or-edit":!1}}):e._e()],1):e._e()],1):e._e()],1)]):e._e(),e._v(" "),e.urgentVisible?i("el-dialog",{staticStyle:{height:"500px"},attrs:{visible:e.urgentVisible,"close-on-click-modal":!1,title:e.$t("trials:qcCheck:dialogTitle:setUrgent"),width:"400px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.urgentVisible=t}}},[i("el-form",{attrs:{model:e.urgentForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:isUrgent")}},[i("el-radio-group",{model:{value:e.urgentForm.IsUrgent,callback:function(t){e.$set(e.urgentForm,"IsUrgent",t)},expression:"urgentForm.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"formIsUrgent"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.urgentVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.setUrgentStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=(i("a481"),i("db72")),o=i("3e42"),s=i("6071"),l=i("97bd"),c=i("283c"),u=i("4ebb"),d=i("dda6"),f=i("333d"),h=i("c1df"),p=i.n(h),m=i("a599"),g=i("5f87"),v=function(){return{TrialId:"",SiteId:"",SubjectInfo:"",VisitPlanArray:[],IsUrgent:null,AuditStateArray:[],HandleUserId:"",PageIndex:1,PageSize:20}},b={name:"QcCheck",components:{BaseContainer:s["default"],Pagination:f["default"],QualityAssurance:l["default"],DicomFiles:c["default"],UploadNonDicomFiles:u["default"],UploadClinicalData:d["default"]},data:function(){return{searchData:v(),total:0,list:[],loading:!1,qcVisible:!1,rowData:{TrialSiteCode:"",SubjectCode:"",VisitName:"",VisitNum:""},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),userId:zzSessionStorage.getItem("userId"),moment:p.a,siteOptions:[],visitPlanOptions:[],OtherInfo:{},participantOptions:[],studyVisible:!1,urgentVisible:!1,urgentForm:{id:"",isUrgent:null},trialId:this.$route.query.trialId,trialCode:this.$route.query.trialCode,query:null}},watch:{list:function(e){this.doLayout()}},mounted:function(){this.query=this.$route.query,this.$route.query.subjectCode&&(this.searchData.SubjectInfo=this.$route.query.subjectCode),Object(m["a"])("subjectCode",""),this.getList(),this.getSite(),this.getParticipantList(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Ic"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.OtherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},doLayout:function(){var e=this;this.$nextTick((function(){e.$refs.qcCheckList.doLayout()}))},handleReciveTask:function(e,t){var i=this,n="";n=t?this.$t("trials:qcCheck:message:receive"):this.$t("trials:qcCheck:message:release"),this.$confirm(n,{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.loading=!0,Object(o["jf"])(e.TrialId,e.Id,t).then((function(e){i.loading=!1,e.IsSuccess&&(i.getList(),t?i.$message.success(i.$t("trials:qcCheck:message:receivedSuccessfully")):i.$message.success(i.$t("trials:qcCheck:message:releasedSuccessfully")))})).catch((function(e){i.loading=!1,5===e.Code&&e.ErrorMessage&&(i.$confirm(e.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}}),i.getList())}))})).catch((function(){}))},handlePrimaryQC:function(e){var t=this;this.loading=!0,Object(o["pe"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.rowData=Object(r["a"])({},e),t.qcVisible=!0)})).catch((function(e){t.loading=!1,2===e.Code&&t.getList()}))},handleSecondaryQC:function(e){var t=this;this.loading=!0,Object(o["pe"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.rowData=Object(r["a"])({},e),t.qcVisible=!0)})).catch((function(e){t.loading=!1,2===e.Code&&t.getList()}))},handleViewPrimaryQC:function(e){this.rowData=Object(r["a"])({},e),this.rowData.disabled=!0,this.rowData.qcType=1,this.qcVisible=!0},handleViewReviewQC:function(e){this.rowData=Object(r["a"])({},e),this.rowData.disabled=!0,this.rowData.qcType=2,this.qcVisible=!0},handleViewImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.rowData.TrialId,"&visitInfo=").concat(this.rowData.VisitName,"(").concat(this.rowData.VisitNum,")&subjectVisitId=").concat(this.rowData.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewStudyInfo:function(e){this.studyVisible=!0,this.rowData=Object(r["a"])({},e)},handleReset:function(){var e=this;this.searchData=v(),this.getList(),this.$nextTick((function(){e.$refs.qcCheckList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},getParticipantList:function(){var e=this;Object(o["Fc"])(this.trialId).then((function(t){e.participantOptions=t.Result}))},handleUrgentStatus:function(e){this.urgentForm=Object.assign({},Object(r["a"])({},e)),this.urgentVisible=!0},setUrgentStatus:function(){var e=this,t=this.urgentForm.IsUrgent?this.$t("trials:qcCheck:message:isUrgent"):this.$t("trials:qcCheck:message:isNotUrgent");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["Se"])(e.urgentForm.TrialId,e.urgentForm.Id,e.urgentForm.IsUrgent).then((function(t){e.loading=!1,t.IsSuccess&&(e.urgentVisible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))}))},handleChallengeState:function(e,t){this.$router.push({path:"/trials/trials-panel/visit/qc-question?trialId=".concat(this.trialId,"&trialCode=").concat(this.query.trialCode,"&researchProgramNo=").concat(this.query.researchProgramNo,"&subjectCode=").concat(e,"&challengeState=").concat(t)})},handleReplaceTask:function(e){var t=this,i=this.$t("trials:crcQuestion:message:replaceTask");i=i.replace("xxx",e.CurrentActionUserName),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["ve"])(e.TrialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("trials:crcQuestion:message:replaceTaskSuccessfully")),t.getList())})).catch((function(e){t.loading=!1,t.getList(),e.ErrorMessage&&t.$confirm(e.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}})}))})).catch((function(){}))},nextTask:function(){var e=this;this.loading=!0,Object(o["uc"])({trialId:this.trialId}).then((function(t){e.loading=!1,e.qcVisible=!1,t.Result?e.$nextTick((function(){e.rowData=Object(r["a"])({},t.Result),e.qcVisible=!0})):(e.$message.success(e.$t("trials:qcQuality:title:title3")),e.qcVisible=!1)})).catch((function(){e.loading=!1,e.qcVisible=!1}))}}},y=b,w=(i("5055"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},"5da4":function(e,t,i){"use strict";i("13aa")},"5db3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"mapbox",staticClass:"map-wrapper"})},a=[],r=(i("ac6a"),i("7f7f"),i("313e")),o=i.n(r),s=(i("c54d"),i("6331")),l={props:{area:{type:String,default:""},width:{type:String,default:""},heigt:{type:String,default:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart.resize()}))}},mounted:function(){this.initMap()},methods:{data:function(){return{myChart:""}},initMap:function(){var e={Shanghai:[121.4648,31.2891],Boston:[-71.050423,42.382983]},t=[[{name:"Shanghai",selected:!0,color:"#fce630"},{name:"Boston"}],[{name:"Boston",selected:!0,color:"#fce630"},{name:"Shanghai"}]],i=function(t){for(var i=[],n=0;n=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateXe&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e=0;o--)null==i[o]&&(delete a[t[o]],t.pop())}function p(e,t){var i=e.visual,a=[];n.isObject(i)?s(i,(function(e){a.push(e)})):null!=i&&a.push(i);var r={color:1,symbol:1};t||1!==a.length||r.hasOwnProperty(e.type)||(a[1]=a[0]),I(e,a)}function m(e){return{applyVisual:function(t,i,n){t=this.mapValueToVisual(t),n("color",e(i("color"),t))},_doMap:w([0,1])}}function g(e){var t=this.option.visual;return t[Math.round(o(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function b(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function y(){return this.option.visual[0]}function w(e){return{linear:function(t){return o(t,e,this.option.visual,!0)},category:b,piecewise:function(t,i){var n=_.call(this,i);return null==n&&(n=o(t,e,this.option.visual,!0)),n},fixed:y}}function _(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=u.findPieceIndex(e,i),a=i[n];if(a&&a.visual)return a.visual[this.type]}}function I(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,(function(e){return a.parse(e)}))),t}var x={linear:function(e){return o(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=u.findPieceIndex(e,t,!0);if(null!=i)return o(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:n.noop};function S(e,t,i){return e?t<=i:t'});o.a.add(s);t["default"]=s},"5fda7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}]},[i("template",{slot:"search-container"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary",icon:"el-icon-setting",size:"small"},on:{click:e.handleConfig}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:blindFlag"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:confirm"],expression:"['trials:trials-panel:setting:visit-plan:confirm']"}],attrs:{type:"primary",icon:"el-icon-check",disabled:!e.isConfirm,loading:e.confirmLoading,size:"small"},on:{click:function(t){return e.handleConfirm(!0)}}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:confirm"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:adjust-record"],expression:"['trials:trials-panel:setting:visit-plan:adjust-record']"}],attrs:{type:"primary",size:"small"},on:{click:function(t){e.adjustVisible=!0}}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:adjustRecord"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,height:"100",stripe:""}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:visitPlan:table:visitName"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLine",label:e.$t("trials:visitPlan:table:isBaseLine"),"show-overflow-tooltip":"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsBaseLine))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:e.$t("trials:visitPlan:table:viistNum"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitDay",label:e.$t("trials:visitPlan:table:viistDay"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),e.isHaveFirstGiveMedicineDate?i("el-table-column",{attrs:{prop:"VisitWindowLeft",label:e.$t("trials:visitPlan:table:window"),"show-overflow-tooltip":"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:0!==t.row.VisitWindowLeft||0!==t.row.VisitWindowRight,expression:"scope.row.VisitWindowLeft!==0 || scope.row.VisitWindowRight!==0"}]},[e._v("\n "+e._s(""+t.row.VisitWindowLeft+e.$t("trials:visitPlan:table:day")+" ~ "+t.row.VisitWindowRight+e.$t("trials:visitPlan:table:day"))+"\n ")])]}}],null,!1,2454222716)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"IsConfirmed",label:e.$t("trials:visitPlan:table:isConfirm"),"show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:visitPlan:table:isDeleted"),"show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:visitPlan:table:description"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:visitPlan:table:createTime"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:visit-plan:edit"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:edit"],expression:"['trials:trials-panel:setting:visit-plan:edit']"}],attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("common:button:edit")},on:{click:function(i){return e.handleEdit(t.row)}}})]}}],null,!1,63729573)}):e._e()],1)],1),e._v(" "),e.visit_model.visible?i("base-model",{attrs:{config:e.visit_model}},[i("template",{slot:"dialog-body"},[i("VisitPlanForm",{attrs:{row:e.row,"is-have-first-give-medicine-date":e.isHaveFirstGiveMedicineDate},on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],2):e._e(),e._v(" "),e.adjustVisible?i("el-dialog",{attrs:{visible:e.adjustVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:visitPlan:dialogTitle:record")},on:{"update:visible":function(t){e.adjustVisible=t}}},[i("VisitPlanAdjust")],1):e._e(),e._v(" "),e.config_model.visible?i("el-dialog",{attrs:{visible:e.config_model.visible,"close-on-click-modal":!1,width:"500px",title:e.config_model.title,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.config_model,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"blindNameForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:button:bsBlindFlag"),prop:"BlindBaseLineName"}},[i("el-input",{attrs:{disabled:e.isHaveGeneratedTask},model:{value:e.form.BlindBaseLineName,callback:function(t){e.$set(e.form,"BlindBaseLineName",t)},expression:"form.BlindBaseLineName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:button:visitBlindFlag"),prop:"BlindFollowUpPrefix"}},[i("el-input",{attrs:{disabled:e.isHaveGeneratedTask},model:{value:e.form.BlindFollowUpPrefix,callback:function(t){e.$set(e.form,"BlindFollowUpPrefix",t)},expression:"form.BlindFollowUpPrefix"}})],1)],1),e._v(" "),e.isHaveGeneratedTask?e._e():i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary"},on:{click:e.handleSaveBlindName}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=(i("28a5"),i("3e42")),o=i("6071"),s=i("7eeb"),l=i("781d"),c=i("4bba"),u={name:"VisitPlan",components:{BaseContainer:o["default"],BaseModel:s["default"],VisitPlanForm:l["default"],VisitPlanAdjust:c["default"]},data:function(){return{list:[],trialId:"",listLoading:!1,row:{},visitPlanConfirmed:!0,subjectHasAdded:!0,isHaveFirstGiveMedicineDate:!1,adjustVisible:!1,confirmLoading:!1,visit_model:{visible:!1,title:"",width:"600px"},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isConfirm:!1,form:{TrialId:"",BlindBaseLineName:"",BlindFollowUpPrefix:""},rules:{BlindBaseLineName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindFollowUpPrefix:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},config_model:{visible:!1,title:this.$t("trials:visitPlan:button:blindFlag")},formLoading:!1,isHaveGeneratedTask:!1}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["je"])(this.trialId).then((function(t){e.listLoading=!1,e.list=t.Result.VisitPlanList,e.visitPlanConfirmed=t.Result.VisitPlanConfirmed,e.isHaveFirstGiveMedicineDate=t.Result.IsHaveFirstGiveMedicineDate,e.isHaveGeneratedTask=t.Result.IsHaveGeneratedTask,e.form.BlindBaseLineName=t.Result.BlindBaseLineName,e.form.BlindFollowUpPrefix=t.Result.BlindFollowUpPrefix,e.isConfirm=t.Result.VisitPlanList.some((function(e){return!1===e.IsConfirmed}))})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.row={TrialId:this.trialId,Id:"",IsBaseLine:!1,BlindName:"",VisitWindowLeft:0,VisitWindowRight:0,Description:""},this.timer=(new Date).getTime(),0===this.list.length?(this.row.VisitName="Baseline",this.row.VisitNum=0,this.row.VisitDay=1):1===this.list.length?(this.row.VisitName="Visit "+(this.list[0].VisitNum+1),this.row.VisitNum=this.list[0].VisitNum+1):(console.log(1),this.row.VisitName=this.list[this.list.length-1].VisitName.split(" ")[0]+" "+(this.list[this.list.length-1].VisitNum+1),this.row.VisitNum=this.list[this.list.length-1].VisitNum+1,this.row.VisitDay=this.list[this.list.length-1].VisitDay-this.list[this.list.length-2].VisitDay+this.list[this.list.length-1].VisitDay),this.visit_model.title=this.$t("common:button:add"),this.visit_model.visible=!0},handleEdit:function(e){this.row=e,this.visit_model.title=this.$t("common:button:edit"),this.visit_model.visible=!0},handleConfirm:function(){var e=this,t=this.$t("trials:adjustRecord:message:confirm");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.confirmLoading=!0,Object(r["eb"])(e.trialId).then((function(t){e.confirmLoading=!1,t.IsSuccess&&e.getList()})).catch((function(){e.confirmLoading=!1}))})).catch((function(){}))},closeDialog:function(){this.visit_model.visible=!1},handleSaveBlindName:function(){var e=this;this.$refs.blindNameForm.validate((function(t){t&&(e.formLoading=!0,e.form.TrialId=e.trialId,Object(r["vf"])(e.form).then((function(t){e.formLoading=!1,e.config_model.visible=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.formLoading=!1})))}))},handleConfig:function(){this.config_model.visible=!0}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},6024:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"btn-wrapper"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",disabled:0==e.checkID.length},on:{click:e.downloadAttachement}},[e._v("Download")])],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,"span-method":e.objectSpanMethod,size:"small"},on:{"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"Type","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("33ba")),o={props:{attachmentList:{type:Array,default:function(){return[]}},doctorId:{type:String,default:""}},data:function(){return{tblList:[],checkID:[],spanArr:[],pos:0}},created:function(){this.tblList=this.filterListByType(this.attachmentList),this.getSpanArr(this.tblList)},methods:{filterListByType:function(e){var t=[];return e.length>0&&(e.forEach((function(e){"Diploma of the highest medical degree"===e.Type&&t.push(e)})),e.forEach((function(e){"Medical Qualification Certificate"===e.Type&&t.push(e)})),e.forEach((function(e){"Practice License"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(CT)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(MRI)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(NM)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(US)"===e.Type&&t.push(e)}))),t},downloadAttachement:function(){Object(r["m"])(this.doctorId,this.checkID).then((function(e){if(e.IsSuccess){var t=e.Result.FullFilePath;window.open(t)}}))},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},selectMore:function(e){for(var t=[],i=0;i0?1:0;return{rowspan:n,colspan:a}}if(3===i){var r=this.spanArr[t],o=r>0?1:0;return{rowspan:r,colspan:o}}if(4===i){var s=this.spanArr[t],l=s>0?1:0;return{rowspan:s,colspan:l}}},timeFormatter:function(e){return new Date(e.UpdateTime).format("yyyy-MM-dd hh:mm:ss")}}},s=o,l=(i("9538"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"604c":function(e,t,i){"use strict";i("3fa9")},6071:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container-fluid",class:[e.contentClass]},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"box"},[i("div",{staticClass:"box-body"},[i("div",{staticClass:"search",staticStyle:{"margin-bottom":"5px"}},[e._t("search-container")],2),e._v(" "),e._t("main-container"),e._v(" "),e._t("default")],2)])])],1)],1)},a=[],r={name:"BoxContent",props:{noTitle:{type:Boolean,default:!1}},computed:{contentClass:function(){return this.noTitle?"content-notitle":"content"}}},o=r,s=(i("f843"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"607a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"455"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:linkedRP:table:siteCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:linkedRP:table:subjectCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectVisitName",label:e.$t("trials:linkedRP:table:expirationVisit")}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:linkedRP:table:latestScanDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExpirationDate",label:e.$t("trials:linkedRP:table:expirationDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ExpirationDate?e.moment(t.row.ExpirationDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingPeriodName",label:e.$t("trials:linkedRP:table:readingName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"EffectOfTime",label:e.$t("trials:linkedRP:table:effectiveTime")}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=i("c1df"),l=i.n(s),c=function(){return{ReadingPeriodSetId:"",PageIndex:1,PageSize:20}},u={name:"RelationPRList",components:{Pagination:o["default"]},props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:c(),loading:!1,list:[],total:0,moment:l.a}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.searchData.ReadingPeriodSetId=this.data.Id,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.loading=!0,Object(r["Bc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"607d":function(e,t,i){var n=i("1fab");t.Dispatcher=n;var a=i("22d1"),r=i("65ed"),o=r.isCanvasEl,s=r.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function d(e,t,i,n){return i=i||{},n||!a.canvasSupported?f(e,t,i):a.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):f(e,t,i),i}function f(e,t,i){if(a.domSupported&&e.getBoundingClientRect){var n=t.clientX,r=t.clientY;if(o(e)){var l=e.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=r-l.top)}if(s(u,e,n,r))return i.zrX=u[0],void(i.zrY=u[1])}i.zrX=i.zrY=0}function h(e){return e||window.event}function p(e,t,i){if(t=h(t),null!=t.zrX)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var r="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];r&&d(e,r,t,i)}else d(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var o=t.button;return null==t.which&&void 0!==o&&c.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function m(e,t,i,n){l?e.addEventListener(t,i,n):e.attachEvent("on"+t,i)}function g(e,t,i,n){l?e.removeEventListener(t,i,n):e.detachEvent("on"+t,i)}var v=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function b(e){return 2===e.which||3===e.which}function y(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=h,t.normalizeEvent=p,t.addEventListener=m,t.removeEventListener=g,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=b,t.notLeftMouse=y},"60d2":function(e,t,i){},"60d25":function(e,t,i){"use strict";i("7ac7")},"60d7":function(e,t,i){var n=i("2306"),a=i("e887"),r=.3,o=a.extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,i,a){var r=this._dataGroup,o=e.getData(),f=this._data,h=e.coordinateSystem,p=h.dimensions,m=u(e);function g(e){var t=c(o,r,e,p,h);d(t,o,e,m)}function v(t,i){var r=f.getItemGraphicEl(i),s=l(o,t,p,h);o.setItemGraphicEl(t,r);var c=a&&!1===a.animation?null:e;n.updateProps(r,{shape:{points:s}},c,t),d(r,o,t,m)}function b(e){var t=f.getItemGraphicEl(e);r.remove(t)}if(o.diff(f).add(g).update(v).remove(b).execute(),!this._initialized){this._initialized=!0;var y=s(h,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(y)}this._data=o},incrementalPrepareRender:function(e,t,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,i){for(var n=t.getData(),a=t.coordinateSystem,r=a.dimensions,o=u(t),s=e.start;s0},refreshStats:function(){this.$refs["panelCount"].getData()}}},u=c,d=(i("383a4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},6179:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("4319"),o=i("80f0"),s=i("ec6f"),l=i("2b17"),c=l.defaultDimValueGetters,u=l.DefaultDataProvider,d=i("2f45"),f=d.summarizeDimensions,h=i("562e"),p=a.isObject,m="undefined",g=-1,v="e\0\0",b={float:typeof Float64Array===m?Array:Float64Array,int:typeof Int32Array===m?Array:Int32Array,ordinal:Array,number:Array,time:Array},y=typeof Uint32Array===m?Array:Uint32Array,w=typeof Int32Array===m?Array:Int32Array,_=typeof Uint16Array===m?Array:Uint16Array;function I(e){return e._rawCount>65535?y:_}function x(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function C(e,t){a.each(S.concat(t.__wrappedMethods||[]),(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e.__wrappedMethods=t.__wrappedMethods,a.each(T,(function(i){e[i]=a.clone(t[i])})),e._calculationInfo=a.extend(t._calculationInfo)}var k=function(e,t){e=e||["x","y"];for(var i={},n=[],r={},o=0;o=0?this._indices[e]:-1}function A(e,t){var i=e._idList[t];return null==i&&(i=O(e,e._idDimIdx,t)),null==i&&(i=v+t),i}function P(e){return a.isArray(e)||(e=[e]),e}function E(e,t){var i=e.dimensions,n=new k(a.map(i,e.getDimensionInfo,e),e.hostModel);C(n,e);for(var r=n._storage={},o=e._storage,s=0;s=0?(r[l]=M(o[l]),n._rawExtent[l]=F(),n._extent[l]=null):r[l]=o[l])}return n}function M(e){for(var t=new Array(e.length),i=0;iy[1]&&(y[1]=b)}t&&(this._nameList[h]=t[p])}this._rawCount=this._count=l,this._extent={},L(this)},R._initDataFromProvider=function(e,t){if(!(e>=t)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,d=this._rawExtent,f=this._nameRepeatCount={},h=this._chunkCount,p=0;pS[1]&&(S[1]=x)}if(!a.pure){var T=c[b];if(v&&null==T)if(null!=v.name)c[b]=T=v.name;else if(null!=i){var C=o[i],k=r[C][y];if(k){T=k[w];var R=l[C].ordinalMeta;R&&R.categories.length&&(T=R.categories[T])}}var O=null==v?null:v.id;null==O&&null!=T&&(f[T]=f[T]||0,O=T,f[T]>0&&(O+="__ec__"+f[T]),f[T]++),null!=O&&(u[b]=O)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent={},L(this)}},R.count=function(){return this._count},R.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,i=this._count;if(t===Array){a=new t(i);for(var n=0;n=0&&t=0&&ts&&(s=c)}return n=[o,s],this._extent[e]=n,n},R.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},R.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},R.getCalculationInfo=function(e){return this._calculationInfo[e]},R.setCalculationInfo=function(e,t){p(e)?a.extend(this._calculationInfo,e):this._calculationInfo[e]=t},R.getSum=function(e){var t=this._storage[e],i=0;if(t)for(var n=0,a=this.count();n=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(null!=i&&ie))return r;a=r-1}}return-1},R.indicesOfNearest=function(e,t,i){var n=this._storage,a=n[e],r=[];if(!a)return r;null==i&&(i=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(o=f,s=d,l=0),d===s&&(r[l++]=c))}return r.length=l,r},R.getRawIndex=$,R.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],i=0;i=c&&b<=u||isNaN(b))&&(o[s++]=f),f++}d=!0}else if(2===n){h=this._storage[l];var y=this._storage[t[1]],w=e[t[1]][0],_=e[t[1]][1];for(p=0;p=c&&b<=u||isNaN(b))&&(S>=w&&S<=_||isNaN(S))&&(o[s++]=f),f++}}d=!0}}if(!d)if(1===n)for(v=0;v=c&&b<=u||isNaN(b))&&(o[s++]=T)}else for(v=0;ve[k][1])&&(C=!1)}C&&(o[s++]=this.getRawIndex(v))}return sI[1]&&(I[1]=_)}}}return r},R.downSample=function(e,t,i,n){for(var a=E(this,[e]),r=a._storage,o=[],s=Math.floor(1/t),l=r[e],c=this.count(),u=this._chunkSize,d=a._rawExtent[e],f=new(I(this))(c),h=0,p=0;pc-p&&(s=c-p,o.length=s);for(var m=0;md[1]&&(d[1]=y),f[h++]=w}return a._count=h,a._indices=f,a.getRawIndex=N,a},R.getItemModel=function(e){var t=this.hostModel;return new r(this.getRawDataItem(e),t,t&&t.ecModel)},R.diff=function(e){var t=this;return new o(e?e.getIndices():[],this.getIndices(),(function(t){return A(e,t)}),(function(e){return A(t,e)}))},R.getVisual=function(e){var t=this._visual;return t&&t[e]},R.setVisual=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setVisual(i,e[i]);else this._visual=this._visual||{},this._visual[e]=t},R.setLayout=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setLayout(i,e[i]);else this._layout[e]=t},R.getLayout=function(e){return this._layout[e]},R.getItemLayout=function(e){return this._itemLayouts[e]},R.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?a.extend(this._itemLayouts[e]||{},t):t},R.clearItemLayouts=function(){this._itemLayouts.length=0},R.getItemVisual=function(e,t,i){var n=this._itemVisuals[e],a=n&&n[t];return null!=a||i?a:this.getVisual(t)},R.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{},a=this.hasItemVisual;if(this._itemVisuals[e]=n,p(t))for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r],a[r]=!0);else n[t]=i,a[t]=!0},R.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var j=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};R.setItemGraphicEl=function(e,t){var i=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=i&&i.seriesIndex,"group"===t.type&&t.traverse(j,t)),this._graphicEls[e]=t},R.getItemGraphicEl=function(e){return this._graphicEls[e]},R.eachItemGraphicEl=function(e,t){a.each(this._graphicEls,(function(i,n){i&&e&&e.call(t,i,n)}))},R.cloneShallow=function(e){if(!e){var t=a.map(this.dimensions,this.getDimensionInfo,this);e=new k(t,this.hostModel)}if(e._storage=this._storage,C(e,this),this._indices){var i=this._indices.constructor;e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?N:$,e},R.wrapMethod=function(e,t){var i=this[e];"function"===typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return t.apply(this,[e].concat(a.slice(arguments)))})},R.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],R.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=k;e.exports=V},"620b":function(e,t,i){var n=i("401b"),a=n.distance;function r(e,t,i,n,a,r,o){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*o+(-3*(t-i)-2*s-l)*r+s*a+t}function o(e,t){for(var i=e.length,n=[],o=0,s=1;si-2?i-1:h+1],d=e[h>i-3?i-1:h+2]);var g=p*p,v=p*g;n.push([r(c[0],m[0],u[0],d[0],p,g,v),r(c[1],m[1],u[1],d[1],p,g,v)])}return n}e.exports=o},6210:function(e,t,i){},"625e":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=".",o="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(r),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return a.extend(i.prototype,e),i.extend=this.extend,i.superCall=f,i.superApply=h,a.inherits(i,this),i.superClass=t,i}}var u=0;function d(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function f(e,t){var i=a.slice(arguments,2);return this.superClass.prototype[t].apply(e,i)}function h(e,t,i){return this.superClass.prototype[t].apply(e,i)}function p(e,t){t=t||{};var i={};function n(e){var t=i[e.main];return t&&t[o]||(t=i[e.main]={},t[o]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==o){var a=n(t);a[t.sub]=e}}else i[t.main]=e;return e},e.getClass=function(e,t,n){var a=i[e];if(a&&a[o]&&(a=t?a[t]:null),n&&!a)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return a},e.getClassesByMainType=function(e){e=s(e);var t=[],n=i[e.main];return n&&n[o]?a.each(n,(function(e,i){i!==o&&t.push(e)})):t.push(n),t},e.hasClass=function(e){return e=s(e),!!i[e.main]},e.getAllClassMainTypes=function(){var e=[];return a.each(i,(function(t,i){e.push(i)})),e},e.hasSubTypes=function(e){e=s(e);var t=i[e.main];return t&&t[o]},e.parseClassType=s,t.registerWhenExtend){var r=e.extend;r&&(e.extend=function(t){var i=r.call(this,t);return e.registerClass(i,t.type)})}return e}function m(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=d,t.enableClassManagement=p,t.setReadOnly=m},"627c":function(e,t,i){var n=i("6d8b"),a=i("3eba"),r=i("2306"),o=i("f934"),s=o.getLayoutRect,l=i("eda2"),c=l.windowOpen;a.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),a.extendComponentView({type:"title",render:function(e,t,i){if(this.group.removeAll(),e.get("show")){var a=this.group,o=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),d=n.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),f=new r.Text({style:r.setTextStyle({},o,{text:e.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),p=e.get("subtext"),m=new r.Text({style:r.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:h.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),v=e.get("sublink"),b=e.get("triggerEvent",!0);f.silent=!g&&!b,m.silent=!v&&!b,g&&f.on("click",(function(){c(g,"_"+e.get("target"))})),v&&m.on("click",(function(){c(v,"_"+e.get("subtarget"))})),f.eventData=m.eventData=b?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),p&&a.add(m);var y=a.getBoundingRect(),w=e.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=s(w,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?_.x+=_.width:"center"===u&&(_.x+=_.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?_.y+=_.height:"middle"===d&&(_.y+=_.height/2),d=d||"top"),a.attr("position",[_.x,_.y]);var I={textAlign:u,textVerticalAlign:d};f.setStyle(I),m.setStyle(I),y=a.getBoundingRect();var x=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var T=new r.Rect({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}}})},6283:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"reading_rank",staticClass:"reading-rank"})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c=5,u={props:{area:{type:String,default:""}},data:function(){return{myChart:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart&&e.myChart.resize()}))}},mounted:function(){this.getData()},methods:{initChart:function(e,t,i,n,a){var r={title:{text:"Workload of Top 5 Reviewers",x:"4%",top:5,textStyle:{color:"#fff",fontSize:Object(l["a"])(.16)}},tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#999"}}},grid:{top:"33%",left:80,bottom:25,textStyle:{color:"#999"}},legend:{x:"4%",top:"13%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},data:["TP","AD","GL","Total"]},calculable:!0,xAxis:[{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1)",type:"solid"}},axisTick:{show:!1},axisLabel:{interval:0,show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},data:e}],yAxis:[{type:"value",axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1\t)",type:"solid"}},splitLine:{lineStyle:{color:"rgba(255,255,255,.1)"}}}],series:[{name:"TP",type:"bar",stack:"Total",barMaxWidth:Object(l["a"])(.4),itemStyle:{normal:{color:"#2fA2FF",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:t},{name:"AD",type:"bar",stack:"Total",itemStyle:{normal:{color:"#27d08a",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:i},{name:"GL",type:"bar",stack:"Total",itemStyle:{normal:{color:"#2f89cf",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:n},{name:"Total",type:"line",smooth:!0,symbolSize:10,symbol:"circle",itemStyle:{normal:{color:"rgba(252,230,48,1)",label:{show:!0,position:"top",textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},formatter:function(e){return e.value>0?e.value:""}}}},data:a}]};this.$refs.reading_rank&&(this.myChart=o.a.init(this.$refs.reading_rank),this.myChart.setOption(r))},getData:function(){var e=this;Object(s["e"])(c).then((function(t){if(t.IsSuccess){if(t.Result){for(var i=[],n=[],a=[],r=[],o=[],s=0;s1)for(var n=0;n0?e.fileList=e.formatterFileList(t.Result):e.fileList=[])}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={name:e.FileName,path:e.Path,fullPath:e.FullPath,id:e.Id,type:e.Type};t.push(i)})),t},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,"GCP",this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({name:i,path:e.Result.FilePath,fullPath:e.Result.FullFilePath,type:"GCP"}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.path,a=t.fullPath,o=t.type,s=[{DoctorId:this.doctorId,Type:o,Path:n,FullPath:a,FileName:i}];Object(r["c"])(s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].id=t.Result[0].Id,e.GCPID=t.Result[0].Id,e.$message.success("Uploaded successfully"))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,["pdf"]);if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.id?Object(r["a"])(e.id,e.path).then((function(e){e.IsSuccess&&(i.fileList=[],i.GCPID="",i.$message({message:"Deleted successfully!",type:"success"}))})):this.fileList=[])},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.indexOf(i)>-1}}},l=s,c=(i("b381"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},6437:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"adjustmentForm",staticClass:"demo-ruleForm adjustmentForm",attrs:{size:"small",model:e.adjustmentForm,"label-width":"120px",rules:e.rules}},[i("el-form-item",{attrs:{label:"Reviewer",prop:"ReviewerId"}},[i("el-select",{attrs:{filterable:"",placeholder:"Please select"},model:{value:e.adjustmentForm.ReviewerId,callback:function(t){e.$set(e.adjustmentForm,"ReviewerId",t)},expression:"adjustmentForm.ReviewerId"}},e._l(e.reviewerList,(function(t){return i("el-option",{key:t.Code,attrs:{label:t.info,value:t.Id}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.info))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.ChineseName))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjust Month",prop:"YearMonth"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"Please select","value-format":"yyyy-MM",format:"yyyy-MM",disabled:""},model:{value:e.adjustmentForm.YearMonth,callback:function(t){e.$set(e.adjustmentForm,"YearMonth",t)},expression:"adjustmentForm.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Amount($)",prop:"AdjustPaymentUSD"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.adjustmentForm.AdjustPaymentUSD,callback:function(t){e.$set(e.adjustmentForm,"AdjustPaymentUSD",t)},expression:"adjustmentForm.AdjustPaymentUSD"}}),e._v(" "),e.adjustmentForm.AdjustPaymentUSD&&e.exchangeRate?i("span",{staticStyle:{"font-size":"12px",color:"#00d1b2","margin-right":"10px"}},[e._v("Tips: Exchange Rate: "+e._s(e.exchangeRate))]):e._e(),e._v(" "),e.adjustmentForm.AdjustPaymentUSD&&e.exchangeRate?i("span",{staticStyle:{"font-size":"12px",color:"#00d1b2"}},[e._v("Amount(¥): "+e._s((e.adjustmentForm.AdjustPaymentUSD*e.exchangeRate).toFixed(2)))]):e.exchangeRate?e._e():i("span",{staticStyle:{"font-size":"12px",color:"#f44336"}},[e._v("Exchange rate is not set.")])],1),e._v(" "),i("el-form-item",{attrs:{label:"Note",prop:"Note"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4}},model:{value:e.adjustmentForm.Note,callback:function(t){e.$set(e.adjustmentForm,"Note",t)},expression:"adjustmentForm.Note"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("db72"),o=(i("c5f6"),i("4360")),s=i("2f62"),l=i("6b95"),c={name:"AdjustmentForm",props:{row:{type:Object,default:function(){return{}}},date:{type:String,default:""},exchangeRate:{type:Number,default:0}},data:function(){return{adjustmentForm:{Id:"",ReviewerId:"",YearMonth:"",AdjustPaymentUSD:"",Note:""},rules:{ReviewerId:[{required:!0,message:"Please select",trigger:["blur","change"]}],AdjustPaymentUSD:[{required:!0,message:"Please specify",trigger:"blur"}],Note:[{max:500,message:"The maximum length is 500"}]},btnDisabled:!1}},computed:Object(r["a"])({},Object(s["b"])(["reviewerList"])),mounted:function(){o["a"].dispatch("financials/getReviewer"),this.adjustmentForm.YearMonth=this.date,this.row.Id&&(this.adjustmentForm.Id=this.row.Id,this.adjustmentForm.ReviewerId=this.row.ReviewerId,this.adjustmentForm.AdjustPaymentUSD=this.row.AdjustPaymentUSD,this.adjustmentForm.Note=this.row.Note)},methods:{handleSave:function(){var e=this;this.$refs.adjustmentForm.validate((function(t){t&&(0===e.adjustmentForm.AdjustPaymentUSD?e.$message.error("Amount cannot be 0!"):(e.btnDisabled=!0,Object(l["c"])(e.adjustmentForm).then((function(t){t.IsSuccess&&(e.btnDisabled=!1,e.$message.success("Saved successfully"),e.$emit("closeDialog"),e.$emit("getList"))})).catch((function(){e.btnDisabled=!1}))))}))},handleCancel:function(){this.$emit("closeDialog")}}},u=c,d=(i("3c0de"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"643c":function(e,t,i){"use strict";i("19ec")},6452:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("resume-info")],1)},a=[],r=i("e2f5"),o={components:{ResumeInfo:r["default"]}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},6469:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReadingForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:globalReading:title:globalAssessTypes")}},[i("div",{staticStyle:{width:"700px",display:"flex"}},[i("el-table",{ref:"multipleTable",staticStyle:{width:"600px"},attrs:{"min-height":"100",data:e.form.GlobalAssessTypes,stripe:""}},[i("el-table-column",{attrs:{prop:"ValueCN",label:e.$t("trials:readingUnit:globalReading:title:valueCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:e.$t("trials:readingUnit:globalReading:title:valueEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:e.$t("trials:readingUnit:globalReading:title:isBaseLineUse"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:t.row.IsBaseLineUse,callback:function(i){e.$set(t.row,"IsBaseLineUse",i)},expression:"scope.row.IsBaseLineUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:e.$t("trials:readingUnit:globalReading:title:isFollowVisitUse"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:t.row.IsFollowVisitUse,callback:function(i){e.$set(t.row,"IsFollowVisitUse",i)},expression:"scope.row.IsFollowVisitUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}])})],1),e._v(" "),i("div",{staticStyle:{display:"flex","align-items":"center","padding-left":"10px"}},[i("el-button",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"]),icon:"el-icon-plus",circle:""},on:{click:e.handleSetCriterion}})],1)],1)]),e._v(" "),!e.isSign&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleTypeSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d.GlobalAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:e.$t("trials:readingUnit:globalReading:title:valueCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:e.$t("trials:readingUnit:globalReading:title:valueEN"),"show-overflow-tooltip":""}})],1)],1):e._e()],1)},a=[],r=(i("6b54"),i("456d"),i("7514"),i("ac6a"),i("3e42")),o={name:"GlobalReading",props:{trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){return{form:{TrialId:"",GlobalAssessTypes:[],IsSystemCriterion:!0},rules:{GlobalAssessTypes:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},loading:!1,config:{visible:!1,title:this.$t("trials:readingUnit:GlobalReading")},isSign:!0,selectedList:[]}},mounted:function(){this.initForm()},methods:{handleSelectionChange:function(e){this.selectedList=e},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSetCriterion:function(){var e=this;this.config.visible=!0,this.$nextTick((function(){var t=e.$d.GlobalAssessType.filter((function(t){return!!e.form.GlobalAssessTypes.find((function(e){return e.DictionaryId===t.id}))}));e.toggleSelection(t)}))},handleTypeSave:function(){var e=this;this.form.GlobalAssessTypes=this.selectedList.map((function(t){var i=e.form.GlobalAssessTypes.find((function(e){return e.DictionaryId===t.id}));return i||{DictionaryId:t.id,ValueCN:t.raw.ValueCN,Value:t.raw.Value,IsBaseLineUse:!1,IsFollowVisitUse:!1}})),this.config.visible=!1},initForm:function(){var e=this;this.loading=!0,Object(r["zd"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){if(Object.keys(t.Result).length>0){for(var i in t.Result)e.form.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isSign=t.Result.IsSign}e.form.GlobalAssessTypeIdsStr=e.form.GlobalAssessTypeIds.map((function(t){return e.$fd("GlobalAssessType",t,"id")})).toString(),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["globalReadingForm"].validate((function(n){if(n){t.loading=!0,t.form.TrialId=t.$route.query.trialId,t.form.TrialReadingCriterionId=t.trialReadingCriterionId;var a={GlobalAssessList:t.form.GlobalAssessTypes,TrialReadingCriterionId:t.trialReadingCriterionId,TrialId:t.$route.query.trialId};Object(r["Le"])(a).then((function(n){t.loading=!1,n.IsSuccess&&e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,i(!1)}))}else i(!1)}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"35fe9fa7",null);t["default"]=c.exports},6483:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"comment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.statusList,size:"small"}},[i("el-form-item",{attrs:{label:"Comment:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.statusList.AdminComment,callback:function(t){e.$set(e.statusList,"AdminComment",t)},expression:"statusList.AdminComment"}})],1)],1)],1)},a=[],r={props:{statusList:{type:Object,default:function(){return{}}}}},o=r,s=(i("ac7e"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"64f9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"image-viewer-wrapper"},[e.previewVisible?i("NoneDicomsCanvas",{attrs:{"on-switch":function(t){e.selected(t)},"initial-index":e.previewImage.index,"url-list":e.previewImage.imgList,"study-code":e.previewImage.studyCode,"body-part":e.previewImage.bodyPart,modality:e.previewImage.modality,"study-id":e.previewImage.studyId,"reading-task-state":e.readingTaskState}}):e._e()],1),e._v(" "),i("div",{staticClass:"thumbnail-wrapper",staticStyle:{"z-index":"999","background-color":"#fff"}},[i("div",{},[i("div",{staticClass:"img-wrapper"},[i("el-button",{staticClass:"left to",attrs:{icon:"el-icon-d-arrow-left",plain:"",disabled:e.disabledPrev},on:{click:e.toRight}}),e._v(" "),i("div",{ref:"imagesWrapper",staticClass:"images"},[e.noData?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.noData,expression:"!noData"}],staticClass:"items",style:e.itemsStyle},e._l(e.previewImage.imgList,(function(t,n){return i("div",{key:n,staticClass:"item-img",class:{"is-active":n===e.currentIndex},style:e.imgSize,on:{click:function(t){return e.selected(n)}}},[i("img",{attrs:{title:t.FileName,src:"/api/"+t.PreviewPath}}),e._v(" "),t.FileName?i("p",{staticClass:"item-date"},[e._v("\n "+e._s(""+(n+1))+"\n ")]):e._e()])})),0)]),e._v(" "),i("el-button",{staticClass:"right to",attrs:{icon:"el-icon-d-arrow-right",disabled:e.disabledNext,plain:""},on:{click:e.Left}})],1)])])])},a=[],r=(i("a481"),i("c5f6"),i("9843")),o={name:"NoneDicomsViewer",components:{NoneDicomsCanvas:r["default"]},props:{readingTaskState:{type:Number,default:2},imgSize:{type:Object,default:function(){return{width:"120px",height:"120px"}}},value:{type:Number,default:null},previewImage:{type:Object,default:function(){return{imgList:[],index:0,infinite:!0,studyCode:"",modality:"",bodyPart:"",studyId:""}}}},data:function(){return{currentIndex:0,previewVisible:!0,translateX:0,pageSize:0,urlList:[]}},computed:{itemsStyle:function(){return{transform:"translateX(".concat(-this.translateX,"px)")}},itemWidth:function(){return parseInt(this.imgSize.width.replace("px",""))+8},disabledPrev:function(){return this.translateX<=0},disabledNext:function(){return this.translateX>=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateXe&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e-1},on:{click:function(i){return e.handleDeleteClinicalData(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}],null,!1,147237814)}):e._e()],1)],1),e._v(" "),e.isEdit?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.clinicalDataVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmClinicalData}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{"trial-id":e.form.TrialId,data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getClinicalDataList}})],1):e._e()],1)},a=[],r=(i("55dd"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("0662"),c=i("179b"),u=i("333d"),d=i("f0e0"),f=i("3fa8"),h=i("7a9e"),p=function(){return{PageIndex:1,PageSize:20,CriterionName:""}},m={name:"ProcessConfig",components:{SignForm:c["default"],Pagination:u["default"],CriterionConfig:f["default"],ClinicalDataForm:d["default"]},data:function(){return{form:{TrialId:"",ClinicalInformationTransmissionEnum:1,ClinicalDataSetNames:[],ClinicalDataTrialSetIds:[],ClinicalDataSetNamesStr:"",QCProcessEnum:null,IsImageConsistencyVerification:null,ReadingMode:null,ReadingType:null,IsReadingTaskViewInOrder:null,IsGlobalReading:null,IsArbitrationReading:null,IsClinicalReading:null,IsTrialProcessConfirmed:!1,TrialCriterionNamesStr:"",TrialCriterionIds:[],TrialCriterionNames:[]},rules:{ClinicalDataSetNamesStr:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],ClinicalInformationTransmissionEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],QCProcessEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsImageConsistencyVerification:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReadingMode:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],TrialCriterionNamesStr:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signText:"",signCode:"",currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1,TrialStatusStr:"",criterionListVisible:!1,criterionList:[],criterionListTotal:0,criterionSearchForm:p(),listLoading:!1,selectedCriterions:[],selectCriterionIds:[],criterionFormDg:{visible:!1,title:""},criterionForm:{Id:"",CriterionName:""},criterionQSVisible:!1,currentCriterionRow:{},clinicalDataList:[],clinicalDataVisible:!1,addOrEditCD:{visible:!1,title:""},currentRow:{},selectClinicalDataArr:[],selectedCD:[]}},methods:{handleSave:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.loading=!0,Object(s["ab"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=h["default"].processSignature.ProcessConfigConfirmation;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=h["default"].processSignature.ProcessConfigUpdates;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.btnLoading=!0,Object(s["ab"])(this.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(l["b"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialProcessConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.confirmVisible=!1,t.updateVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:processCfg:form:readingMode"),NewVal:this.$fd("ReadingMode",this.form.ReadingMode),OldVal:this.$fd("ReadingMode",this.initialForm.ReadingMode)},{Name:this.$t("trials:processCfg:form:criterion"),NewVal:this.form.TrialCriterionNames.join(", "),OldVal:this.initialForm.TrialCriterionNames.join(", ")},{Name:"临床数据采集",NewVal:this.$fd("ClinicalInformationTransmissionEnum",this.form.ClinicalInformationTransmissionEnum),OldVal:this.$fd("ClinicalInformationTransmissionEnum",this.initialForm.ClinicalInformationTransmissionEnum)},{Name:"临床数据配置",NewVal:this.form.ClinicalDataSetNames.join(", "),OldVal:this.initialForm.ClinicalDataSetNames.join(", ")},{Name:this.$t("trials:processCfg:form:qcProcess"),NewVal:this.$fd("QCProcessEnum",this.form.QCProcessEnum),OldVal:this.$fd("QCProcessEnum",this.initialForm.QCProcessEnum)},{Name:this.$t("trials:processCfg:form:conProcess"),NewVal:this.$fd("YesOrNo",this.form.IsImageConsistencyVerification),OldVal:this.$fd("YesOrNo",this.initialForm.IsImageConsistencyVerification)}]},handleReadingTypeChange:function(e){1===e?(this.form.IsArbitrationReading=!1,this.form.ArbitrationRule=3):this.form.IsArbitrationReading=2===e},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in this.loading=!0,this.form)t.hasOwnProperty(i)&&(this.form[i]=t[i]);this.form.TrialCriterionNamesStr=this.form.TrialCriterionNames.join(", "),this.form.ClinicalDataSetNamesStr=this.form.ClinicalDataSetNames.join(", "),this.initialForm=Object(o["a"])({},this.form),this.TrialStatusStr=t.TrialStatusStr,this.getCriterionList(),this.form.IsTrialProcessConfirmed||(this.isEdit=!0),this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getClinicalDataList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){e.listLoading=!0,Object(s["yd"])({trialId:e.form.TrialId}).then((function(n){e.clinicalDataList=n.Result,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.clinicalDataList.findIndex((function(i){return i.Id===e.form.ClinicalDataTrialSetIds[t]})),n>-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i-1&&t.$refs["clinicalData"].toggleRowSelection(t.clinicalDataList[n],!0)},i=0;i-1&&t.selectedCD.splice(n,1);var a=t.selectClinicalDataArr.indexOf(e.Id);a>-1&&t.selectClinicalDataArr.splice(a,1);var r=t.form.ClinicalDataTrialSetIds.indexOf(e.Id);r>-1&&t.form.ClinicalDataTrialSetIds.splice(r,1);var o=t.form.ClinicalDataSetNames.indexOf(e.ClinicalDataSetName);o>-1&&(t.form.ClinicalDataSetNames.splice(o,1),t.form.ClinicalDataSetNamesStr=t.form.ClinicalDataSetNames.join(", ")),t.getClinicalDataList(!0),t.$message.success(t.$t("common:message:deletedSuccessfully"))}})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.listLoading=!0,Object(s["a"])(e.Id).then((function(e){t.listLoading=!1})).catch((function(){t.listLoading=!1}))},handleSelectable:function(e){return!!this.isEdit},getCriterionList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.listLoading=!0,this.criterionSearchForm.TrialId=this.form.TrialId,Object(s["Wc"])(this.criterionSearchForm).then((function(i){e.criterionList=i.Result.CurrentPageData,e.criterionListTotal=i.Result.TotalCount,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.criterionList.findIndex((function(i){return i.Id===e.form.TrialCriterionIds[t]})),n>-1&&e.$refs["criterionList"].toggleRowSelection(e.criterionList[n],!0)},i=0;i-1&&e.$refs["criterionList"].toggleRowSelection(e.criterionList[n],!0)},i=0;i-1&&t.selectedCriterions.splice(n,1);var a=t.selectCriterionIds.indexOf(e.Id);a>-1&&t.selectCriterionIds.splice(a,1);var r=t.form.TrialCriterionIds.indexOf(e.Id);r>-1&&t.form.TrialCriterionIds.splice(r,1);var o=t.form.TrialCriterionNames.indexOf(e.CriterionName);o>-1&&(t.form.TrialCriterionNames.splice(o,1),t.form.TrialCriterionNamesStr=t.form.TrialCriterionNames.join(", ")),t.getCriterionList(!0),t.$message.success(t.$t("common:message:deletedSuccessfully"))}})).catch((function(){t.listLoading=!1}))}))},handleCancelSave:function(){this.$refs["criterionForm"].resetFields(),this.criterionFormDg.visible=!1},handleSaveCriterion:function(){var e=this;this.$refs["criterionForm"].validate((function(t){t&&(e.listLoading=!0,e.criterionForm.TrialId=e.form.TrialId,Object(s["u"])(e.criterionForm).then((function(t){e.listLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.criterionFormDg.visible=!1,e.getCriterionList()})).catch((function(){e.listLoading=!1})))}))},handleConfirmCriterion:function(){this.form.TrialCriterionNames=this.selectedCriterions,this.form.TrialCriterionIds=this.selectCriterionIds,this.form.TrialCriterionNamesStr=this.form.TrialCriterionNames.join(", "),this.criterionListVisible=!1,console.log(this.form)},changeCriterionStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:processCfg:message:update"),t.IsCompleteConfig=!1):(n=this.$t("trials:processCfg:message:update"),t.IsCompleteConfig=!0),this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){i.listLoading=!0;var e={id:t.Id,isCompleteConfig:!t.IsCompleteConfig};Object(s["Xe"])(e).then((function(e){i.listLoading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getCriterionList())})).catch((function(){i.listLoading=!1}))})).catch((function(){}))},handleIsReadingTaskViewInOrderChange:function(e){!1===e&&(this.form.IsGlobalReading=!1,this.form.IsClinicalReading=!1)}}},g=m,v=(i("fc88"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"65ed":function(e,t,i){var n=i("22d1"),a=i("84ec"),r=a.buildTransformer,o="___zrEVENTSAVED",s=[];function l(e,t,i,n,a){return c(s,t,n,a,!0)&&c(e,i,s[0],s[1])}function c(e,t,i,a,r){if(t.getBoundingClientRect&&n.domSupported&&!f(t)){var s=t[o]||(t[o]={}),l=u(t,s),c=d(l,s,r);if(c)return c(e,i,a),!0}return!1}function u(e,t){var i=t.markers;if(i)return i;i=t.markers=[];for(var n=["left","right"],a=["top","bottom"],r=0;r<4;r++){var o=document.createElement("div"),s=o.style,l=r%2,c=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[c]+":0",n[1-l]+":auto",a[1-c]+":auto",""].join("!important;"),e.appendChild(o),i.push(o)}return i}function d(e,t,i){for(var n=i?"invTrans":"trans",a=t[n],o=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var d=e[u].getBoundingClientRect(),f=2*u,h=d.left,p=d.top;l.push(h,p),s=s&&o&&h===o[f]&&p===o[f+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&a?a:(t.srcCoords=l,t[n]=i?r(c,l):r(l,c))}function f(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=f},6610:function(e,t,i){},6613:function(e,t,i){var n=i("5a43");function a(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},6619:function(e,t,i){},6634:function(e,t,i){"use strict";i("9214")},6679:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("cd33"),o=a.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,i,n){this.axisPointerClass&&r.fixValue(e),o.superApply(this,"render",arguments),s(this,e,t,i,n,!0)},updateAxisPointer:function(e,t,i,n,a){s(this,e,t,i,n,!1)},remove:function(e,t){var i=this._axisPointer;i&&i.remove(t),o.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),o.superApply(this,"dispose",arguments)}});function s(e,t,i,n,a,s){var c=o.getAxisPointerClass(e.axisPointerClass);if(c){var u=r.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,n,s):l(e,n)}}function l(e,t,i){var n=e._axisPointer;n&&n.dispose(t,i),e._axisPointer=null}var c=[];o.registerAxisPointerClass=function(e,t){c[e]=t},o.getAxisPointerClass=function(e){return e&&c[e]};var u=o;e.exports=u},"667d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准: ",prop:"CriterionTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.CriterionTypeEnum,callback:function(t){e.$set(e.form,"CriterionTypeEnum",t)},expression:"form.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,CriterionTypeEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],CriterionTypeEnum:[{required:!0,message:"Please select",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("d01d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},6680:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("div"),e._v(" "),i("div",[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 配置\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],staticStyle:{width:"100%"},attrs:{height:"100",data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}})],1),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleSave}},[e._v("\n 保存\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d[e.parentCode],stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Description",label:"描述","show-overflow-tooltip":""}})],1)],1)]):e._e()],1)},a=[],r=(i("7514"),i("ac6a"),i("e56e")),o={props:{criterionId:{type:String,required:!0},parentCode:{type:String,required:!0}},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"标准字典值"},selectedList:[]}},mounted:function(){this.getList(),console.log(this.$d[this.parentCode])},methods:{toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(r["T"])({CriterionId:this.criterionId,ParentCode:this.parentCode}).then((function(t){e.loading=!1,e.list=t.Result}))},handleAdd:function(){var e=this;this.config.visible=!0,this.$nextTick((function(){var t=e.$d[e.parentCode].filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))}));e.toggleSelection(t)}))},handleSave:function(){var e=this;this.loading=!0;var t={CriterionId:this.criterionId,ParentCode:this.parentCode,DictionaryIds:this.selectedList.map((function(e){return e.id})),isSystemCriterion:!0};Object(r["Ib"])(t).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList(),e.$emit("getList")})).catch((function(){}))},handleDelete:function(){}}},s=o,l=(i("fcf0"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"13df9284",null);t["default"]=c.exports},6697:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small"}},[i("div",[1===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 阅片人\n "),1===e.SubjectAssignSelectList.length?i("el-select",{attrs:{clearable:"",size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R0,callback:function(t){e.$set(e.form,"R0",t)},expression:"form.R0"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1):i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 0===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R0,callback:function(t){e.$set(e.form,"R0",t)},expression:"form.R0"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 0===e.ArmEnum}))?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 阅片人\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 1===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R1,callback:function(t){e.$set(e.form,"R1",t)},expression:"form.R1"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 1===e.ArmEnum}))?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:r2"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 2===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R2,callback:function(t){e.$set(e.form,"R2",t)},expression:"form.R2"}},e._l(e.DoctorSelectList.R2,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 2===e.ArmEnum}))?i("el-option",{key:"R2"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:ad"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 3===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.AD,callback:function(t){e.$set(e.form,"AD",t)},expression:"form.AD"}},e._l(e.DoctorSelectList.AD,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 3===e.ArmEnum}))?i("el-option",{key:"AD"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:o1"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 4===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.O1,callback:function(t){e.$set(e.form,"O1",t)},expression:"form.O1"}},e._l(e.DoctorSelectList.O1,(function(t){return e.form.AD!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 4===e.ArmEnum}))?i("el-option",{key:"O1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e()]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7514"),i("5df3"),i("ac6a"),i("456d"),i("958c")),o={name:"ManualAllocationTable",props:{TrialReadingCriterionId:{type:String,default:function(){return[]}},data:{type:Object,default:function(){return{}}},SubjectAssignSelectList:{type:Array,default:function(){return[]}}},data:function(){return{TrialId:this.$route.query.trialId,form:{R0:null,R1:null,R2:null,AD:null,O1:null},DoctorSelectList:{R1:[],R2:[],AD:[],O1:[]},list:[],loading:!1,btnLoading:!1,q:[],OtherInfo:null,readingType:null,isShowInfo:{}}},mounted:function(){var e=this;this.TrialId=this.$route.query.trialId,this.getDoctorSubjectStat();var t=[];t.push(this.getDoctorSelectList(1)),t.push(this.getDoctorSelectList(2)),t.push(this.getDoctorSelectList(4)),t.push(this.getDoctorSelectList(5));var i=[];Object.keys(this.data).length&&this.data.SubjectId||this.SubjectAssignSelectList.forEach((function(t){t.NowDoctorUserList.forEach((function(e){i.push(e)})),e.q=i})),console.log(i),Promise.all(t).then((function(){if(Object.keys(e.data).length&&e.data.SubjectId)e.form.R0=e.findDoctorUser(e.data.NowDoctorUserList,0).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,0).DoctorUser.UserId:null,e.form.R1=e.findDoctorUser(e.data.NowDoctorUserList,1).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,1).DoctorUser.UserId:null,e.form.R2=e.findDoctorUser(e.data.NowDoctorUserList,2).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,2).DoctorUser.UserId:null,e.form.AD=e.findDoctorUser(e.data.NowDoctorUserList,3).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,3).DoctorUser.UserId:null,e.form.O1=e.findDoctorUser(e.data.NowDoctorUserList,4).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,4).DoctorUser.UserId:null,e.data.NowDoctorUserList.forEach((function(e){i.push(e)})),e.q=i;else{var t={R0:[],R1:[],R2:[],AD:[],O1:[]};e.SubjectAssignSelectList.forEach((function(e){e.NowDoctorUserList.forEach((function(e){0===e.ArmEnum&&t.R0.push(e),1===e.ArmEnum&&t.R1.push(e),2===e.ArmEnum&&t.R2.push(e),3===e.ArmEnum&&t.AD.push(e),4===e.ArmEnum&&t.O1.push(e)}))}));var n={};for(var a in t){var r=t[a];n[a]=e.checkArrayObjectValueRepeat(r,"DoctorUserId")}e.isShowInfo=n,n.R0||(e.form.R0=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,0).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,0).DoctorUser.UserId:null),n.R1||(e.form.R1=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,1).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,1).DoctorUser.UserId:null),n.R2||(e.form.R2=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,2).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,2).DoctorUser.UserId:null),n.AD||(e.form.AD=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,3).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,3).DoctorUser.UserId:null),n.O1||(e.form.O1=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,4).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,4).DoctorUser.UserId:null)}}))},methods:{checkArrayObjectValueRepeat:function(e,t){console.log(e);var i=null,n=!1;return console.log(this.SubjectAssignSelectList.length),1!==this.SubjectAssignSelectList.length&&(e.forEach((function(a,r){0===r&&(i=a[t]),a[t]!==i&&(n=!0),1===e.length&&(n=!0)})),n)},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},getDoctorSelectList:function(e){var t=this;return new Promise((function(i){Object(r["x"])({TrialId:t.$route.query.trialId,ReadingCategory:e,TrialReadingCriterionId:t.TrialReadingCriterionId}).then((function(n){switch(e){case 1:t.$set(t.DoctorSelectList,"R1",n.Result);break;case 2:t.$set(t.DoctorSelectList,"R2",n.Result);break;case 4:t.$set(t.DoctorSelectList,"AD",n.Result);break;case 5:t.$set(t.DoctorSelectList,"O1",n.Result);break}i()}))}))},getDoctorSubjectStat:function(){var e=this;this.loading=!0,Object(r["z"])(this.TrialId,this.TrialReadingCriterionId).then((function(t){e.readingType=t.OtherInfo.ReadingType,e.list=t.Result,e.OtherInfo=t.OtherInfo,e.loading=!1})).catch((function(){e.loading=!1}))},save:function(){var e=this,t=[];console.log(this.form),this.form.R0&&t.push({ArmEnum:0,DoctorUserId:this.form.R0}),this.form.R1&&t.push({ArmEnum:1,DoctorUserId:this.form.R1}),this.form.R2&&t.push({ArmEnum:2,DoctorUserId:this.form.R2}),this.form.AD&&t.push({ArmEnum:3,DoctorUserId:this.form.AD}),this.form.O1&&t.push({ArmEnum:4,DoctorUserId:this.form.O1});var i={TrialId:this.TrialId,TrialReadingCriterionId:this.TrialReadingCriterionId,SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),DoctorArmList:t};this.loading=!0,Object(r["j"])(i).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1,e.$emit("getList"),e.close()})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"60d8802a",null);t["default"]=c.exports},6699:function(e,t,i){"use strict";i("2e08c")},"66a4":function(e,t,i){var n=i("6d8b");function a(e){var t=e&&e.timeline;n.isArray(t)||(t=t?[t]:[]),n.each(t,(function(e){e&&r(e)}))}function r(e){var t=e.type,i={number:"value",time:"time"};if(i[t]&&(e.axisType=i[t],delete e.type),o(e),s(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});s(a,"position")||(a.position=e.controlPosition),"none"!==a.position||s(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}n.each(e.data||[],(function(e){n.isObject(e)&&!n.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),o(e))}))}function o(e){var t=e.itemStyle||(e.itemStyle={}),i=t.emphasis||(t.emphasis={}),a=e.label||e.label||{},r=a.normal||(a.normal={}),o={normal:1,emphasis:1};n.each(a,(function(e,t){o[t]||s(r,t)||(r[t]=e)})),i.label&&!s(a,"emphasis")&&(a.emphasis=i.label,delete i.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=a},"66ad":function(e,t,i){},"66fc":function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n,r){a.call(this,e,t,i),this.type=n||"value",this.position=r||"bottom",this.orient=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(r,a);var o=r;e.exports=o},"670a":function(e,t,i){},"670b":function(e,t,i){},"673a":function(e,t,i){"use strict";i("247f")},"675a":function(e,t){function i(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var i=e.getCategoriesData(),n=e.getGraph(),a=n.data,r=i.mapArray(i.getName);a.filterSelf((function(e){var i=a.getItemModel(e),n=i.getShallow("category");if(null!=n){"number"===typeof n&&(n=r[n]);for(var o=0;o0?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReviewForm",attrs:{model:e.form,size:"small","label-width":"150"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"是否同意访视点计数"}},[i("el-radio-group",{on:{change:function(t){return e.handleAgreeOrNotChange(e.agreeOrNot.GlobalAnswerType)}},model:{value:e.form[e.agreeOrNot.GlobalAnswerType],callback:function(t){e.$set(e.form,e.agreeOrNot.GlobalAnswerType,t)},expression:"form[agreeOrNot.GlobalAnswerType]"}},[i("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$fd("ReadingYesOrNo",1)))]),e._v(" "),i("el-radio",{attrs:{label:"0"}},[e._v(e._s(e.$fd("ReadingYesOrNo",0)))])],1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType,expression:"((isBaseline && qs.GlobalReadingShowType === 1) || (!isBaseline && qs.GlobalReadingShowType === 2 ) || qs.GlobalReadingShowType === 0)"}],key:""+t.QuestionId+t.QuestionName,attrs:{label:1===t.GlobalAnswerType?"访视阅片备注":t.QuestionName,prop:t.QuestionId?t.QuestionId:String(t.GlobalAnswerType),rules:[{required:(1!==parseInt(e.form[e.agreeOrNot.GlobalAnswerType])||1!==t.GlobalAnswerType)&&(e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType),message:"请注明",trigger:["change"]}]}},[0===t.GlobalAnswerType?["select"===t.Type?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},[t.TypeValue?e._l(t.TypeValue.split("|"),(function(n){return i("el-option",{key:n,attrs:{label:n,value:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})):e._e(),e._v(" "),t.DictionaryCode?e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{value:n.value,label:n.label,disabled:e.getBeforeAnswer(t.QuestionName)===n.value}})})):e._e()],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-radio",{key:n,attrs:{label:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})),1):e._e(),e._v(" "),"calculation"===t.Type?[21===t.QuestionType?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.form[e.agreeOrNot.GlobalAnswerType]},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:5!==n.value,expression:"item.value !== 5"}],key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):""===t.DictionaryCode&&null===t.ValueType?i("el-input",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):t.DictionaryCode?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):null!==t.ValueType?i("el-input-number",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()]:e._e()]:e._e(),e._v(" "),3===t.QuestionType?[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.form[e.agreeOrNot.GlobalAnswerType]},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.assessTypeList,(function(n){return i("el-option",{key:n.Code,attrs:{label:n.ValueCN,value:n.Code,disabled:e.getBeforeAnswer(t.QuestionName)===n.Code}})})),1)]:e._e(),e._v(" "),1===t.GlobalAnswerType?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()],2)}))],2),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("20d6"),i("3b2b"),i("ac6a"),i("3e42")),o={name:"EditGlobalForm",props:{globalTaskId:{type:String,required:!0},visitTaskId:{type:String,required:!0},questionList:{type:Array,default:function(){return[]}},assessTypeList:{type:Array,default:function(){return[]}},subjectId:{type:String,required:!0},trialId:{type:String,required:!0},beforeQuestionList:{type:Array,default:function(){return[]}},globalUpdateType:{type:Array,default:function(){return[]}},agreeOrNot:{type:Object,default:function(){return{}}},isBaseline:{type:Boolean,required:!0}},data:function(){return{questions:[],form:{},loading:!1,agreeOrNotOld:null}},mounted:function(){var e=this;this.questionList.map((function(t){var i="";i=t.DictionaryCode?t.Answer?parseInt(t.Answer):null:t.Answer,t.QuestionId?e.$set(e.form,t.QuestionId,i):e.$set(e.form,t.GlobalAnswerType,i)})),this.questions=this.questionList,this.questions.forEach((function(t){21===t.QuestionType&&(e.agreeOrNotOld=parseInt(t.Answer))})),this.$set(this.form,this.agreeOrNot.GlobalAnswerType,this.agreeOrNot.Answer)},methods:{handleSave:function(){var e=this;this.$refs.globalReviewForm.validate((function(t){if(t){e.loading=!0;var i=[],n=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/);for(var a in e.form)n.test(a)?i.push({questionId:a,visitTaskId:e.visitTaskId,answer:e.form[a]}):i.push({questionId:"",visitTaskId:e.visitTaskId,globalAnswerType:parseInt(a),answer:e.form[a]});var o={globalTaskId:e.globalTaskId,subjectId:e.subjectId,trialId:e.trialId,questionList:i};Object(r["xe"])(o).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close")})).catch((function(){e.loading=!1}))}}))},handleClose:function(){this.$emit("close")},handleAgreeOrNotChange:function(e){var t=this,i=parseInt(this.form[e]);1===i&&this.questions.forEach((function(e){console.log(t.agreeOrNotOld),21===e.QuestionType&&t.$set(t.form,e.QuestionId?e.QuestionId:e.GlobalAnswerType,t.agreeOrNotOld)}))},getBeforeAnswer:function(e){var t=this.beforeQuestionList.findIndex((function(t){return t.QuestionName===e}));if(t>-1&&this.beforeQuestionList[t].Answer){var i=null;return i=this.beforeQuestionList[t].DictionaryCode?parseInt(this.beforeQuestionList[t].Answer):this.beforeQuestionList[t].Answer,i}return""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"679a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"67a8":function(e,t,i){var n=i("3301"),a=i("4f85"),r=a.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=r},"67ab":function(e,t,i){var n=i("ca5a")("meta"),a=i("d3f4"),r=i("69a8"),o=i("86cc").f,s=0,l=Object.isExtensible||function(){return!0},c=!i("79e5")((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},f=function(e,t){if(!r(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},h=function(e){return c&&p.NEED&&l(e)&&!r(e,n)&&u(e),e},p=e.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:h}},"67bd":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-validCode",use:"icon-validCode-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"67c5":function(e){e.exports={_args:[["@ffmpeg/ffmpeg@0.10.1","/Users/xiongfei/Desktop/IRaCIS/branches/20230314"]],_from:"@ffmpeg/ffmpeg@0.10.1",_id:"@ffmpeg/ffmpeg@0.10.1",_inBundle:!1,_integrity:"sha512-ChQkH7Rh57hmVo1LhfQFibWX/xqneolJKSwItwZdKPcLZuKigtYAYDIvB55pDfP17VtR1R77SxgkB2/UApB+Og==",_location:"/@ffmpeg/ffmpeg",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@ffmpeg/ffmpeg@0.10.1",name:"@ffmpeg/ffmpeg",escapedName:"@ffmpeg%2fffmpeg",scope:"@ffmpeg",rawSpec:"0.10.1",saveSpec:null,fetchSpec:"0.10.1"},_requiredBy:["/"],_resolved:"https://registry.npmmirror.com/@ffmpeg/ffmpeg/-/ffmpeg-0.10.1.tgz",_spec:"0.10.1",_where:"/Users/xiongfei/Desktop/IRaCIS/branches/20230314",author:{name:"Jerome Wu",email:"jeromewus@gmail.com"},browser:{"./src/node/index.js":"./src/browser/index.js"},bugs:{url:"https://github.com/ffmpegwasm/ffmpeg.wasm/issues"},dependencies:{"is-url":"^1.2.4","node-fetch":"^2.6.1","regenerator-runtime":"^0.13.7","resolve-url":"^0.2.1"},description:"FFmpeg WebAssembly version",devDependencies:{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@ffmpeg/core":"^0.10.0","@types/emscripten":"^1.39.4","babel-loader":"^8.1.0",chai:"^4.2.0",cors:"^2.8.5",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.22.1",express:"^4.17.1",mocha:"^8.2.1","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5","wait-on":"^5.3.0",webpack:"^5.3.2","webpack-cli":"^4.1.0","webpack-dev-middleware":"^4.0.0"},directories:{example:"examples"},engines:{node:">=12.16.1"},homepage:"https://github.com/ffmpegwasm/ffmpeg.wasm#readme",keywords:["ffmpeg","WebAssembly","video"],license:"MIT",main:"src/index.js",name:"@ffmpeg/ffmpeg",repository:{type:"git",url:"git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"},scripts:{build:"rimraf dist && webpack --config scripts/webpack.config.prod.js",lint:"eslint src",prepublishOnly:"npm run build",start:"node scripts/server.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:ffmpeg test:node:all","test:browser":"mocha-headless-chrome -a allow-file-access-from-files -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:ffmpeg":"npm run test:browser -- -f ./tests/ffmpeg.test.html","test:node":"node --experimental-wasm-threads --experimental-wasm-bulk-memory node_modules/.bin/_mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js",wait:"rimraf dist && wait-on http://localhost:3000/dist/ffmpeg.dev.js"},types:"src/index.d.ts",version:"0.10.1"}},"67cc":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("2306"),s=i("e7aa"),l=s.setLabel,c=i("4319"),u=i("b5c7"),d=i("cbe5"),f=i("e1fc"),h=i("88b3"),p=h.throttle,m=i("b0af"),g=m.createClipPath,v=i("c2be"),b=["itemStyle","barBorderWidth"],y=[0,0];function w(e,t){var i=e.getArea&&e.getArea();if("cartesian2d"===e.type){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(i.x-=a,i.width+=2*a):(i.y-=a,i.height+=2*a)}}return i}r.extend(c.prototype,u);var _=a.extendChartView({type:"bar",render:function(e,t,i){this._updateDrawMode(e);var n=e.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i)),this.group},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,i){var n,a=this.group,r=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=e.get("clip",!0),h=w(l,r);a.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("barBorderRadius")||0,b=[],y=this._backgroundEls||[],_=function(e){var t=R[l.type](r,e),i=j(l,n,t);return i.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&i.setShape("r",v),b[e]=i,i};r.diff(s).add((function(t){var i=r.getItemModel(t),o=R[l.type](r,t,i);if(m&&_(t),r.hasValue(t)){if(d){var s=S[l.type](h,o);if(s)return void a.remove(c)}var c=T[l.type](t,o,n,u,!1,p);r.setItemGraphicEl(t,c),a.add(c),L(c,r,t,i,o,e,n,"polar"===l.type)}})).update((function(t,i){var c=r.getItemModel(t),f=R[l.type](r,t,c);if(m){var w;0===y.length?w=_(i):(w=y[i],w.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&w.setShape("r",v),b[t]=w);var I=R[l.type](r,t),x=F(n,I,l);o.updateProps(w,{shape:x},u,t)}var C=s.getItemGraphicEl(i);if(r.hasValue(t)){if(d){var k=S[l.type](h,f);if(k)return void a.remove(C)}C?o.updateProps(C,{shape:f},u,t):C=T[l.type](t,f,n,u,!0,p),r.setItemGraphicEl(t,C),a.add(C),L(C,r,t,c,f,e,n,"polar"===l.type)}else a.remove(C)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&C(e,u,t):t&&k(e,u,t)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new f);I.removeAll();for(var x=0;x0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(e,t,i){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function D(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function L(e,t,i,n,a,s,c,u){var d=t.getItemVisual(i,"color"),f=t.getItemVisual(i,"opacity"),h=t.getVisual("borderColor"),p=n.getModel("itemStyle"),m=n.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(r.defaults({stroke:D(a)?"none":h,fill:D(a)?"none":d,opacity:f},p.getBarItemStyle()));var g=n.getShallow("cursor");g&&e.attr("cursor",g);var v=c?a.height>0?"bottom":"top":a.width>0?"left":"right";u||l(e.style,m,n,d,s,i,v),D(a)&&(m.fill=m.stroke="none"),o.setHoverStyle(e,m)}function O(e,t){var i=e.get(b)||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var $=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var i=t.points,n=this.__startPoint,a=this.__baseDimIdx,r=0;r=0?i:null}),30,!1);function P(e,t,i){var n=e.__baseDimIdx,a=1-n,r=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[a];y[0]=t,y[1]=i;for(var c=y[n],u=y[1-n],d=c-s,f=c+s,h=0,p=r.length/2;h=d&&g<=f&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return o[h]}return-1}function E(e,t,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(a),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function M(e,t,i){var n=t.get("borderColor")||t.get("color"),a=t.getItemStyle(["color","borderColor"]);e.useStyle(a),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function F(e,t,i){var n,a="polar"===i.type;return n=a?i.getArea():i.grid.getRect(),a?{cx:n.cx,cy:n.cy,r0:e?n.r0:t.r0,r:e?n.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:n.x,y:e?n.y:t.y,width:e?t.width:n.width,height:e?n.height:t.height}}function j(e,t,i){var n="polar"===e.type?o.Sector:o.Rect;return new n({shape:F(t,i,e),silent:!0,z2:0})}e.exports=_},"689e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-container"},[i("div",{staticClass:"dicom-list"},[i("div",{staticClass:"container"},[i("div",{staticClass:"related-study-wrapper"},[i("div",{staticClass:"left"},[i("div",{staticClass:"visit-name-wrapper"},[e.visitTaskList.length>0?i("div",{staticStyle:{display:"flex","flex-direction":"row"}},e._l(e.visitTaskList,(function(t){return i("div",{key:t.VisitTaskId,staticClass:"visit-item",class:{"visit-item-active":e.activeTaskVisitId==t.VisitTaskId},on:{click:function(i){return i.preventDefault(),e.handleClick(t)}}},[e._v(e._s(t.TaskBlindName))])})),0):e._e()])]),e._v(" "),i("div",{staticClass:"right"},e._l(e.visitTaskList,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeTaskVisitId===t.VisitTaskId,expression:"activeTaskVisitId === s.VisitTaskId"}],key:t.VisitTaskId,staticClass:"study-wrapper"},[e.selectArr.includes(t.VisitTaskId)?i("StudyList",{ref:t.VisitTaskId,refInFor:!0,attrs:{"visit-task-id":t.VisitTaskId,"trial-id":e.trialId,"subject-visit-id":t.VisitId,"task-blind-name":t.TaskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo},on:{loadImageStack:e.loadImageStack,previewNoneDicoms:e.previewNoneDicoms}}):e._e()],1)})),0)])])]),e._v(" "),i("div",{staticClass:"dicom-viewer"},[i("div",{staticClass:"container"},[e.activeTaskVisitId?i("DicomViewer",{ref:"dicomViewer",attrs:{"is-show":e.isShow,"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-task-view-in-order":e.isReadingTaskViewInOrder},on:{previewCD:e.previewCD}}):e._e()],1)])])},a=[],r=i("75fc"),o=(i("ac6a"),i("55dd"),i("96cf"),i("3b8d")),s=(i("6762"),i("2fdb"),i("20d6"),i("db72")),l=(i("c5f6"),i("b686")),c=i("f818"),u=i("9b92"),d=i("4360"),f=i("5f87"),h=i("2f62"),p={name:"ReadPage",components:{DicomViewer:c["default"],StudyList:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},isShow:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,required:!0},isExistsNoDicomFile:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingTaskViewInOrder:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{activeName:"relation-study",tabs:["relation-study"],taskList:[],loading:!1,selectArr:[],activeTaskIndex:-1,activeTaskVisitId:"",measureData:[],activeTaskIsCurrentTask:!1,activeTaskIsBaseline:!1,activeTaskReadingTaskState:2,readingTaskState:2,open:null}},computed:Object(s["a"])({},Object(h["b"])(["visitTaskList","activeSeries"])),watch:{activeSeries:{immediate:!0,handler:function(e){var t=this;if(0!==this.visitTaskList.length){var i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));-1!==i&&(this.activeTaskVisitId=e.visitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$refs[this.activeTaskVisitId],this.$nextTick((function(){t.$refs[t.activeTaskVisitId][0].setSeriesActive(e)})))}}}},mounted:function(){var e=this;this.getVisitInfo(),u["a"].$on("getNextVisitInfo",(function(){e.getNextVisitInfo()})),u["a"].$on("toggleSeries",function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(i),n=e.visitTaskList.findIndex((function(e){return e.VisitTaskId===i.series.visitTaskId})),-1!==n){t.next=4;break}return t.abrupt("return");case 4:a="",r=-1,r=i.type>0?n+1:n-1,console.log(r),r>-1&&r-1)){e.next=24;break}return e.next=9,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 9:return e.next=11,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 11:return e.next=13,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:return e.next=17,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){n.$refs[n.activeTaskVisitId][0].initStudyInfo()}));case 24:t.close();case 25:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getNextVisitInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),i=this.visitTaskList.length-1,e.next=4,d["a"].dispatch("reading/getMasterSeries",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId,visitId:this.visitTaskList[i].VisitId});case 4:return e.next=6,d["a"].dispatch("reading/refreshMeasuredData",this.visitTaskList[i].VisitTaskId);case 6:return e.next=8,d["a"].dispatch("reading/getNextVisitTask",{visitTaskId:this.visitTaskId});case 8:if(n=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(n>-1)){e.next=27;break}return e.next=12,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[n].VisitTaskId);case 12:return e.next=14,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[n].VisitId,visitTaskId:this.visitTaskList[n].VisitTaskId,taskBlindName:this.visitTaskList[n].TaskBlindName});case 14:return e.next=16,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[n].VisitTaskId});case 16:return e.next=18,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[n].VisitTaskId});case 18:return e.next=20,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[n].VisitTaskId});case 20:this.activeTaskVisitId=this.visitTaskList[n].VisitTaskId,this.activeTaskIndex=n,this.activeTaskIsCurrentTask=this.visitTaskList[n].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[n].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[n].ReadingTaskState,this.selectArr.push(this.visitTaskList[n].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].initStudyInfo()}));case 27:t.close();case 28:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleClick:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.activeTaskVisitId!==t.VisitTaskId){e.next=2;break}return e.abrupt("return");case 2:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),this.visitTaskList[i].IsInit){e.next=16;break}return n=this.$loading({fullscreen:!0}),e.next=7,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:n.close();case 16:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].getStudyList()}));case 23:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadImageStack:function(e){var t=this;this.$nextTick((function(){t.$refs.dicomViewer.loadImageStack(e)}))},previewCD:function(){var e=Object(f["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},previewNoneDicoms:function(e){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId})),i=this.visitTaskList[t].TaskBlindName,n=Object(f["a"])(),a=this.$router.resolve({path:"/nonedicoms?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(e.visitTaskId,"&taskBlindName=").concat(i,"&readingTaskState=").concat(this.visitTaskList[t].ReadingTaskState,"&TokenKey=").concat(n)});this.open=window.open(a.href,"_blank")},getAlignedSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i,n,a,r){var o,s,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o="",s=a,this.visitTaskList[s].IsInit){e.next=18;break}if(o=this.$loading({fullscreen:!0}),this.visitTaskList[s].measureDataInit){e.next=7;break}return e.next=7,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[s].VisitTaskId);case 7:if(this.visitTaskList[s].studyListInit){e.next=10;break}return e.next=10,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[s].VisitId,visitTaskId:this.visitTaskList[s].VisitTaskId,taskBlindName:this.visitTaskList[s].TaskBlindName});case 10:if(this.visitTaskList[s].readingQuestionsInit){e.next=13;break}return e.next=13,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[s].VisitTaskId});case 13:if(this.visitTaskList[s].questionsInit){e.next=16;break}return e.next=16,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[s].VisitTaskId});case 16:return e.next=18,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[s].VisitTaskId});case 18:this.activeTaskVisitId=i,this.activeTaskIndex=s,this.activeTaskIsCurrentTask=this.visitTaskList[s].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[s].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[s].ReadingTaskState,this.selectArr.includes(this.visitTaskList[s].VisitTaskId)||this.selectArr.push(this.visitTaskList[s].VisitTaskId),l=this.getSeriesInfoByMark(t,i,n,a),l&&this.$nextTick((function(){l.canvasIndex=r,u["a"].$emit("loadLinkedImageStack",l),c.$refs[c.activeTaskVisitId][0].handleActiveSeries(l)})),o&&o.close();case 27:case"end":return e.stop()}}),e,this)})));function t(t,i,n,a,r){return e.apply(this,arguments)}return t}(),getLinkedSeries:function(e,t,i){var n=this,a=i;if(-1!==a){var r=Object.assign({},this.visitTaskList[a]),o=null,s=r.StudyList,l=s.map((function(e){return e.SeriesList})).flat(),c=l.map((function(t,i){return{similar:n.strSimilarity2Percent(t.description,e.description),index:i}}));c=c.sort((function(e,t){return t.similar-e.similar}));var u=c[0]&&c[0].similar>.85?c[0].index:-1;if(u>-1&&(o=l[u]),!o){var d=l.findIndex((function(t){return t.sliceThickness===e.sliceThickness}));d>-1&&(o=l[d])}if(!o){var f=l.findIndex((function(t){return t.instanceCount===e.instanceCount}));f>-1&&(o=l[f])}if(!o){var h=l.findIndex((function(e){return e.isDicom&&e.instanceCount>0}));h>-1&&(o=l[h])}return o&&(o.imageIdIndex=Math.floor(o.imageIds.length*(e.imageIdIndex/e.instanceCount))),o}},strSimilarity2Number:function(e,t){var i,n,a,r,o,s=e.length,l=t.length,c=[];if(0===s)return l;if(0===l)return s;for(i=0;i<=s;i++)c[i]=[],c[i][0]=i;for(n=0;n<=l;n++)c[0][n]=n;for(i=1;i<=s;i++)for(a=e.charAt(i-1),n=1;n<=l;n++)r=t.charAt(n-1),o=a===r?0:1,c[i][n]=this.Minimum(c[i-1][n]+1,c[i][n-1]+1,c[i-1][n-1]+o);return c[s][l]},strSimilarity2Percent:function(e,t){var i=e.length>t.length?e.length:t.length,n=this.strSimilarity2Number(e,t);return Number((1-n/i).toFixed(4))},Minimum:function(e,t,i){return e0&&l.push.apply(l,Object(r["a"])(n))})),l.length>0){var c=l.filter((function(t){return t.sliceThickness===e.sliceThickness}));if(c.length>0){var u=c.filter((function(t){return t.instanceCount===e.instanceCount}));if(u.length>0){var d=u[0].studyIndex,f=u[0],h=Math.floor(f.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[d].SeriesList[f.seriesIndex],o.imageIdIndex=h,o.studyIndex=d,o.seriesIndex=f.seriesIndex,o.visitTaskId=t,o.studyId=f.studyId}else{var p=c[0].studyIndex,m=c[0],g=Math.floor(m.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[p].SeriesList[m.seriesIndex],o.imageIdIndex=g,o.studyIndex=p,o.seriesIndex=m.seriesIndex,o.visitTaskId=t,o.studyId=m.studyId}}else{var v=l[0].studyIndex,b=l[0],y=Math.floor(b.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[v].SeriesList[b.seriesIndex],o.imageIdIndex=y,o.studyIndex=v,o.seriesIndex=b.seriesIndex,o.visitTaskId=t,o.studyId=b.studyId}}else{for(var w=null,_=0;_-1){w={studyIndex:_,seriesIdx:I,series:s[_].SeriesList[I]};break}}if(w)o=s[w.studyIndex].SeriesList[w.seriesIdx],o.imageIdIndex=Math.floor(w.series.imageIds.length/2),o.studyIndex=w.studyIndex,o.seriesIndex=w.seriesIdx,o.visitTaskId=t,o.studyId=w.series.studyId;else{var x=s.findIndex((function(e){return e.IsDicom})),S=s[x].SeriesList[0];o=s[x].SeriesList[0],o.imageIdIndex=h,o.studyIndex=x,o.seriesIndex=S.seriesIndex,o.visitTaskId=t,o.studyId=S.studyId}}return o}},getSeriesInfoByMark:function(e,t,i,n){var a=null;if(i){var r=n;if(r>-1){var o=-1;if(o=10===this.CriterionType?this.visitTaskList[r].MeasureData.findIndex((function(e){return e.OrderMarkName===i.OrderMarkName})):this.visitTaskList[r].MeasureData.findIndex((function(e){return e.QuestionId===i.QuestionId&&e.RowIndex===i.RowIndex})),o>-1&&this.visitTaskList[r].MeasureData[o].MeasureData){var s=this.visitTaskList[r].StudyList,l=this.visitTaskList[r].MeasureData[o].StudyId,c=this.visitTaskList[r].MeasureData[o].SeriesId,u=this.visitTaskList[r].MeasureData[o].InstanceId,d=s.findIndex((function(e){return e.StudyId===l}));if(d>-1){var f=s[d].SeriesList.findIndex((function(e){return e.seriesId===c}));if(f>-1){var h=s[d].SeriesList[f],p=h.instanceList.findIndex((function(e){return!!~e.indexOf(u)}));p>-1&&(h.imageIdIndex=p,a=h)}}else a=this.getLinkedSeries(e,t,n)}else a=this.getLinkedSeries(e,t,n)}}else a=this.getLinkedSeries(e,t,n);return a}}},m=p,g=(i("5973"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"14f91ff0",null);t["default"]=v.exports},"68ab":function(e,t,i){var n=i("4a3f"),a=n.quadraticProjectPoint;function r(e,t,i,n,r,o,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>n+u&&c>o+u||ce+u&&l>i+u&&l>r+u||l0&&c>0&&!h&&(s=0),s<0&&c<0&&!p&&(c=0));var g=t.ecModel;if(g&&"time"===o){var v,b=u("bar",g);if(a.each(b,(function(e){v|=e.getBaseAxis()===t.axis})),v){var y=d(b),w=m(s,c,t,y);s=w.min,c=w.max}}return{extent:[s,c],fixMin:h,fixMax:p}}function m(e,t,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],s=f(n,i.axis);if(void 0===s)return{min:e,max:t};var l=1/0;a.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;a.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=t-e,h=1-(l+c)/o,p=d/h-d;return t+=p*(c/u),e-=p*(l/u),{min:e,max:t}}function g(e,t){var i=p(e,t),n=i.extent,a=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var r=e.type;e.setExtent(n[0],n[1]),e.niceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===r||"time"===r?t.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new r(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(t)||o).create(e)}}function b(e){var t=e.scale.getExtent(),i=t[0],n=t[1];return!(i>0&&n>0||i<0&&n<0)}function y(e){var t=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(i){return i=e.scale.getLabel(i),t.replace("{value}",null!=i?i:"")}}(t),t):"function"===typeof t?function(n,a){return null!=i&&(a=n-i),t(w(e,n),a)}:function(t){return e.scale.getLabel(t)}}function w(e,t){return"category"===e.type?e.scale.getLabel(t):t}function _(e){var t=e.model,i=e.scale;if(t.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===e.type,o=i.getExtent();r?a=i.count():(n=i.getTicks(),a=n.length);var s,l=e.getLabelModel(),c=y(e),u=1;a>40&&(u=Math.ceil(a/40));for(var d=0;di.blockIndex,r=a?i.step:null,o=n&&n.modDataCount,s=null!=o?Math.ceil(o/r):null;return{step:r,modBy:s,modDataCount:o}}},b.getPipeline=function(e){return this._pipelineMap.get(e)},b.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.getData(),a=n.count(),r=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,o=e.get("large")&&a>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?a:null;e.pipelineContext=i.context={progressiveRender:r,modDataCount:s,large:o}},b.restorePipelines=function(e){var t=this,i=t._pipelineMap=s();e.eachSeries((function(e){var n=e.getProgressive(),a=e.uid;i.set(a,{id:a,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:n&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),$(t,e,e.dataTask)}))},b.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),i=this.api;a(this._allHandlers,(function(n){var a=e.get(n.uid)||e.set(n.uid,[]);n.reset&&_(this,n,a,t,i),n.overallReset&&I(this,n,a,t,i)}),this)},b.prepareView=function(e,t,i,n){var a=e.renderTask,r=a.context;r.model=t,r.ecModel=i,r.api=n,a.__block=!e.incrementalPrepareRender,$(this,t,a)},b.performDataProcessorTasks=function(e,t){y(this,this._dataProcessorHandlers,e,t,{block:!0})},b.performVisualTasks=function(e,t,i){y(this,this._visualHandlers,e,t,i)},b.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},b.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var w=b.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function _(e,t,i,n,a){var r=i.seriesTaskMap||(i.seriesTaskMap=s()),o=t.seriesType,l=t.getTargetSeries;function c(i){var o=i.uid,s=r.get(o)||r.set(o,u({plan:k,reset:R,count:O}));s.context={model:i,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},$(e,i,s)}t.createOnAllSeries?n.eachRawSeries(c):o?n.eachRawSeriesByType(o,c):l&&l(n,a).each(c);var d=e._pipelineMap;r.each((function(e,t){d.get(t)||(e.dispose(),r.removeKey(t))}))}function I(e,t,i,n,r){var o=i.overallTask=i.overallTask||u({reset:x});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:e};var l=o.agentStubMap=o.agentStubMap||s(),c=t.seriesType,d=t.getTargetSeries,f=!0,h=t.modifyOutputEnd;function p(t){var i=t.uid,n=l.get(i);n||(n=l.set(i,u({reset:S,onDirty:C})),o.dirty()),n.context={model:t,overallProgress:f,modifyOutputEnd:h},n.agent=o,n.__block=f,$(e,t,n)}c?n.eachRawSeriesByType(c,p):d?d(n,r).each(p):(f=!1,a(n.getSeries(),p));var m=e._pipelineMap;l.each((function(e,t){m.get(t)||(e.dispose(),o.dirty(),l.removeKey(t))}))}function x(e){e.overallReset(e.ecModel,e.api,e.payload)}function S(e,t){return e.overallProgress&&T}function T(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function k(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function R(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=g(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?r(t,(function(e,t){return L(t)})):D}var D=L(0);function L(e){return function(t,i){var n=i.data,a=i.resetDefines[e];if(a&&a.dataEach)for(var r=t.start;r=0;l--)if(n[l]<=t)break;l=Math.min(l,a-2)}else{for(var l=r;lt)break;l=Math.min(l-1,a-2)}o.lerp(e.position,i[l],i[l+1],(t-n[l])/(n[l+1]-n[l]));var c=i[l+1][0]-i[l][0],u=i[l+1][1]-i[l][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},a.inherits(s,r);var c=s;e.exports=c},"6a98":function(e,t,i){"use strict";i("45e6")},"6acf":function(e,t,i){var n=i("eda2"),a=i("dcb3"),r=i("2306"),o=i("ff2e"),s=i("1687"),l=i("fab22"),c=i("6679"),u=a.extend({makeElOption:function(e,t,i,a,r){var s=i.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,c=s.polar,u=c.getOtherAxis(s),h=u.getExtent();l=s["dataTo"+n.capitalFirst(s.dim)](t);var p=a.get("type");if(p&&"none"!==p){var m=o.buildElStyle(a),g=f[p](s,c,l,h,m);g.style=m,e.graphicKey=g.type,e.pointer=g}var v=a.get("label.margin"),b=d(t,i,a,c,v);o.buildLabelElOption(e,i,a,r,b)}});function d(e,t,i,n,a){var o=t.axis,c=o.dataToCoord(e),u=n.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var d,f,h,p=n.getRadiusAxis().getExtent();if("radius"===o.dim){var m=s.create();s.rotate(m,m,u),s.translate(m,m,[n.cx,n.cy]),d=r.applyTransform([c,-a],m);var g=t.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(u,g*Math.PI/180,-1);f=v.textAlign,h=v.textVerticalAlign}else{var b=p[1];d=n.coordToPoint([b+a,c]);var y=n.cx,w=n.cy;f=Math.abs(d[0]-y)/b<.3?"center":d[0]>y?"left":"right",h=Math.abs(d[1]-w)/b<.3?"middle":d[1]>w?"top":"bottom"}return{position:d,align:f,verticalAlign:h}}var f={line:function(e,t,i,n,a){return"angle"===e.dim?{type:"Line",shape:o.makeLineShape(t.coordToPoint([n[0],i]),t.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(e,t,i,n,a){var r=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,n[0],n[1],(-i-r/2)*s,(r/2-i)*s)}:{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,i-r/2,i+r/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var h=u;e.exports=h},"6ae8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:table:taskCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.TaskCode,callback:function(t){e.$set(e.searchData,"TaskCode",t)},expression:"searchData.TaskCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:readingStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingTaskState,callback:function(t){e.$set(e.searchData,"ReadingTaskState",t)},expression:"searchData.ReadingTaskState"}},e._l(e.$d.ReadingTaskState,(function(e){return i("el-option",{key:"ReadingTaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:signTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList2},model:{value:e.timeList2,callback:function(t){e.timeList2=t},expression:"timeList2"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewTrack:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.UserName?[e._v("\n "+e._s(t.row.UserName)+"("+e._s(t.row.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewTrack:table:assignTime"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime",label:e.$t("trials:reviewTrack:table:suggesteFinishedTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:reviewTrack:table:signTime"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:2!==t.row.ReadingTaskState,icon:"el-icon-view",circle:"",title:e.$t("trials:reviewTrack:action:viewResults")},on:{click:function(i){return e.lookReadingResults(t.row)}}}),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:1!==t.row.ReadingCategory||0!==t.row.TaskState||2!==t.row.ReadingTaskState||2===t.row.ReReadingApplyState||4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState,icon:"el-icon-collection",circle:"",title:e.$t("trials:reviewTrack:action:applyReread")},on:{click:function(i){return e.openApplyReReading(t.row)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:!t.row.ReReadingApplyState,icon:"el-icon-toilet-paper",circle:"",title:e.$t("trials:reviewTrack:action:backToRereadHistory")},on:{click:function(i){return e.reReadingHistory(t.row,1)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:2===t.row.ReadingTaskState||1!==t.row.ReadingCategory||0!==t.row.TaskState,icon:"el-icon-back",circle:"",title:e.$t("trials:reviewTrack:action:back")},on:{click:function(i){return e.openReReadingOrBackList(t.row)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:!t.row.IsPMSetBack,icon:"el-icon-document-copy",circle:"",title:e.$t("trials:reviewTrack:action:backToTaskList")},on:{click:function(i){return e.getInfluencedTaskList(t.row)}}}):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"阅片任务规则",visible:e.ReadingRulesVisible,width:"500px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReadingRulesVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"160px"}},[i("el-form-item",{attrs:{label:"呈现对象"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.ReadingTaskViewEnum,callback:function(t){e.$set(e.ReadingRulesInfo,"ReadingTaskViewEnum",t)},expression:"ReadingRulesInfo.ReadingTaskViewEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"呈现顺序"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingTaskViewInOrder,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingTaskViewInOrder",t)},expression:"ReadingRulesInfo.IsReadingTaskViewInOrder"}},e._l(e.$d.IsReadingTaskViewInOrder,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),0===e.ReadingRulesInfo.ReadingTaskViewEnum&&e.ReadingRulesInfo.IsReadingTaskViewInOrder?i("el-form-item",{attrs:{label:"是否展示受试者信息"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingShowSubjectInfo,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingShowSubjectInfo",t)},expression:"ReadingRulesInfo.IsReadingShowSubjectInfo"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowSubjectInfo"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),0===e.ReadingRulesInfo.ReadingTaskViewEnum&&e.ReadingRulesInfo.IsReadingTaskViewInOrder?i("el-form-item",{attrs:{label:"是否可以查看既往结果"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingShowPreviousResults,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingShowPreviousResults",t)},expression:"ReadingRulesInfo.IsReadingShowPreviousResults"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowPreviousResults"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.RefereeAllocationVisible?i("el-dialog",{attrs:{title:"裁判触发规则",visible:e.RefereeAllocationVisible,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.RefereeAllocationVisible=t}}},[i("RefereeRules"),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.RefereeAllocationVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewTrack:dialog:applyReread"),visible:e.ApplyforReasonVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"120px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:applyReason"))+"\n ")]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:applyReread:title:applyReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:ImageRetransfer")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:applyReread:title:remark"),prop:"RequestReReadingReason"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e()],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:influencesList")))]),e._v(" "),i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewTrack:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,833704631)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewTrack:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewTrack:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewTrack:table:taskStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:reviewTrack:table:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:reviewTrack:applyReread:title:postEffectiveImpacts"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1),e._v(" "),e.ReReadingOtherInfo.IsIRAppyTaskInfluenced?i("div",{staticStyle:{"font-size":"12px",color:"#f66","margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:msg1"))+"\n ")]):e._e()],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ReReadingOrBackVisible?i("el-dialog",{attrs:{title:"read"===e.opentype?e.$t("trials:reviewTrack:dialog:backImpactList"):e.$t("trials:reviewTrack:dialog:impactList"),visible:e.ReReadingOrBackVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReReadingOrBackVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewTrack:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,833704631)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewTrack:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewTrack:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewTrack:table:taskStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:reviewTrack:table:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:reviewTrack:applyReread:title:postEffectiveImpacts"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1),e._v(" "),e.ReReadingOtherInfo.IsIRAppyTaskInfluenced?i("div",{staticStyle:{"font-size":"12px",color:"#f66","margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:msg1"))+"\n ")]):e._e()],1),e._v(" "),"read"===e.opentype?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReReadingOrBackVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.PMSetTaskBack}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:impactList:save"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{title:e.$t("trials:readingPeriod:dialogTitle:clinicalData")+"("+e.rowData.SubjectCode+"|"+e.rowData.TaskName+"|"+e.rowData.TrialReadingCriterionName+")",visible:e.clinicalDataVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("ClinicalData",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,data:e.currentData}})],1):e._e(),e._v(" "),e.exportVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewTrack:button:export"),visible:e.exportVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.exportVisible=t}}},[i("exportList",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,data:e.searchData}})],1):e._e(),e._v(" "),e.urgentVisible?i("el-dialog",{attrs:{visible:e.urgentVisible,"close-on-click-modal":!1,title:e.$t("trials:qcCheck:dialogTitle:setUrgent"),width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.urgentVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],ref:"urgentForm",attrs:{model:e.urgentForm,size:"mini","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:isUrgent"),prop:"IsUrgent",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:"blur"}]}},[i("el-radio-group",{on:{change:e.handleIsUrgentChange},model:{value:e.urgentForm.IsUrgent,callback:function(t){e.$set(e.urgentForm,"IsUrgent",t)},expression:"urgentForm.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsUrgent"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.urgentForm.IsUrgent?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:message:urgentReason"),prop:"TaskUrgentType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:"blur"}]}},[i("el-radio-group",{on:{change:e.handleTaskUrgentTypeChange},model:{value:e.urgentForm.TaskUrgentType,callback:function(t){e.$set(e.urgentForm,"TaskUrgentType",t)},expression:"urgentForm.TaskUrgentType"}},e._l(e.$d.TaskUrgentType,(function(t){return!e.OtherInfo.IsPDProgressView&&2===t.value||!e.OtherInfo.IsEnrollementQualificationConfirm&&1===t.value?e._e():i("el-radio",{key:"TaskUrgentType"+t.value,attrs:{label:t.value,disabled:0===e.rowData.VisitTaskNum&&2===t.value||0!==e.rowData.VisitTaskNum&&1===t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),4===e.urgentForm.TaskUrgentType?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:message:urgentReasonNote"),prop:"TaskUrgentRemake",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.urgentForm.TaskUrgentRemake,callback:function(t){e.$set(e.urgentForm,"TaskUrgentRemake",t)},expression:"urgentForm.TaskUrgentRemake"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.urgentVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSaveUrgentStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("5f87"),c=i("6071"),u=i("333d"),d=i("de86"),f=i("5248"),h=i("ba63"),p=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskCode:"",TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,BeginSignTime:null,EndSignTime:null,ReadingTaskState:null,CompleteClinicalDataEnum:null}},m={name:"TrialsNotice",components:{BaseContainer:c["default"],Pagination:u["default"],RefereeRules:d["default"],ClinicalData:h["default"],exportList:f["default"]},props:{AllocationReadingCategory:{type:String},AllocationSubjectCode:{type:String}},data:function(){return{searchData:p(),exportVisible:!1,maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,ReadingRulesVisible:!1,ApplyforReasonVisible:!1,ReReadingOrBackVisible:!1,clinicalDataVisible:!1,InfluenceTaskList:[],ApplyforReasonForm:{Type:null,RequestReReadingReason:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},RefereeAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,ReadingType:null,ReadingRulesInfo:{TrialId:this.$route.query.trialId,ReadingTaskViewEnum:0,IsReadingTaskViewInOrder:!1,IsReadingShowSubjectInfo:null,IsReadingShowPreviousResults:null},title:"",rowData:{},timeList:[],timeList2:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,trialCriterionList:[],ReReadingOtherInfo:{IsIRAppyTaskInfluenced:!1},TrialReadingCriterionId:null,urgentVisible:!1,urgentForm:{VisitTaskId:"",IsUrgent:null,TaskUrgentType:null,TaskUrgentRemake:null},dialogLoading:!1}},mounted:function(){this.searchData.ReadingCategory=this.AllocationReadingCategory,this.searchData.SubjectCode=this.AllocationSubjectCode,console.log(this.searchData.SubjectCode,this.searchData.ReadingCategory),this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{handleExport:function(){this.exportVisible=!0},handleView:function(e){this.TrialReadingCriterionId=e.TrialReadingCriterionId,this.rowData=Object(r["a"])({},e),this.currentData={Id:e.SourceSubjectVisitId||e.SouceReadModuleId,SubjectId:e.SubjectId,IsVisit:!!e.SourceSubjectVisitId,TrialId:e.TrialId,IsBaseLine:0===e.VisitTaskNum,TrialReadingCriterionId:e.TrialReadingCriterionId},this.clinicalDataVisible=!0},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getInfluencedTaskList:function(e){var t=this;this.loading=!0,this.opentype="look",this.rowData=Object(r["a"])({},e),Object(s["D"])(e.Id).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1}))},PMSetTaskBack:function(){var e=this;this.loading=!0,Object(s["a"])(this.trialId,this.rowData.Id).then((function(t){e.loading=!1,e.ReReadingOrBackVisible=!1,e.getList(),e.$message.success(e.$t("trials:reviewTrack:message:returnedSuccessfully"))})).catch((function(){e.loading=!1}))},openReReadingOrBackList:function(e){var t=this;this.loading=!0,this.rowData=Object(r["a"])({},e),this.opentype="read",Object(s["H"])(e.Id,!1).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOtherInfo=e.OtherInfo,t.ReReadingOrBackVisible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookReadingResults:function(e){var t,i=Object(l["a"])();t=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i),window.open(t,"_blank")},openApplyReReading:function(e){var t=this;this.rowData=Object(r["a"])({},e),this.loading=!0,Object(s["H"])(e.Id,!0).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOtherInfo=e.OtherInfo,t.ApplyforReasonVisible=!0,t.ApplyforReasonForm={Type:null,Remake:null},t.loading=!1})).catch((function(){t.loading=!1}))},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,RequestReReadingType:2,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:reviewTrack:message:ImageRetransfer")};Object(s["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewTrack:message:applyedSuccessfully")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/reReadingTracking?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName,"&DoctorUserId=").concat(e.DoctorUserId)})},openRefereeAllocation:function(){this.RefereeAllocationVisible=!0},openReadingRules:function(){this.ReadingRulesVisible=!0},handleCancel:function(){this.ReadingRulesVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.ReadingRulesInfo);t.TrialId=this.$route.query.trialId,Object(s["m"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.ReadingRulesVisible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1,e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["J"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.ReadingRulesInfo=Object.assign({},e.OtherInfo),e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},changeTimeList2:function(e){this.timeList2?(this.searchData.BeginSignTime=this.timeList2[0],this.searchData.EndSignTime=this.timeList2[1]):(this.searchData.BeginSignTime=null,this.searchData.EndSignTime=null)},changeUrgentStatus:function(e){this.rowData=Object(r["a"])({},e),this.urgentForm.VisitTaskId=e.Id,this.urgentForm.IsUrgent=e.IsUrgent,this.urgentForm.TaskUrgentType=e.TaskUrgentType,this.urgentForm.TaskUrgentRemake=e.TaskUrgentRemake,this.urgentVisible=!0},handleTaskUrgentTypeChange:function(e){4!==e&&(this.urgentForm.TaskUrgentRemake=null)},handleIsUrgentChange:function(e){e||(this.urgentForm.TaskUrgentType=null,this.urgentForm.TaskUrgentRemake=null)},handleSaveUrgentStatus:function(){var e=this;this.$refs.urgentForm.validate((function(t){t&&(e.dialogLoading=!0,Object(o["Ue"])(e.urgentForm).then((function(t){e.dialogLoading=!1,e.urgentVisible=!1,e.getList()})).catch((function(){e.dialogLoading=!1})))}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=(i("9a6f"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"3af573b8",null);t["default"]=b.exports},"6b17":function(e,t,i){},"6b40":function(e,t,i){},"6b4d":function(e,t,i){"use strict";i("6116")},"6bd4":function(e,t){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(e,t){if("world"===e){var n=i[t.name];if(n){var a=t.center;a[0]=n[0],a[1]=n[1]}}}e.exports=n},"6bd7":function(e,t,i){"use strict";var n=i("2b0e");let a=e=>{var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===typeof Int8Array||!n["default"].prototype.$isServer&&"function"===typeof document.childNodes||(a=function(e){return"function"===typeof e||!1});i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));Object.prototype.hasOwnProperty;const r=function(){return!n["default"].prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function o(e){let t=!1;return function(...i){t||(t=!0,window.requestAnimationFrame(n=>{e.apply(this,i),t=!1}))}}},"6bdc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"particiapant-wrapper"},[i("div",{staticClass:"header-wrapper"},[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,border:""}},[i("el-table-column",{attrs:{prop:"date",label:e.$t("trials:staffResearch:form:name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LastName+" / "+t.row.FirstName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialRoleName",label:e.$t("trials:staffResearch:form:role")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staffResearch:form:phone")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:staffResearch:form:email")}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staffResearch:form:organization")}}),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"IsGenerateAccount",label:e.$t("trials:staffResearch:form:isGenerate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGenerateAccount))+"\n ")]}}],null,!1,1153754485)}):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staffResearch:form:userType")}}):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"State",label:e.$t("trials:staffResearch:form:status")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsJoin?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))])]}}],null,!1,3072423441)}):e._e(),e._v(" "),3===e.state||0!==e.userTypeEnumInt&&!e.hasPermi(["role:pm","role:apm"])?e._e():i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:t.row.IsGenerateSuccess||0!==e.state&&0===e.userTypeEnumInt||2!==e.state&&e.hasPermi(["role:pm"])},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),0===e.userTypeEnumInt?i("el-button",{attrs:{type:"text",size:"small",disabled:0!==e.state||t.row.IsGenerateSuccess},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e()]}}],null,!1,2760520166)})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper","append-to-body":0!==e.userTypeEnumInt},on:{"update:visible":function(t){e.editVisible=t}}},[i("ParticipantForm",{attrs:{state:e.state,data:e.rowData},on:{getList:e.getList,close:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("896b"),s=i("536f"),l=i("a599"),c={name:"ResearchParticipantList",components:{ParticipantForm:s["default"]},data:function(){return{list:[],editVisible:!1,title:"",loading:!1,rowData:{},userTypeEnumInt:0,btnLoading:!1,state:null,trialSiteSurveyId:"",trialId:""}},mounted:function(){zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt")),this.trialSiteSurveyId=Object(l["b"])("trialSiteSurveyId"),this.trialId=Object(l["b"])("trialId")},methods:{getList:function(){var e=this;this.loading=!0,Object(o["h"])(this.trialSiteSurveyId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title=this.$t("trials:staffResearch:dialogTitle:add"),this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title=this.$t("trials:staffResearch:dialogTitle:edit"),this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:staffResearch:message:confirmDel"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["e"])(e.Id,t.trialId).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:staffResearch:message:delSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},isExistIncorrect:function(){return this.list.some((function(e){return!1===e.IsCorrect}))},initList:function(e,t){this.list=e,this.state=t.State,this.$forceUpdate()},closeDialog:function(){this.editVisible=!1}}},u=c,d=(i("b308"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"04f86b6e",null);t["default"]=f.exports},"6c12":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("fab22"),s=i("2306"),l=["axisLine","axisTickLabel","axisName"],c=a.extendComponentView({type:"radar",render:function(e,t,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes(),n=r.map(i,(function(e){var i=new o(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));r.each(n,(function(e){r.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes();if(i.length){var n=e.get("shape"),a=e.getModel("splitLine"),o=e.getModel("splitArea"),l=a.getModel("lineStyle"),c=o.getModel("areaStyle"),u=a.get("show"),d=o.get("show"),f=l.get("color"),h=c.get("color");f=r.isArray(f)?f:[f],h=r.isArray(h)?h:[h];var p=[],m=[];if("circle"===n)for(var g=i[0].getTicksCoords(),v=t.cx,b=t.cy,y=0;y=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2||(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode||e.isFirstChangeTask,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:String(t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2||e.isFirstChangeTask},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"is-first-change-task":e.isFirstChangeTask,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("db72")),o=(i("c5f6"),i("3e42")),s=i("2f62"),l={name:"QuestionItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},isFirstChangeTask:{type:Boolean,default:!1}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},computed:Object(r["a"])({},Object(s["b"])(["language"])),watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(o["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},c=l,u=(i("79bb"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"325f4763",null);t["default"]=d.exports},"6cb7":function(e,t,i){var n=i("6d8b"),a=i("4319"),r=i("8918"),o=i("625e"),s=o.enableClassManagement,l=o.parseClassType,c=i("e0d3"),u=c.makeInner,d=i("f934"),f=i("de1c"),h=u(),p=a.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,i,n){a.call(this,e,t,i,n),this.uid=r.getUID("ec_cpt_model")},init:function(e,t,i,n){this.mergeDefaultAndTheme(e,i)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,a=i?d.getLayoutParams(e):{},r=t.getTheme();n.merge(e,r.get(this.mainType)),n.merge(e,this.getDefaultOption()),i&&d.mergeLayoutParam(e,a,i)},mergeOption:function(e,t){n.merge(this.option,e,!0);var i=this.layoutMode;i&&d.mergeLayoutParam(this.option,e,i)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=h(this);if(!e.defaultOption){var t=[],i=this.constructor;while(i){var a=i.prototype.defaultOption;a&&t.push(a),i=i.superClass}for(var r={},o=t.length-1;o>=0;o--)r=n.merge(r,t[o],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function m(e){var t=[];return n.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=n.map(t,(function(e){return l(e).main})),"dataset"!==e&&n.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,m),n.mixin(p,f);var g=p;e.exports=g},"6cc5":function(e,t,i){var n=i("6d8b"),a=i("401b"),r=i("1687"),o=i("9850"),s=i("0cde"),l=a.applyTransform;function c(){s.call(this)}function u(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function d(e,t,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[e](n):null}n.mixin(c,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,i,n){return this._rect=new o(e,t,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,i,n){this.transformTo(e,t,i,n),this._viewRect=new o(e,t,i,n)},transformTo:function(e,t,i,n){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new o(e,t,i,n)),r.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,i=e.y+e.height/2;return[t,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=a.applyTransform([],n,e),i=a.applyTransform([],i,e),t.origin=n,t.position=[i[0]-n[0],i[1]-n[1]],t.scale=[r,r],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),r.copy(this.transform||(this.transform=[]),t.transform||r.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?n.slice(e):r.create(),rawScale:n.slice(t.scale),rawPosition:n.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,i){var n=t?this._rawTransform:this.transform;return i=i||[],n?l(i,e,n):a.copy(i,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:n.curry(d,"dataToPoint"),convertFromPixel:n.curry(d,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},n.mixin(u,s);var f=u;e.exports=f},"6cc7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"User ID: ",prop:"userName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.userName,callback:function(t){e.$set(e.signForm,"userName",t)},expression:"signForm.userName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Password: ",prop:"password",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.password,callback:function(t){e.$set(e.signForm,"password",t)},expression:"signForm.password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1)])},a=[],r=(i("c5f6"),i("3e42")),o=i("8237"),s=i.n(o),l={name:"SignForm",props:{signCodeEnum:{type:Number,required:!0},subjectVisitId:{type:String,default:""}},data:function(){return{signForm:{userName:"",password:""},signText:"",signCodeId:"",signCode:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,this.$store.dispatch("trials/getSignInfo",{signCode:this.signCodeEnum}).then((function(t){e.loading=!1,e.signText=t.SignText,e.signCode=t.SignCode,e.signCodeId=t.SignCodeId})).catch((function(){e.loading=!1}))},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(i)if(e.signForm.userName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={userName:e.signForm.userName,passWord:s()(e.signForm.password),trialId:e.$route.query.trialId,signCode:e.signCode,signText:e.signText,signCodeId:e.signCodeId,subjectVisitId:e.subjectVisitId};Object(r["Mf"])(n).then((function(t){var i=t.Result;e.$emit("closeDialog",!0,i,e.signCode)})).catch((function(){e.btnLoading=!1}))}else e.$message.error(e.$t("common:message:signWarning"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},c=l,u=(i("96e7"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"0deb7142",null);t["default"]=d.exports},"6cce":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"resumes-container"},[e.$route.query.ReviewStatus?e._e():i("div",{staticClass:"resume-content"},[i("p",[e._v("Consultant Agreement")]),e._v(" "),i("div",{staticClass:"upload-content"},[i("upload-files",{ref:"uploadAgreement",attrs:{disabled:"1"===e.$route.query.ReviewStatus,"doctor-id":e.doctorId,type:"Consultant Agreement",accept:".pdf"},on:{getFileList:e.getFileList}})],1),e._v(" "),i("p",[e._v("(must be in pdf format)")])]),e._v(" "),e.$route.query.ReviewStatus?e._e():i("div",[i("el-table",{attrs:{data:e.agreementList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Consultant Agreement",width:"300"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile(t.row)}}},[e._v("Delete")])]}}],null,!1,3024921981)})],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:sow"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(t){e.addCol(0,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("Upload")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_SOW_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.sowList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:"Criterion Type",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Statement of Work",width:"400"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"Is Enable",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1,disabled:""},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"Remark",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePreview3(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){e.handleEditCol(t.row,0,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile3(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.$route.query.ReviewStatus?e._e():i("div",{staticStyle:{"margin-top":"20px"}},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:asow"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(t){e.addCol(1,e.$t("trials:enrolledReviews:button:asow"))}}},[e._v("Upload")])],1),e._v(" "),e.$route.query.ReviewStatus?e._e():i("el-table",{attrs:{data:e.ackSowList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:"Criterion Type",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionName)+"\n ")]}}],null,!1,3649527081)}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Acknowledgement of SOW",width:"400"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"Is Enable",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1,disabled:""},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}],null,!1,3524721952)}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"Remark",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePreview3(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){e.handleEditCol(t.row,1,e.$t("trials:enrolledReviews:button:asow"))}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile3(t.row)}}},[e._v("Delete")])]}}],null,!1,3895284633)})],1),e._v(" "),i("BaseModel",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Criterion Type ",prop:"CriterionType"}},[i("el-select",{model:{value:e.form.CriterionType,callback:function(t){e.$set(e.form,"CriterionType",t)},expression:"form.CriterionType"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"File",prop:"FilePath"}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview2,"on-remove":e.handleRemoveFile2,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Remark"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("c006"),s=i("33ba"),l=i("7eeb"),c=i("e56e"),u={name:"Agreements",components:{UploadFiles:o["default"],BaseModel:l["default"]},data:function(){return{doctorId:this.$route.query.Id,agreementList:[],sowList:[],ackSowList:[],loading:!1,isOpen:!1,btnLoading:!1,model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},form:{Remark:null,FileType:null,FileName:null,FilePath:null,DoctorId:null,CriterionType:null,IsEnable:!1},rules:{CriterionType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],FilePath:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},fileList:[]}},mounted:function(){this.initSowList()},methods:{handleDownload:function(e){var t=this;this.loading=!0,Object(c["a"])(e).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEditCol:function(e,t,i){this.model_cfg.visible=!0,this.form=Object.assign({},e),this.fileList[0]={name:e.FileName,path:e.FilePath},this.form.FileType=t,this.model_cfg.title=i},handleRemoveFile3:function(e){var t=this;this.$confirm("确定删除?").then((function(){Object(s["h"])({Id:e.Id}).then((function(){t.initSowList(),t.$message.success("删除成功")}))}))},handleRemoveFile2:function(){this.form.FileName=null,this.form.FilePath=null,this.fileList=[]},beforeUpload:function(){this.fileList.length>0&&this.$message.error("最多只能传一个附件")},handlePreview3:function(e){e.FilePath&&window.open(e.FilePath,"_blank")},handlePreview2:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(r["f"])(e.file,0===this.form.FileType?"既往阅片情况声明":"入项资格确认书",this.doctorId).then((function(i){t.form.FilePath=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},handleCancle:function(){this.model_cfg.visible=!1},handleSave:function(){var e=this;this.$refs["DictionaryTypeConfigForm"].validate((function(t){t&&(e.form.DoctorId=e.doctorId,e.form.CriterionName=e.$fd("CriterionType",e.form.CriterionType),Object(s["a"])(e.form).then((function(t){e.$message.success("添加成功"),e.initSowList(),e.handleCancle()})))}))},addCol:function(e,t){this.model_cfg.visible=!0,this.form={Remark:null,FileType:null,FileName:null,FilePath:null,DoctorId:null,CriterionType:null},this.handleRemoveFile2(),this.form.FileType=e,this.model_cfg.title=t},initSowList:function(){var e=this;Object(s["r"])({fileType:0,DoctorId:this.doctorId}).then((function(t){e.sowList=t.Result})),Object(s["r"])({fileType:1,DoctorId:this.doctorId}).then((function(t){e.ackSowList=t.Result}))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleRemoveFile:function(e){this.$refs.uploadAgreement.handleDeleteFile(e)},getFileList:function(e){this.agreementList=e}}},d=u,f=(i("df2d"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3d0bb65a",null);t["default"]=h.exports},"6cd8":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("1418"),o=i("22da"),s=o.radialCoordinate,l=i("3eba"),c=i("e263"),u=i("6cc5"),d=i("01ef"),f=i("4a01"),h=i("c526"),p=h.onIrrelevantElement,m=i("4e08"),g=(m.__DEV__,i("3842")),v=g.parsePercent,b=a.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.childPoints,n=i.length,a=t.parentPoint,r=i[0],o=i[n-1];if(1===n)return e.moveTo(a[0],a[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=v(t.forkPosition,1),d=[];d[l]=a[l],d[c]=a[c]+(o[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;fI.x,y||(b-=Math.PI));var C=y?"left":"right",k=s.labelModel.get("rotate"),R=k*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||C,textRotation:null==k?-b:R,textOrigin:"center",verticalAlign:"middle"})}x(o,c,d,i,m,p,g,n,s)}function x(e,t,i,r,o,s,l,c,u){var d=u.edgeShape,f=r.__edge;if("curve"===d)t.parentNode&&t.parentNode!==i&&(f||(f=r.__edge=new a.BezierCurve({shape:T(u,o,o),style:n.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),a.updateProps(f,{shape:T(u,s,l),style:n.defaults({opacity:1},u.lineStyle)},e));else if("polyline"===d&&"orthogonal"===u.layout&&t!==i&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var h=t.children,p=[],m=0;m0&&e.setChild(t.Childrens)})),e.questions=t.Result,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},submit:function(){var e=this;return new Promise((function(t,i){e.$refs["questionForm"].validate((function(n){if(n){var a=[];for(var r in e.questionForm)a.push({Id:r,answer:e.questionForm[r]});t(a)}else e.$confirm(e.$t("trials:audit:message:specifyQuestions"),{type:"warning",showCancelButton:!1,callback:function(e){}}),i()}))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"6d3c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"resume-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Isoffical",label:"Offical","min-width":"50",formatter:e.officalFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Language",label:"Language","min-width":"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.Language?"CH":2===t.row.Language?"EN":"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("Download")])]}}])})],1)],1)},a=[],r=(i("ac6a"),{props:{resumeList:{type:Array,default:function(){return[]}}},data:function(){return{list:[]}},created:function(){this.list=this.filterResume(this.resumeList)},methods:{filterResume:function(e){var t=[];return e.length>0&&e.forEach((function(e){"Resume"===e.Type&&t.push(e)})),t},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("3fc1"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"6d45":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("div",{staticStyle:{width:"600px","text-align":"center",border:"1px solid #e6e6e6","margin-top":"40px",padding:"10px"}},[i("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"30px","line-height":"120px"}},[e._v("\n "+e._s(e.$t("recompose:title:init"))+"\n ")]),e._v(" "),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"passwordForm",attrs:{"label-position":"right",model:e.password,rules:e.passwordFormRules,"label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("recompose:form:userName"),prop:"NewUserName"}},[i("el-input",{model:{value:e.password.NewUserName,callback:function(t){e.$set(e.password,"NewUserName",t)},expression:"password.NewUserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:oldPassword"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.OldPassWord,callback:function(t){e.$set(e.password,"OldPassWord",t)},expression:"password.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:newPassword"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.NewPassWord,callback:function(t){e.$set(e.password,"NewPassWord",t)},expression:"password.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:confirmPassword"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.ConfirmPassWord,callback:function(t){e.$set(e.password,"ConfirmPassWord",t)},expression:"password.ConfirmPassWord"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("recompose:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("recompose:button:save"))+"\n ")])],1)],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("50fc"),s=i("8237"),l=i.n(s),c={data:function(){return{password:{NewUserName:null},passwordFormRules:{NewUserName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],OldPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],NewPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}],ConfirmPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},userId:null,loading:!1}},mounted:function(){this.$set(this.password,"NewUserName",this.$route.query.userName),this.password.NewUserName||this.$message.error(this.$t("recompose:message:warning"))},methods:{logout:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=zzSessionStorage.getItem("loginType"),e.next=3,this.$store.dispatch("user/logout");case 3:t?this.$router.push("/login?loginType=".concat(t)):this.$router.push("/login");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.passwordForm.validate((function(t){if(t){if(e.password.NewPassWord!==e.password.ConfirmPassWord)return void e.$message.error(e.$t("recompose:message:passwordDiffer"));var i={NewUserName:e.password.NewUserName,NewPassWord:l()(e.password.NewPassWord),OldPassWord:l()(e.password.OldPassWord)};e.loading=!0,Object(o["r"])(i).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("recompose:message:updatedSuccessfully")),setTimeout((function(){e.logout()}),500))})).catch((function(){e.loading=!1}))}}))},cancel:function(){this.$refs["passwordForm"].resetFields()}}},u=c,d=(i("7a7c"),i("875c"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"1743d8ab",null);t["default"]=f.exports},"6d8b":function(e,t){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},a=Object.prototype.toString,r=Array.prototype,o=r.forEach,s=r.filter,l=r.slice,c=r.map,u=r.reduce,d={};function f(e,t){"createCanvas"===e&&(b=null),d[e]=t}function h(e){if(null==e||"object"!==typeof e)return e;var t=e,r=a.call(e);if("[object Array]"===r){if(!Y(e)){t=[];for(var o=0,s=e.length;o=0;r--)n.push(a[r])}}t.eachAfter=i,t.eachBefore=n},"6dd1":function(e,t,i){},"6e2e":function(e,t,i){},"6e6e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:searchForm:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.getList}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:reading:readTaskAllocation:edit"],expression:"['trials:trials-panel:reading:readTaskAllocation:edit']"}],attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:button:manualAllocation"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:85},expression:"{bottomOffset:85}"}],attrs:{border:"",data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:qcCfg:table:order"),width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:subjectCode"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskTypeCount",label:e.$t("trials:trials-list:form:visitCount"),"show-overflow-tooltip":""}}),e._v(" "),e.OtherInfo&&e.OtherInfo.IsGlobalReading?i("el-table-column",{attrs:{prop:"GlobalTaskTypeCount",label:e.$t("trials:reviewAssign:table:global"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("task",2,t.row.SubjectCode)}}},[e._v(e._s(t.row.GlobalTaskTypeCount))])]}}],null,!1,2101672749)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.ReadingType?i("el-table-column",{attrs:{prop:"JudgeTaskTypeCount",label:e.$t("trials:reviewAssign:table:ad"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("referee",4,t.row.SubjectCode)}}},[e._v(e._s(t.row.JudgeTaskTypeCount))])]}}],null,!1,168920946)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("el-table-column",{attrs:{prop:"OncologyTaskTypeCount",label:e.$t("trials:reviewAssign:table:oncology"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("task",5,t.row.SubjectCode)}}},[e._v(e._s(t.row.OncologyTaskTypeCount))])]}}],null,!1,1958599697)}):e._e(),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:trials-panel:readTaskAllocation:search:ReadPeople"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser?i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser.UserName+"("+e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser.FullName+")")+"\n ")]):e._e()],1):e._e()]}}],null,!1,2543667032)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:trials-panel:readTaskAllocation:search:ReadPeople"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser?i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser.UserName+"("+e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser.FullName+")")+"\n ")]):e._e()],1):e._e()]}}],null,!1,697847417)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:r2"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,2).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,2).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,2262754035)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:ad"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,3).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,3).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,585215795)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:o1"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,4).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,4).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,2520079859)}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:reading:readTaskAllocation:edit"])?i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",disabled:4===t.row.NowDoctorUserList.length,icon:"el-icon-thumb",title:e.$t("trials:reviewAssign:tableAction:manualAssignment")},on:{click:function(i){return e.manualAllocation(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",disabled:0===t.row.NowDoctorUserList.length,icon:"el-icon-close",title:e.$t("trials:reviewAssign:tableAction:clearReaders")},on:{click:function(i){return e.openClearAudience(t.row)}}})]}}],null,!1,2216531921)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:allocationRules"),visible:e.AllocationConfigVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{staticStyle:{"margin-bottom":"40px"},attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:title:readersList"))+"\n ")]),e._v(" "),i("el-form",{ref:"signForm",staticStyle:{"margin-top":"40px"},attrs:{size:"small","label-width":"0px"}},[i("el-form-item",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"DoctorUser.UserName",label:e.$t("trials:reviewAssign:allocationRules:table:reader"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUser.UserName+"("+t.row.DoctorUser.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanSubjectCount",label:e.$t("trials:reviewAssign:allocationRules:table:plannedCount"),"min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:reviewAssign:allocationRules:table:status"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:e.$t("trials:reviewAssign:allocationRules:table:remark"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:e.$t("common:button:edit")},on:{click:function(i){return e.addOrEdit(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:title:subsequentAllocationRules"))+"\n ")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.TrialTaskInfo.IsFollowVisitAutoAssign,callback:function(t){e.$set(e.TrialTaskInfo,"IsFollowVisitAutoAssign",t)},expression:"TrialTaskInfo.IsFollowVisitAutoAssign"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:message1"))+" "+e._s(e.$fd("AutoAssignDefaultState",e.TrialTaskInfo.FollowVisitAutoAssignDefaultState))+" ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,TaskAllocationRuleList:e.TaskAllocationRuleList,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:assignReader"),visible:e.manualAllocationVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("ManualAllocationTable",{attrs:{TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData,"reading-type":e.ReadingType,SubjectAssignSelectList:e.SubjectAssignSelectList},on:{close:function(){e.manualAllocationVisible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.ClearAudienceVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:clearReader"),visible:e.ClearAudienceVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.ClearAudienceVisible=t}}},[i("ClearAudienceList",{attrs:{TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData},on:{close:function(){e.ClearAudienceVisible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.AllocationVisible?i("el-dialog",{attrs:{title:"task"===e.AllocationType?e.$t("trials:reviewAssign:button:visitReadingTasks"):e.$t("trials:reviewAssign:button:adReadingTasks"),visible:e.AllocationVisible,fullscreen:!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.AllocationVisible=t}}},["task"===e.AllocationType?i("taskAllacation",{attrs:{trialReadingCriterionId:e.TrialReadingCriterionId,allocationReadingCategory:e.AllocationReadingCategory,allocationSubjectCode:e.AllocationSubjectCode}}):i("refereeAllacation",{attrs:{trialReadingCriterionId:e.TrialReadingCriterionId,allocationReadingCategory:e.AllocationReadingCategory,allocationSubjectCode:e.AllocationSubjectCode}})],1):e._e(),e._v(" "),e.SubjectCancelDoctorHistoryVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:cancelHistory"),visible:e.SubjectCancelDoctorHistoryVisible,width:"800px","close-on-click-modal":!1},on:{"update:visible":function(t){e.SubjectCancelDoctorHistoryVisible=t}}},[i("el-table",{attrs:{border:"",data:e.SubjectCancelDoctorHistoryList,stripe:""}},[i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:cancelHistory:table:cancelTime"),width:"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:e.$t("trials:reviewAssign:cancelHistory:table:cancelReason"),"show-overflow-tooltip":""}})],1)],1):e._e()],1)])},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=i("3e42"),l=i("958c"),c=i("c07b"),u=i("6697"),d=i("e3c3"),f=i("6071"),h=i("333d"),p=i("3ca6"),m=i("99e4"),g=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,TrialReadingCriterionId:null}},v=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null}},b={name:"TrialsNotice",components:{BaseContainer:f["default"],Pagination:h["default"],AddOrEditTaskAllocationRule:c["default"],ManualAllocationTable:u["default"],ClearAudienceList:d["default"],taskAllacation:p["default"],refereeAllacation:m["default"]},data:function(){return{TrialReadingCriterionId:"0",searchData:g(),taskSearchData:v(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationVisible:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,ClearAudienceVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,SubjectCancelDoctorHistoryVisible:!1,trialId:this.$route.query.trialId,AllocationType:null,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},ReadingType:null,rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,SubjectCancelDoctorHistoryList:[],trialCriterionList:[],TrialReadingCriterionList:[],AllocationReadingCategory:null,AllocationSubjectCode:null}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.getDoctorUserSelectList(),this.getSite(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},openSubjectCancelDoctorHistoryList:function(e){var t=this;Object(l["Q"])(e.SubjectId).then((function(e){t.SubjectCancelDoctorHistoryVisible=!0,t.SubjectCancelDoctorHistoryList=e.Result}))},openAllocation:function(e,t,i){this.AllocationVisible=!0,this.AllocationType=e,this.AllocationReadingCategory=t,this.AllocationSubjectCode=i},openClearAudience:function(e){this.rowData=Object(o["a"])({},e),this.ClearAudienceVisible=!0},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm(this.$t("trials:reviewAssign:message:message01")).then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm(this.$t("trials:reviewAssign:message:message02")).then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewAssign:message:message03")),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId})))};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error(t.$t("trials:reviewAssign:message:message04"))})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm(this.$t("trials:reviewAssign:message:message05")).then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewAssign:message:message06")),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e=this;if(0!==this.TaskAllocationRuleSelectList.length){var t;if(t=2===this.ReadingType?2:1,this.TaskAllocationRuleSelectList.length!==t){var i=this.$t("trials:reviewAssign:message:message08");return i=i.replaceAll("xxx",this.$fd("ReadingMethod",this.ReadingType)),void this.$message.error(i)}this.loading=!0,this.btnLoading=!0;var n={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(t,i){return{DoctorUserId:t.DoctorUserId,ArmEnum:1===e.ReadingType?1:i+1}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0};Object(l["g"])(n).then((function(t){e.loading=!1,e.btnLoading=!1,e.openAutoAlloction(),e.TaskAllocationRuleSelectList=[],e.SubjectAssignSelectList=[],e.getDoctorUserSelectList(),e.$message.success(e.$t("trials:reviewAssign:message:message09")),e.manualAllocationVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error(this.$t("trials:reviewAssign:message:message07"))},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},manualAllocation:function(e){this.rowData={},e&&(this.rowData=Object(o["a"])({},e),this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error(this.$t("trials:reviewAssign:message:message10"))},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,t.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.getList(),e.AllocationConfigVisible=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this,i=this.$t("trials:reviewAssign:message:message11");i=i.replaceAll("xxx","".concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,")")),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!1).then((function(e){t.loading=!1,t.$message.success(t.$t("common:message:deletedSuccessfully")),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title=this.$t("trials:reviewAssign:allocationRules:edit")):(this.rowData={},this.title=this.$t("trials:reviewAssign:allocationRules:add")),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["w"])({TrialId:this.$route.query.trialId}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.list.length>0&&(e.TrialReadingCriterionList=e.TaskAllocationRuleList[0].TrialReadingCriterionList),e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(l["N"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.ReadingType=e.OtherInfo.ReadingType,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.ClearAudienceVisible=!1,e.SubjectAssignSelectList=[]})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=g(),this.getList()},handleReset2:function(){this.taskSearchData=v(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},y=b,w=(i("11ae"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"22df1d54",null);t["default"]=_.exports},"6ecd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trialExperience-info"},[i("div",{staticClass:"title"},[e._v("Clinical Trial Experience")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.GCPList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase",label:"Phase","min-width":"20","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Review Criteria","min-width":"40","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EvaluationCriteriaList.length>0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"150","show-overflow-tooltip":""}})],1),e._v(" "),i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"GCP Certificate:"}},[i("span",[e._v(e._s(e.GCP))])]),e._v(" "),i("el-form-item",{attrs:{label:"Other Relevant Experience:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperience,callback:function(t){e.$set(e.form,"OtherClinicalExperience",t)},expression:"form.OtherClinicalExperience"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperienceCN,callback:function(t){e.$set(e.form,"OtherClinicalExperienceCN",t)},expression:"form.OtherClinicalExperienceCN"}})],1)],1)],1)},a=[],r={props:{trialExperience:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}},data:function(){return{GCPList:[],form:{},GCP:"",GCPPath:""}},mounted:function(){this.GCPList=this.trialExperience.ClinicalTrialExperienceList,this.form=this.trialExperience,this.GCP=this.trialExperience.GCP?"Yes":"No",this.trialExperience.GCP&&(this.GCPPath=this.trialExperience.GCPFullPath)},methods:{previewGCP:function(){this.GCPPath&&window.open(this.GCPPath,"_blank")}}},o=r,s=(i("0f23a"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"6ee8":function(e,t,i){"use strict";i("711c")},"6f0b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticStyle:{height:"100%",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{height:"50px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-switch",{staticStyle:{"margin-right":"20px"},attrs:{"active-text":"EN","inactive-text":"中文"},model:{value:e.isEnglish,callback:function(t){e.isEnglish=t},expression:"isEnglish"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"center"}},[i("h3",[e._v(e._s(e.title))])])]),e._v(" "),i("div",{staticStyle:{flex:"1","margin-top":"50px","overflow-y":"auto"}},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Basic Info",name:"1"}},[i("basic-info",{attrs:{"basic-info":e.doctorInfo.BasicInfoView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Employment",name:"2"}},[i("Employment",{attrs:{employment:e.workInfo,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Specialty",name:"3"}},[i("Specialty",{attrs:{specialty:e.specialtyList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Education & Training",name:"4"}},[i("education-training",{attrs:{"education-list":e.doctorInfo.EducationList,"postgraduate-list":e.doctorInfo.PostgraduateList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Research & Publication",name:"5"}},[i("research-publication",{attrs:{"research-info":e.doctorInfo.ResearchPublicationView,"audit-view":e.doctorInfo.AuditView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Trial Experience",name:"6"}},[e.doctorInfo.TrialExperienceView?i("trial-experience",{attrs:{"trial-experience":e.doctorInfo.TrialExperienceView,"is-english":e.isEnglish}}):e._e()],1)],1)],1)])},a=[],r=i("33ba"),o=i("506e"),s=i("f5c3"),l=i("0dd0"),c=i("dffe"),u=i("b061"),d=i("bf5d"),f=i("6ecd"),h=i("6024"),p=i("6d3c"),m=i("9edc"),g=i("6483"),v={components:{StatusInfo:o["default"],BasicInfo:s["default"],Employment:l["default"],Specialty:c["default"],EducationTraining:u["default"],ResearchPublication:d["default"],TrialExperience:f["default"],Credentials:h["default"],Resume:p["default"],Agreements:m["default"],Comment:g["default"]},data:function(){return{isEnglish:!0,htmlTitle:"",title:"",holiday:"",loading:!1,activeNames:["1","2","3","4","5","6","7","8","9","10"],statusList:{},basicInfo:{},workInfo:{},researchInfo:{},certificateTbl:[],resumeList:[],specialtyList:{Speciality:"",ReadingType:"",Subspeciality:""},doctorInfo:{},agreementList:[],pageLoading:!1,doctorId:""}},mounted:function(){this.isEnglish=!(!0!==this.$route.query.isEnglish&&"true"!==this.$route.query.isEnglish),this.doctorId=this.$route.query.doctorId,this.initForm()},methods:{initStatus:function(){if(this.doctorInfo.AuditView){var e=this.doctorInfo.AuditView;this.statusList.ResumeStatus=0===e.ResumeStatus?"":1===e.ResumeStatus?"Yes":"No",this.statusList.CooperateStatus=0===e.CooperateStatus?"":1===e.CooperateStatus?"Yes":"No",this.statusList.ReviewStatus=0===e.ReviewStatus?"":1===e.ReviewStatus?"Yes":"No",this.statusList.AcceptingNewTrial=e.AcceptingNewTrial?"Yes":"No",this.statusList.ActivelyReading=e.ActivelyReading?"Yes":"No",this.statusList.AdminComment=e.AdminComment,this.statusList.Submitted=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Submitted:0,this.statusList.Approved=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Approved:0,this.statusList.Reading=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Reading:0}},initEmploymentInfo:function(){this.doctorInfo.EmploymentView&&(this.workInfo=this.doctorInfo.EmploymentView,this.workInfo.Department="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOther?this.workInfo.DepartmentOther:"Other":this.workInfo.Department,this.workInfo.DepartmentCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOtherCN:this.workInfo.DepartmentCN,this.workInfo.RankOther=this.workInfo.RankOther?"Other - "+this.workInfo.RankOther:"Other",this.workInfo.Rank="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOther:this.workInfo.Rank,this.workInfo.RankCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOtherCN:this.workInfo.RankCN,"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.PositionId?(this.workInfo.Position=this.workInfo.PositionOther,this.workInfo.PositionCN=this.workInfo.PositionOtherCN):"f30a074b-2b47-4a92-97ec-e15086d37883"===this.workInfo.PositionId?this.workInfo.Position="None":(this.workInfo.Position=this.workInfo.Position,this.workInfo.PositionCN=this.workInfo.PositionCN),this.workInfo.PositionOther=this.workInfo.PositionOther?"Other - "+this.workInfo.PositionOther:"Other")},initSpecialtyInfo:function(){if(this.doctorInfo.SpecialtyView){var e=this.doctorInfo.SpecialtyView;this.specialtyList.Department=e.DepartmentName?e.DepartmentName:"Other-"+e.DepartmentOther,e.ReadingTypeOther&&e.ReadingTypeList.push("Other-"+e.ReadingTypeOther),this.specialtyList.ReadingType=e.ReadingTypeList.length>0?e.ReadingTypeList.join(", "):"",e.ReadingTypeOtherCN&&e.ReadingTypeCNList.push(e.ReadingTypeOtherCN),this.specialtyList.ReadingTypeCNList=e.ReadingTypeCNList.length>0?e.ReadingTypeCNList.join(", "):"",e.SubspecialityOther&&e.SubspecialityList.push("Other-"+e.SubspecialityOther),e.SubspecialityOtherCN&&e.SubspecialityCNList.push(e.SubspecialityOtherCN),this.specialtyList.Subspeciality=e.SubspecialityList.length>0?e.SubspecialityList.join(", "):"",this.specialtyList.SubspecialityCNList=e.SubspecialityCNList.length>0?e.SubspecialityCNList.join(", "):"",this.specialtyList.Speciality="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?"Other-"+e.SpecialityOther:e.Speciality,this.specialtyList.SpecialityCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?e.SpecialityOtherCN:e.SpecialityCN}},initForm:function(){var e=this;this.doctorId&&(this.pageLoading=!0,Object(r["q"])(this.doctorId).then((function(t){e.pageLoading=!1,t.IsSuccess&&t.Result&&(e.holiday=t.Result.InHoliday?"Yes":"No",e.doctorInfo=t.Result,e.title="".concat(e.doctorInfo.BasicInfoView.BlindName," 's Details"),e.htmlTitle=e.title,e.initStatus(),e.initEmploymentInfo(),e.initSpecialtyInfo())})))}}},b=v,y=(i("c746"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,"b364bc2a",null);t["default"]=w.exports},"6f0f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"institution-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Hospitals",name:"Hospitals"}},["Hospitals"===e.activeTab?i("Hospitals"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sites",name:"Sites"}},["Sites"===e.activeTab?i("Sites"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"CROs",name:"CROs"}},["CROs"===e.activeTab?i("CROs"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sponsors",name:"Sponsors"}},["Sponsors"===e.activeTab?i("Sponsors"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("c22c")),o=i("293b"),s=i("a5fc"),l=i("723e"),c={name:"Financials",components:{Hospitals:r["default"],Sites:o["default"],CROs:s["default"],Sponsors:l["default"]},data:function(){return{activeTab:""}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="Hospitals"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/institutions?tabActive=".concat(e.name)})}}},u=c,d=(i("23f7"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"6f18":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("f35c"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"6f59":function(e,t,i){},"6f5f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%","background-color":"#fff"}},[i("div",{staticStyle:{position:"relative"},attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{position:"absolute",right:"0",top:"0"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:reread"],expression:"['trials:readTask:reread']"}],attrs:{disabled:0===e.list.length,type:"primary",icon:"el-icon-refresh-right"},on:{click:e.handleReread}},[e._v("\n "+e._s(e.$t("trials:readTask:button:reread"))+"\n ")])],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode","min-width":"100",label:e.$t("trials:readTask:table:taskCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:readTask:table:subjectCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName","min-width":"100",label:e.$t("trials:trials-list:form:visitCount"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime","min-width":"120",label:e.$t("trials:readTask:table:signTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:readTask:button:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleReadImage(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:apply"],expression:"['trials:readTask:apply']"}],attrs:{disabled:0!==t.row.TaskState||2!==t.row.ReadingTaskState||2===t.row.ReReadingApplyState||4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState,icon:"el-icon-collection",circle:"",title:e.$t("trials:readTask:button:apply")},on:{click:function(i){return e.openApplyReReading(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:backwardHistory"],expression:"['trials:readTask:backwardHistory']"}],attrs:{disabled:!t.row.ReReadingApplyState,icon:"el-icon-toilet-paper",circle:"",title:e.$t("trials:readTask:button:backward")},on:{click:function(i){return e.reReadingHistory(t.row,1)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:readTask:dagTitle:apply"),visible:e.ApplyforReasonVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"150px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readTask:title:applyReason")))]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:applyReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:readTask:option:errorRecords")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:readTask:option:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:remark"),prop:"RequestReReadingReason"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:copyForm"),prop:"IsCopyOrigenalForms",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.IsCopyOrigenalForms,callback:function(t){e.$set(e.ApplyforReasonForm,"IsCopyOrigenalForms",t)},expression:"ApplyforReasonForm.IsCopyOrigenalForms"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCopyOrigenalForms"+t.raw.Id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readTask:title:influenceList")))]),e._v(" "),i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:readTask:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readTask:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readTask:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:readTask:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:readTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:readTask:table:taskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:readTask:table:readingCategory"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:readTask:table:readingTaskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:readTask:table:optType"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:readTask:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("5f87"),d=function(){return{SubjectCode:"",SortField:"",PageIndex:1,PageSize:20,TaskState:null,ReadingCategory:null}},f={name:"ReadTask",components:{BaseContainer:l["default"],Pagination:c["default"]},data:function(){return{searchData:d(),list:[],total:0,loading:!1,btnLoading:!1,trialId:"",ApplyforReasonVisible:!1,ApplyforReasonForm:{Type:null,RequestReReadingReason:null,IsCopyOrigenalForms:null,IsCopyFollowForms:null},InfluenceTaskList:[],rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],IsCopyOrigenalForms:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/rereadTask?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName)})},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["hc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleReadImage:function(e){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var t=Object(u["a"])(),i="";i=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t);var n=this.$router.resolve({path:i});window.open(n.href,"_blank")},openApplyReReading:function(e){var t=this;this.rowData=Object(r["a"])({},e),this.loading=!0,Object(s["H"])(e.Id,!0).then((function(e){t.InfluenceTaskList=e.Result,t.ApplyforReasonVisible=!0,t.ApplyforReasonForm={Type:null,Remake:null},t.loading=!1})).catch((function(){t.loading=!1}))},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,IsCopyOrigenalForms:e.ApplyforReasonForm.IsCopyOrigenalForms,IsCopyFollowForms:e.ApplyforReasonForm.IsCopyFollowForms,RequestReReadingType:1,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:readTask:option:errorRecords")};Object(s["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:readTask:message:msg1")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},handleReread:function(){var e=this;this.$confirm(this.$t("trials:readTask:message:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={trialId:e.trialId,trialReadingCriterionId:e.TrialReadingCriterionId};Object(o["f"])(t).then((function(t){e.$message({message:e.$t("trials:readTask:message:msg3"),type:"success"}),e.getList()})).catch((function(){e.loading=!1})),console.log(t)})).catch((function(){e.loading=!1}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"6f97":function(e,t,i){},"6fc8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前检查",name:"current-study"}},[i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(e.visitInfo)+"\n ")]),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.studyList,(function(t,n){return i("div",{key:n},[i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(t.StudyCode)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.Description,expression:"study.Description"}],staticClass:"text-desc"},[e._v("\n "+e._s(t.Description)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.SeriesCount,expression:"study.SeriesCount"}],staticClass:"text-desc"},[e._v("\n "+e._s(t.Modalities)+" : "+e._s(t.SeriesCount)+" Series\n ")]),e._v(" "),e._l(t.SeriesList,(function(t,a){return i("div",{key:a,class:{viewerSideActive:0==a&&0===n},staticStyle:{position:"relative","margin-bottom":"5px","border-radius":"2px",border:"1px solid #404040"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(i,n,a,t)}}},[i("div",{staticClass:"viewernavigatorwrapper"},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.InstanceCount,expression:"series.InstanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:" series.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"series.description"}],staticStyle:{width:"120px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])])],1),e._v(" "),e.showDelete?i("div",{on:{click:function(e){e.stopPropagation()}}},[i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否阅片")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeReadingStatus(i,t)}},model:{value:t.isReading,callback:function(i){e.$set(t,"isReading",i)},expression:"series.isReading"}}),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否删除")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeDeleteStatus(i,t)}},model:{value:t.isDeleted,callback:function(i){e.$set(t,"isDeleted",i)},expression:"series.isDeleted"}})],1):e._e(),e._v(" "),t.prefetchInstanceCount>0&&t.prefetchInstanceCount0){e.$refs.dicomViewer.loadImageStack(e.studyList[0].SeriesList[0]);var i=e.studyList[0].SeriesList[0].imageIds[0],n=i.split("/")[i.split("/").length-1];n=n.split(".")[0],e.firstInstanceId=n}}))},showSeriesImage:function(e,t,i,n){var a=this,r=e.currentTarget,o=document.querySelectorAll("[series-type]");if(Array.from(o).forEach((function(e){e.classList.remove("viewerSideActive")})),r.classList.add("viewerSideActive"),this.currentSeriesIndex=i,this.$refs.dicomViewer.loadImageStack(this.studyList[t].SeriesList[i]),!n.loadStatus){n.isLoading=!0;var s=parseInt((new Date).getTime());n.imageIds.map((function(e,t){var i="";i=0===t?10*parseInt((new Date).getTime()):s-1,a.load(e,n.seriesId,i)}))}},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.isReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.isReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isReading?1:2;i.loading=!0,Object(d["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isReading=!t.isReading,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.isDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.isDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isDeleted?5:4;i.loading=!0,Object(d["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isDeleted=!t.isDeleted,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleTabClick:function(e,t){var i=this;if("relation-study"===e.name&&this.relationStudyList.length<=0){var n=this.$loading({target:document.querySelector(".pane-relation-wrapper"),fullscreen:!1,lock:!0,text:"Loading",background:"rgb(49 49 49 / 50%)",spinner:"el-icon-loading"});Object(u["e"])(this.subjectVisitId).then((function(e){n.close(),i.relationStudyList=e.Result})).catch((function(){n.close()}))}},getRelationSeriesByStudy:function(e,t){if(this.relationStudyList[t].seriesCount)this.relationStudyList[t].showSeries=!this.relationStudyList[t].showSeries,this.$forceUpdate();else{var i=this,n=this.$loading({target:document.querySelector(".relation-study-wrapper-".concat(t)),fullscreen:!1,lock:!0,text:"Loading",background:"rgb(49 49 49 / 50%)",spinner:"el-icon-loading"});Object(u["k"])(e).then((function(a){i.relationStudyList[t].studyCode=a.Result.StudyCode,i.relationStudyList[t].modality=a.Result.Modalities,i.relationStudyList[t].seriesCount=a.Result.SeriesCount,Object(u["j"])("/series/list/".concat(e)).then((function(e){if(n.close(),null!=e.Result&&e.Result.length>0){var a=[],r=e.Result;r.forEach((function(e){var t=[];e.InstancePathList.forEach((function(e){t.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),a.push({imageIds:t,seriesId:e.Id,seriesUid:e.SeriesInstanceUid,seriesNumber:e.SeriesNumber,sliceThickness:e.SliceThickness,modality:e.Modality,description:e.Description,previewImageUrl:"/api/series/preview/".concat(e.Id),instanceCount:e.InstanceCount,prefetchInstanceCount:0,hasLabel:e.HasLabel,keySeries:e.KeySeries,loadStatus:!1,imageloadedArr:[]})})),i.relationStudyList[t].seriesCount=a.length,i.relationStudyList[t].seriesList=a,i.relationStudyList[t].showSeries=!0,i.$forceUpdate()}})).catch((function(){n.close()}))})).catch((function(){n.close()}))}},showRelationSeriesImage:function(e,t,i){this.currentRelationIndex=i;var n=e.currentTarget,a=document.querySelectorAll("[series-type]");Array.from(a).forEach((function(e){e.classList.remove("viewerSideActive")})),n.classList.add("viewerSideActive"),this.$refs.dicomViewer.loadImageStack(t)},loadAllImages:function(){var e=this,t=parseInt((new Date).getTime()),i=[];this.studyList.map((function(n){n.SeriesList.map((function(n){if(!n.loadStatus&&n.seriesId!==e.firstSeriesId){var a=isNaN(parseInt(n.sliceThickness))?null:parseInt(n.sliceThickness);(5===a||n.instanceCount<=100)&&n.imageIds.map((function(e){i.push({imageId:e,seriesId:n.seriesId,priority:t})}))}}))})),f["a"].setPendingList(i)},load:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999;return new Promise((function(a,r){f["a"].loadAndCacheImagePlus(e,t,n).then((function(t){t&&(i.imageLoaded(e,t.data.string("x0020000e")),a(t))})).catch((function(e){r(e)}))}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])(Object(r["a"])({key:e},t),{},{execute:function(){return s["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},imageLoaded:function(e,t){for(var i=-1,n=-1,a=0;a0)break}if(!(n<0)){var o=this.studyList[i].SeriesList[n].imageIds.indexOf(e);o<0||this.studyList[i].SeriesList[n].imageloadedArr.indexOf(e)<0&&(++this.studyList[i].SeriesList[n].prefetchInstanceCount,this.studyList[i].SeriesList[n].imageloadedArr.push(e),this.studyList[i].SeriesList[n].prefetchInstanceCount>=this.studyList[i].SeriesList[n].instanceCount&&(this.studyList[i].SeriesList[n].prefetchInstanceCount=this.studyList[i].SeriesList[n].instanceCount,this.studyList[i].SeriesList[n].loadStatus=!0))}},cornerstoneImageLoaded:function(e){e.detail.image.imageId.includes(this.firstInstanceId)&&!this.isStartLoad&&(this.loadAllImages(),this.isStartLoad=!0,f["a"].executeTask());var t=e.detail.image.sharedCacheKey,i=this.cachedImages.findIndex((function(e){return e.uri===t}));-1===i?this.cachedImages.push({uri:t,timestamp:(new Date).getTime()}):this.cachedImages[i].timestamp=(new Date).getTime();for(var n=e.detail.image.imageId,a=e.detail.image.data.string("x0020000e"),r=-1,o=-1,s=0;s0)break}if(!(o<0)){var c=this.studyList[r].SeriesList[o].imageIds.indexOf(n);c<0||this.studyList[r].SeriesList[o].imageloadedArr.indexOf(n)<0&&(++this.studyList[r].SeriesList[o].prefetchInstanceCount,this.studyList[r].SeriesList[o].imageloadedArr.push(n),this.studyList[r].SeriesList[o].prefetchInstanceCount>=this.studyList[r].SeriesList[o].instanceCount&&(this.studyList[r].SeriesList[o].prefetchInstanceCount=this.studyList[r].SeriesList[o].instanceCount,this.studyList[r].SeriesList[o].loadStatus=!0))}}}},g=m,v=(i("5bef"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"6fda":function(e,t,i){var n=i("6d8b"),a=n.each,r="\0_ec_hist_store";function o(e,t){var i=u(e);a(t,(function(t,n){for(var a=i.length-1;a>=0;a--){var r=i[a];if(r[n])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(t)}function s(e){var t=u(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return a(i,(function(e,i){for(var a=t.length-1;a>=0;a--){e=t[a][i];if(e){n[i]=e;break}}})),n}function l(e){e[r]=null}function c(e){return u(e).length}function u(e){var t=e[r];return t||(t=e[r]=[{}]),t}t.push=o,t.pop=s,t.clear=l,t.count=c},"6fdc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Setting",name:"Setting"}},[e.load.Setting?i("Setting"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{id:this.$route.query.Id,active:"",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},created:function(){""===this.$route.query.Id&&this.$router.push({path:"/reviewers/reviewers-list"}),this.active=this.$route.query.tabActive,this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id"),n=Object(m["b"])("isEnglish");this.$router.push({path:"/reviewers/reviewers-edit?Id=".concat(i,"&isEnglish=").concat(n,"&tabActive=").concat(e.name)})}}},v=g,b=(i("3c13"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"7a9b7290",null);t["default"]=y.exports},"6ff0":function(e,t,i){"use strict";i("b7c3")},7023:function(e,t,i){var n=i("6d8b"),a={updateSelectedMap:function(e){this._targetList=n.isArray(e)?e.slice():[],this._selectTargetMap=n.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),n.createHashMap())},select:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each((function(e){e.selected=!1})),i&&(i.selected=!0)},unSelect:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=i)return this[i.selected?"unSelect":"select"](e,t),i.selected},isSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return i&&i.selected}};e.exports=a},7037:function(e,t){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},7069:function(e,t,i){"use strict";i("68f7")},"707c":function(e,t,i){"use strict";i("7aa8")},7086:function(e,t,i){},"70eb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role"},[i("div",{ref:"leftContainer",staticClass:"left"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("admin:KeyWord")}},[i("el-input",{attrs:{clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.queryParams.SearchFilter,callback:function(t){e.$set(e.queryParams,"SearchFilter",t)},expression:"queryParams.SearchFilter"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.getList}},[e._v(e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:add"],expression:"['system:role:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAddRole}},[e._v("\n "+e._s(e.$t("common:button:new")))])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:30},expression:"{bottomOffset:30}"}],staticClass:"table",attrs:{size:"small",height:"100",data:e.list}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:UserType"),prop:"UserTypeName","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Shortname"),prop:"UserTypeShortName","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Group"),prop:"Note","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserTypeGroupList.map((function(e){return e.GroupName})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:PermissionStr"),prop:"PermissionStr","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Description"),prop:"Description","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["system:role:edit"])?i("el-table-column",{attrs:{label:"Action",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:edit"],expression:"['system:role:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleEditRole(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:delete"],expression:"['system:role:delete']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDeleteRole(t.row)}}},[e._v("Delete")])]}}],null,!1,3778757461)}):e._e()],1)],1),e._v(" "),e.model_cfg.visible?i("role-form",{attrs:{data:e.editRow},on:{close:e.closeModal}}):e._e()],1)},a=[],r=(i("20d6"),i("30b0")),o=i("50fc"),s=i("de9d"),l=i("fab6"),c={name:"Role",components:{RoleForm:s["default"]},dicts:["UserTypeGroup"],mixins:[l["a"]],data:function(){return{role_columns:r["b"],model_cfg:r["a"],list:[],total:0,loading:!1,treeData:[],defaultProps:{label:"MenuName",children:"Children"},queryParams:{GroupId:void 0,SearchFilter:void 0},dialogVisible:!1,editRow:{},expandedKeys:[],treeLoading:!1,funcListLoading:!1,funcList:[]}},mounted:function(){this.getList()},methods:{getDictionary:function(){},getList:function(){var e=this;this.loading=!0,Object(o["p"])(this.queryParams).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAddRole:function(){this.editRow={},this.model_cfg.visible=!0,this.model_cfg.title="Add"},handleEditRole:function(e){this.editRow=e,this.model_cfg.visible=!0,this.model_cfg.title="Edit"},handlePermission:function(e){},handleDeleteRole:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["f"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeModal:function(){this.model_cfg.visible=!1,this.getList()}}},u=c,d=(i("6d1f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"711c":function(e,t,i){},7148:function(e,t,i){},7154:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});o.a.add(s);t["default"]=s},"71ad":function(e,t,i){var n=i("6d8b"),a={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),r.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},a),r.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=n.defaults({scale:!0,logBase:10},r.valueAxis);var o=r;e.exports=o},"71b2":function(e,t,i){var n=i("6d8b"),a=n.createHashMap;function r(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.getRawData(),n=e.get("color"),r=a();t.each((function(e){r.set(t.getRawIndex(e),e)})),i.each((function(a){var o=i.getName(a),s=n[(e.nameMap.get(o)-1)%n.length];i.setItemVisual(a,"color",s);var l=r.get(a);null!=l&&t.setItemVisual(l,"color",s)}))}))}e.exports=r},"71ed":function(e,t,i){},7234:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"uploadExcel",staticClass:"upload-excel-file"},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:file")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xlsx,.xls,.csv","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"show-file-list":!0,limit:1,"on-exceed":e.handleExceed}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:dialogButton:upload"))+"\n ")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n ("+e._s(e.$t("trials:consistencyCheck:message:excelFileOnly"))+")\n ")])],1)],1)])],1)},a=[],r=(i("7f7f"),i("3e42")),o={data:function(){return{btnLoading:!1,trialId:this.$route.query.trialId}},methods:{beforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error(this.$t("trials:consistencyCheck:message:xlsx")),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(r["Df"])(this.trialId,e.file).then((function(e){t.btnLoading=!1,t.$emit("refreshTable")})).catch((function(){t.btnLoading=!1}))},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:consistencyCheck:message:onlyOneFile"))},checkFileSuffix:function(e){var t=["xls","xlsx","csv"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},s=o,l=(i("49e3"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"723e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"Sponsor Name:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SponsorName,callback:function(t){e.$set(e.searchData,"SponsorName",t)},expression:"searchData.SponsorName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddSponsor}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorCode",label:"Sponsor Code","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorName",label:"Sponsor Name","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorNameCN",label:"Sponsor NameCN","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[e.editVisible?i("sponsor-form",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("3f77"),c=function(){return{SponsorName:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""}},u={name:"Sponsors",components:{BoxContent:o["default"],Pagination:s["default"],SponsorForm:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,rowData:{},editVisible:!1,title:""}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["wb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddSponsor:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=e,this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["N"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=c(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editVisible=!1}}},d=u,f=(i("d870"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"af4282ac",null);t["default"]=h.exports},7271:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},7293:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("4f85")),r=i("6179"),o=i("6d8b"),s=o.concatArray,l=o.mergeAll,c=o.map,u=i("eda2"),d=u.encodeHTML,f=(i("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),h="undefined"===typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=c(t,(function(e){var t=[e[0].coord,e[1].coord],i={coords:t};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),l([i,e[0],e[1]])})))}var m=a.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),m.superApply(this,"init",arguments)},mergeOption:function(e){if(p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}m.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),i=t.option instanceof Array?t.option:t.getShallow("coords");return i},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),g=m;e.exports=g},"72a8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"qsForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px",disabled:e.isLook}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:type"),prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(t){return"calculation"!==t.value&&"increment"!==t.value?i("el-option",{key:t.value,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupName"),prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupNameEn"),prop:"GroupEnName"}},[i("el-input",{model:{value:e.form.GroupEnName,callback:function(t){e.$set(e.form,"GroupEnName",t)},expression:"form.GroupEnName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsName"),prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:imageCount")}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:FileType"),prop:"DataSource"}},[i("el-checkbox-group",{model:{value:e.form.FileType,callback:function(t){e.$set(e.form,"FileType",t)},expression:"form.FileType"}},[e._l(e.$d.fileType,(function(t){return i("el-checkbox",{key:"fileType"+t.value,attrs:{value:t.value,label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),e._v("\n "+e._s(e.$d.fileType)+"\n ")],2)],1):e._e(),e._v(" "),"input"===e.form.Type||"textarea"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:MaxAnswerLength")}},[i("el-input",{model:{value:e.form.MaxAnswerLength,callback:function(t){e.$set(e.form,"MaxAnswerLength",t)},expression:"form.MaxAnswerLength"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:orderMark")}},[i("el-input",{model:{value:e.form.OrderMark,callback:function(t){e.$set(e.form,"OrderMark",t)},expression:"form.OrderMark"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:maxQuestionCount")}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.MaxQuestionCount,callback:function(t){e.$set(e.form,"MaxQuestionCount",t)},expression:"form.MaxQuestionCount"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isCopyLesions")}},[i("el-switch",{model:{value:e.form.IsCopyLesions,callback:function(t){e.$set(e.form,"IsCopyLesions",t)},expression:"form.IsCopyLesions"}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:dataSource"),prop:"DataSource"}},[i("el-radio-group",{model:{value:e.form.DataSource,callback:function(t){e.$set(e.form,"DataSource",t)},expression:"form.DataSource"}},e._l(e.$d.DataSource,(function(t){return i("el-radio",{key:"DataSource"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:valueType"),prop:"ValueType",rules:[{required:!0,message:this.$t("common:ruleMessage:specify")}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return 3!==t.value?i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.ValueType?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:digitPlaces"),prop:"ValueType",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-input",{attrs:{value:e.$fd("DigitPlaces",e.ValueType).toString(),disabled:!0}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:unit"),prop:"Unit",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&4===e.form.Unit?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customUnit"),prop:"CustomUnit",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-input",{model:{value:e.form.CustomUnit,callback:function(t){e.$set(e.form,"CustomUnit",t)},expression:"form.CustomUnit"}})],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.DataSource?i("div",{staticStyle:{background:"#f8f8f8",padding:"10px 0px","border-radius":"10px",position:"relative","margin-bottom":"10px"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customCalculateMark"),prop:"CustomCalculateMark"}},[i("el-radio-group",{staticStyle:{"line-height":"40px"},on:{change:function(t){return e.CustomCalculateMarkChange(t)}},model:{value:e.form.CustomCalculateMark,callback:function(t){e.$set(e.form,"CustomCalculateMark",t)},expression:"form.CustomCalculateMark"}},[i("div",e._l(e.$d.CustomCalculateMark,(function(t){return t.value<=4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1),e._v(" "),i("div",e._l(e.$d.CustomCalculateMark,(function(t){return t.value>4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)])],1),e._v(" "),e.isShow?i("el-table",{ref:"CalculateTable",staticStyle:{margin:"10px",width:"calc(100% - 20px)"},attrs:{data:e.form.CalculateQuestions,size:"small"}},[i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:order"),"min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,896436857)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customCalculateMark"),"show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.$index&&[1,2,3,4].includes(e.form.CustomCalculateMark)?null:e.$fd("CustomCalculateMark",e.form.CustomCalculateMark))+"\n ")]}}],null,!1,2919079095)}),e._v(" "),e.form.CustomCalculateMark>4?i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:tableName"),prop:"QuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{attrs:{clearable:"",disabled:!t.row.IsTable},model:{value:t.row.QuestionId,callback:function(i){e.$set(t.row,"QuestionId",i)},expression:"scope.row.QuestionId"}},e._l(e.tableQuestions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)]}}],null,!1,2017157543)}):e._e(),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsName"),prop:"TableQuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsTable?e._e():i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(e.Questions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1),e._v(" "),t.row.IsTable?i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(t.row.QuestionId?e.tableQuestions.find((function(e){return e.QuestionId===t.row.QuestionId})).TableQuestions:[],(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1):e._e()]}}],null,!1,3464464953)}),e._v(" "),e.form.CustomCalculateMark<=4?i("el-table-column",{attrs:{label:e.$t("common:action:action"),prop:"TableQuestionId","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-plus",size:"mini",circle:"",title:e.$t("trials:readingUnit:qsList:title:add")},on:{click:function(i){return e.addCustomCalculateMark(t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-minus",size:"mini",circle:"",disabled:e.form.CalculateQuestions.length<=2,title:e.$t("trials:readingUnit:qsList:title:delete")},on:{click:function(i){return e.deleteCustomCalculateMark(t.$index)}}})]}}],null,!1,2849570752)}):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#666",padding:"0 15px 0","text-align":"right"}},[i("i",{staticClass:"el-icon-info"}),e._v(e._s([1,2,3,4].includes(e.form.CustomCalculateMark)?e.$t("trials:readingUnit:qsList:message:msg1"):e.$t("trials:readingUnit:qsList:message:msg2"))+"\n ")])],1):e._e(),e._v(" "),"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type||!e.isFromSystem?e._e():i("el-form-item",{attrs:{label:"选项类型",prop:"QuestionGenre",rules:[{required:"calculation"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.questionGenreChange(t,e.form)}},model:{value:e.form.QuestionGenre,callback:function(t){e.$set(e.form,"QuestionGenre",t)},expression:"form.QuestionGenre"}},[i("el-radio",{attrs:{label:-1}},[e._v("\n 无\n ")]),e._v(" "),e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:0===t.value||3===t.value,expression:"item.value===0 || item.value===3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2)],1),e._v(" "),e.isFromSystem&&(!e.isFromSystem||3===e.form.QuestionGenre)||"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type?e._e():i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1),e._v(" "),3===e.form.QuestionGenre&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode"}},[i("el-select",{attrs:{clearable:""},on:{change:function(){e.form.DefaultValue=null}},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.DictionaryCode?e.$d[e.form.DictionaryCode]:[],(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),0===e.form.QuestionGenre||null===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.TypeValue?e.form.TypeValue.split("|"):[],(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupName")}},[i("el-select",{attrs:{clearable:"",disabled:e.isParentExistGroup},model:{value:e.form.GroupId,callback:function(t){e.$set(e.form,"GroupId",t)},expression:"form.GroupId"}},e._l(e.groupOptions,(function(e){return i("el-option",{key:e,attrs:{label:e.GroupName,value:e.GroupId}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isShow"),prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type&&"summary"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isRequired"),prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:parentId"),prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:parentTriggerValueList"),prop:"ParentTriggerValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.ParentTriggerValueList,callback:function(t){e.$set(e.form,"ParentTriggerValueList",t)},expression:"form.ParentTriggerValueList"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:relevanceId"),prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:relevanceValueList"),prop:"RelevanceValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.RelevanceValueList,callback:function(t){e.$set(e.form,"RelevanceValueList",t)},expression:"form.RelevanceValueList"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:order"),prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isShowInDicom")}},[i("el-radio-group",{model:{value:e.form.IsShowInDicom,callback:function(t){e.$set(e.form,"IsShowInDicom",t)},expression:"form.IsShowInDicom"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsShowInDicom"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion")}},[i("el-radio-group",{on:{change:function(t){e.isJudgeQuestionChange(t,e.form)}},model:{value:e.form.IsJudgeQuestion,callback:function(t){e.$set(e.form,"IsJudgeQuestion",t)},expression:"form.IsJudgeQuestion"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsJudgeQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:limitEdit")}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType")}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:Remark"),prop:"Remark"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[e.isLook?e._e():i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("6b54"),i("75fc")),o=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("c5f6"),i("3e42")),l={name:"AddOrUpdateClinicalData",props:{digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},trialCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},isFromSystem:{type:Boolean,default:!0},isLook:{type:Boolean,default:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error(e.$t("trials:readingUnit:qsList:message:msg0"))):n()}};return{form:{Id:"",ReadingQuestionCriterionTrialId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ParentId:"",ParentTriggerValueList:[],ShowOrder:0,ShowQuestion:0,IsRequired:2,IsJudgeQuestion:!1,GroupName:"",GroupEnName:"",Remark:"",ImageCount:1,RelevanceId:"",RelevanceValueList:[],LesionType:"",QuestionType:null,QuestionGenre:null,IsShowInDicom:!1,CalculateQuestions:[],CustomCalculateMark:"",DataSource:0,GlobalReadingShowType:3,CustomUnit:null,ValueType:null,Unit:null,LimitEdit:0,DefaultValue:null,OrderMark:null,MaxQuestionCount:null,IsCopyLesions:!1,MaxAnswerLength:null,FileType:[],DictionaryCode:null,GroupId:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],QuestionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TypeValue:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"".concat(this.$t("common:ruleMessage:maxLength")," 200")}],ShowQuestion:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsRequired:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ParentId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ParentTriggerValueList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],RelevanceId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],RelevanceValueList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],GroupName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],groupOptions:[],isParentExistGroup:!1,lesionTypes:[],Questions:[],tableQuestions:[],isShow:!0}},watch:{"form.CustomCalculateMark":function(){}},mounted:function(){this.initForm(),this.getCalculateQuestions("number"),this.getCalculateQuestions("table")},methods:{deleteCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e,1)},addCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e+1,0,{IsTable:!1,QuestionId:null,TableQuestionId:null})},CustomCalculateMarkChange:function(){var e=this;this.isShow=!1,this.form.CustomCalculateMark<=4?this.form.CalculateQuestions=[{IsTable:!1,QuestionId:null,TableQuestionId:null},{IsTable:!1,QuestionId:null,TableQuestionId:null}]:this.form.CalculateQuestions=[{IsTable:!0,QuestionId:null,TableQuestionId:null}],this.$nextTick((function(){e.isShow=!0}))},getCalculateQuestions:function(e){var t=this;Object(s["Qb"])({TrialCriterionId:this.trialCriterionId,type:e}).then((function(i){"table"===e?t.tableQuestions=i.Result:t.Questions=i.Result}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,s,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getGroupOptions();case 2:return e.next=4,this.getParentQuestions();case 4:return e.next=6,this.getLesionType();case 6:if(Object.keys(this.data).length>0){for(t in this.form)"CalculateQuestions"===t&&void 0!==this.data[t]?(console.log(this.data[t]),this.form[t]=JSON.parse(this.data[t]),console.log("CalculateQuestions",this.form[t])):this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.FileType&&this.form.FileType.length>0?this.form.FileType=this.form.FileType.split(","):this.form.FileType=[],""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0),this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===l.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===l.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(o=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){o.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=o)))}this.data.ShowOrder||0===this.data.ShowOrder||this.list.length>0&&(s=this.list.map((function(e){return e.ShowOrder})),this.form.ShowOrder=Math.max.apply(Math,Object(r["a"])(s))+1);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.qsForm.validate((function(t){if(t){e.loading=!0;var i=Object.assign({},e.form);i.TrialId=e.$route.query.trialId,i.ReadingCriterionPageId=e.data.ReadingCriterionPageId,i.CalculateQuestions=JSON.stringify(e.form.CalculateQuestions),"upload"!==e.form.Type&&(e.form.ImageCount=0),i.FileType=e.form.FileType.toString(),Object(s["v"])(i).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))}}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId,readingCriterionPageId:e.data.ReadingCriterionPageId};Object(s["Nd"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionCriterionTrialId:e.data.ReadingQuestionCriterionTrialId,id:e.data.Id,readingCriterionPageId:e.data.ReadingCriterionPageId};Object(s["Dd"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},isShowQuestionChange:function(e,t){"table"!==this.form.Type&&("group"!==this.form.Type?2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):1===e?(t.ParentId="",t.ParentTriggerValueList=[],t.GroupName="",t.GroupEnName="",this.isParentExistGroup=!0):0===e&&(t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):t.QuestionName="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValueList=[])},parentQuestionChange:function(e,t){if(console.log(e),this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName,t.GroupEnName=this.parentOptions[i].GroupEnName))}else t.GroupName="",t.GroupEnName="",this.isParentExistGroup=!1;t.ParentTriggerValueList=[]},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.reParentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.RelevanceValueList=[]},isJudgeQuestionChange:function(e,t){e&&(t.ShowQuestion=0,t.IsRequired=0)},qsTypeChange:function(e,t){"group"===e&&(t.QuestionName=""),"select"!==e&&"radio"!==e&&(t.IsJudgeQuestion=!1,t.TypeValue=""),"table"===e?t.IsRequired=2:t.LesionType=null},getLesionType:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId};Object(s["Vb"])(n).then((function(i){e.lesionTypes=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"9e7e677a",null);t["default"]=d.exports},"72b6":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("eda2"),s=i("f934"),l=i("5f14"),c=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,i,n){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,i=o.normalizeCssArray(t.get("padding")||0),n=e.getBoundingRect();e.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,i){i=i||{};var n=i.forceState,r=this.visualMapModel,o={};if("symbol"===t&&(o.symbol=r.get("itemSymbol")),"color"===t){var s=r.get("contentColor");o.color=s}function c(e){return o[e]}function u(e,t){o[e]=t}var d=r.controllerVisuals[n||r.getValueState(e)],f=l.prepareVisualTypes(d);return a.each(f,(function(n){var a=d[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",a=d.__alphaForOpacity),l.dependsOn(n,t)&&a&&a.applyVisual(e,c,u)})),o[t]},positionGroup:function(e){var t=this.visualMapModel,i=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:a.noop});e.exports=c},"72d1":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"72e5":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"72f0":function(e,t,i){},"72f0a":function(e,t){function i(e){return function(){return e}}e.exports=i},7368:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("625e"),o=r.enableClassCheck;function s(e){return"_EC_"+e}var l=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=l.prototype;function u(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function d(e,t,i){this.node1=e,this.node2=t,this.dataIndex=null==i?-1:i}c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,t){e=null==e?""+t:""+e;var i=this._nodesMap;if(!i[s(e)]){var n=new u(e,t);return n.hostGraph=this,this.nodes.push(n),i[s(e)]=n,n}},c.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},c.getNodeById=function(e){return this._nodesMap[s(e)]},c.addEdge=function(e,t,i){var n=this._nodesMap,a=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),u.isInstance(e)||(e=n[s(e)]),u.isInstance(t)||(t=n[s(t)]),e&&t){var r=e.id+"-"+t.id,o=new d(e,t,i);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),a[r]=o,o}},c.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},c.getEdge=function(e,t){u.isInstance(e)&&(e=e.id),u.isInstance(t)&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},c.eachNode=function(e,t){for(var i=this.nodes,n=i.length,a=0;a=0&&e.call(t,i[a],a)},c.eachEdge=function(e,t){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&e.call(t,i[a],a)},c.breadthFirstTraverse=function(e,t,i,n){if(u.isInstance(t)||(t=this._nodesMap[s(t)]),t){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a=0&&this[e][t].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[e][t].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};a.mixin(u,f("hostGraph","data")),a.mixin(d,f("hostGraph","edgeData")),l.Node=u,l.Edge=d,o(u),o(d);var h=l;e.exports=h},"737a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"文件类型:"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.dict.type.Sys_Document,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:"文件类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignViewMinimumMinutes",label:"查看最短时间(分钟)","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"NeedConfirmedUserTypes",label:"需要签署的用户类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NeedConfirmedUserTypes?t.row.NeedConfirmedUserTypes.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsDeleted?"Yes":"No")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("\n 预览\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{disabled:t.row.IsDeleted,type:"text"},on:{click:function(i){return e.handleRepeal(t.row)}}},[e._v("\n 废除\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:"预览",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType}}):e._e()],1)]):e._e()],1)],2)},a=[],r=(i("20d6"),i("db72")),o=(i("ac6a"),i("e56e")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("46c8"),d=i("c686"),f=function(){return{FileTypeId:"",Name:"",PageIndex:1,PageSize:20}},h={name:"SignatureTemplate",components:{BaseContainer:l["default"],Pagination:c["default"],TemplateForm:u["default"],PreviewFile:d["default"]},dicts:["Sys_Document"],data:function(){return{searchData:f(),list:[],total:0,currentRow:{},currentPath:"",currentType:"",editVisible:!1,previewVisible:!1,title:"",loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Bb"])(this.searchData).then((function(t){e.loading=!1;var i=t.Result,n=i.CurrentPageData,a=i.TotalCount;n.forEach((function(e){e.NeedConfirmedUserTypes=[],e.NeedConfirmedUserTypeIds=[],e.NeedConfirmedUserTypeList.forEach((function(t){e.NeedConfirmedUserTypes.push(t.UserTypeShortName),e.NeedConfirmedUserTypeIds.push(t.NeedConfirmUserTypeId)}))})),e.list=n,e.total=a})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title="Add",this.currentRow={},this.editVisible=!0},handlePreview:function(e){var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleEdit:function(e){this.title="Edit",this.currentRow=Object(r["a"])({},e),this.editVisible=!0},handleRepeal:function(e){var t=this;this.$confirm("是否确认废除此文件?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(s["Ef"])(e.Id,!0).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("保存成功!"))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["R"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},closeDialog:function(){this.editVisible=!1},handleReset:function(){var e=this;this.searchData=f(),this.getList(),this.$nextTick((function(){e.$refs.SysAttachmentList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"73ca":function(e,t,i){var n=i("2306"),a=i("7e5b");function r(e){this._ctor=e||a,this.group=new n.Group}var o=r.prototype;function s(e,t,i,n){var a=t.getItemLayout(i);if(f(a)){var r=new e._ctor(t,i,n);t.setItemGraphicEl(i,r),e.group.add(r)}}function l(e,t,i,n,a,r){var o=t.getItemGraphicEl(n);f(i.getItemLayout(a))?(o?o.updateData(i,a,r):o=new e._ctor(i,a,r),i.setItemGraphicEl(a,o),e.group.add(o)):e.group.remove(o)}function c(e){return e.animators&&e.animators.length>0}function u(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function d(e){return isNaN(e[0])||isNaN(e[1])}function f(e){return!d(e[0])&&!d(e[1])}o.isPersistent=function(){return!0},o.updateData=function(e){var t=this,i=t.group,n=t._lineData;t._lineData=e,n||i.removeAll();var a=u(e);e.diff(n).add((function(i){s(t,e,i,a)})).update((function(i,r){l(t,n,e,r,i,a)})).remove((function(e){i.remove(n.getItemGraphicEl(e))})).execute()},o.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,i){t.updateLayout(e,i)}),this)},o.incrementalPrepareUpdate=function(e){this._seriesScope=u(e),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(e,t){function i(e){e.isGroup||c(e)||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n0?this.newBtnDisabled=!0:this.newBtnDisabled=!1,"Employment"===e.Type||"Specialty"===e.Type?this.columns=this.dictionary_col1:this.columns=this.dictionary_col2,this.getList()},handleNew:function(){this.rowData={},this.dictionary_model.title="Add",this.dictionary_model.visible=!0},handleEdit:function(e){this.rowData=e,this.dictionary_model.title="Edit",this.dictionary_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["C"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"),t.$store.dispatch("global/setDictionary",{}))}))}))},closeModel:function(){this.dictionary_model.visible=!1,this.getList()},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=(i("df96"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"39a19994",null);t["default"]=h.exports},7419:function(e,t,i){var n=i("3eba"),a=i("b336");i("bc5f"),i("ab05"),i("307a"),i("3cd6"),i("d6ef"),n.registerPreprocessor(a)},"744a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[e.isInit?i("resume-info"):e._e()],1)},a=[],r=i("e2f5"),o=i("a599"),s=i("4360"),l={components:{ResumeInfo:r["default"]},data:function(){return{isInit:!1}},mounted:function(){var e=Object(o["b"])("token");e&&(s["a"].dispatch("user/setToken",e),Object(o["a"])("token","")),this.isInit=!0}},c=l,u=(i("bd4d"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"c5f8bbf2",null);t["default"]=d.exports},7459:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"adReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("评估结果")])]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adInfo.VisitInfoList}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),e._l(e.judgeQuestion,(function(t){return i("el-table-column",{key:t.armEnum,attrs:{label:e.$fd("ArmEnum",t.armEnum),align:"center",prop:""}},[e._l(t.judgeQuestionList,(function(n,a){return i("el-table-column",{key:a,attrs:{prop:"",label:n,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[2===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer?i("div",[i("span",[e._v(e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer)))]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(i){return e.handleViewDetail(n.row.VisitTaskInfoList[t.index].GlobalVisitTaskId)}}},[e._v("\n 查看详情\n ")])],1):i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))+"\n ")])]):i("div",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]}}],null,!0)})}))],2)})),e._v(" "),i("el-table-column",{attrs:{label:"查看详情",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",title:"查看R1详情"},on:{click:function(i){return e.handleView(t.row,1)}}},[e._v("\n R1\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",title:"查看R2详情"},on:{click:function(i){return e.handleView(t.row,2)}}},[e._v("\n R2\n ")])]}}])})],2)],1),e._v(" "),i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("裁判结果")])]),e._v(" "),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"adForm",staticStyle:{width:"600px"},attrs:{model:e.adForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"选择阅片人",prop:"judgeResultTaskId",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{attrs:{disabled:e.adInfo.ReadingTaskState>=2},model:{value:e.adForm.judgeResultTaskId,callback:function(t){e.$set(e.adForm,"judgeResultTaskId",t)},expression:"adForm.judgeResultTaskId"}},e._l(e.visitTaskArmList,(function(t){return i("el-radio",{key:t.VisitTaskId,attrs:{label:t.VisitTaskId}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.ArmEnum))+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"裁判原因",prop:"judgeResultRemark",rules:[{required:!0,message:"请注明"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.adInfo.ReadingTaskState>=2},model:{value:e.adForm.judgeResultRemark,callback:function(t){e.$set(e.adForm,"judgeResultRemark",t)},expression:"adForm.judgeResultRemark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"截图说明"}},[i("el-upload",{class:{disabled:e.uploadDisabled},attrs:{action:e.accept,limit:1,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.adInfo.ReadingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.adInfo.ReadingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1),e._v(" "),e.adInfo.ReadingTaskState<2?i("el-form-item",[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("提交")])],1)]):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往裁判评估")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorADList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"裁判阅片","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("7514"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("179b"),c={name:"AdReview",components:{SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{adInfo:{},judgeQuestion:[],adForm:{visitTaskId:"",judgeResultTaskId:"",judgeResultRemark:"",judgeResultImagePath:""},currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",uploadDisabled:!1,fileList:[],loading:!1,visitTaskArmList:[],priorADList:[],priorLoading:!1}},mounted:function(){this.getAdInfo(),this.isReadingShowPreviousResults&&this.getPriorAdList()},methods:{getAdInfo:function(){var e=this;this.loading=!0,Object(r["nc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];t.Result.VisitInfoList.length>0&&t.Result.VisitInfoList[0].VisitTaskInfoList.map((function(t,n){var a={armEnum:t.ArmEnum,judgeQuestionList:[],index:n};t.JudgeQuestionList.map((function(t){1===t.QuestionType?a.judgeQuestionList.push(t.QuestionName):a.judgeQuestionList.push(e.$fd("JudgeReadingQuestionType",t.QuestionType))})),i.push(a)})),e.judgeQuestion=i,e.adInfo=t.Result,e.adForm.judgeResultTaskId=t.Result.JudgeResultTaskId,e.adForm.judgeResultRemark=t.Result.JudgeResultRemark,t.Result.JudgeResultImagePath&&(e.adForm.judgeResultImagePath=t.Result.JudgeResultImagePath,e.fileList=[{name:"",url:"/api/".concat(t.Result.JudgeResultImagePath)}],e.imageUrl="/api/".concat(t.Result.JudgeResultImagePath),e.uploadDisabled=!0),e.visitTaskArmList=t.Result.VisitTaskArmList,e.loading=!1})).catch((function(){e.loading=!1}))},getPriorAdList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorADList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleSave:function(){var e=this;this.$refs["adForm"].validate((function(t){t&&(e.loading=!0,e.adForm.visitTaskId=e.visitTaskId,Object(r["ze"])(e.adForm).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1})).catch((function(){e.loading=!1})))}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId,judgeResultTaskId:this.adForm.judgeResultTaskId,judgeResultRemark:this.adForm.judgeResultRemark,judgeResultImagePath:this.adForm.judgeResultImagePath},signInfo:e};Object(r["bf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(e,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(i.href,"_blank")},handleView:function(e,t){var i=Object(s["a"])(),n=e.VisitTaskInfoList.find((function(e){return e.ArmEnum===t})),a=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(n.VisitTaskId,"&TokenKey=").concat(i,"&isReadingShowPreviousResults=false")});window.open(a.href,"_blank")},uploadScreenshot:function(e){var t=this;this.loading=!0,this.uploadDisabled=!1;var i=new FormData;i.append("file",e.file),Object(r["yf"])(this.$route.query.trialId,this.visitTaskId,i).then((function(e){t.loading=!1,e.IsSuccess&&(t.fileList.push({name:e.Result.FileName,url:"".concat(e.Result.Path)}),t.imageUrl="".concat(e.Result.Path),t.adForm.judgeResultImagePath=e.Result.Path),t.uploadDisabled=!0})).catch((function(){t.loading=!1}))},handleBeforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},removeImage:function(){this.imageUrl="",this.fileList=[],this.adForm.judgeResultImagePath=""},handlePictureCardPreview:function(){this.imgVisible=!0,this.uploadDisabled=!0},handleRemove:function(e,t){this.uploadDisabled=!1,this.imageUrl="",this.fileList=[],this.adForm.judgeResultImagePath=""}}},u=c,d=(i("32f6"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"416b7b6d",null);t["default"]=f.exports},7465:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%",background:"#fff"}},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},e._l(e.$d.IsEnable,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsRequired,callback:function(t){e.$set(e.searchData,"IsRequired",t)},expression:"searchData.IsRequired"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsRequired"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isHaveQCQuestion?i("el-button",{attrs:{type:"primary",icon:"el-icon-view"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:preview"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:qc-question:default-question"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:default"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:qc-question:custom-question"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleCustomQS}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:custom"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.isHaveQCQuestion?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:confirm"],expression:"['trials:trials-panel:setting:qc-question:confirm']"}],attrs:{type:"danger",icon:"el-icon-circle-check"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:confirm"))+"\n ")]):e._e()],1)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":"",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:qc-question:edit","trials:trials-panel:setting:qc-question:delete"])&&!e.isConfirm?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:edit"],expression:"['trials:trials-panel:setting:qc-question:edit']"}],attrs:{circle:"",title:e.$t("common:button:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:delete"],expression:"['trials:trials-panel:setting:qc-question:delete']"}],attrs:{circle:"",title:e.$t("common:button:delete"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,805573880)}):e._e()],1),e._v(" "),e.addVisible?i("el-dialog",{attrs:{visible:e.addVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.$t("trials:qcCfg:button:default")},on:{"update:visible":function(t){e.addVisible=t}}},[i("div",{staticClass:"base-modal-body"},[i("DefaultQS",{on:{getList:e.getList,close:function(t){e.addVisible=!1}}})],1)]):e._e(),e._v(" "),e.qsForm.visible?i("el-dialog",{attrs:{visible:e.qsForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.qsForm.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.qsForm,"visible",t)}}},[i("QsForm",{attrs:{data:e.currentRow},on:{getList:e.getList,close:function(t){e.qsForm.visible=!1}}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QcQuestionPreview",{attrs:{"trial-id":e.trialId}})],1)]):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("0662"),l=i("f36a"),c=i("14e4"),u=i("2b4d"),d=i("d28b"),f=i("179b"),h=i("7a9e"),p=function(){return{QuestionName:"",Type:"",IsEnable:null}},m={name:"QcQuestions",components:{BoxContent:l["default"],DefaultQS:c["default"],QsForm:u["default"],QcQuestionPreview:d["default"],SignForm:f["default"]},data:function(){return{searchData:p(),list:[],total:0,loading:!1,addVisible:!1,currentRow:{},qsForm:{visible:!1,title:""},signText:"",signCode:null,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isConfirm:!0,isHaveQCQuestion:!1,trialId:"",preview:{visible:!1,title:this.$t("common:button:preview")}}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Sd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result,e.isConfirm=!(null===t.OtherInfo.QCQuestionConfirmedUserId||""===t.OtherInfo.QCQuestionConfirmedUserId),e.isHaveQCQuestion=t.OtherInfo.IsHaveQCQuestion})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addVisible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.qsForm.title=this.$t("trials:qcCfg:dialogTitle:edit"),this.qsForm.visible=!0},handleCustomQS:function(){this.currentRow={},this.qsForm.title=this.$t("trials:qcCfg:dialogTitle:custom"),this.qsForm.visible=!0},handleDelete:function(e){var t=this,i=this.list.findIndex((function(t){return t.ParentId===e.Id}));-1!==i?this.$message.error(this.$t("trials:qcCfg:message:deleteWarning")):this.$confirm(this.$t("trials:qcCfg:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Cb"])(t.trialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},openCustomDialog:function(){this.customQuestionVisible=!0,this.form.Id="",this.form.QuestionName="",this.form.IsRequired=!0,this.form.IsEnable=!0,this.form.Type="select",this.form.TypeValue="",this.form.ShowOrder=0,this.form.ParentId="",this.form.ParentTriggerValue="",this.getParentOpntions()},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleConfirm:function(){var e=this;this.list&&0!==this.list.length?(this.loading=!0,Object(o["Nf"])({trialId:this.trialId}).then((function(t){e.loading=!1;var i=h["default"].processSignature.QCConfirmation;e.signCode=i,e.signVisible=!0})).catch((function(){e.loading=!1}))):this.$message.error(this.$t("trials:qcCfg:message:msg2"))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.trialId,signCode:e.SignCode},signInfo:e};Object(s["g"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.getList())})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},7487:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"170px",rules:e.rules,model:e.form}},[i("el-form-item",{attrs:{label:"Trial ID: ",prop:"TrialCOde"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Indication,callback:function(t){e.$set(e.form,"Indication",t)},expression:"form.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Dispaly All: "}},[i("el-switch",{model:{value:e.isDispaly,callback:function(t){e.isDispaly=t},expression:"isDispaly"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Training,callback:function(t){e.$set(e.form,"Training",t)},expression:"form.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.RefresherTraining,callback:function(t){e.$set(e.form,"RefresherTraining",t)},expression:"form.RefresherTraining"}})],1),e._v(" "),!e.isDispaly&&0==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint,callback:function(t){e.$set(e.form,"Timepoint",t)},expression:"form.Timepoint"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"TimepointIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn48H,callback:function(t){e.$set(e.form,"TimepointIn48H",t)},expression:"form.TimepointIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"TimepointIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn24H,callback:function(t){e.$set(e.form,"TimepointIn24H",t)},expression:"form.TimepointIn24H"}})],1):e._e(),e._v(" "),!e.isDispaly&&0==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication,callback:function(t){e.$set(e.form,"Adjudication",t)},expression:"form.Adjudication"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"AdjudicationIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn48H,callback:function(t){e.$set(e.form,"AdjudicationIn48H",t)},expression:"form.AdjudicationIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"AdjudicationIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn24H,callback:function(t){e.$set(e.form,"AdjudicationIn24H",t)},expression:"form.AdjudicationIn24H"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Global,callback:function(t){e.$set(e.form,"Global",t)},expression:"form.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Downtime,callback:function(t){e.$set(e.form,"Downtime",t)},expression:"form.Downtime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("6b95"),o=/^([1-9]\d*(\.\d+)?|0)$/,s={props:{form:{type:Object,default:function(){return{}}}},data:function(){return{rules:{Training:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],RefresherTraining:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Global:[{required:!0,trigger:["blur","change"]},{pattern:o,message:"Please specify a number greater than 0"}]},isDispaly:!1,btnDisabled:!1}},methods:{handleSave:function(){var e=this;this.$refs.revenusForm.validate((function(t){if(t){e.btnDisabled=!0;var i=function(e){var t=e.TrialId,i=e.Timepoint,n=e.TimepointIn24H,a=e.TimepointIn48H,r=e.Adjudication,o=e.AdjudicationIn24H,s=e.AdjudicationIn48H,l=e.Global,c=e.Training,u=e.Downtime,d=e.RefresherTraining;return{TrialId:t,Timepoint:i,TimepointIn24H:n,TimepointIn48H:a,Adjudication:r,AdjudicationIn24H:o,AdjudicationIn48H:s,Global:l,Training:c,Downtime:u,RefresherTraining:d}}(e.form);Object(r["g"])(i).then((function(t){t.IsSuccess&&(e.$emit("getList"),e.$message.success("Updated successfully!"),e.$emit("closeDialog"))}))}}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"74a2":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"74b3":function(e,t,i){},"74cb":function(e,t){var i={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},elasticOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-i.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*i.bounceIn(2*e):.5*i.bounceOut(2*e-1)+.5}},n=i;e.exports=n},"750f":function(e,t,i){},7515:function(e,t,i){},"752f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:siteId")}},[i("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e){return i("el-option",{key:e.SiteId,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:subject")}},[i("el-input",{staticStyle:{width:"140px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:visit")}},[i("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:studyList:table:studyId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicom",label:e.$t("trials:studyList:table:imageType"),sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDicom?i("el-tag",{attrs:{type:"primary"}},[e._v("DICOM")]):i("el-tag",{attrs:{type:"danger"}},[e._v("Non-DICOM")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",sortable:"custom","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{display:"flex","align-items":"center"}},[t.row.Modalities?i("div",[e._v(e._s(t.row.Modalities)+"("+e._s(t.row.Count)+"), ")]):i("div",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),t.row.Bodypart?i("div",{staticStyle:{margin:"0 3px"}},[e._v(e._s(t.row.Bodypart)+", ")]):i("div",{staticStyle:{color:"#f44336",margin:"0 3px"}},[e._v("N/A, ")]),e._v(" "),t.row.StudyTime?i("div",[e._v(e._s(e.moment(t.row.StudyTime).format("YYYY-MM-DD"))+" ")]):i("div",{staticStyle:{color:"#f44336"}},[e._v("N/A ")]),e._v(" "),i("div")])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:modality")+", "+e.$t("trials:studyList:table:bodyPart")+", "+e.$t("trials:studyList:table:studyDate")+", "+e.$t("trials:studyList:table:count"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:studyInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VisitName?i("span",[e._v(e._s(t.row.VisitName)+", ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),i("span",[e._v(e._s(t.row.VisitNum))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:visitName")+", "+e.$t("trials:studyList:table:visitNum"))),i("br")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:visit")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:studyList:table:subject"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TrialSiteCode?i("span",[e._v(e._s(t.row.TrialSiteCode)+", ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),t.row.TrialSiteAliasName?i("span",[e._v(e._s(t.row.TrialSiteAliasName))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:siteId")+", "+e.$t("trials:studyList:table:siteName"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:site")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{prop:"Uploader",label:e.$t("trials:studyList:table:uploader"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadTime",label:e.$t("trials:studyList:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("base-model",{attrs:{config:e.share_model}},[i("template",{slot:"dialog-body"},[i("div",[i("i",{staticClass:"el-icon-success",staticStyle:{color:"#00d1b2"}}),e._v(" "),i("span",[e._v("成功创建分享链接")])]),e._v(" "),i("div",{staticStyle:{margin:"10px 0"}},[e._v("\n 链接:"),i("el-input",{staticStyle:{width:"420px"},attrs:{readonly:""},model:{value:e.shareLink,callback:function(t){e.shareLink=t},expression:"shareLink"}})],1),e._v(" "),i("div",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 提取码: "),i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.extractionCode,callback:function(t){e.extractionCode=t},expression:"extractionCode"}})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyCode}},[e._v("复制链接及提取码")])],1)])],2),e._v(" "),e.previewNonDicomVisible?i("el-dialog",{attrs:{visible:e.previewNonDicomVisible,title:e.$t("trials:studyList:dialogTitle:view"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewNonDicomVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewNonDicomVisible?i("NonDicomPreview",{attrs:{"none-dicom-id":e.rowData.Id}}):e._e()],1)]):e._e()],2)},a=[],r=i("3e42"),o=i("acd9"),s=i("6071"),l=i("333d"),c=i("7eeb"),u=i("a29f"),d=i("c1df"),f=i.n(d),h=i("5f87"),p=function(){return{SubjectInfo:"",VisitPlanArray:[],Status:"",SiteId:"",PageIndex:1,PageSize:20}},m={name:"StudyList",components:{BaseContainer:s["default"],Pagination:l["default"],BaseModel:c["default"],NonDicomPreview:u["default"]},data:function(){return{searchData:p(),list:[],loading:!1,total:0,siteOptions:[],visitPlanOptions:[],seriesList:[],nonDicomfilesList:[],rowData:{},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),share_model:{visible:!1,title:"影像分享",showClose:!0,width:"500px"},shareLink:"",extractionCode:"",moment:f.a,filesLoading:"",seriesLoading:"",previewNonDicomVisible:!1,trialId:this.$route.query.trialId,tokenKey:Object(h["a"])()}},mounted:function(){this.getSite(),this.getVisitPlanOptions(),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["Zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleGetseriesList:function(e){var t=this;this.seriesLoading=!0,this.seriesList=[],Object(r["id"])(e.Id).then((function(e){t.seriesLoading=!1,t.seriesList=e.Result})).catch((function(){t.seriesLoading=!1}))},handleGetFilesList:function(e){var t=this;this.filesLoading=!0,Object(r["wc"])(e).then((function(e){t.nonDicomfilesList=e.Result,t.filesLoading=!1})).catch((function(){t.filesLoading=!1}))},handleViewStudy:function(e){if(e.IsDicom){var t=this.$router.resolve({path:"/showdicom?studyId=".concat(e.Id,"&TokenKey=").concat(this.tokenKey,"&type=Study")});window.open(t.href,"_blank")}else{var i=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(e.SubjectVisitId,"&studyId=").concat(e.Id,"&TokenKey=").concat(this.tokenKey)});window.open(i.href,"_blank")}},handlePreviewNonDicom:function(e){var t=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(e.SubjectVisitId,"&studyId=").concat(e.Id,"&TokenKey=").concat(this.tokenKey)});window.open(t.href,"_blank")},handlePreview:function(e){window.open(e.FullFilePath,"_blank")},studyStatusFormatter:function(e){return 5===e?"Uploaded":1===e?"Uploading":7===e?"QA Requested":10===e?"In QA":25===e?"QA-Passed":26===e?"QA-Failed":28===e?"Anonymizing":30===e?"Anonymized":32===e?"Anonymizing Failed":34===e?"Forwarding":36===e?"Forwarded":38===e?"Forwarding Failed":""},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(r["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},handleShareImage:function(e){var t=this;this.shareLink="",this.extractionCode="";var i={TrialId:e.TrialId,SiteId:e.SiteId,SubjectId:e.SubjectId,StudyId:e.Id};this.loading=!0,Object(o["a"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.shareLink="".concat(window.location.origin,"/imagesShare?id=").concat(e.Result.ResourceId),t.extractionCode=e.Result.Password,t.share_model.visible=!0)})).catch((function(){t.loading=!1}))},copyCode:function(){var e=this;this.$copyText("链接: ".concat(this.shareLink," 提取码: ").concat(this.extractionCode)).then((function(t){e.$message.success("复制成功")})).catch((function(){e.$message.error("复制失败")}))},onCopyError:function(){this.$message.error("复制失败")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"75ab":function(e,t,i){"use strict";i("9bd5")},"75e8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%","background-color":"#fff"}},[e.isReadingTaskViewInOrder&&e.isRender?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:subjectCode"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UnReadCanReadTaskCount","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:remainingReadingVolume"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:suggestedCompletionTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SuggesteFinishedTime.split(":")[0]+":00:00")+"\n ")]}}],null,!1,2394106849)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:t.row.ExistReadingApply,circle:"",title:t.row.ExistReadingApply?e.$t("trials:pendingReadingTasks:button:ExistReadingApply"):e.$t("trials:pendingReadingTasks:button:review"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleReadImage(t.row)}}})]}}],null,!1,4229416559)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):!e.isReadingTaskViewInOrder&&e.isRender?i("div",[i("el-descriptions",{staticStyle:{width:"800px"},attrs:{column:2,border:""}},[i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:remainingTaskVolume"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small",type:"danger"}},[e._v(e._s(e.randomReadInfo.UnReadTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:amountOfJudgesRemaining"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small",type:"danger"}},[e._v(e._s(e.randomReadInfo.UnReadJudgeTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:amountOfCompletedTasks"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.randomReadInfo.FinishTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:numberOfJudgesCompleted"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.randomReadInfo.FinishJudgeTaskCount))])],1),e._v(" "),i("el-descriptions-item",[i("el-button",{attrs:{type:"primary",size:"small",disabled:e.randomReadInfo.UnReadTaskCount+e.randomReadInfo.UnReadJudgeTaskCount===0},on:{click:e.handleOutOfOrderReading}},[e._v("\n "+e._s(e.$t("trials:pendingReadingTasks:button:beginRandomReview"))+"\n ")])],1)],1)],1):e._e()])},a=[],r=i("3e42"),o=i("958c"),s=i("6071"),l=i("333d"),c=i("5f87"),u=function(){return{SubjectCode:"",PageIndex:1,PageSize:20}},d={name:"ReadingTaskList",components:{BaseContainer:s["default"],Pagination:l["default"]},data:function(){return{searchData:u(),list:[],total:0,loading:!1,trialId:"",isReadingTaskViewInOrder:null,randomReadInfo:{},isRender:!1,trialCriterionList:[],TrialReadingCriterionId:"",isTableShow:!0,readingTool:null,criterionType:null}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){window.addEventListener("message",this.receiveMsg),this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},beforeDestroy:function(){window.removeEventListener("message",this.receiveMsg)},methods:{getTrialCriterionList:function(){var e=this;Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.getList()})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(r["kc"])(this.searchData).then((function(t){e.isReadingTaskViewInOrder=t.OtherInfo.IsReadingTaskViewInOrder,e.readingTool=t.OtherInfo.ReadingTool,e.criterionType=t.OtherInfo.CriterionType,t.OtherInfo.IsReadingTaskViewInOrder?(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount):e.randomReadInfo=t.OtherInfo.RandomReadInfo,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleReadImage:function(e){var t=this;this.loading=!0,Object(r["Kf"])().then((function(i){t.loading=!1,window.localStorage.setItem("TrialReadingCriterionId",t.TrialReadingCriterionId);var n=Object(c["a"])(),a="";a=0===t.readingTool?"/readingDicoms?TrialReadingCriterionId=".concat(t.TrialReadingCriterionId,"&trialId=").concat(t.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&isReadingTaskViewInOrder=").concat(t.isReadingTaskViewInOrder,"&criterionType=").concat(t.criterionType,"&readingTool=").concat(t.readingTool,"&TokenKey=").concat(n):"/noneDicomReading?TrialReadingCriterionId=".concat(t.TrialReadingCriterionId,"&trialId=").concat(t.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&isReadingTaskViewInOrder=").concat(t.isReadingTaskViewInOrder,"&criterionType=").concat(t.criterionType,"&readingTool=").concat(t.readingTool,"&TokenKey=").concat(n);var r=t.$router.resolve({path:a});window.open(r.href,"_blank")})).catch((function(){t.loading=!1}))},handleOutOfOrderReading:function(){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var e=Object(c["a"])(),t="";t=0===this.readingTool?"/readingDicoms?TrialReadingCriterionId=".concat(this.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&isReadingTaskViewInOrder=").concat(this.isReadingTaskViewInOrder,"&criterionType=").concat(this.criterionType,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(e):"/noneDicomReading?TrialReadingCriterionId=".concat(this.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&isReadingTaskViewInOrder=").concat(this.isReadingTaskViewInOrder,"&criterionType=").concat(this.criterionType,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(e);var i=this.$router.resolve({path:t});window.open(i.href,"_blank")},receiveMsg:function(e){"refreshTaskList"===e.data&&this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"75f8":function(e,t,i){"use strict";i("fb37")},7612:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.questions.length>0?[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"audit-state":0},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()]:[i("div",{staticStyle:{"min-height":"400px"}},[i("p",[e._v(e._s(e.$t("trials:medicalFeedbackCfg:message:msg3")))])])]],2)},a=[],r=(i("ac6a"),i("c5f6"),i("3e42")),o=i("9c7e"),s={name:"QuestionTpl",components:{FormItem:o["default"]},props:{readingCategory:{type:Number,required:!0},trialReadingCriterionId:{type:String,default:""}},data:function(){return{loading:!1,questionForm:{},isRender:!1,trialId:"",readingTaskState:0}},mounted:function(){this.trialId=this.$route.query.trialId,this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,readingCategory:this.readingCategory,TrialReadingCriterionId:this.trialReadingCriterionId};Object(r["sc"])(t).then((function(t){var i=[];t.Result.map((function(t){"group"===t.Type&&0===t.Childrens.length||(i.push(t),"group"!==t.Type&&"summary"!==t.Type&&e.$set(e.questionForm,t.Id,t.Answer?t.Answer:""),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=i,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=null}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},7661:function(e,t,i){var n=i("0c41"),a=i("3eba"),r=a.extendComponentView({type:"geo",init:function(e,t){var i=new n(t,!0);this._mapDraw=i,this.group.add(i.group)},render:function(e,t,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;e.get("show")?a.draw(e,t,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=r},"767c":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("607d"),o=i("29a8"),s=i("2145"),l=o.toolbox.dataView,c=new Array(60).join("-"),u="\t";function d(e){var t={},i=[],n=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(e);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;t[o]||(t[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),t[o].series.push(e)}else i.push(e)}})),{seriesGroupByCategoryAxis:t,other:i,meta:n}}function f(e){var t=[];return a.each(e,(function(e,i){var n=e.categoryAxis,r=e.valueAxis,o=r.dim,s=[" "].concat(a.map(e.series,(function(e){return e.name}))),l=[n.model.getCategories()];a.each(e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var c=[s.join(u)],d=0;d=0)return!0}var v=new RegExp("["+u+"]+","g");function b(e){for(var t=e.split(/\n+/g),i=m(t.shift()).split(v),n=[],r=a.map(i,(function(e){return{name:e,data:[]}})),o=0;o0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("9f63"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"3b4933dd",null);t["default"]=l.exports},7782:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t){a.each(t,(function(t){t.update="updateView",n.registerAction(t,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:e,query:i},(function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each((function(t){var i=n.getName(t);a[i]=e.isSelected(i)||!1}))})),{name:i.name,selected:a,seriesId:i.seriesId}}))}))}e.exports=r},"77ab":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"edit-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"User ",name:"user"}},[i("user-info",{attrs:{"user-id":e.userId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Password ",name:"account"}},[e.load.account?i("Account",{attrs:{"user-id":e.userId}}):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("a483")),o=i("580a"),s={name:"EditUser",components:{UserInfo:r["default"],Account:o["default"]},data:function(){return{activeTab:"user",userId:"",load:{role:!1,account:!1}}},created:function(){this.userId=this.$router.currentRoute.query.Id},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"77f0":function(e,t,i){},"77f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container",staticStyle:{width:"80%"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"researchForm",attrs:{"label-width":"140px",model:e.researchForm,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Research,callback:function(t){e.$set(e.researchForm,"Research",t)},expression:"researchForm.Research"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.ResearchCN,callback:function(t){e.$set(e.researchForm,"ResearchCN",t)},expression:"researchForm.ResearchCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Grants,callback:function(t){e.$set(e.researchForm,"Grants",t)},expression:"researchForm.Grants"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.GrantsCN,callback:function(t){e.$set(e.researchForm,"GrantsCN",t)},expression:"researchForm.GrantsCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Publications,callback:function(t){e.$set(e.researchForm,"Publications",t)},expression:"researchForm.Publications"}})],1),e._v(" "),i("el-col",{attrs:{span:11}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.AwardsHonors,callback:function(t){e.$set(e.researchForm,"AwardsHonors",t)},expression:"researchForm.AwardsHonors"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.AwardsHonorsCN,callback:function(t){e.$set(e.researchForm,"AwardsHonorsCN",t)},expression:"researchForm.AwardsHonorsCN"}})],1)],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"primary",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)},a=[],r=i("33ba"),o={name:"ResearchPublication",props:{id:{type:String,default:function(){return""}}},data:function(){return{researchForm:{Research:"",ResearchCN:"",Grants:"",GrantsCN:"",Publications:"",AwardsHonors:"",AwardsHonorsCN:""},loading:!1,isDisabled:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this,t=this.$route.query.Id;t&&Object(r["w"])(t).then((function(t){t.Result&&(e.researchForm.Research=t.Result.Research,e.researchForm.ResearchCN=t.Result.ResearchCN,e.researchForm.Grants=t.Result.Grants,e.researchForm.GrantsCN=t.Result.GrantsCN,e.researchForm.Publications=t.Result.Publications,e.researchForm.AwardsHonors=t.Result.AwardsHonors,e.researchForm.AwardsHonorsCN=t.Result.AwardsHonorsCN,e.researchForm.Id=t.Result.Id)}))},handleSave:function(){var e=this;this.loading=!0,this.isDisabled=!0,this.researchForm.DoctorId=this.$route.query.Id,Object(r["e"])(this.researchForm).then((function(t){e.loading=!1,e.isDisabled=!1,e.$message.success("Saved successfully"),e.researchForm.Id||(e.researchForm.Id=t.Result)})).catch((function(){e.loading=!1,e.isDisabled=!1}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7810:function(e,t,i){},"781d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"visitPlanForm",attrs:{model:e.form,rules:e.rules,"label-width":"140px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:visitName"),prop:"VisitName"}},[i("el-input",{model:{value:e.form.VisitName,callback:function(t){e.$set(e.form,"VisitName",t)},expression:"form.VisitName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:isBaseLine")}},[i("el-radio-group",{model:{value:e.form.IsBaseLine,callback:function(t){e.$set(e.form,"IsBaseLine",t)},expression:"form.IsBaseLine"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsBaseLine"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),e.form.IsBaseLine?e._e():i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:viistNum"),prop:"VisitNum"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:""!==e.form.Id,min:0,precision:0},model:{value:e.form.VisitNum,callback:function(t){e.$set(e.form,"VisitNum",t)},expression:"form.VisitNum"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:viistDay"),prop:"VisitDay"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,precision:0},model:{value:e.form.VisitDay,callback:function(t){e.$set(e.form,"VisitDay",t)},expression:"form.VisitDay"}})],1),e._v(" "),e.isHaveFirstGiveMedicineDate?i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:window"),rules:[{validator:e.validateWindow,trigger:["blur","change"]}],prop:"VisitWindowRight"}},[i("el-col",{attrs:{span:11}},[i("el-input",{staticClass:"input-with-select",staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:e.form.VisitWindowLeft,callback:function(t){e.$set(e.form,"VisitWindowLeft",e._n(t))},expression:"form.VisitWindowLeft"}},[i("template",{slot:"append"},[e._v(e._s(e.$t("trials:visitPlan:table:day")))])],2)],1),e._v(" "),i("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("~")]),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{staticClass:"input-with-select",staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:e.form.VisitWindowRight,callback:function(t){e.$set(e.form,"VisitWindowRight",e._n(t))},expression:"form.VisitWindowRight"}},[i("template",{slot:"append"},[e._v(e._s(e.$t("trials:visitPlan:table:day")))])],2)],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:description"),prop:"Description"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2}},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:isDeleted")}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsDeleted"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)},a=[],r=i("3e42"),o={props:{row:{type:Object,default:function(){return{}}},isHaveFirstGiveMedicineDate:{type:Boolean,default:!1}},data:function(){var e=this;return{form:{TrialId:"",Id:"",VisitName:"",VisitNum:0,VisitDay:0,Description:"",IsBaseLine:!1,VisitWindowLeft:0,VisitWindowRight:0,IsConfirmed:!1,IsDeleted:!1,IsHaveFirstConfirmed:!1},isDisabled:!1,rules:{VisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],VisitNum:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],VisitDay:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Description:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}]},validateWindow:function(t,i,n){e.form.VisitWindowLeft>e.form.VisitWindowRight?n(new Error(e.$t("trials:adjustRecord:formRule:window"))):n()}}},mounted:function(){for(var e in this.form)this.row.hasOwnProperty(e)&&(this.form[e]=this.row[e])},methods:{handleSave:function(){var e=this;this.$refs.visitPlanForm.validate((function(t){t&&(e.isDisabled=!0,Object(r["F"])(e.form).then((function(t){e.isDisabled=!1,e.$emit("getList"),e.$emit("closeDialog"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.isDisabled=!1})))}))},handleCancel:function(){this.$emit("closeDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7838:function(e,t,i){},7840:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"hotkeys-wrapper"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.$d.ReadingTool,(function(t){return i("el-tab-pane",{key:t.id,attrs:{label:t.label,name:t.id}},[e.activeTab==t.id?i("HotKeysList",{attrs:{"reading-tool":t.value}}):e._e()],1)})),1)],1)},a=[],r=i("a6a8"),o={name:"HotKeys",components:{HotKeysList:r["default"]},data:function(){return{activeTab:this.$d.ReadingTool[0].id}}},s=o,l=(i("842c"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7850:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!0},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]},{trigger:["blur","change"],validator:e.limitInputValidator}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||9===t.QuestionMark},on:{input:function(i){return e.limitInput(i,t)},focus:function(i){e.focusQs=Object.assign({},t)},change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",disabled:!e.isBaseLineTask&&11===t.QuestionMark||(e.isBaseLineTask||2===e.lesionType)&&7===t.QuestionMark||!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask||t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask||t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("96cf"),i("3b8d")),o=(i("f576"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],lesionNameId:"",lesionOrganId:"",lesionLocId:"",originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",pictureBaseStr:"",digitPlaces:0,focusQs:null}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{limitInputValidator:function(e,t,i){this.focusQs&&!this.isBaseLineTask&&11===this.focusQs.QuestionMark&&parseInt(t)>parseInt(this.questionForm.BaseLineLesionNumber)?i(new Error(this.$t("trials:reading:pcwg:msg6")+this.questionForm.BaseLineLesionNumber)):i()},limitInput:function(e,t){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},initForm:function(){var e=this;console.log(this.lesionType),this.questions.forEach((function(t){var i=e.answers[t.Id];console.log(e.answers[t.Id]),t.DictionaryCode&&(i=e.answers[t.Id]?Number(e.answers[t.Id]):""),e.isBaseLineTask&&7===t.QuestionMark&&0===e.lesionType&&(i=0),e.isBaseLineTask&&7===t.QuestionMark&&1===e.lesionType&&(i=0),e.$set(e.questionForm,t.Id,i)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:"");var t=this.getQuestionVal(7),i=this.getQuestionVal(11),n=this.questions.findIndex((function(e){return 11===e.QuestionMark}));this.questionForm.RowId?n>-1?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(t))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"BaseLineLesionNumber",this.answers.BaseLineLesionNumber),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.lesionNameId=this.getQuestionId(4),this.lesionOrganId=this.getQuestionId(5),this.lesionLocId=this.getQuestionId(6),console.log(this.lesionNameId),console.log(this.lesionOrganId),console.log(this.lesionLocId),this.originalQuestionForm=Object(o["a"])({},this.questionForm),0===this.lesionType&&this.questionForm.MeasureData,this.questionForm.MeasureData?(console.log("this.questionForm.MeasureData",this.questionForm.MeasureData),"Bidirectional"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(1)):"Length"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(0)):(this.organList=[],this.getOrganInfoList())):(this.organList=[],this.getOrganInfoList()),this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.isRender=!0},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},handleLocation:function(){c["a"].$emit("imageLocation",this.questionForm)},getOrganInfoList:function(e){var t=this;return new Promise(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",t.visitTaskId);case 3:a=JSON.parse(sessionStorage.getItem("organList"))||[],r=a.findIndex((function(e){return e.LesionType===t.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(e))?t.organList=a:t.organList=a.filter((function(t){return t.IsLymphNodes===parseInt(e)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex};Object(s["tb"])(n).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i()}))}))},formItemChange:function(e,t){var i=this;if(11!==t.QuestionMark){if(console.log("question",t),8===t.QuestionMark&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(console.log("index",n),n>-1){var a=this.organList[n];t.RelationQuestions.map((function(e){console.log("qs",e);var t=a[e.DataTableColumn];i.$set(i.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])}else t.RelationQuestions.map((function(e){i.$set(i.questionForm,e.Id,"")}))}t.Id!==this.lesionOrganId&&t.Id!==this.lesionLocId||this.$set(this.questionForm,this.lesionNameId,"".concat(this.questionForm[this.lesionOrganId]," ").concat(this.questionForm[this.lesionLocId])),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0);var r=this.getQuestionVal(2);r=r?parseInt(r):null;var o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=Number(this.getQuestionVal(0)),c=Number(this.getQuestionVal(1)),u=Number(this.getQuestionVal(7)),d=Number(this.getQuestionVal(11));this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:c,lesionState:u,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,lesionNum:d,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm})}},setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){if(e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr=""),"Length"===e.type||"Bidirectional"===e.type){var a=t.questions.find((function(e){return 0===e.QuestionMark})),r="";"Length"===e.type?r=e.data.length?e.data.length.toFixed(2):"":"Bidirectional"===e.type&&(r=e.data.longestDiameter),t.$set(t.questionForm,a.Id,r);var o=t.questions.find((function(e){return 1===e.QuestionMark})),s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,o.Id,s)}"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};!1===e.isDicomReading?(t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId}):(t.$set(t.questionForm,"IsDicomReading",!0),e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,OrderMarkName:e.data.remark,frame:isNaN(parseInt(e.frame))?0:e.frame}),u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var d=t.getQuestionVal(2);d=d?parseInt(d):null;var f=t.getQuestionVal(8),h=t.getQuestionVal(6),p=Number(t.getQuestionVal(0)),m=Number(t.getQuestionVal(1)),g=Number(t.getQuestionVal(7)),v=Number(t.getQuestionVal(11));t.$emit("resetQuestions",{isLymphLesion:d,lesionPart:f,lesionOrgan:h,lesionShort:m,lesionLength:p,lesionState:g,lesionNum:v,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},uploadScreenshots:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s0?(n?"":"-")+e+"."+a:(n?"":"-")+e}function u(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[i]:("00"+t[i]).substr((""+t[i]).length)));return e}},7887:function(e,t,i){var n=i("6d8b"),a=i("84ce");function r(e,t,i){a.call(this,e,t,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(r,a);var o=r;e.exports=o},7891:function(e,t,i){var n=i("6d8b");function a(e){var t=e.polar;if(t){n.isArray(t)||(t=[t]);var i=[];n.each(t,(function(t,a){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],n.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):i.push(t)})),e.polar=i}n.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=a},"78f0":function(e,t,i){var n=i("3eba");i("d9f1");var a=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,i=this.ecModel;return i.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=a},"78f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"}},[i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"130px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片规则")]),e._v(" "),i("el-form-item",{attrs:{label:"是否必须全局阅片"}},[e._v("\n "+e._s(e.IsMustGlobalReading?"是":"否")+"\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("\n 配置\n ")]):e._e()],1),e._v(" "),i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片问题")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(2)}}},[e._v("\n 配置\n ")]):e._e(),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"评估更新类型"}}),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:"是否基线评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsBaseLineUse?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:"是否随访评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsFollowVisitUse?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}])})],1)],1),e._v(" "),i("base-model",{attrs:{config:e.config}},[i("template",{slot:"dialog-body"},[i("el-form",{attrs:{size:"small",inline:!0,"label-width":"130px"}},[1===e.config.configType?i("el-form-item",{attrs:{label:"是否必须全局阅片"}},[i("el-radio-group",{model:{value:e.form.IsMustGlobalReading,callback:function(t){e.$set(e.form,"IsMustGlobalReading",t)},expression:"form.IsMustGlobalReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsMustGlobalReading"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),2===e.config.configType?i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"评估更新类型"}}):e._e(),e._v(" "),2===e.config.configType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:e.$d.GlobalAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:"是否基线评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{on:{change:function(){return e.$forceUpdate()}},model:{value:t.row.IsBaseLineUse,callback:function(i){e.$set(t.row,"IsBaseLineUse",i)},expression:"scope.row.IsBaseLineUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}],null,!1,3467349157)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:"是否随访评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{on:{change:function(){return e.$forceUpdate()}},model:{value:t.row.IsFollowVisitUse,callback:function(i){e.$set(t.row,"IsFollowVisitUse",i)},expression:"scope.row.IsFollowVisitUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}],null,!1,1494971781)})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.config.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.handleSave}},[e._v("保存")])],1)],2)],1)},a=[],r=(i("7514"),i("ac6a"),i("7eeb")),o=i("e56e"),s={props:{data:{type:String,default:function(){return{}}},criterionId:{type:String,required:!0}},components:{BaseModel:r["default"]},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"评估更新类型",appendToBody:!0,width:"600px",configType:0},selectedList:[],IsMustGlobalReading:!1,form:{IsMustGlobalReading:!1}}},beforecreate:function(){this.$d.GlobalAssessType.forEach((function(e){e.IsBaseLineUse=!1,e.IsFollowVisitUse=!1}))},mounted:function(){this.getList(),this.getSystemGlobalInfo()},methods:{getSystemGlobalInfo:function(){Object(o["Cb"])({SystemCriterionId:this.criterionId}).then((function(e){}))},FollowVisitUseChange:function(e,t){var i=this;this.loading=!0,Object(o["Kb"])({Id:t.Id,IsFollowVisitUse:e}).then((function(e){i.$message.success("保存成功"),i.loading=!1})).catch((function(){i.loading=!1}))},BaseLineUseChange:function(e,t){var i=this;this.loading=!0,Object(o["Jb"])({Id:t.Id,isBaseLineUse:e}).then((function(e){i.$message.success("保存成功"),i.loading=!1})).catch((function(){i.loading=!1}))},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(o["Cb"])({SystemCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result.DictionaryList,e.IsMustGlobalReading=t.Result.IsMustGlobalReading,console.log(e.$d.GlobalAssessType)}))},handleAdd:function(e){var t=this;this.config.configType=e,this.form.IsMustGlobalReading=this.IsMustGlobalReading,1===e?(this.config.title="是否必须全局阅片",this.config.visible=!0):(this.config.title="评估更新类型",this.config.visible=!0,this.$nextTick((function(){var e=t.$d.GlobalAssessType.filter((function(e){return!!t.list.find((function(t){return e.id===t.DictionaryId&&(e.IsBaseLineUse=t.IsBaseLineUse,e.IsFollowVisitUse=t.IsFollowVisitUse),t.DictionaryId===e.id}))}));t.toggleSelection(e)})))},handleSave:function(){var e=this;this.loading=!0;this.$d.GlobalAssessType.filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))}));var t={SystemCriterionId:this.criterionId,IsMustGlobalReading:this.form.IsMustGlobalReading,DictionaryList:1===this.config.configType?this.list:this.selectedList.map((function(e){return{DictionaryId:e.id,IsBaseLineUse:e.IsBaseLineUse,IsFollowVisitUse:e.IsFollowVisitUse}}))};Object(o["Lb"])(t).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList()})).catch((function(){}))},handleDelete:function(){}}},l=s,c=(i("d21f"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"2bbd7ff7",null);t["default"]=u.exports},7919:function(e,t,i){"use strict";i("f462")},79190:function(e,t,i){var n=i("f934"),a=n.getLayoutRect,r=n.box,o=n.positionElement,s=i("eda2"),l=i("2306");function c(e,t,i){var n=t.getBoxLayoutParams(),s=t.get("padding"),l={width:i.getWidth(),height:i.getHeight()},c=a(n,l,s);r(t.get("orient"),e,t.get("itemGap"),c.width,c.height),o(e,n,l,s)}function u(e,t){var i=s.normalizeCssArray(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");e=new l.Rect({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return e}t.layout=c,t.makeBackground=u},"792e":function(e,t,i){i("1ccf"),i("14d3")},7951:function(e,t,i){"use strict";i("dbe0")},"79bb":function(e,t,i){"use strict";i("ef4a")},"79ed":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.questions.length>0?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReviewForm",attrs:{model:e.form,size:"small","label-width":"150"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:globalReview:table:isAgreeEvaluationRes")}},[i("el-radio-group",{on:{change:function(t){return e.handleAgreeOrNotChange(e.agreeOrNot.GlobalAnswerType)}},model:{value:e.form[e.agreeOrNot.GlobalAnswerType],callback:function(t){e.$set(e.form,e.agreeOrNot.GlobalAnswerType,t)},expression:"form[agreeOrNot.GlobalAnswerType]"}},[i("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$fd("ReadingYesOrNo",1)))]),e._v(" "),i("el-radio",{attrs:{label:"0"}},[e._v(e._s(e.$fd("ReadingYesOrNo",0)))])],1)],1),e._v(" "),0===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])?e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType,expression:"((isBaseline && qs.GlobalReadingShowType === 1) || (!isBaseline && qs.GlobalReadingShowType === 2 ) || qs.GlobalReadingShowType === 0)"}],key:""+t.QuestionId+t.QuestionName,attrs:{label:t.QuestionName,prop:t.QuestionId?t.QuestionId:String(t.GlobalAnswerType),rules:[{required:1!==parseInt(e.form[e.agreeOrNot.GlobalAnswerType])&&(e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType),message:e.$t("common:ruleMessage:specify"),trigger:["change"]}]}},[0===t.GlobalAnswerType?["select"===t.Type?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},[t.TypeValue?e._l(t.TypeValue.split("|"),(function(n){return i("el-option",{key:n,attrs:{label:n,value:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})):e._e(),e._v(" "),t.DictionaryCode?e._l(e.$d[t.DictionaryCode],(function(n){return 13!==t.QuestionType||-1!==n.value?i("el-option",{key:n.id,attrs:{value:n.value,label:n.label,disabled:e.getBeforeAnswer(t.QuestionName)===n.value}}):e._e()})):e._e()],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-radio",{key:n,attrs:{label:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}},[e._v("\n "+e._s(n)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===t.Type?[""===t.DictionaryCode&&null===t.ValueType?i("el-input",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):t.DictionaryCode?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):null!==t.ValueType?i("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()]:e._e()]:e._e(),e._v(" "),3===t.GlobalAnswerType?[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.assessTypes,(function(n){return i("el-option",{key:n.Code,attrs:{label:n.ValueCN,value:n.Code,disabled:e.getBeforeAnswer(t.QuestionName)===n.Code}})})),1)]:e._e(),e._v(" "),1===t.GlobalAnswerType?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()],2)})):e._e()],2),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("20d6"),i("3b2b"),i("3e42")),o={name:"EditGlobalForm",props:{globalTaskId:{type:String,required:!0},visitTaskId:{type:String,required:!0},questionList:{type:Array,default:function(){return[]}},assessTypeList:{type:Array,default:function(){return[]}},subjectId:{type:String,required:!0},trialId:{type:String,required:!0},beforeQuestionList:{type:Array,default:function(){return[]}},globalUpdateType:{type:Array,default:function(){return[]}},agreeOrNot:{type:Object,default:function(){return{}}},isBaseline:{type:Boolean,required:!0}},data:function(){return{questions:[],form:{},loading:!1,assessTypes:[]}},mounted:function(){var e=this;console.log(2222),this.assessTypes=this.assessTypeList.filter((function(t){return t.IsBaseLineUse===e.isBaseline})),this.questionList.map((function(t){var i="";i=t.DictionaryCode?t.Answer?parseInt(t.Answer):null:t.Answer,t.QuestionId?e.$set(e.form,t.QuestionId,i):e.$set(e.form,t.GlobalAnswerType,i)})),this.questions=this.questionList,this.$set(this.form,this.agreeOrNot.GlobalAnswerType,this.agreeOrNot.Answer)},methods:{handleSave:function(){var e=this;this.$refs.globalReviewForm.validate((function(t){if(t){e.loading=!0;var i=[],n=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/);for(var a in e.form)n.test(a)?i.push({questionId:a,visitTaskId:e.visitTaskId,answer:e.form[a]}):i.push({questionId:"",visitTaskId:e.visitTaskId,globalAnswerType:parseInt(a),answer:e.form[a]});var o={globalTaskId:e.globalTaskId,subjectId:e.subjectId,trialId:e.trialId,questionList:i};Object(r["xe"])(o).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close")})).catch((function(){e.loading=!1}))}}))},handleClose:function(){this.$emit("close")},handleAgreeOrNotChange:function(e){var t=parseInt(this.form[e]);if(1===t)for(var i in this.form)i!==String(e)&&(this.form[i]="")},getBeforeAnswer:function(e){var t=this.beforeQuestionList.findIndex((function(t){return t.QuestionName===e}));if(t>-1&&this.beforeQuestionList[t].Answer){var i=null;return i=this.beforeQuestionList[t].DictionaryCode?parseInt(this.beforeQuestionList[t].Answer):this.beforeQuestionList[t].Answer,i}return""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"7a54":function(e,t,i){},"7a70":function(e,t,i){"use strict";i("910c")},"7a7c":function(e,t,i){"use strict";i("d808")},"7aa8":function(e,t,i){},"7abd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"编号:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"模板","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SignTemplateForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{visible:e.configVisible,title:"场景配置",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("SceneList",{attrs:{"parent-id":e.rowData.Id},on:{closeDialog:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("1f3d"),c=i("7ee3"),u=i("333d"),d=function(){return{Code:"",Name:"",PageIndex:1,PageSize:20}},f={name:"SignTemplate",components:{BoxContent:s["default"],SignTemplateForm:l["default"],Pagination:u["default"],SceneList:c["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,configVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"7ac7":function(e,t,i){},"7acf":function(e,t,i){"use strict";i("6c30")},"7b0c":function(e,t,i){var n=i("6cc5"),a=i("f934"),r=a.getLayoutRect,o=i("e263");function s(e,t,i){var n=e.getBoxLayoutParams();return n.aspect=i,r(n,{width:t.getWidth(),height:t.getHeight()})}function l(e,t){var i=[];return e.eachSeriesByType("graph",(function(e){var a=e.get("coordinateSystem");if(!a||"view"===a){var r=e.getData(),l=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),c=[],u=[];o.fromPoints(l,c,u),u[0]-c[0]===0&&(u[0]+=1,c[0]-=1),u[1]-c[1]===0&&(u[1]+=1,c[1]-=1);var d=(u[0]-c[0])/(u[1]-c[1]),f=s(e,t,d);isNaN(d)&&(c=[f.x,f.y],u=[f.x+f.width,f.y+f.height]);var h=u[0]-c[0],p=u[1]-c[1],m=f.width,g=f.height,v=e.coordinateSystem=new n;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(c[0],c[1],h,p),v.setViewRect(f.x,f.y,m,g),v.setCenter(e.get("center")),v.setZoom(e.get("zoom")),i.push(v)}})),i}e.exports=l},"7b66":function(e,t,i){},"7b90":function(e,t,i){},"7bbb":function(e,t,i){"use strict";i("f870")},"7bf8":function(e,t,i){},"7c4d":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fc82"),o=i("bd9e"),s=i("6fda"),l=i("ef6a"),c=i("29a8"),u=i("2145");i("dd39");var d=c.toolbox.dataZoom,f=a.each,h="\0_ec_\0toolbox-dataZoom_";function p(e,t,i){(this._brushController=new r(i.getZr())).on("brush",a.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:a.clone(d.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var m=p.prototype;m.render=function(e,t,i,n){this.model=e,this.ecModel=t,this.api=i,y(e,t,this,n,i),b(e,t)},m.onclick=function(e,t,i){g[i].call(this)},m.remove=function(e,t){this._brushController.unmount()},m.dispose=function(e,t){this._brushController.dispose()};var g={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(e){var t={};return a.each(["xAxisIndex","yAxisIndex"],(function(i){t[i]=e[i],null==t[i]&&(t[i]="all"),(!1===t[i]||"none"===t[i])&&(t[i]=[])})),t}function b(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}function y(e,t,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var s=new o(v(e.option),t,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}m._onBrush=function(e,t){if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var a=new o(v(this.model.option),n,{include:["grid"]});a.matchOutputRanges(e,n,(function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(r("x",i,t[0]),r("y",i,t[1])):r({lineX:"x",lineY:"y"}[n],i,t)}})),s.push(n,i),this._dispatchZoomAction(i)}function r(e,t,a){var r=t.getAxis(e),o=r.model,s=c(e,o,n),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(a=l(0,a.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}function c(e,t,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var a=i.getAxisModel(e,t.componentIndex);a&&(n=i)})),n}},m._dispatchZoomAction=function(e){var t=[];f(e,(function(e,i){t.push(a.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},u.register("dataZoom",p),n.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);a.isArray(t)||(e.dataZoom=t=[t]);var i=e.toolbox;if(i&&(a.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(e,i){if(i){var n=e+"Index",r=i[n];null==r||"all"===r||a.isArray(r)||(r=!1===r||"none"===r?[]:[r]),o(e,(function(o,s){if(null==r||"all"===r||-1!==a.indexOf(r,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+e+s};l[n]=s,t.push(l)}}))}}function o(t,i){var n=e[t];a.isArray(n)||(n=n?[n]:[]),f(n,i)}}));var w=p;e.exports=w},"7c6f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"siteForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[e.form.Id?i("el-form-item",{attrs:{label:"Site Code: ",prop:"SiteCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.SiteCode,callback:function(t){e.$set(e.form,"SiteCode",t)},expression:"form.SiteCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Site Name: ",prop:"SiteName"}},[i("el-input",{model:{value:e.form.SiteName,callback:function(t){e.$set(e.form,"SiteName",t)},expression:"form.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Alias Name: "}},[i("el-input",{model:{value:e.form.AliasName,callback:function(t){e.$set(e.form,"AliasName",t)},expression:"form.AliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"组织机构代码: "}},[i("el-input",{model:{value:e.form.UniqueCode,callback:function(t){e.$set(e.form,"UniqueCode",t)},expression:"form.UniqueCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country: ",prop:"Country"}},[i("el-input",{model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City: ",prop:"City"}},[i("el-input",{model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Address: ",prop:"Address"}},[i("el-input",{model:{value:e.form.Address,callback:function(t){e.$set(e.form,"Address",t)},expression:"form.Address"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated Hospital: "}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"Please select"},model:{value:e.form.HospitalId,callback:function(t){e.$set(e.form,"HospitalId",t)},expression:"form.HospitalId"}},e._l(e.hospitalList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Director Name: ",prop:"DirectorName"}},[i("el-input",{model:{value:e.form.DirectorName,callback:function(t){e.$set(e.form,"DirectorName",t)},expression:"form.DirectorName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Director Phone: ",prop:"DirectorPhone"}},[i("el-input",{model:{value:e.form.DirectorPhone,callback:function(t){e.$set(e.form,"DirectorPhone",t)},expression:"form.DirectorPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Contact Name: ",prop:"ContactName"}},[i("el-input",{model:{value:e.form.ContactName,callback:function(t){e.$set(e.form,"ContactName",t)},expression:"form.ContactName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Contact Phone: ",prop:"ContactPhone"}},[i("el-input",{model:{value:e.form.ContactPhone,callback:function(t){e.$set(e.form,"ContactPhone",t)},expression:"form.ContactPhone"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("4360"),c={name:"SiteForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,hospitalList:[],form:{Id:"",SiteCode:"",SiteName:"",AliasName:null,Country:"",City:"",HospitalId:"",DirectorName:"",DirectorPhone:"",ContactName:"",ContactPhone:"",UniqueCode:"",Address:""},rules:{SiteName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SiteCode:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Country:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],City:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Address:[{required:!0,message:"Please specify",trigger:"blur"}],DirectorName:[{max:50,message:"The maximum length is 50"}],DirectorPhone:[{max:50,message:"The maximum length is 50"}],ContactName:[{max:50,message:"The maximum length is 50"}],ContactPhone:[{max:50,message:"The maximum length is 50"}]},loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.siteForm.validate((function(t){t&&(e.btnLoading=!0,Object(s["r"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["siteForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,l["a"].dispatch("global/getHospital");case 3:this.hospitalList=e.sent,this.loading=!1,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"7cdf":function(e,t,i){var n=i("5ca1");n(n.S,"Number",{isInteger:i("9c12")})},"7cf7":function(e,t,i){"use strict";i("0f23")},"7d1c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{icon:"el-icon-check",type:"primary",disabled:0==e.approveIdArr.length},on:{click:function(t){return e.handleApprove()}}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:approve"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindNameCN",label:e.$t("trials:spmEnroll:table:blindNameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName",label:e.$t("trials:spmEnroll:table:blindName"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SpecialityId",label:e.$t("trials:spmEnroll:table:specialityId"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther?t.row.SpecialityOther:"Other":t.row.Speciality)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubspecialityIds",label:e.$t("trials:spmEnroll:table:subspecialityIds"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubspecialityIds.map((function(t){return e.$fd("Subspeciality",t,"id")})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:e.$t("trials:seletctedReviews:table:institution"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmmitUserName",label:e.$t("trials:spmEnroll:table:submmitUserName"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmmitTime",label:e.$t("trials:spmEnroll:table:submmitTime"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:spmEnroll:table:optUserName"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:spmEnroll:table:optTimeStr"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:spmEnroll:button:view")},on:{click:function(i){return e.lookResumeInfo(t.row)}}}),e._v(" "),i("el-button",{attrs:{disabled:8===t.row.DoctorTrialState,icon:"el-icon-check",circle:"",title:e.$t("trials:spmEnroll:button:agree")},on:{click:function(i){return e.handleApprove(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=4,u={name:"Approval",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",total:0,listLoading:!1,approveIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{lookResumeInfo:function(e){console.log(e),window.open("/blindResumeInfo?doctorId=".concat(e.Id,"&token=").concat(this.token))},initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApprove:function(e){var t,i=this;t=e?[e.Id]:Object.assign([],this.approveIdArr),this.$confirm(this.$t("trials:spmEnroll:title:msg1"),{type:"warning"}).then((function(){i.listLoading=!0;var e=i.$route.query.trialId;Object(s["L"])(e,t,1).then((function(e){e.IsSuccess&&(i.getList(),i.$message.success(i.$t("common:message:savedSuccessfully"))),i.listLoading=!1})).catch((function(){i.listLoading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i0&&(I[0]=-I[0],I[1]=-I[1]);var S,T=h[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var C=-Math.atan2(h[1],h[0]);u[0].8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":p=[-d[0]*y+c[0],-d[1]*w+c[1]],m=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[y*T+c[0],c[1]+S],m=h[0]<0?"right":"left",v=[-y*T,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[x[0],x[1]+S],m="center",v=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-y*T+u[0],u[1]+S],m=h[0]>=0?"right":"left",v=[y*T,-S];break}n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||m},position:p,scale:[r,r],origin:v})}}}}function g(e,t,i){s.Group.call(this),this._createLine(e,t,i)}var v=g.prototype;v.beforeUpdate=m,v._createLine=function(e,t,i){var a=e.hostModel,r=e.getItemLayout(t),o=h(r);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},a,t),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(u,(function(i){var n=f(i,e,t);this.add(n),this[d(i)]=e.getItemVisual(t,i)}),this),this._updateCommonStl(e,t,i)},v.updateData=function(e,t,i){var a=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),l={shape:{}};p(l.shape,o),s.updateProps(r,l,a,t),n.each(u,(function(i){var n=e.getItemVisual(t,i),a=d(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=f(i,e,t);this.add(r)}this[a]=n}),this),this._updateCommonStl(e,t,i)},v._updateCommonStl=function(e,t,i){var a=e.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,l=i&&i.hoverLineStyle,d=i&&i.labelModel,f=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var h=e.getItemModel(t);o=h.getModel("lineStyle").getLineStyle(),l=h.getModel("emphasis.lineStyle").getLineStyle(),d=h.getModel("label"),f=h.getModel("emphasis.label")}var p=e.getItemVisual(t,"color"),m=n.retrieve3(e.getItemVisual(t,"opacity"),o.opacity,1);r.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:m},o)),r.hoverStyle=l,n.each(u,(function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:m}))}),this);var g,v,b=d.getShallow("show"),y=f.getShallow("show"),w=this.childOfName("label");if((b||y)&&(g=p||"#000",v=a.getFormattedLabel(t,"normal",e.dataType),null==v)){var _=a.getRawValue(t);v=null==_?e.getName(t):isFinite(_)?c(_):_}var I=b?v:null,x=y?n.retrieve2(a.getFormattedLabel(t,"emphasis",e.dataType),v):null,S=w.style;if(null!=I||null!=x){s.setTextStyle(w.style,d,{text:I},{autoColor:g}),w.__textAlign=S.textAlign,w.__verticalAlign=S.textVerticalAlign,w.__position=d.get("position")||"middle";var T=d.get("distance");n.isArray(T)||(T=[T,T]),w.__labelDistance=T}w.hoverStyle=null!=x?{text:x,textFill:f.getTextColor(!0),fontStyle:f.getShallow("fontStyle"),fontWeight:f.getShallow("fontWeight"),fontSize:f.getShallow("fontSize"),fontFamily:f.getShallow("fontFamily")}:{text:null},w.ignore=!b&&!y,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},n.inherits(g,s.Group);var b=g;e.exports=b},"7e5c":function(e,t,i){},"7e63":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.each,o=a.filter,s=a.map,l=a.isArray,c=a.indexOf,u=a.isObject,d=a.isString,f=a.createHashMap,h=a.assert,p=a.clone,m=a.merge,g=a.extend,v=a.mixin,b=i("e0d3"),y=i("4319"),w=i("6cb7"),_=i("8971"),I=i("e47b"),x=i("0f99"),S=x.resetSourceDefaulter,T="\0_ec_inner",C=y.extend({init:function(e,t,i,n){i=i||{},this.option=null,this._theme=new y(i),this._optionManager=n},setOption:function(e,t){h(!(T in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,i=this._optionManager;if(!e||"recreate"===e){var n=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(n)):D.call(this,n),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),t=!0)}if(!e||"recreate"===e||"media"===e){var o=i.getMediaOption(this,this._api);o.length&&r(o,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,i=this._componentsMap,n=[];function a(n,a){var o=b.normalizeToArray(e[n]),s=b.mappingToExists(i.get(n),o);b.makeIdAndName(s),r(s,(function(e,t){var i=e.option;u(i)&&(e.keyInfo.mainType=n,e.keyInfo.subType=O(n,i,e.exist))}));var l=L(i,a);t[n]=[],i.set(n,[]),r(s,(function(e,a){var r=e.exist,o=e.option;if(h(u(o)||r,"Empty component definition"),o){var s=w.getClass(n,e.keyInfo.subType,!0);if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var c=g({dependentModels:l,componentIndex:a},e.keyInfo);r=new s(o,this,this,c),g(r,c),r.init(o,this,this,c),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,t[n][a]=r.option}),this),"series"===n&&$(this,i.get("series"))}S(this),r(e,(function(e,i){null!=e&&(w.hasClass(i)?i&&n.push(i):t[i]=null==t[i]?p(e):m(t[i],e,!0))})),w.topologicalTravel(n,w.getAllClassMainTypes(),a,this),this._seriesIndicesMap=f(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return r(e,(function(t,i){if(w.hasClass(i)){t=b.normalizeToArray(t);for(var n=t.length-1;n>=0;n--)b.isIdInner(t[n])&&t.splice(n,1);e[i]=t}})),delete e[T],e},getTheme:function(){return this._theme},getComponent:function(e,t){var i=this._componentsMap.get(e);if(i)return i[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var i,n=e.index,a=e.id,r=e.name,u=this._componentsMap.get(t);if(!u||!u.length)return[];if(null!=n)l(n)||(n=[n]),i=o(s(n,(function(e){return u[e]})),(function(e){return!!e}));else if(null!=a){var d=l(a);i=o(u,(function(e){return d&&c(a,e.id)>=0||!d&&e.id===a}))}else if(null!=r){var f=l(r);i=o(u,(function(e){return f&&c(r,e.name)>=0||!f&&e.name===r}))}else i=u.slice();return N(i,e)},findComponents:function(e){var t=e.query,i=e.mainType,n=r(t),a=n?this.queryComponents(n):this._componentsMap.get(i);return s(N(a,e));function r(e){var t=i+"Index",n=i+"Id",a=i+"Name";return!e||null==e[t]&&null==e[n]&&null==e[a]?null:{mainType:i,index:e[t],id:e[n],name:e[a]}}function s(t){return e.filter?o(t,e.filter):t}},eachComponent:function(e,t,i){var n=this._componentsMap;if("function"===typeof e)i=t,t=e,n.each((function(e,n){r(e,(function(e,a){t.call(i,n,e,a)}))}));else if(d(e))r(n.get(e),t,i);else if(u(e)){var a=this.findComponents(e);r(a,t,i)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){A(this),r(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];e.call(t,n,i)}),this)},eachRawSeries:function(e,t){r(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,i){A(this),r(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===e&&t.call(i,a,n)}),this)},eachRawSeriesByType:function(e,t,i){return r(this.getSeriesByType(e),t,i)},isSeriesFiltered:function(e){return A(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){A(this);var i=o(this._componentsMap.get("series"),e,t);$(this,i)},restoreData:function(e){var t=this._componentsMap;$(this,t.get("series"));var i=[];t.each((function(e,t){i.push(t)})),w.topologicalTravel(i,w.getAllClassMainTypes(),(function(i,n){r(t.get(i),(function(t){("series"!==i||!k(t,e))&&t.restoreData()}))}))}});function k(e,t){if(t){var i=t.seiresIndex,n=t.seriesId,a=t.seriesName;return null!=i&&e.componentIndex!==i||null!=n&&e.id!==n||null!=a&&e.name!==a}}function R(e,t){var i=e.color&&!e.colorLayer;r(t,(function(t,n){"colorLayer"===n&&i||w.hasClass(n)||("object"===typeof t?e[n]=e[n]?m(e[n],t,!1):p(t):null==e[n]&&(e[n]=t))}))}function D(e){e=e,this.option={},this.option[T]=1,this._componentsMap=f({series:[]}),this._seriesIndices,this._seriesIndicesMap,R(e,this._theme.option),m(e,_,!1),this.mergeOption(e)}function L(e,t){l(t)||(t=t?[t]:[]);var i={};return r(t,(function(t){i[t]=(e.get(t)||[]).slice()})),i}function O(e,t,i){var n=t.type?t.type:i?i.subType:w.determineSubType(e,t);return n}function $(e,t){e._seriesIndicesMap=f(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function N(e,t){return t.hasOwnProperty("subType")?o(e,(function(e){return e.subType===t.subType})):e}function A(e){}v(C,I);var P=C;e.exports=P},"7e87":function(e,t,i){},"7ed1":function(e,t,i){"use strict";(function(e,n){i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"j",(function(){return d})),i.d(t,"k",(function(){return f})),i.d(t,"e",(function(){return h})),i.d(t,"d",(function(){return p})),i.d(t,"b",(function(){return m})),i.d(t,"i",(function(){return g})),i.d(t,"g",(function(){return _})),i.d(t,"h",(function(){return I}));var a=i("33e1"),r=i("bf71");const o="6.0.8";class s{static isRequired(e,t){if(null===e||void 0===e)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,i){if(!(e in t))throw new Error(`Unknown ${i} value: ${e}.`)}}class l{static get isBrowser(){return"object"===typeof window&&"object"===typeof window.document}static get isWebWorker(){return"object"===typeof self&&"importScripts"in self}static get isReactNative(){return"object"===typeof window&&"undefined"===typeof window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function c(e,t){let i="";return d(e)?(i="Binary data of length "+e.byteLength,t&&(i+=`. Content: '${u(e)}'`)):"string"===typeof e&&(i="String data of length "+e.length,t&&(i+=`. Content: '${e}'`)),i}function u(e){const t=new Uint8Array(e);let i="";return t.forEach(e=>{const t=e<16?"0":"";i+=`0x${t}${e.toString(16)} `}),i.substr(0,i.length-1)}function d(e){return e&&"undefined"!==typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}async function f(e,t,i,n,r,o,s){let l={};if(r){const e=await r();e&&(l={["Authorization"]:"Bearer "+e})}const[u,f]=g();l[u]=f,e.log(a["a"].Trace,`(${t} transport) sending data. ${c(o,s.logMessageContent)}.`);const h=d(o)?"arraybuffer":"text",p=await i.post(n,{content:o,headers:{...l,...s.headers},responseType:h,timeout:s.timeout,withCredentials:s.withCredentials});e.log(a["a"].Trace,`(${t} transport) request complete. Response status: ${p.statusCode}.`)}function h(e){return void 0===e?new m(a["a"].Information):null===e?r["a"].instance:void 0!==e.log?e:new m(e)}class p{constructor(e,t){this._subject=e,this._observer=t}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(e=>{})}}class m{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){const i=`[${(new Date).toISOString()}] ${a["a"][e]}: ${t}`;switch(e){case a["a"].Critical:case a["a"].Error:this.out.error(i);break;case a["a"].Warning:this.out.warn(i);break;case a["a"].Information:this.out.info(i);break;default:this.out.log(i);break}}}}function g(){let e="X-SignalR-User-Agent";return l.isNode&&(e="User-Agent"),[e,v(o,b(),w(),y())]}function v(e,t,i,n){let a="Microsoft SignalR/";const r=e.split(".");return a+=`${r[0]}.${r[1]}`,a+=` (${e}; `,a+=t&&""!==t?t+"; ":"Unknown OS; ",a+=""+i,a+=n?"; "+n:"; Unknown Runtime Version",a+=")",a}function b(){if(!l.isNode)return"";switch(e.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return e.platform}}function y(){if(l.isNode)return e.versions.node}function w(){return l.isNode?"NodeJS":"Browser"}function _(e){return e.stack?e.stack:e.message?e.message:""+e}function I(){if("undefined"!==typeof globalThis)return globalThis;if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n)return n;throw new Error("could not find global")}}).call(this,i("4362"),i("c8ba"))},"7ee3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n Add\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"编号",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"场景类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SceneConfigForm",{attrs:{"parent-id":e.parentId,data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("3e8b"),c={name:"SignTemplate",components:{BoxContent:s["default"],SceneConfigForm:l["default"]},props:{parentId:{type:String,required:!0}},data:function(){return{loading:!1,list:[],rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Y"])(this.parentId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeDialog:function(){this.editVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"7eeb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-model-wrapper"},[e.config.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:e.config.title,"append-to-body":e.config.appendToBody,visible:e.config.visible,"close-on-click-modal":!1,"show-close":e.config.showClose,width:e.config.width,fullscreen:e.config.fullscreen},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",{staticClass:"base-modal-body"},[e._t("dialog-body")],2),e._v(" "),i("div",{staticClass:"base-modal-footer",attrs:{slot:"footer"},slot:"footer"},[e._t("dialog-footer")],2)]):e._e()],1)},a=[],r={name:"BaseDialog",props:{config:{type:Object,default:function(){return{visible:!1,title:"",closeOnClickModal:!1,showClose:!0,appendToBody:!1,width:"100px",fullscreen:!1}}}}},o=r,s=(i("ebc9"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"7f1c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"specialty-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.specialty,size:"small"}},[i("el-form-item",{attrs:{label:"Specialty:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Speciality))]):i("span",[e._v(e._s(e.specialty.SpecialityCN))])]),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Subspeciality))]):i("span",[e._v(e._s(e.specialty.SubspecialityCNList))])]),e._v(" "),i("el-form-item",{attrs:{label:"Modality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.ReadingType))]):i("span",[e._v(e._s(e.specialty.ReadingTypeCNList))])])],1)],1)},a=[],r={props:{specialty:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("62bc"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"7f59":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("e0d3"),s=i("2306"),l=i("f934"),c=i("3842"),u=c.parsePercent,d={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};a.registerPreprocessor((function(e){var t=e.graphic;r.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var f=a.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,f.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var i=this.option,n=(t?i:e).elements,a=i.elements=t?[]:i.elements,s=[];this._flatten(n,s);var l=o.mappingToExists(a,s);o.makeIdAndName(l);var c=this._elOptionsToUpdate=[];r.each(l,(function(e,t){var i=e.option;i&&(c.push(i),v(e,i),b(a,t,i),y(a[t],i))}),this);for(var u=a.length-1;u>=0;u--)null==a[u]?a.splice(u,1):delete a[u].$action},_flatten:function(e,t,i){r.each(e,(function(e){if(e){i&&(e.parentOption=i),t.push(e);var n=e.children;"group"===e.type&&n&&this._flatten(n,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function h(e,t,i,n){var a=i.type,r=d.hasOwnProperty(a)?d[a]:s.getShapeClass(a),o=new r(i);t.add(o),n.set(e,o),o.__ecGraphicId=e}function p(e,t){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),i.remove(e))}function m(e){return e=r.extend({},e),r.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function g(e,t){var i;return r.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(i=!0)})),i}function v(e,t){var i=e.exist;if(t.id=e.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:i&&(t.parentId=i.parentId)}t.parentOption=null}function b(e,t,i){var n=r.extend({},i),a=e[t],o=i.$action||"merge";"merge"===o?a?(r.merge(a,n,!0),l.mergeLayoutParam(a,n,{ignoreSize:!0}),l.copyLayoutParams(i,a)):e[t]=n:"replace"===o?e[t]=n:"remove"===o&&a&&(e[t]=null)}function y(e,t){e&&(e.hv=t.hv=[g(t,["left","right"]),g(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function w(e,t,i){var n=e.eventData;e.silent||e.ignore||n||(n=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=e.info)}a.extendComponentView({type:"graphic",init:function(e,t){this._elMap=r.createHashMap(),this._lastGraphicModel},render:function(e,t,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var i=this._elMap,n=this.group;r.each(t,(function(t){var a=t.$action,r=t.id,o=i.get(r),s=t.parentId,l=null!=s?i.get(s):n,c=t.style;"text"===t.type&&c&&(t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));var u=m(t);a&&"merge"!==a?"replace"===a?(p(o,i),h(r,l,u,i)):"remove"===a&&p(o,i):o?o.attr(u):h(r,l,u,i);var d=i.get(r);d&&(d.__ecGraphicWidthOption=t.width,d.__ecGraphicHeightOption=t.height,w(d,e,t))}))}},_relocate:function(e,t){for(var i=e.option.elements,n=this.group,a=this._elMap,r=t.getWidth(),o=t.getHeight(),s=0;s=0;s--){c=i[s],d=a.get(c.id);if(d){f=d.parent;var p=f===n?{width:r,height:o}:{width:f.__ecGraphicWidth,height:f.__ecGraphicHeight};l.positionElement(d,c,p,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=r.createHashMap()},dispose:function(){this._clear()}})},"7f72":function(e,t,i){i("6932"),i("3a56"),i("7dcf"),i("a18f"),i("32a1"),i("2c17"),i("9e87")},"7f7d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.template_model}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"templateForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:"Name: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality: ",prop:"ModalityId"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.ModalityId,callback:function(t){e.$set(e.form,"ModalityId",t)},expression:"form.ModalityId"}},e._l(e.readingType,(function(e,t){return i("el-option",{key:e,attrs:{label:e,value:t}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.template_model.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("aaf3"),c=i("7eeb"),u=i("86a6"),d={name:"TemplateForm",components:{BaseModel:c["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{readingType:{},template_model:l["h"],form:{Name:"",ModalityId:[],Description:""},rules:{Name:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ModalityId:[{required:!0,message:"Please specify",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}]},btnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.templateForm.validate((function(t){t&&(e.btnLoading=!0,e.template_model.showClose=!1,Object(s["l"])(e.form).then((function(t){e.$message.success("Saved successfully!"),e.btnLoading=!1,e.$refs["templateForm"].resetFields(),e.$emit("close"),e.template_model.showClose=!0})).catch((function(){e.btnLoading=!1,e.template_model.showClose=!0})))}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(u["c"])(["ReadingType"]).then((function(t){var i=Object(r["a"])({},t.Result),n=i.ReadingType;e.readingType=n||{},e.loading=!1})).catch((function(){e.loading=!1}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"7f91":function(e,t,i){var n=i("2306"),a=i("401b"),r=n.Line.prototype,o=n.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:r.buildPath,_buildPathCurve:o.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:r.pointAt,_pointAtCurve:o.pointAt,tangentAt:function(e){var t=this.shape,i=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return a.normalize(i,i)},_tangentAtCurve:o.tangentAt});e.exports=l},"7f96":function(e,t,i){var n=i("6d8b"),a=n.isFunction;function r(e,t,i){return{seriesType:e,performRawSeries:!0,reset:function(e,n,r){var o=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),c=e.get("symbolKeepAspect"),u=e.get("symbolRotate"),d=a(s),f=a(l),h=a(u),p=d||f||h,m=!d&&s?s:t,g=f?null:l;if(o.setVisual({legendSymbol:i||m,symbol:m,symbolSize:g,symbolKeepAspect:c,symbolRotate:u}),!n.isSeriesFiltered(e))return{dataEach:o.hasItemOption||p?v:null};function v(t,i){if(p){var n=e.getRawValue(i),a=e.getDataParams(i);d&&t.setItemVisual(i,"symbol",s(n,a)),f&&t.setItemVisual(i,"symbolSize",l(n,a)),h&&t.setItemVisual(i,"symbolRotate",u(n,a))}if(t.hasItemOption){var r=t.getItemModel(i),o=r.getShallow("symbol",!0),c=r.getShallow("symbolSize",!0),m=r.getShallow("symbolRotate",!0),g=r.getShallow("symbolKeepAspect",!0);null!=o&&t.setItemVisual(i,"symbol",o),null!=c&&t.setItemVisual(i,"symbolSize",c),null!=m&&t.setItemVisual(i,"symbolRotate",m),null!=g&&t.setItemVisual(i,"symbolKeepAspect",g)}}}}}e.exports=r},"7fa2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-menu-wrapper"},[i("div",{staticClass:"left"},[i("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"menuTree",attrs:{data:e.treeData,"show-checkbox":"","node-key":"Id","highlight-current":"",props:e.defaultProps,"expand-on-click-node":!1,"default-expanded-keys":e.expandedKeys},on:{check:e.handleCheck,"node-click":e.handleNodeClick}})],1),e._v(" "),i("div",{staticClass:"right"},[i("RoleFunction",{ref:"roleFunction"})],1)])},a=[],r=(i("ac6a"),i("50fc")),o=i("9859"),s={name:"RoleMenu",components:{RoleFunction:o["default"]},data:function(){return{defaultProps:{label:"MenuName",children:"Children"},treeData:[],loading:!1,expandedKeys:[]}},methods:{getMenus:function(e){var t=this;this.roleId=e,this.expandedKeys=[],this.treeData=[],this.loading=!0,this.$refs["roleFunction"].resetTable(),Object(r["k"])(e).then((function(e){t.loading=!1,t.treeData=e.Result,t.expandedKeys.push(e.Result[0].Id),t.selectedArr=[],t.$nextTick((function(){var e=this,t=this.setNodeChecked(this.treeData);t.forEach((function(t){e.$refs.menuTree.setChecked(t,!0,!1),e.expandedKeys.push(t)}))}))})).catch((function(){t.loading=!1}))},handleCheck:function(e,t){var i=this,n=[],a=t.checkedNodes,o=t.halfCheckedNodes;o.forEach((function(e){n.push(e.Id)})),a.forEach((function(e){n.push(e.Id)}));var s={roleId:this.roleId,menuFunctionId:n};Object(r["u"])(s).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},handleNodeClick:function(e){this.$refs["roleFunction"].getFunctions(this.roleId,e.Id)},setNodeChecked:function(e){for(var t in e)e[t].IsSelect&&this.selectedArr.push(e[t].Id),e[t].Children&&e[t].Children.length&&this.setNodeChecked(e[t].Children);return this.selectedArr}}},l=s,c=(i("882f"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"af966c3c",null);t["default"]=u.exports},"7faa":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search-form",staticStyle:{"text-align":"right"}},[e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,size:"small",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:readingUnit:qsList:title:qsName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:readingUnit:qsList:title:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:readingUnit:qsList:title:isRequired"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:e.$t("trials:readingUnit:qsList:title:isShow"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:e.$t("trials:readingUnit:qsList:title:isShowInDicom"),width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm||e.isFromSystem?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleLook(t.row)}}},[e._v("\n 查看\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("TableQsForm",{ref:"addOrEdit",attrs:{data:e.rowData,list:e.list,type:e.type,"is-from-system":e.isFromSystem,"digit-places":e.digitPlaces,"reading-question-id":e.readingQuestionId,"criterion-id":e.criterionId},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("a73c1"),l=function(){return{QuestionName:""}},c={name:"TableQsList",components:{TableQsForm:s["default"]},props:{digitPlaces:{type:Number,default:function(){return 0}},readingQuestionId:{type:String,required:!0},isConfirm:{type:Boolean,required:!0},isFromSystem:{type:Boolean,required:!0},criterionId:{type:String,required:!0}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},type:null}},mounted:function(){this.getList(),console.log(this.isFromSystem)},methods:{getList:function(){var e=this;this.loading=!0,Object(o["cd"])({readingQuestionId:this.readingQuestionId}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.type="add",this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.type="edit",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleLook:function(e){this.rowData=Object(r["a"])({},e),this.type="look",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["vb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},8026:function(e,t,i){"use strict";i("289d")},"807f":function(e,t,i){},"80c8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],staticStyle:{width:"100%"},attrs:{height:"100",data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValDesc"),"show-overflow-tooltip":""}})],1),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d[e.parentCode],stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Description",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValDesc"),"show-overflow-tooltip":""}})],1)],1)]):e._e()],1)},a=[],r=(i("ac6a"),i("e56e")),o={props:{criterionId:{type:String,required:!0},parentCode:{type:String,required:!0}},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},config:{visible:!1,title:this.$t("trials:readingUnit:baseDataCfg:title:dictVal")},selectedList:[]}},mounted:function(){this.getList()},methods:{toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(r["T"])({CriterionId:this.criterionId,ParentCode:this.parentCode}).then((function(t){e.loading=!1,e.list=t.Result}))},handleSave:function(){var e=this;this.loading=!0;var t={CriterionId:this.criterionId,ParentCode:this.parentCode,DictionaryIds:this.selectedList.map((function(e){return e.id})),isSystemCriterion:!0};Object(r["Ib"])(t).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.selectedList=[],e.getList(),e.$emit("getList")})).catch((function(){}))},handleDelete:function(){}}},s=o,l=(i("e6c9"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"f85ca8a2",null);t["default"]=c.exports},"80cd":function(e,t,i){"use strict";i("2824")},"80f0":function(e,t){function i(e){return e}function n(e,t,n,a,r){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=a||i,this.context=r}function a(e,t,i,n,a){for(var r=0;r=0;w&&y.depth>g&&(g=y.depth),b.setLayout({depth:w?y.depth:d},!0),"vertical"===r?b.setLayout({dy:i},!0):b.setLayout({dx:i},!0);for(var _=0;_d-1?g:d-1;o&&"left"!==o&&h(e,o,r,C);f="vertical"===r?(a-i)/C:(n-i)/C;m(e,f,r)}function f(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function h(e,t,i,n){if("right"===t){var r=[],o=e,s=0;while(o.length){for(var l=0;l0;r--)l*=.99,w(s,l,o),y(s,a,i,n,o),R(s,l,o),y(s,a,i,n,o)}function v(e,t){var i=[],n="vertical"===t?"y":"x",r=o(e,(function(e){return e.getLayout()[n]}));return r.keys.sort((function(e,t){return e-t})),a.each(r.keys,(function(e){i.push(r.buckets.get(e))})),i}function b(e,t,i,n,r,o){var s=1/0;a.each(e,(function(e){var t=e.length,l=0;a.each(e,(function(e){l+=e.getLayout().value}));var c="vertical"===o?(n-(t-1)*r)/l:(i-(t-1)*r)/l;c0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[d]+t;var h="vertical"===r?n:i;if(l=c-t-h,l>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a,f=u-2;f>=0;--f)s=e[f],l=s.getLayout()[o]+s.getLayout()[d]+t-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}))}function w(e,t,i){a.each(e.slice().reverse(),(function(e){a.each(e,(function(e){if(e.outEdges.length){var n=k(e.outEdges,_,i)/k(e.outEdges,C,i);if(isNaN(n)){var a=e.outEdges.length;n=a?k(e.outEdges,I,i)/a:0}if("vertical"===i){var r=e.getLayout().x+(n-T(e,i))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(n-T(e,i))*t;e.setLayout({y:o},!0)}}}))}))}function _(e,t){return T(e.node2,t)*e.getValue()}function I(e,t){return T(e.node2,t)}function x(e,t){return T(e.node1,t)*e.getValue()}function S(e,t){return T(e.node1,t)}function T(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function C(e){return e.getValue()}function k(e,t,i){var n=0,a=e.length,r=-1;while(++r0?this.data.Id:"",readingSetType:this.data.ReadingSetType,TrialReadingCriterionId:this.trialReadingCriterionId},e.next=6,Object(o["dd"])(t);case 6:if(i=e.sent,n=i.Result,this.visitPlanOptions=n,Object.keys(this.data).length>0){for(a in this.form)this.data.hasOwnProperty(a)&&(this.form[a]=this.data[a]);this.form.ReadingSetTypeName=this.$fd("ReadingSetType",this.data.ReadingSetType),this.form.DeadlineCondition=this.data.SubjectVisitName?1:0,this.form.Id&&this.getReadingPeriodCheckedResult()}this.form.TrialId=this.trialId,this.loading=!1;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getRPList:function(){var e=this;this.$refs.addOrUpdatePR.validate((function(t){t&&(e.btnLoading=!0,e.getReadingPeriodResult())}))},getReadingReriodList:function(){console.log(this.form),""===this.form.Id?this.getReadingPeriodResult():this.getReadingPeriodCheckedResult()},getReadingPeriodResult:function(){var e=this;this.listLoading=!0;var t={SiteIds:1===this.form.ReadingScope?this.form.SiteIds:[],TrialId:this.form.TrialId,ExpirationDate:this.form.ExpirationDate,ExpirationVisitNum:this.form.ExpirationVisitNum,VisitStageId:this.form.VisitStageId,ReadingPeriodName:this.form.ReadingPeriodName,ReadingSetType:this.form.ReadingSetType,ReadingScope:this.form.ReadingScope,TrialReadingCriterionId:this.trialReadingCriterionId};Object.assign(this.searchData,t),Object(o["Ac"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1,e.btnLoading=!1})).catch((function(){e.listLoading=!1,e.btnLoading=!1}))},getReadingPeriodCheckedResult:function(){var e=this;this.listLoading=!0,this.searchData.ReadingPeriodSetId=this.form.Id,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(o["Bc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1,e.$nextTick((function(){for(var t=0;t0?this.form.ExpirationVisitNum=t[0].VisitNum:this.form.ExpirationVisitNum=null},handleDeadlineCondition:function(e){e?this.form.ExpirationDate="":(this.form.VisitStageId="",this.form.ExpirationVisitNum=null)},getSite:function(){var e=this;return new Promise((function(t,i){Object(o["Zd"])(e.trialId).then((function(i){e.siteOptions=i.Result,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"82d6":function(e,t,i){},"82eb":function(e,t){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},n=9;t.ContextCachedBy=i,t.WILL_BE_RESTORED=n},"82f9":function(e,t,i){var n=i("6d8b"),a=i("76a5"),r=i("2306");function o(e,t,i,n){e[0]=i,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function s(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(e){var t=e.get("alwaysShowContent");t&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,i){this.el&&this._zr.remove(this.el);var n={},o=e,s="{marker",l="|}",c=o.indexOf(s);while(c>=0){var u=o.indexOf(l),d=o.substr(c+s.length,u-c-s.length);d.indexOf("sub")>-1?n["marker"+d]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[d],textOffset:[3,0]}:n["marker"+d]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[d]},o=o.substr(u+1),c=o.indexOf("{marker")}var f=i.getModel("textStyle"),h=f.get("fontSize"),p=i.get("textLineHeight");null==p&&(p=Math.round(3*h/2)),this.el=new a({style:r.setTextStyle({},f,{rich:n,text:e,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:p}),z:i.get("z")}),this._zr.add(this.el);var m=this;this.el.on("mouseover",(function(){m._enterable&&(clearTimeout(m._hideTimeout),m._show=!0),m._inContent=!0})),this.el.on("mouseout",(function(){m._enterable&&m._show&&m.hideLater(m._hideDelay),m._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var i=this._styleCoord;o(i,this._zr,e,t),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var l=s;e.exports=l},8344:function(e,t,i){var n=i("6d8b"),a=i("f706"),r=i("3842"),o=i("6179"),s=i("923d"),l=i("88f0");function c(e,t,i){var n=t.coordinateSystem;e.each((function(a){var o,s=e.getItemModel(a),l=r.parsePercent(s.get("x"),i.getWidth()),c=r.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),d=e.get(n.dimensions[1],a);o=n.dataToPoint([u,d])}}else o=[l,c];isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c),e.setItemLayout(a,o)}))}var u=l.extend({type:"markPoint",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markPointModel;t&&(c(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,i,r){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new a),h=d(o,e,t);t.setData(h),c(t.getData(),e,r),h.each((function(e){var i=h.getItemModel(e),a=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=n.isFunction(a),c=n.isFunction(r),u=n.isFunction(o);if(s||c||u){var d=t.getRawValue(e),f=t.getDataParams(e);s&&(a=a(d,f)),c&&(r=r(d,f)),u&&(o=o(d,f))}h.setItemVisual(e,{symbol:a,symbolSize:r,symbolRotate:o,color:i.get("itemStyle.color")||l.getVisual("color")})})),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),f.__keep=!0,f.group.silent=t.get("silent")||e.get("silent")}});function d(e,t,i){var a;a=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var r=new o(a,i),l=n.map(i.get("data"),n.curry(s.dataTransform,t));return e&&(l=n.filter(l,n.curry(s.dataFilter,e))),r.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),r}e.exports=u},8377:function(e,t,i){"use strict";i("670a")},"83ba":function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("f934"),o=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,c=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,i,n){var a=o(e);c.superApply(this,"init",arguments),u(e,a)},mergeOption:function(e,t){c.superApply(this,"mergeOption",arguments),u(this.option,e)}});function u(e,t){var i=e.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=n.map([0,1],(function(e){return s(t,e)&&(i[e]="auto"),null!=i[e]&&"auto"!==i[e]}));l(e,t,{type:"box",ignoreSize:a})}var d=c;e.exports=d},"83f6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[e.otherInfo&&e.otherInfo.IsReadingShowSubjectInfo?i("div",{staticClass:"title",staticStyle:{"text-align":"center"}},[i("span",[e._v(e._s(e.otherInfo.SubjectCode)+" ")]),e._v(" "),i("span",[e._v("("+e._s(e.otherInfo.TaskBlindName)+")")])]):e._e(),e._v(" "),i("div",{staticClass:"left-content",staticStyle:{height:"100%"}},e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("NoneDicomsViewer",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex,"reading-task-state":e.readingTaskState},on:{selectedImg:e.selectedImg}}):e._e()],1)])],1)},a=[],r=(i("20d6"),i("3e42")),o=i("a599"),s=i("4360"),l=i("64f9"),c={name:"VisitReview",components:{NoneDicomsViewer:l["default"]},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:"",studyId:""},previewVisible:!1,studyList:[],loading:!1,isRenderAssocicatedTasks:!1,associatedList:[],currentTaskId:"",otherInfo:null,isReadingShowPreviousResults:!1,trialId:"",subjectId:"",subjectCode:"",visistTaskId:"",taskBlindName:"",readingTaskState:2}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(s["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(o["a"])("TokenKey","")),this.trialId=this.$router.currentRoute.query.trialId,this.subjectCode=this.$router.currentRoute.query.subjectCode,this.subjectId=this.$router.currentRoute.query.subjectId,this.visitTaskId=this.$router.currentRoute.query.visitTaskId,this.taskBlindName=this.$router.currentRoute.query.visitTaskId,this.readingTaskState=this.$router.currentRoute.query.readingTaskState?parseInt(this.$router.currentRoute.query.readingTaskState):2,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visistTaskId:this.visitTaskId};Object(r["Oc"])(t).then((function(t){if(e.otherInfo=t.OtherInfo,t.Result.length>0){e.studyList=t.Result;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}}e.loading=!1})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.previewImage.studyId=this.studyList[t].Id,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0}}},u=c,d=(i("9c1f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"0f6d39ae",null);t["default"]=f.exports},8403:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.TrialSiteCode}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ModuleType,callback:function(t){e.$set(e.searchData,"ModuleType",t)},expression:"searchData.ModuleType"}},e._l(e.$d.ModuleTypeEnum,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingSchedule")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingStatus,callback:function(t){e.$set(e.searchData,"ReadingStatus",t)},expression:"searchData.ReadingStatus"}},e._l(e.$d.ReadModuleEnum,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExportSubject}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:buttton:exportSubjectTbl"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExportPeriod}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:buttton:exportPeriodTbl"))+"\n ")]),e._v(" "),e.ReadingInfoSignTime&&(e.otherInfo.IsClinicalReading||e.otherInfo.IsReadingPeriod)?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{type:"primary",icon:"el-icon-edit-outline"},on:{click:e.handleReadingPeriod}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:rpManage"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"myTable",refInFor:!0,attrs:{data:e.list,stripe:"",height:"100","header-row-class-name":e.headerRowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",fixed:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readingPeriod:table:siteCode"),"min-width":"110",fixed:"left",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readingPeriod:table:subjectCode"),"min-width":"120",fixed:"left",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingPeriod:table:readingPlan"),align:"center","min-width":"100"}},e._l(e.maxLength,(function(t){return i("el-table-column",{key:""+t,attrs:{prop:"Plan"+(t-1),label:"",width:"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[t<=n.row.Data.length?i("div",[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(n.row.Data[t-1].Name)+"\n ")]),e._v(" "),i("div",[n.row.Data[t-1].IsEnrollmentConfirm?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:enroll"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].PDState?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:pd"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].IsUrgent?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:urgent"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].IsFinalVisit?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:finalVisit"))+"\n ")]):e._e()])]),e._v(" "),i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$fd("ModuleTypeEnum",n.row.Data[t-1].ModuleType)))]),e._v(" "),i("div",[e._v("\n "+e._s(e.$fd("ReadModuleEnum",n.row.Data[t-1].ReadingStatus))+"\n ")])]),e._v(" "),1===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:lastVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].OutPlanPreviousVisitName)+" ")])]):e._e(),e._v(" "),2===n.row.Data[t-1].ModuleType||3===n.row.Data[t-1].ModuleType||5===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:deadlineVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].CutOffVisitName))])]):e._e(),e._v(" "),4===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:correspondVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].ReadModuleName))])]):e._e(),e._v(" "),i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v("\n "+e._s(e.$t("trials:readingPeriod:table:clinicalInfo"))+"\n ")]),e._v(" "),n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsSubjectClinicalData&&n.row.Data[t-1].IsBaseLine||n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsVisitClinicalData||!n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsReadingClinicalData?i("div",[i("el-link",{attrs:{type:"danger"},on:{click:function(i){return e.handleView(n.row,n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:view"))+"\n ")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:readingPeriod:table:noCD")))])])]),e._v(" "),i("div",[i("el-link",{on:{click:function(i){return e.handleDetail(n.row,n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:detail"))+"\n ")]),e._v(" "),(3===n.row.Data[t-1].ModuleType||5===n.row.Data[t-1].ModuleType)&&n.row.Data[t-1].ReadingStatus<4?i("el-link",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],on:{click:function(i){return e.handleDelete(n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:delete"))+"\n ")]):e._e()],1)]):e._e()]}}],null,!0)})})),1),e._v(" "),(e.otherInfo.IsReadingPeriod||e.otherInfo.IsClinicalReading)&&e.ReadingInfoSignTime&&e.hasPermi(["trials:trials-panel:subject:readingPeriod:edit"])?i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.otherInfo.IsReadingPeriod?i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:buttton:addSubjectImageRP"),icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row,0)}}}):e._e(),e._v(" "),e.isClinicalReading?i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:buttton:addSubjectOncologyRP"),icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row,1)}}}):e._e()]}}],null,!0)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{title:e.$t("trials:rpDetail:dialogTitle:detail"),visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-descriptions",{attrs:{column:2,border:""}},[i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingName")}},[e._v("\n "+e._s(e.currentData.Name)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingType")}},[e._v("\n "+e._s(e.$fd("ModuleTypeEnum",e.currentData.ModuleType))+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingSchedule")}},[e._v("\n "+e._s(e.$fd("ReadModuleEnum",e.currentData.ReadingStatus))+"\n ")]),e._v(" "),e.currentData.CutOffVisitName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:deadlineVisit")}},[e._v("\n "+e._s(e.currentData.CutOffVisitName)+"\n ")]):e._e(),e._v(" "),e.currentData.OutPlanPreviousVisitName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:lastVisit")}},[e._v("\n "+e._s(e.currentData.OutPlanPreviousVisitName)+"\n ")]):e._e(),e._v(" "),e.currentData.ReadModuleName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:correspondVisit")}},[e._v("\n "+e._s(e.currentData.ReadModuleName)+"\n ")]):e._e(),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:clinicalInfo")}},[e.currentData.IsVisit&&e.otherInfo.IsExistsSubjectClinicalData&&e.currentData.IsBaseLine||e.currentData.IsVisit&&e.otherInfo.IsExistsVisitClinicalData||!e.currentData.IsVisit&&e.otherInfo.IsExistsReadingClinicalData?[i("el-link",{on:{click:e.view}},[e._v(e._s(e.$t("trials:readingPeriod:button:view")))])]:[i("span",[e._v(e._s(e.$t("trials:readingPeriod:table:noCD")))])]],2),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:stakeholder"),span:2}},[e._v("\n "+e._s(e.currentData.Stakeholders)+"\n ")])],1)],1):e._e(),e._v(" "),e.readPeriodVisible?i("el-dialog",{attrs:{title:e.$t("trials:rpManage:dialogTitle:setRP"),visible:e.readPeriodVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readPeriodVisible=t}}},[i("ReadingPeriod",{attrs:{"trial-id":e.trialId,"trial-reading-criterion-id":e.TrialReadingCriterionId,"is-clinical-reading":e.isClinicalReading,"is-global-reading":e.otherInfo.IsReadingPeriod},on:{getList:e.getList}})],1):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{title:e.$t("trials:readingPeriod:dialogTitle:clinicalData")+"("+e.currentData.SubjectCode+"|"+e.currentData.Name+"|"+e.currentData.CriterionName+")",visible:e.clinicalDataVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("ClinicalData",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"trial-id":e.trialId,data:e.currentData}})],1):e._e(),e._v(" "),e.subjectPeriod.visible?i("el-dialog",{attrs:{title:e.subjectPeriod.title,visible:e.subjectPeriod.visible,width:"500px","custom-class":"base-dialog-wrapper","close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.subjectPeriod,"visible",t)}}},[i("SubjectPR",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"trial-id":e.trialId,data:e.param},on:{close:function(t){e.subjectPeriod.visible=!1},getList:e.getList}})],1):e._e()],1)]):e._e()])})),1)],1)},a=[],r=(i("7514"),i("3e42")),o=i("3f2a"),s=i("6071"),l=i("333d"),c=i("f939"),u=i("ba63"),d=i("36b5"),f=function(){return{TrialSiteCode:"",SubjectCode:"",ModuleType:null,ReadingStatus:null,Name:"",PageIndex:1,PageSize:20}},h=10,p={name:"TrialsNotice",components:{BaseContainer:s["default"],Pagination:l["default"],ReadingPeriod:c["default"],ClinicalData:u["default"],SubjectPR:d["default"]},data:function(){return{searchData:f(),list:[],total:0,maxLength:0,loading:!1,dialogVisible:!1,readPeriodVisible:!1,clinicalDataVisible:!1,subjectPeriod:{visible:!1,title:this.$t("trials:readingPeriod:dialogTitle:addSubjectPR")},trialId:this.$route.query.trialId,currentData:{},param:{},siteOptions:[],isClinicalReading:!1,otherInfo:{},trialCriterionList:[],TrialReadingCriterionId:"0",ReadingInfoSignTime:null}},watch:{TrialReadingCriterionId:function(e){var t=this;e&&(this.getList(),this.ReadingInfoSignTime=this.trialCriterionList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ReadingInfoSignTime)}},mounted:function(){this.getSite(),this.getTrialCriterionList()},methods:{getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,this.loading=!0,Object(r["Lc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.maxLength=t.OtherInfo.MaxLength>h?t.OtherInfo.MaxLength:h,e.isClinicalReading=t.OtherInfo.IsClinicalReading,e.otherInfo=t.OtherInfo,e.$nextTick((function(){e.$refs.myTable&&e.$refs.myTable.doLayout&&e.$refs.myTable.doLayout()}))})).catch((function(){e.loading=!1}))},handleAdd:function(e,t){this.param.SubjectId=e.SubjectId,this.param.SiteId=e.SiteId,this.param.SubjectCode=e.SubjectCode,this.param.TrialSiteCode=e.TrialSiteCode,this.param.TrialId=this.trialId,this.param.IsClinicalReading=this.isClinicalReading,this.param.ReadingSetType=t,this.subjectPeriod.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingPeriod:message:sureToDelete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["lb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleReadingPeriod:function(){this.readPeriodVisible=!0},view:function(){this.clinicalDataVisible=!0},handleView:function(e,t){this.currentData=Object.assign({},t),this.clinicalDataVisible=!0},handleDetail:function(e,t){var i=this;this.loading=!0;var n={trialId:this.trialId,id:t.Id,TrialReadingCriterionId:this.TrialReadingCriterionId,subjectId:t.SubjectId};Object(r["Kc"])(n).then((function(e){i.currentData=Object.assign({},t),i.currentData.Stakeholders=e.Result.StakeholderNames.join(", "),i.dialogVisible=!0,i.loading=!1})).catch((function(){i.loading=!1}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleExportSubject:function(){Object(o["p"])(this.searchData).then((function(e){})).catch((function(){}))},handleExportPeriod:function(){Object(o["k"])(this.searchData).then((function(e){})).catch((function(){}))},getTrialCriterionList:function(){var e=this;Object(r["Cd"])(this.trialId,!1).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},headerRowStyle:function(e){e.row;var t=e.rowIndex;return 1===t?"hidden-row":void 0},cellStyle:function(e){var t=e.row,i=e.column,n=(e.rowIndex,e.columnIndex);if(n>2&&t.Data.length>=n-2&&i.property){var a=1*i.property.substring(4),r=t.Data[a].ModuleType,o=t.Data[a].ReadingStatus;if((0===r||1===r)&&0===o)return{"vertical-align":"top"};if((0===r||1===r)&&1===o)return{"background-color":"rgb(189,215,238)","vertical-align":"top"};if((0===r||1===r)&&2===o)return{"background-color":"rgb(255,217,102)","vertical-align":"top"};if((0===r||1===r)&&3===o)return{"background-color":"rgb(169,208,142)","vertical-align":"top"};if((0===r||1===r)&&4===o)return{"background-color":"rgb(169,208,142)","vertical-align":"top"};if((0===r||1===r)&&5===o)return{"background-color":"rgb(244,176,132)","vertical-align":"top"}}}}},m=p,g=(i("d524"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"121258e5",null);t["default"]=v.exports},"842c":function(e,t,i){"use strict";i("90fb7")},"842e":function(e,t,i){"use strict";i("cd76")},"843e":function(e,t,i){var n=i("6d8b"),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function r(e){n.each(a,(function(t){this[t]=n.bind(e[t],e)}),this)}var o=r;e.exports=o},8455:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"编号:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"模板","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SignTemplateForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{visible:e.configVisible,title:"场景配置",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("SceneList",{attrs:{"parent-id":e.rowData.Id},on:{closeDialog:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("953c"),c=i("0848"),u=i("333d"),d=function(){return{Code:"",Name:"",PageIndex:1,PageSize:20}},f={name:"SignTemplate",components:{BoxContent:s["default"],SignTemplateForm:l["default"],Pagination:u["default"],SceneList:c["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,configVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},8459:function(e,t,i){var n=i("3eba"),a={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(a,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),n.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},"849b":function(e,t,i){var n=i("d9d0"),a=i("2039");function r(e,t){var i=[];return e.eachComponent("parallel",(function(a,r){var o=new n(a,e,t);o.name="parallel_"+r,o.resize(a,t),a.coordinateSystem=o,o.model=a,i.push(o)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}a.register("parallel",{create:r})},"84ce":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.map,o=i("3842"),s=o.linearMap,l=o.getPixelPrecision,c=o.round,u=i("e073"),d=u.createAxisTicks,f=u.createAxisLabels,h=u.calculateCategoryInterval,p=[0,1],m=function(e,t,i){this.dim=e,this.scale=t,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function g(e,t){var i=e[1]-e[0],n=t,a=i/n/2;e[0]+=a,e[1]-=a}function v(e,t,i,n){var r=t.length;if(e.onBand&&!i&&r){var o,s,l=e.getExtent();if(1===r)t[0].coord=l[0],o=t[1]={coord:l[0]};else{var u=t[r-1].tickValue-t[0].tickValue,d=(t[r-1].coord-t[0].coord)/u;a(t,(function(e){e.coord-=d/2}));var f=e.scale.getExtent();s=1+f[1]-t[r-1].tickValue,o={coord:t[r-1].coord+d*s},t.push(o)}var h=l[0]>l[1];p(t[0].coord,l[0])&&(n?t[0].coord=l[0]:t.shift()),n&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]}),p(l[1],o.coord)&&(n?o.coord=l[1]:t.pop()),n&&p(o.coord,l[1])&&t.push({coord:l[1]})}function p(e,t){return e=c(e),t=c(t),h?e>t:e=i&&e<=n},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var i=this._extent;i[0]=e,i[1]=t},dataToCoord:function(e,t){var i=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count())),s(e,p,i,t)},coordToData:function(e,t){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count()));var a=s(e,i,p,t);return this.scale.scale(a)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=d(this,t),n=i.ticks,a=r(n,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),o=t.get("alignWithLabel");return v(this,a,o,e.clamp),a},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=r(i,(function(e){return r(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return n},getViewLabels:function(){return f(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return h(this)}};var b=m;e.exports=b},"84d5":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("4319"),o=i("e0d3"),s=o.isNameSpecified,l=i("29a8"),c=l.legend.selector,u={all:{type:"all",title:a.clone(c.all)},inverse:{type:"inverse",title:a.clone(c.inverse)}},d=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),a.isArray(t)&&a.each(t,(function(e,i){a.isString(e)&&(e={type:e}),t[i]=a.merge(e,u[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),f=d;e.exports=f},"84e5":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-swagger",use:"icon-swagger-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"84ec":function(e,t){var i=Math.log(2);function n(e,t,a,r,o,s){var l=r+"-"+o,c=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var u=Math.round(Math.log((1<0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("151b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"a126852c",null);t["default"]=l.exports},"862d":function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.each,o=n.isString,s=n.defaults,l=n.extend,c=n.isObject,u=n.clone,d=i("e0d3"),f=d.normalizeToArray,h=i("0f99"),p=h.guessOrdinal,m=h.BE_ORDINAL,g=i("ec6f"),v=i("2f45"),b=v.OTHER_DIMENSIONS,y=i("562e");function w(e,t,i){g.isInstance(t)||(t=g.seriesDataToSource(t)),i=i||{},e=(e||[]).slice();for(var n=(i.dimsDef||[]).slice(),d=a(),h=a(),v=[],w=_(t,e,n,i.dimCount),x=0;x0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["B"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.$emit("getList"),e.AssignMedicalReviewTaskVisible=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=(i("2294"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"485f549a",null);t["default"]=m.exports},"86f9":function(e,t,i){"use strict";i("af6e")},"870e":function(e,t,i){var n=i("6d8b");function a(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),i=[],a=e.coordinateSystem;if(a){var s=a.getIndicatorAxes();n.each(s,(function(e,n){t.each(t.mapDimension(s[n].dim),(function(e,t){i[t]=i[t]||[];var s=a.dataToPoint(e,n);i[t][n]=r(s)?s:o(a)}))})),t.each((function(e){var s=n.find(i[e],(function(e){return r(e)}))||o(a);i[e].push(s.slice()),t.setItemLayout(e,i[e])}))}}))}function r(e){return!isNaN(e[0])&&!isNaN(e[1])}function o(e){return[e.cx,e.cy]}e.exports=a},8727:function(e,t){var i="http://www.w3.org/2000/svg";function n(e){return document.createElementNS(i,e)}t.createElement=n},8728:function(e,t){function i(e,t,i,n,a,r){if(r>t&&r>n||ra?o:0}e.exports=i},"875c":function(e,t,i){"use strict";i("5a54")},"878a":function(e,t,i){},"879b":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"879e":function(e,t,i){var n=i("3eba"),a=i("6179"),r=i("6d8b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("4319"),c=i("eda2"),u=c.encodeHTML,d=i("237f"),f=i("c4a3"),h=i("0c37"),p=h.initCurvenessList,m=h.createEdgeMapForCurveness,g=n.extendSeriesModel({type:"series.graph",init:function(e){g.superApply(this,"init",arguments);var t=this;function i(){return t._categoriesData}this.legendVisualProvider=new f(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){g.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){g.superApply(this,"mergeDefaultAndTheme",arguments),s(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var i=e.edges||e.links||[],n=e.data||e.nodes||[],a=this;if(n&&i){p(this);var o=d(n,i,this,!0,s);return r.each(o.edges,(function(e){m(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function s(e,i){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,i=e.getShallow("category"),n=t[i];return n&&(n.parentModel=e.parentModel,e.parentModel=n),e}));var n=a.getModel("edgeLabel"),r=new l({label:n.option},n.parentModel,t),o=a.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,t);function c(e){return e=this.parsePath(e),e&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?s:this.parentModel}i.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(c),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(e,i),r=n.graph.getEdgeByIndex(e),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=u(l.join(" > ")),a.value&&(l+=" : "+u(a.value)),l}return g.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=r.map(this.option.categories||[],(function(e){return null!=e.value?e:r.extend({value:0},e)})),t=new a(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return g.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),v=g;e.exports=v},"87b1":function(e,t,i){var n=i("cbe5"),a=i("4fac"),r=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){a.buildPath(e,t,!0)}});e.exports=r},"87c3":function(e,t,i){var n=i("6d8b"),a=n.map,r=i("cccd"),o=i("ee1a"),s=o.isDimensionStacked;function l(e){return{seriesType:e,plan:r(),reset:function(e){var t=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,r=n.large;if(i){var o=a(i.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),l=o.length,c=t.getCalculationInfo("stackResultDimension");return s(t,o[0])&&(o[0]=c),s(t,o[1])&&(o[1]=c),l&&{progress:u}}function u(e,t){for(var n=e.end-e.start,a=r&&new Float32Array(n*l),s=e.start,c=0,u=[],d=[];s0?t.row.SubspecialityList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(t.row.SubspecialityCNList.length>0?t.row.SubspecialityCNList.join(", "):"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Institution","min-width":"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.HospitalName:t.row.HospitalNameCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"Location",width:"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"100",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("\n Detail\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")])]}}])})],1)},a=[],r={name:"ReviewerList",props:{list:{type:Array,default:function(){return[]}},listLoading:{type:Boolean,default:function(){return!1}},isEnglish:{type:Boolean}},data:function(){return{selectArr:[],otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"}},methods:{handleDetail:function(e){this.$router.push({path:"/reviewers/reviewers-detail?Id=".concat(e.Id,"&isEnglish=").concat(this.isEnglish)})},handleEdit:function(e){this.$router.push({path:"/reviewers/reviewers-edit?Id=".concat(e.Id)})},handleSelectChange:function(e){for(var t=[],i=0;i=0?d():u=setTimeout(d,-a),l=n};return f.clear=function(){u&&(clearTimeout(u),u=null)},f.debounceNextCall=function(e){s=e},f}function o(e,t,o,s){var l=e[t];if(l){var c=l[i]||l,u=l[a],d=l[n];if(d!==o||u!==s){if(null==o||!s)return e[t]=c;l=e[t]=r(c,o,"debounce"===s),l[i]=c,l[a]=s,l[n]=o}return l}}function s(e,t){var n=e[t];n&&n[i]&&(e[t]=n[i])}t.throttle=r,t.createOrUpdate=o,t.clear=s},"88c6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.timepointEfficacyList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.subjectNote,callback:function(t){e.subjectNote=t},expression:"subjectNote"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.previousGlobalReadsList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.AddGlobalReport}},[e._v("Save")])],1)],1),e._v(" "),e.dialogVisible?i("div",[i("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"90%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[1==e.rowVisitNum?i("baseline-task"):e._e(),e._v(" "),1!=e.rowVisitNum?i("visit-task",{attrs:{"global-row-visit-num":e.rowVisitNum,"visit-tp-code":e.rowTpCode}}):e._e()],1)],1):e._e()])},a=[],r=(i("ac6a"),i("0a05")),o=i("414c"),s=i("54b7"),l={name:"GlobalTask",components:{VisitTask:s["default"],BaselineTask:o["default"]},data:function(){return{isReportSaved:!1,pageTPInfo:"",activeNames:["TimepointEfficacy","CommentsForSubject","PreviousGlobalReads"],subjectNote:"",subjectCode:"",dialogVisible:!1,rowVisitNum:0,rowTpCode:"",dialogTitle:"",globalInfo:{},timepointEfficacyList:[],previousGlobalReadsList:[]}},created:function(){this.globalInfo=this.$route.query},mounted:function(){this.getTimepointEfficacy(),this.getPreviousGlobalReads()},methods:{getTimepointEfficacy:function(){var e=this;Object(r["h"])(this.globalInfo.TrialId,this.globalInfo.SubjectId,this.globalInfo.VisitNum,this.globalInfo.Id,this.globalInfo.WorkloadCode).then((function(t){e.timepointEfficacyList=t.Result}))},getPreviousGlobalReads:function(){var e=this;Object(r["g"])(this.globalInfo.TrialId,this.globalInfo.SubjectId,this.globalInfo.VisitNum,this.globalInfo.Id).then((function(t){e.previousGlobalReadsList=t.Result.PreviousGlobalReadsList,e.subjectNote=t.Result.SubjectNote}))},AddGlobalReport:function(){var e=this,t={};t.GlobalId=this.globalInfo.Id,t.SubjectNote=this.subjectNote,t.SubjectCode=this.globalInfo.SubjectCode,t.SubjectId=this.globalInfo.SubjectId,t.GlobalRSReportList=[],this.timepointEfficacyList.forEach((function(i){t.GlobalRSReportList.push({GlobalId:e.globalInfo.Id,TpCode:i.TpCode,VisitNum:i.VisitNum,Agree:i.GlobalRSSelect.Agree,NewRS:i.GlobalRSSelect.NewRS,Note:i.GlobalRSSelect.Note})})),Object(r["b"])(t).then((function(t){e.$message.success("Report saved successfully"),e.getTimepointEfficacy(),e.getPreviousGlobalReads()}))},goVisitImage:function(e){var t=zzSessionStorage.getItem("TokenKey"),i=this.$router.resolve({path:"/showdicom",query:{tpCode:e.TpCode,visitNum:e.VisitNum,studyId:e.StudyId,type:"Global",token:t}});window.setTimeout((function(){window.open(i.href,"_blank")}),1e3)},goCRF:function(e){this.rowVisitNum=e.VisitNum,this.dialogVisible=!0,this.rowTpCode=e.TpCode,this.dialogTitle=this.globalInfo.TrialCode+"/"+this.globalInfo.SubjectCode+"/"+e.VisitName}}},c=l,u=(i("6699"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"88f0":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=a.createHashMap()},render:function(e,t,i){var n=this.markerGroupMap;n.each((function(e){e.__keep=!1}));var a=this.type+"Model";t.eachSeries((function(e){var n=e[a];n&&this.renderSeries(e,n,t,i)}),this),n.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=r},8918:function(e,t,i){var n=i("6d8b"),a=i("625e"),r=a.parseClassType,o=0;function s(e){return[e||"",o++,Math.random().toFixed(5)].join("_")}function l(e){var t={};return e.registerSubTypeDefaulter=function(e,i){e=r(e),t[e.main]=i},e.determineSubType=function(i,n){var a=n.type;if(!a){var o=r(i).main;e.hasSubTypes(i)&&t[o]&&(a=t[o](n))}return a},e}function c(e,t){function i(e){var i={},o=[];return n.each(e,(function(s){var l=a(i,s),c=l.originalDeps=t(s),u=r(c,e);l.entryCount=u.length,0===l.entryCount&&o.push(s),n.each(u,(function(e){n.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=a(i,e);n.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:i,noEntryList:o}}function a(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var i=[];return n.each(e,(function(e){n.indexOf(t,e)>=0&&i.push(e)})),i}e.topologicalTravel=function(e,t,a,r){if(e.length){var o=i(t),s=o.graph,l=o.noEntryList,c={};n.each(e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),d=s[u],f=!!c[u];f&&(a.call(r,u,d.originalDeps.slice()),delete c[u]),n.each(d.successor,f?p:h)}n.each(c,(function(){throw new Error("Circle dependency may exists")}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){c[e]=!0,h(e)}}}t.getUID=s,t.enableSubTypeDefaulter=l,t.enableTopologicalTravel=c},"891f":function(e,t,i){},8968:function(e,t,i){"use strict";i("25c7")},"896b":function(e,t,i){"use strict";i.d(t,"k",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"i",(function(){return o})),i.d(t,"f",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"h",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"e",(function(){return d})),i.d(t,"g",(function(){return f})),i.d(t,"a",(function(){return h})),i.d(t,"d",(function(){return p})),i.d(t,"m",(function(){return m})),i.d(t,"l",(function(){return g})),i.d(t,"j",(function(){return v}));var n=i("b775");function a(e){return Object(n["a"])({url:"/TrialSiteSurvey/sendVerifyCode",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/TrialSiteSurvey/verifySendCode",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/TrialSiteSurvey/getTrialSurveyInitInfo/".concat(e),method:"get"})}function s(e,t){return Object(n["a"])({url:"/TrialSiteSurvey/getSiteSurveyInfo/".concat(e,"/").concat(t),method:"get"})}function l(e){return Object(n["a"])({url:"/TrialSiteSurvey/addOrUpdateTrialSiteSurvey",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/TrialSiteUserSurvey/getTrialSiteUserSurveyList/".concat(e),method:"get"})}function u(e,t){return Object(n["a"])({url:"/TrialSiteUserSurvey/addOrUpdateTrialSiteUserSurvey/".concat(e),method:"post",data:t})}function d(e,t){return Object(n["a"])({url:"/TrialSiteUserSurvey/deleteTrialSiteUserSurvey/".concat(e,"/").concat(t),method:"delete"})}function f(e){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/getTrialSiteEquipmentSurveyList/".concat(e),method:"get"})}function h(e,t){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/addOrUpdateTrialSiteEquipmentSurvey/".concat(e),method:"post",data:t})}function p(e,t){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/deleteTrialSiteEquipmentSurvey/".concat(e,"/").concat(t),method:"delete"})}function m(e){return Object(n["a"])({url:"/TrialSiteSurvey/trialSurveySubmit",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/TrialSiteSurvey/submissionRejection",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/".concat(e),method:"get"})}},8971:function(e,t){var i="";"undefined"!==typeof navigator&&(i=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=n},"897a":function(e,t,i){var n=i("22d1"),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function r(e){return n.browser.ie&&n.browser.version>=11?function(){var t,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r'});o.a.add(s);t["default"]=s},"89e3":function(e,t,i){var n=i("3842"),a=i("eda2"),r=i("e0d8"),o=i("944e"),s=n.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,i=this._extent,n=this._niceExtent,a=this._intervalPrecision,r=[];if(!t)return r;var o=1e4;i[0]o)return[]}var c=r.length?r[r.length-1]:n[1];return i[1]>c&&(e?r.push(s(c+t,a)):r.push(i[1])),r},getMinorTicks:function(e){for(var t=this.getTicks(!0),i=[],a=this.getExtent(),r=1;ra[0]&&f0&&e.forEach((function(e){"Resume"===e.Type&&t.push(e)})),t},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("63a0"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"8a61":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"8ae4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd,autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:2===e.question.TableQuestionType||2===e.question.QuestionGenre||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{oninput:"value=value.replace(/^\\D*(\\d*(?:.\\d{0,2})?).*$/g, '$1')",disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{change:function(t){e.formItemNumberChange(t,e.question)},input:function(t){return e.limitInput(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{input:function(t){return e.limitInput(t,e.question)}},model:{value:e.calculationValue,callback:function(t){e.calculationValue=t},expression:"calculationValue"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionFormItem",props:{IsBaseline:{type:Boolean,required:!0},questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},type:{type:String,default:"add"}},computed:{calculationValue:{get:function(){return this.questionForm[this.question.Id]},set:function(){}}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},digitPlaces:0}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;this.digitPlaces=localStorage.getItem("digitPlaces")?parseInt(localStorage.getItem("digitPlaces")):0,"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"edit"!==this.type&&("number"===this.question.Type?(console.log(this.questionForm),this.$set(this.questionForm,this.question.Id,null)):this.$set(this.questionForm,this.question.Id,""))},methods:{save:function(){},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={},console.log(this.QuestionsForm)},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(r["Rd"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens&&t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},limitInput:function(e,t){console.log(e),e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},formItemNumberChange:function(e,t){this.$emit("formItemTableNumberChange",e,t)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".el-dialog"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),console.log(t.urls),t.$emit("setFormTableItemData",t.question.Id,t.urls.length>0?t.urls.join("|"):"")),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormTableItemData",this.question.Id,this.urls.length>0?this.urls.join("|"):"")}}},s=o,l=(i("19ab"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"14b2c71a",null);t["default"]=c.exports},"8aef":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-button",{attrs:{plain:""},on:{click:e.open}},[e._v("上传视频文件")]),e._v(" "),i("el-dialog",{attrs:{title:"上传视频","close-on-click-modal":!1,visible:e.IsOpen,width:"450px","append-to-body":""},on:{"update:visible":function(t){e.IsOpen=t}}},[i("my-videos",{on:{uploadOver:e.uploadOver}})],1)],1)},a=[],r=(i("7f7f"),i("3726")),o={components:{MyVideos:r["default"]},data:function(){return{IsOpen:!1,videoUrl:null,videoName:null}},methods:{open:function(){this.IsOpen=!0},uploadOver:function(e,t){e&&(this.IsOpen=!1,this.videoUrl=t.url,this.videoName=t.name)}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"3ff178b2",null);t["default"]=c.exports},"8b29":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return o}));var n=i("b775");function a(e){return Object(n["a"])({url:"/SystemNotice/getSystemNoticeList",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/SystemNotice/addOrUpdateSystemNotice",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/SystemNotice/UploadSystemNoticeDoc",method:"post",data:e})}},"8b7f":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.createHashMap,o=(a.retrieve,a.each);function s(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}function l(e){var t=e.get("coordinateSystem"),i=new s(t),n=c[t];if(n)return n(e,i,i.axisMap,i.categoryAxisMap),i}var c={cartesian2d:function(e,t,i,n){var a=e.getReferringComponents("xAxis")[0],r=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),u(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),u(r)&&(n.set("y",r),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,i,n){var a=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],i.set("single",a),u(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,i,n){var a=e.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),u(r)&&(n.set("radius",r),t.firstCategoryDimIndex=0),u(o)&&(n.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,i,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,n){var a=e.ecModel,r=a.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=r.dimensions.slice();o(r.parallelAxisIndex,(function(e,r){var o=a.getComponent("parallelAxis",e),l=s[r];i.set(l,o),u(o)&&null==t.firstCategoryDimIndex&&(n.set(l,o),t.firstCategoryDimIndex=r)}))}};function u(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=l},"8b98":function(e,t,i){"use strict";i("2fea")},"8bd9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),i("div",{staticClass:"lesions"},[i("Questions",{ref:"ecrf",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum}})],1),e._v(" "),e.questions.length>0&&10!==e.CriterionType?e._l(e.questions,(function(t,n){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:n,staticClass:"lesions lesions_wrapper"},["group"===t.Type?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s("en"===e.language?t.GroupEnName:t.GroupName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"lesion_list"},e._l(t.Childrens,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.LesionType),expression:"!(isBaseLineTask && item.LesionType === 2)"}],key:t.Id},["table"===t.Type?i("div",{staticClass:"flex-row"},[i("div",{staticClass:"title"},[e._v(e._s(t.QuestionName))]),e._v(" "),e.readingTaskState<2&&(e.isBaseLineTask||2===t.LesionType)?i("div",{staticClass:"add-icon",on:{click:function(i){return i.preventDefault(),e.handleAdd(t)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]):e._e(),e._v(" "),"table"===t.Type&&t.TableQuestions?i("el-collapse",{attrs:{accordion:""},on:{change:e.handleCollapseChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(t.TableQuestions.Answers,(function(n,a){return i("el-collapse-item",{key:a,attrs:{name:t.Id+"_"+n.RowIndex}},[i("template",{slot:"title"},[i("div",{staticStyle:{width:"300px",position:"relative"},style:{color:e.activeName===t.Id+n.RowIndex?"#ffeb3b":"#fff"}},[e._v("\n\n "+e._s(e.getLesionName(t.OrderMark,n.RowIndex))+"\n "),e._v(" "),e.readingTaskState<2&&0===parseInt(t.TableQuestions.Answers[a].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:unsaved"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}})]):e._e(),e._v(" "),e.readingTaskState<2&&1===parseInt(t.TableQuestions.Answers[a].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:incompleteInfor"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#ff9800"}})]):e._e(),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50px",top:"2px"}},[i("div",{staticStyle:{"font-size":"10px",width:"220px"}},[t.TableQuestions.Answers[a].lesionPart?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px",display:"inline-block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"90px"}},[t.TableQuestions.Answers[a].lesionPart?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.TableQuestions.Answers[a].lesionPart,placement:"bottom"}},[i("span",[e._v(e._s(t.TableQuestions.Answers[a].lesionPart))])]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-left":"5px","margin-bottom":"5px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"50px"}},[0===t.LesionType?i("span",[e._v("\n "+e._s(e.$fd("TargetState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")]):1===t.LesionType?i("span",[e._v("\n "+e._s(e.$fd("NoTargetState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")]):i("span",[e._v("\n "+e._s(e.$fd("NewLesionState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-left":"5px","margin-bottom":"5px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"60px"}},[t.TableQuestions.Answers[a].isLymphLesion&&!isNaN(parseInt(t.TableQuestions.Answers[a].lesionShort))?[e._v("\n "+e._s(t.TableQuestions.Answers[a].lesionShort)+"mm\n ")]:t.TableQuestions.Answers[a].isLymphLesion||isNaN(parseInt(t.TableQuestions.Answers[a].lesionLength))?e._e():[e._v("\n "+e._s(t.TableQuestions.Answers[a].lesionLength)+"mm\n ")]],2)])]),e._v(" "),i("div",{staticStyle:{position:"absolute",right:"5px",top:"2px",transform:"rotateY(180deg)"}},[i("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.readingTaskState<2&&!!t.TableQuestions.Answers[a].RowId&&!e.isBaseLineTask&&!1!==t.TableQuestions.Answers[a].isDicomReading,expression:"readingTaskState<2 && !!item.TableQuestions.Answers[i].RowId && !isBaseLineTask && item.TableQuestions.Answers[i].isDicomReading !== false"}],staticClass:"item",attrs:{content:e.$t("trials:reading:button:split"),placement:"left"}},[i("i",{staticClass:"iconfont icon-24gl-split",staticStyle:{color:"#fff","font-size":"16px"},on:{click:function(i){return i.stopPropagation(),e.handleSplit(t.TableQuestions.Answers[a].RowId,t.Id)}}})])],1)],1)]),e._v(" "),i("QuestionForm",{ref:t.Id+"_"+n.RowIndex,refInFor:!0,attrs:{questions:t.TableQuestions.Questions,answers:t.TableQuestions.Answers[a],"lesion-type":t.LesionType,"order-mark":t.OrderMark,"table-questions":e.tableQuestions,"row-index":String(n.RowIndex),"question-name":t.QuestionName,"parent-qs-id":t.Id,"visit-task-id":e.visitTaskId,"is-current-task":e.isCurrentTask,"reading-task-state":e.readingTaskState,"is-base-line-task":e.isBaseLineTask},on:{getReadingQuestionAndAnswer:e.getReadingQuestionAndAnswer,determineExistsUnsavedLession:e.determineExistsUnsavedLession,resetQuestions:e.resetQuestions,close:e.close}})],2)})),1):e._e()],1)})),0)])})):e._e(),e._v(" "),e.questions.length>0&&10===e.CriterionType?[i("PCWG3Questions",{ref:"pcwg3",attrs:{questions:e.questions,"reading-task-state-parent":e.readingTaskState}})]:e._e()],2)])},a=[],r=(i("7514"),i("f576"),i("a481"),i("28a5"),i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("3e42")),l=i("9b92"),c=i("4360"),u=i("2f62"),d=i("d862"),f=i("1b24"),h={name:"MeasurementList",components:{Questions:d["default"],QuestionForm:f["default"]},props:{isShow:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{height:window.innerHeight-140,questions:[],activeName:"",activeItem:{activeRowIndex:null,activeCollapseId:null},visitTaskId:"",isCurrentTask:!1,loading:!1,unSaveTargets:[],temporaryLesions:[],readingTaskState:2,isBaseLineTask:!1,taskBlindName:"",tableQuestions:[],isFirstRender:!1,CriterionType:null,subjectCode:""}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList","language","lastCanvasTaskId","currentReadingTaskState"])),watch:{lastCanvasTaskId:{immediate:!0,handler:function(e){e&&this.initList(),console.log("lastCanvasTaskId",e)}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,window.addEventListener("message",this.receiveMsg),this.CriterionType=parseInt(localStorage.getItem("CriterionType")),l["a"].$on("setCollapseActive",(function(t){e.setCollapseActive(t),console.log("setCollapseActive")})),l["a"].$on("changeLesionType",(function(t){e.changeLesionType(t),console.log("changeLesionType")})),l["a"].$on("getAllUnSaveLesions",(function(t){var i=e.getAllUnSaveLesions();t(i),console.log("getAllUnSaveLesions")})),l["a"].$on("split",(function(t){e.handleSplit(t.RowId,t.QuestionId)})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){l["a"].$off("setCollapseActive"),l["a"].$off("changeLesionType"),l["a"].$off("getUnSaveTarget")},methods:{initList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===a.lastCanvasTaskId})),!(t>-1)){e.next=30;break}if(this.visitTaskId=this.visitTaskList[t].VisitTaskId,this.taskBlindName=this.visitTaskList[t].TaskBlindName,this.readingTaskState=this.visitTaskList[t].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[t].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[t].IsCurrentTask,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.visitTaskList[t].IsInit){e.next=28;break}if(i=this.$loading({fullscreen:!0}),n=this.trialId=this.$router.currentRoute.query.trialId,this.visitTaskList[t].measureDataInit){e.next=16;break}return e.next=16,c["a"].dispatch("reading/getMeasuredData",this.visitTaskList[t].VisitTaskId);case 16:if(this.visitTaskList[t].studyListInit){e.next=19;break}return e.next=19,c["a"].dispatch("reading/getStudyInfo",{trialId:n,subjectVisitId:this.visitTaskList[t].VisitId,visitTaskId:this.visitTaskList[t].VisitTaskId,taskBlindName:this.visitTaskList[t].TaskBlindName});case 19:if(this.visitTaskList[t].readingQuestionsInit){e.next=22;break}return e.next=22,c["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 22:if(this.visitTaskList[t].questionsInit){e.next=25;break}return e.next=25,c["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 25:return e.next=27,c["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[t].VisitTaskId});case 27:i.close();case 28:this.questions=this.visitTaskList[t].ReadingQuestions,this.$nextTick((function(){a.$refs["ecrf"].getQuestions(a.visitTaskId),a.getTableQuestions(),a.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var i="".concat(e.Id,"_").concat(t.RowIndex);a.$refs[i]&&a.$refs[i][0].initForm()}))}))}));case 30:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),resetQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setQuestions(this.questions,t),e.next=3,c["a"].dispatch("reading/setReadingQuestionAndAnswer",{questions:this.questions,visitTaskId:this.visitTaskId});case 3:this.getTableQuestions();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setQuestions:function(e,t){var i=this;e.forEach((function(e){if("table"===e.Type&&e.Id===t.questionId){var n=e.TableQuestions.Answers.findIndex((function(e){return e.RowIndex===t.rowIndex}));for(var a in e.TableQuestions.Answers[n].isLymphLesion=t.isLymphLesion,e.TableQuestions.Answers[n].loctation=t.lesionOrgan,e.TableQuestions.Answers[n].lesionPart=t.lesionPart,e.TableQuestions.Answers[n].lesionLength=t.lesionLength,e.TableQuestions.Answers[n].lesionShort=t.lesionShort,e.TableQuestions.Answers[n].lesionState=t.lesionState,e.TableQuestions.Answers[n].saveTypeEnum=t.saveTypeEnum,t.anwsers)"MeasureData"===a&&t.anwsers[a]?(e.TableQuestions.Answers[n].InstanceId=t.anwsers[a].instanceId,e.TableQuestions.Answers[n].SeriesId=t.anwsers[a].seriesId,e.TableQuestions.Answers[n][a]=JSON.stringify(t.anwsers[a]),e.TableQuestions.Answers[n].isDicomReading=!(!1===t.anwsers[a].IsDicomReading||"False"===t.anwsers[a].IsDicomReading)):e.TableQuestions.Answers[n][a]=String(t.anwsers[a])}e.Childrens.length>0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n);var a=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionState",a),i.RowId){var r=e.TableQuestions.Questions.findIndex((function(e){return 11===e.QuestionMark}));if(r>-1){var o=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);o=isNaN(parseInt(o))?"":parseInt(o),t.$set(i,"saveTypeEnum",isNaN(parseInt(o))?1:2)}else t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},refreshReadingQuestionAndAnswer:function(e){0===e&&(this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null),this.getReadingQuestionAndAnswer(this.visitTaskId)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=e.$loading({fullscreen:!0}),t.next=4,c["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 4:return t.next=6,c["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 6:l["a"].$emit("getMeasureData"),n.close(),i(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}())},setHeight:function(){this.height=window.innerHeight-140},getQuestionAnswer:function(e,t,i){var n=e.findIndex((function(e){return e.QuestionMark===t}));if(n>-1){var a=e[n].Id;return i[a]}return""},handleSplit:function(e,t){var i=this,n=[];this.getUnSaveTarget(),this.unSaveTargets.length>0&&this.unSaveTargets.forEach((function(e){n.push(e.lessionName)}));var a=this.getAllUnSaveLesions();if(a.forEach((function(e){n.push(e.lessionName)})),n.length>0){var r=this.$t("trials:reading:warnning:msg3");r=r.replaceAll("xxx",n.join("、")),this.$confirm(r,{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.split(e,t)})).catch((function(){}))}else this.$confirm(this.$t("trials:reading:warnning:msg4"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.split(e,t)})).catch((function(){}))},split:function(e,t){var i=this,n=this.$loading({fullscreen:!0}),a={visitTaskId:this.visitTaskId,questionId:t,rowId:e};Object(s["Ye"])(a).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.close(),e.next=3,i.getReadingQuestionAndAnswer();case 3:i.$nextTick((function(){i.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var n="".concat(e.Id,"_").concat(t.RowIndex);i.$refs[n]&&i.$refs[n][0].initForm()}))}))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},isCanActiveTool:function(e){if(10===this.CriterionType)return this.$refs["pcwg3"].isCanActiveTool(e);if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId,n="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(t!==this.activeItem.activeRowIndex||i!==this.activeItem.activeCollapseId||this.$refs[n][0].questionForm.MeasureData){var a=this.$t("trials:reading:warnning:msg5");return a=a.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:a}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):(!this.isBaseLineTask||"Bidirectional"!==e&&"Length"!==e&&"RectangleRoi"!==e)&&(this.isBaseLineTask||"ArrowAnnotate"!==e&&"Bidirectional"!==e&&"Length"!==e&&"RectangleRoi"!==e)?this.isBaseLineTask&&"ArrowAnnotate"===e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg54")}:{isCanActiveTool:!1,reason:""}:{isCanActiveTool:!0,reason:""}},checkToolCanActive:function(e){console.log(e);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),i=this.$refs[t][0].getQuestionVal(2);return i=isNaN(parseInt(i))?null:parseInt(i),this.$refs[t][0].questionForm.MeasureData?{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?0===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg6")}:0===this.$refs[t][0].lesionType&&0===i&&"Length"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg7")}:1===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg8")}:1===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg9")}:"ArrowAnnotate"===e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg54")}:{isCanActiveTool:!0,reason:""}:0===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg10")}:0===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg11")}:1===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg52")}:1===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg53")}:2===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg12")}:2===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg13")}:2===this.$refs[t][0].lesionType&&"Length"!==e&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg51")}:{isCanActiveTool:!0,reason:""}},handleAdd:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getUnSaveTarget(),!(this.unSaveTargets.length>0)){e.next=6;break}return i=this.$t("trials:reading:warnning:msg5"),i=i.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}}),e.abrupt("return");case 6:if(!(t.MaxQuestionCount&&t.MaxQuestionCount<=t.TableQuestions.Answers.length)){e.next=12;break}n=this.$t("trials:reading:warnning:msg14"),n=n.replace("xxx",t.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),e.next=21;break;case 12:return a={saveTypeEnum:0},r=this.getMaxRowIndex(t.TableQuestions.Answers),a.RowIndex="".concat(r+1,".00"),a.IsDicomReading=!0,e.next=18,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 18:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);case 21:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.map((function(i){if(!i.RowId){var n=e.getLesionName(t.OrderMark,i.RowIndex);e.unSaveTargets.push({lessionName:n,rowIndex:i.RowIndex,questionId:t.Id})}}))})),this.unSaveTargets},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&l["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},changeLesionType:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].dispatch("reading/removeReadingQuestionAndAnswer",{lesionType:t.oldLesionType,rowIndex:t.rowIndex,visitTaskId:this.visitTaskId});case 2:if(i={},n=t.questionForm,a=this.tableQuestions.find((function(e){return e.LesionType===t.newLesionType})),r="",o=this.getMaxRowIndex(a.TableQuestions.Answers),i.RowIndex="".concat(o+1,".00"),r="".concat(a.OrderMark).concat(String(o+1).padStart(2,"0")),a.TableQuestions.Questions.forEach((function(e){var t=n.find((function(t){return t.QuestionMark===e.QuestionMark}));t&&(i[e.Id]=t.Answer)})),!t.measureData){e.next=15;break}return e.next=13,c["a"].dispatch("reading/removeMeasuredData",{visitTaskId:this.visitTaskId,measureData:t.measureData,questionId:t.questionId,rowIndex:t.rowIndex});case 13:t.measureData.data.remark=r,i.MeasureData=JSON.stringify(t.measureData);case 15:return s=null,t.rowId&&(s={rowId:t.rowId,questionId:t.questionId},i.RowId=t.rowId),e.next=19,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.newLesionType,visitTaskId:this.visitTaskId,lesionObj:i});case 19:this.activeItem.activeRowIndex=String(i.RowIndex),this.activeItem.activeCollapseId=a.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){s&&u.$refs[l][0].setDeleteInfo(s),u.$refs[l][0].setMeasureData(t.measureData,s)}));case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),removeQuestionAnswer:function(e){var t=this.tableQuestions.find((function(t){return t.LesionType===e.oldLesionType}));if(t){var i=t.TableQuestions.Answers.findIndex((function(t){return String(t.RowIndex)===String(e.rowIndex)}));if(-1===i)return;t.TableQuestions.Answers.splice(i,1)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},createTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 0===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={},a=this.getMaxRowIndex(t.TableQuestions.Answers),n.RowIndex="".concat(a+1,".00"),n.IsDicomReading=!(!1===i.isDicomReading||"False"===i.isDicomReading),n.measureObj=i,e.next=7,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:n});case 7:this.activeItem.activeRowIndex=String(n.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);case 10:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),createNTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 1===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},modifyMeasuredData:function(e){if(10!==this.CriterionType){if(e.questionInfo){this.activeItem.activeCollapseId=e.questionInfo.QuestionId,this.activeItem.activeRowIndex=String(e.questionInfo.RowIndex),this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$refs[t][0].setMeasureData(e.measureData)}}else this.$refs["pcwg3"].modifyMeasuredData(e)},setMeasuredData:function(e){var t=this;if(10!==this.CriterionType)if(this.activeItem.activeCollapseId)this.$nextTick((function(){var i="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);if(t.$refs[i][0].questionForm&&t.$refs[i][0].questionForm.MeasureData&&e.data.uuid===t.$refs[i][0].questionForm.MeasureData.data.uuid||!t.$refs[i][0].questionForm.MeasureData)t.$refs[i][0].setMeasureData(e);else if(t.isBaseLineTask){var n=t.tableQuestions.findIndex((function(e){return 0===e.LesionType}));t.tableQuestions[n].TableQuestions.Answers.length0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");r=r.replace("xxx",this.unSaveTargets[0].lessionName),t={isCanActiveTool:!1,lesionName:"",reason:r}}else{var o=this.$refs[a][0].questionForm.LesionType;t=0===o?{isCanActiveTool:!1,lesionName:"",reason:this.$t("trials:reading:warnning:msg18")}:{isCanActiveTool:!0,lesionName:this.$refs[a][0].lesionMark,reason:"",toolName:e.data.toolName}}}else if(this.activeItem.activeCollapseId){var s="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),c=this.$refs[s][0].questionForm.LesionType;t=0===c?{isCanActiveTool:!1,lesionName:"",reason:this.$t("trials:reading:warnning:msg18")}:{isCanActiveTool:!0,lesionName:this.$refs[s][0].lesionMark,reason:"",toolName:e.data.toolName}}else{var u=null,d="";if(this.isBaseLineTask){var f=this.tableQuestions.findIndex((function(e){return 1===e.LesionType}));f>-1&&(u=this.tableQuestions[f])}else{var h=this.tableQuestions.findIndex((function(e){return 2===e.LesionType}));h>-1&&(u=this.tableQuestions[h])}var p=this.getMaxRowIndex(u.TableQuestions.Answers);d="".concat(u.OrderMark).concat(String(p+1).padStart(2,"0")),t={isCanActiveTool:!0,lesionName:d,reason:"",toolName:e.data.toolName}}l["a"].$emit("isCanActiveNoneDicomTool",t)}else"setMeasurement"===e.data.type&&this.setMeasuredData(e.data.data)}}},p=h,m=(i("a31a"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,"5c4aaeb5",null);t["default"]=g.exports},"8bd95":function(e,t,i){"use strict";i("39b2")},"8c11":function(e,t,i){},"8c29":function(e,t,i){},"8c2a":function(e,t,i){var n=i("6d8b"),a=i("e0d8"),r=i("3842"),o=i("89e3"),s=a.prototype,l=o.prototype,c=r.getPrecisionSafe,u=r.round,d=Math.floor,f=Math.ceil,h=Math.pow,p=Math.log,m=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalScale=new o},getTicks:function(e){var t=this._originalScale,i=this._extent,a=t.getExtent();return n.map(l.getTicks.call(this,e),(function(e){var n=r.round(h(this.base,e));return n=e===i[0]&&t.__fixMin?g(n,a[0]):n,n=e===i[1]&&t.__fixMax?g(n,a[1]):n,n}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),h(this.base,e)},setExtent:function(e,t){var i=this.base;e=p(e)/p(i),t=p(t)/p(i),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=h(e,t[0]),t[1]=h(e,t[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(t[0]=g(t[0],n[0])),i.__fixMax&&(t[1]=g(t[1],n[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=p(e[0])/p(t),e[1]=p(e[1])/p(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,i=t[1]-t[0];if(!(i===1/0||i<=0)){var n=r.quantity(i),a=e/i*n;a<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var o=[r.round(f(t[0]/n)*n),r.round(d(t[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function g(e,t){return u(e,c(t))}n.each(["contain","normalize"],(function(e){m.prototype[e]=function(t){return t=p(t)/p(this.base),s[e].call(this,t)}})),m.create=function(){return new m};var v=m;e.exports=v},"8c49":function(e,t,i){},"8cdb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[e._m(0),e._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[e._v("OOPS!")]),e._v(" "),i("div",{staticClass:"bullshit__info"},[e._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),e._v(" "),i("a",{staticClass:"bullshit__return-home",attrs:{href:""},on:{click:function(t){return e.$router.back(-1)}}},[e._v("Back")])])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},o=r,s=(i("f106"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"52be2619",null);t["default"]=l.exports},"8cf6":function(e,t,i){},"8cfb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticStyle:{height:"100%",background:"#fff"}},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.dict.type["Trial_Document"],(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileName")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:add"],expression:"['trials:trials-panel:setting:attachment:add']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"attachmentList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:attachment:table:fileType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:attachment:table:fileName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignViewMinimumMinutes",label:e.$t("trials:attachment:table:min"),"show-overflow-tooltip":"",sortable:"custom","min-width":"170"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:attachment:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NeedConfirmedUserTypes",label:e.$t("trials:attachment:table:userType"),"show-overflow-tooltip":"","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NeedConfirmedUserTypes?t.row.NeedConfirmedUserTypes.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:attachment:table:description"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:attachment:table:updateTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"400",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:attachment:action:preview")},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:edit"],expression:"['trials:trials-panel:setting:attachment:edit']"}],attrs:{circle:"",title:e.$t("trials:attachment:action:edit"),icon:"el-icon-edit-outline",disabled:t.row.IsSomeUserSigned||t.row.IsDeleted},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:abolish"],expression:"['trials:trials-panel:setting:attachment:abolish']"}],attrs:{disabled:t.row.IsDeleted,circle:"",title:e.$t("trials:attachment:action:apolish"),icon:"el-icon-delete"},on:{click:function(i){return e.handleRepeal(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"800px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("AttachmentForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.$t("trials:attachment:dialogTitle:preview"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType}}):e._e()],1)]):e._e()],1)},a=[],r=i("db72"),o=(i("ac6a"),i("3e42")),s=i("f36a"),l=i("333d"),c=i("2bb4"),u=i("fa84"),d=function(){return{FileTypeId:"",Name:"",PageIndex:1,PageSize:20,SortField:"",Asc:!1}},f={name:"TrialAttachmentList",components:{BoxContent:s["default"],Pagination:l["default"],AttachmentForm:c["default"],PreviewFile:u["default"]},dicts:["Trial_Document"],data:function(){return{searchData:d(),loading:!1,list:[],total:0,editVisible:!1,previewVisible:!1,title:"",currentRow:{},currentPath:"",currentType:"",trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Hd"])(this.searchData).then((function(t){e.loading=!1;var i=t.Result,n=i.CurrentPageData,a=i.TotalCount;n.forEach((function(e){e.NeedConfirmedUserTypes=[],e.NeedConfirmedUserTypeeIds=[],e.NeedConfirmedUserTypeList.forEach((function(t){e.NeedConfirmedUserTypes.push(t.UserTypeShortName),e.NeedConfirmedUserTypeeIds.push(t.NeedConfirmUserTypeId)}))})),e.list=n,e.total=a})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title=this.$t("common:button:add"),this.currentRow={},this.editVisible=!0},handlePreview:function(e){var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleEdit:function(e){this.title=this.$t("common:button:edit"),this.currentRow=Object(r["a"])({},e),this.editVisible=!0},handleRepeal:function(e){var t=this;this.$confirm(this.$t("trials:attachment:message:abolish"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Ef"])(e.Id,!1).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:trials-list:message:abolitionSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},closeDialog:function(){this.editVisible=!1},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.attachmentList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"8d1b":function(e,t,i){"use strict";i("4151")},"8d32":function(e,t,i){var n=i("cbe5"),a=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r,0),r=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(r),c=Math.sin(r);e.moveTo(l*a+i,c*a+n),e.arc(i,n,a,r,o,!s)}});e.exports=a},"8d74":function(e,t,i){var n=i("4cef"),a=/^\s+/;function r(e){return e?e.slice(0,n(e)+1).replace(a,""):e}e.exports=r},"8deb":function(e,t,i){var n=i("3eba");i("5522"),i("a016"),i("1466");var a=i("98e7"),r=i("7f96"),o=i("870e"),s=i("d3f47"),l=i("7891");n.registerVisual(a("radar")),n.registerVisual(r("radar","circle")),n.registerLayout(o),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},"8e37":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("6f18"),u=4,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"8e43":function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.isObject,o=n.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&o(i,u);return new s({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})};var l=s.prototype;function c(e){return e._map||(e._map=a(e.categories))}function u(e){return r(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return c(this).get(e)},l.parseAndCollect=function(e){var t,i=this._needCollect;if("string"!==typeof e&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=c(this);return t=n.get(e),null==t&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t};var d=s;e.exports=d},"8e6c":function(e,t,i){"use strict";i("2a6b")},"8e77":function(e,t,i){var n=i("6d8b"),a=i("41ef"),r=i("6179"),o=i("3842"),s=i("2306"),l=i("923d"),c=i("88f0"),u=function(e,t,i,a){var r=l.dataTransform(e,a[0]),o=l.dataTransform(e,a[1]),s=n.retrieve,c=r.coord,u=o.coord;c[0]=s(c[0],-1/0),c[1]=s(c[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var d=n.mergeAll([{},r,o]);return d.coord=[r.coord,o.coord],d.x0=r.x,d.y0=r.y,d.x1=o.x,d.y1=o.y,d};function d(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,i,n){var a=1-e;return d(t[a])&&d(i[a])}function h(e,t){var i=t.coord[0],n=t.coord[1];return!("cartesian2d"!==e.type||!i||!n||!f(1,i,n,e)&&!f(0,i,n,e))||(l.dataFilter(e,{coord:i,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:n,x:t.x1,y:t.y1}))}function p(e,t,i,n,a){var r,s=n.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get(i[0]),a.getWidth()),u=o.parsePercent(l.get(i[1]),a.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)r=n.getMarkerPosition(e.getValues(i,t));else{var f=e.get(i[0],t),h=e.get(i[1],t),p=[f,h];s.clampData&&s.clampData(p,p),r=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");f=e.get(i[0],t),h=e.get(i[1],t);d(f)?r[0]=m.toGlobalCoord(m.getExtent()["x0"===i[0]?0:1]):d(h)&&(r[1]=g.toGlobalCoord(g.getExtent()["y0"===i[1]?0:1]))}isNaN(c)||(r[0]=c),isNaN(u)||(r[1]=u)}else r=[c,u];return r}var m=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function g(e,t,i){var a,o,s=["x0","y0","x1","y1"];e?(a=n.map(e&&e.dimensions,(function(e){var i=t.getData(),a=i.getDimensionInfo(i.mapDimension(e))||{};return n.defaults({name:e},a)})),o=new r(n.map(s,(function(e,t){return{name:e,type:a[t%2].type}})),i)):(a=[{name:"value",type:"float"}],o=new r(a,i));var l=n.map(i.get("data"),n.curry(u,t,e,i));e&&(l=n.filter(l,n.curry(h,e)));var c=e?function(e,t,i,n){return e.coord[Math.floor(n/2)][n%2]}:function(e){return e.value};return o.initData(l,null,c),o.hasItemOption=!0,o}c.extend({type:"markArea",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var a=t.getData();a.each((function(t){var r=n.map(m,(function(n){return p(a,t,n,e,i)}));a.setItemLayout(t,r);var o=a.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},renderSeries:function(e,t,i,r){var o=e.coordinateSystem,l=e.id,c=e.getData(),u=this.markerGroupMap,f=u.get(l)||u.set(l,{group:new s.Group});this.group.add(f.group),f.__keep=!0;var h=g(o,e,t);t.setData(h),h.each((function(t){var i=n.map(m,(function(i){return p(h,t,i,e,r)})),a=!0;n.each(m,(function(e){if(a){var i=h.get(e[0],t),n=h.get(e[1],t);(d(i)||o.getAxis("x").containData(i))&&(d(n)||o.getAxis("y").containData(n))&&(a=!1)}})),h.setItemLayout(t,{points:i,allClipped:a}),h.setItemVisual(t,{color:c.getVisual("color")})})),h.diff(f.__data).add((function(e){var t=h.getItemLayout(e);if(!t.allClipped){var i=new s.Polygon({shape:{points:t.points}});h.setItemGraphicEl(e,i),f.group.add(i)}})).update((function(e,i){var n=f.__data.getItemGraphicEl(i),a=h.getItemLayout(e);a.allClipped?n&&f.group.remove(n):(n?s.updateProps(n,{shape:{points:a.points}},t,e):n=new s.Polygon({shape:{points:a.points}}),h.setItemGraphicEl(e,n),f.group.add(n))})).remove((function(e){var t=f.__data.getItemGraphicEl(e);f.group.remove(t)})).execute(),h.eachItemGraphicEl((function(e,i){var r=h.getItemModel(i),o=r.getModel("label"),l=r.getModel("emphasis.label"),c=h.getItemVisual(i,"color");e.useStyle(n.defaults(r.getModel("itemStyle").getItemStyle(),{fill:a.modifyAlpha(c,.4),stroke:c})),e.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,o,l,{labelFetcher:t,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:c}),s.setHoverStyle(e,{}),e.dataModel=t})),f.__data=h,f.group.silent=t.get("silent")||e.get("silent")}})},"8e8a":function(e,t,i){"use strict";i("9595")},"8eb4":function(e,t,i){"use strict";i("c1f8")},"8ec5":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2145"),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),a.each(this.option.feature,(function(e,t){var i=r.get(t);i&&a.merge(e,i.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=o;e.exports=s},"8ed2":function(e,t,i){i("48c7");var n=i("6cb7"),a=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=a},"8ee0":function(e,t,i){i("3f8e");var n=i("697e7"),a=n.registerPainter,r=i("dc20");a("svg",r)},"8ef2":function(e,t,i){"use strict";i("0ea4")},"8fb6":function(e,t,i){"use strict";i("cfdc")},"901f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),e.hasPermi(["trials:trials-panel:visit:qc-question:send"])&&e.currentUserId===e.data.CurrentActionUserId?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showNewMessage,expression:"showNewMessage"}],staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:1===e.ReuploadEnum,expression:"ReuploadEnum === 1"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:agree-reupload"],expression:"['trials:trials-panel:visit:qc-question:agree-reupload']"}],attrs:{type:"primary",loading:e.setUploadLoading},on:{click:e.setReupload}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:agreeToReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:send"],expression:"['trials:trials-panel:visit:qc-question:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:send"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:close"))+"\n ")])],1)]):e._e()])},a=[],r=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o=i("268e"),s=i.n(o),l=i("19c3"),c=i.n(l),u=i("011b"),d=i.n(u),f=i("303f"),h=i.n(f),p={name:"ChatForm",props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},signText:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:s.a,pmAvatar:c.a,crcAvatar:d.a,qcAvatar:h.a,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),trialCode:this.$route.query.trialCode,needReUpload:!1,setUploadLoading:!1,ReuploadEnum:0,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId")}},watch:{data:{handler:function(e,t){this.getMessageList()},immediate:!0,deep:!0}},mounted:function(){this.data.IsClosed||(this.showNewMessage=!0),this.ReuploadEnum=1*this.data.ReuploadEnum,this.getMessageList()},methods:{close:function(){this.$emit("close")},getMessageList:function(){var e=[],t=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?t=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&t.push(this.data.Content);var i=t.map((function(e){return"
  • ".concat(e,"
  • ")})),n="\n
    ".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n
      \n ").concat(i.join(""),"\n
    \n
    \n

    \n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n

    \n

    ").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"

    "),a=zzSessionStorage.getItem("userId");e.push({IsCurrentUser:this.data.CreateUserId===a,TalkContent:n,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),this.data.DialogList.forEach((function(t){e.push(t)})),this.recordContent=e,this.setScrollHeight()},getMessageList1:function(){var e=this;this.loading=!0;var t=[],i=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?i=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&i.push(this.data.Content);var n=i.map((function(e){return"
  • ".concat(e,"
  • ")})),a="\n
    ".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n
      \n ").concat(n.join(""),"\n
    \n
    \n

    \n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n

    \n

    ").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"

    "),o=zzSessionStorage.getItem("userId");t.push({IsCurrentUser:this.data.CreateUserId===o,TalkContent:a,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),Object(r["Dc"])(this.data.Id).then((function(i){e.loading=!1,i.Result.forEach((function(e){t.push(e)})),e.recordContent=t,e.setScrollHeight()})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){var t={talkContent:this.newMessage,qcChallengeId:this.data.Id,subjectVisitId:this.data.SubjectVisitId};this.btnLoading=!0,Object(r["G"])(this.trialId,t).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.newMessage="",e.reFreshList())})).catch((function(){e.btnLoading=!1}))}},reFreshList:function(){this.$emit("getDialogList")},setReupload:function(){var e=this;this.$confirm(this.$t("trials:qcQuality:message:agreeToReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(t){e.setUploadLoading=!0,Object(r["Me"])(e.trialId,e.data.SubjectVisitId,e.data.Id).then((function(t){e.setUploadLoading=!1,t.IsSuccess&&(e.ReuploadEnum=2,e.reFreshList())})).catch((function(){e.setUploadLoading=!1}))}))}}},m=p,g=(i("3fd5"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},"903c":function(e,t){function i(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var i=0;i{};const a=e=>{i=e},r=e=>{n=e},o=(e,t)=>{n({type:e,message:t}),i&&console.log(`[${e}] ${t}`)};e.exports={logging:i,setLogging:a,setCustomLogger:r,log:o}},9090:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-function-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"roleFunction",staticClass:"table",attrs:{size:"small",data:e.list},on:{select:e.handleSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"Function Name",prop:"FunctionName",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"Description",prop:"Note"}})],1)],1)},a=[],r=(i("ac6a"),i("50fc")),o={name:"RoleFunction",data:function(){return{loading:!1,list:[]}},methods:{getFunctions:function(e,t){var i=this;this.roleId=e,this.loading=!0,this.list=[],Object(r["j"])(e,t).then((function(e){i.list=e.Result,i.loading=!1,i.list.forEach((function(e){i.$nextTick((function(){i.$refs["roleFunction"].toggleRowSelection(e,e.IsSelect)}))}))}))},handleSelect:function(e,t){var i=this,n=e.length&&-1!==e.indexOf(t),a={RoleId:this.roleId,FunctionId:t.Id,IsSelect:n};Object(r["t"])(a).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},resetTable:function(){this.list=[]}}},s=o,l=(i("5f91"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"909c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"enroll-container"},[i("div",{staticClass:"content-wrapper"},[i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:trialInfor")))])]),e._v(" "),e.trialInfo?i("div",{staticClass:"trial-wrapper"},[i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:indication"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.Indication))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:criterion"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.CriterionList&&e.trialInfo.CriterionList.length>0?e.trialInfo.CriterionList.join(", "):""))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:modality"))+":")]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{content:e.trialInfo.Modalitys,placement:"top"}},[i("span",[e._v(e._s(e.trialInfo.Modalitys))])])],1)]),e._v(" "),i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:reviewMode"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("ReadingMethod",e.trialInfo.ReadingType)))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:totalReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.TotalReviewers))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:typeofReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("AttendedReviewerType",e.trialInfo.AttendedReviewerType)))])])])]):e._e(),e._v(" "),i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:enrollment")))])])]),e._v(" "),i("div",{staticClass:"step-wrapper"},[i("el-steps",{staticStyle:{"margin-top":"70px"},attrs:{active:e.activeStatus,"align-center":"",space:300}},[i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=0?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:selection")},nativeOn:{click:function(t){return e.handleClick(0)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=1?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:submission")},nativeOn:{click:function(t){return e.handleClick(1)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=2?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:approval")},nativeOn:{click:function(t){return e.handleClick(2)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=3?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:confirmation")},nativeOn:{click:function(t){return e.handleClick(3)}}})],1),e._v(" "),i("div",{staticClass:"step-content"},[0===e.activeStatus?i("Selection",{on:{nextStep:e.nextStep}}):e._e(),e._v(" "),1===e.activeStatus?i("Submission",{ref:"submission",on:{nextStep:e.nextStep}}):e._e(),e._v(" "),2===e.activeStatus?i("Approval",{ref:"approval",on:{nextStep:e.nextStep}}):e._e(),e._v(" "),3===e.activeStatus?i("Confirmation",{ref:"confirmation"}):e._e()],1)],1)])},a=[],r=i("3644"),o=i("be8f"),s=i("199c"),l=i("0f07"),c=i("3e42"),u={name:"Enroll",components:{Selection:r["default"],Submission:o["default"],Approval:s["default"],Confirmation:l["default"]},data:function(){return{trialInfo:null,TrialId:"",activeStatus:null,TrialMaxState:0}},mounted:function(){this.TrialId=this.$route.query.trialId,this.initPage()},methods:{initPage:function(){var e=this;Object(c["Pd"])(this.TrialId).then((function(t){e.trialInfo=t.Result.TrialView;var i=t.Result.TrialMaxState<1?0:t.Result.TrialMaxState<5?1:t.Result.TrialMaxState<8?2:3;e.activeStatus=i,e.TrialMaxState=i}))},handleClick:function(e){this.activeStatus=e},nextStep:function(e){this.activeStatus=3===this.activeStatus?3:this.activeStatus+1,this.TrialMaxState=this.activeStatus,this.$nextTick(function(){this.$refs[e].getList()}.bind(this))}}},d=u,f=(i("be16"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"909f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"临床数据名称"}},[i("el-input",{model:{value:e.searchData.ClinicalDataSetName,callback:function(t){e.$set(e.searchData,"ClinicalDataSetName",t)},expression:"searchData.ClinicalDataSetName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"数据级别"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ClinicalDataLevel,callback:function(t){e.$set(e.searchData,"ClinicalDataLevel",t)},expression:"searchData.ClinicalDataLevel"}},e._l(e.$d.ClinicalLevel,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"传输方式"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ClinicalUploadType,callback:function(t){e.$set(e.searchData,"ClinicalUploadType",t)},expression:"searchData.ClinicalUploadType"}},e._l(e.$d.ClinicalUploadType,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:"临床数据名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadRole",label:"上传人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalDataUploadRole",t.row.UploadRole))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:"数据级别","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:"传输方式","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionEnumList",label:"阅片标准","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionEnumList.map((function(t){return e.$fd("CriterionType",t)})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v("启用")]):i("el-tag",{attrs:{type:"danger"}},[e._v("禁用")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.row.FileName},on:{click:function(i){return e.handleDownloadTpl(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("592b"),c=function(){return{ClinicalDataSetName:"",ClinicalDataLevel:null,ClinicalUploadType:null}},u={name:"ClinicalDataTemplate",components:{BoxContent:s["default"],ClinicalDataForm:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,currentRow:{},addOrEditCD:{visible:!1,title:""}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Z"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.currentRow={},this.addOrEditCD.title="新增",this.addOrEditCD.visible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.addOrEditCD.title="编辑",this.addOrEditCD.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["A"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.loading=!0,Object(o["b"])(e.Id).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"90c2":function(e,t,i){var n=i("5f14"),a=i("41ef"),r=i("6d8b"),o=r.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(e,t,i,n){var a=e.getData().tree,r=a.root;r.isRemoved()||c(r,{},e.getViewRoot().getAncestors(),e)}};function c(e,t,i,n){var a=e.getModel(),o=e.getLayout();if(o&&!o.invisible&&o.isInView){var l,h=e.getModel(s),m=u(h,t,n),v=h.get("borderColor"),b=h.get("borderColorSaturation");null!=b&&(l=d(m,e),v=f(b,l)),e.setVisual("borderColor",v);var y=e.viewChildren;if(y&&y.length){var w=p(e,a,o,h,m,y);r.each(y,(function(e,t){if(e.depth>=i.length||e===i[e.depth]){var r=g(a,m,e,t,w,n);c(e,r,i,n)}}))}else l=d(m,e),e.setVisual("color",l)}}function u(e,t,i){var n=r.extend({},t),a=i.designatedVisualItemStyle;return r.each(["color","colorAlpha","colorSaturation"],(function(i){a[i]=t[i];var r=e.get(i);a[i]=null,null!=r&&(n[i]=r)})),n}function d(e){var t=h(e,"color");if(t){var i=h(e,"colorAlpha"),n=h(e,"colorSaturation");return n&&(t=a.modifyHSL(t,null,null,n)),i&&(t=a.modifyAlpha(t,i)),t}}function f(e,t){return null!=t?a.modifyHSL(t,null,null,e):null}function h(e,t){var i=e[t];if(null!=i&&"none"!==i)return i}function p(e,t,i,a,r,o){if(o&&o.length){var s=m(t,"color")||null!=r.color&&"none"!==r.color&&(m(t,"colorAlpha")||m(t,"colorSaturation"));if(s){var l=t.get("visualMin"),c=t.get("visualMax"),u=i.dataExtent.slice();null!=l&&lu[1]&&(u[1]=c);var d=t.get("colorMappingBy"),f={type:s.name,dataExtent:u,visual:s.range};"color"!==f.type||"index"!==d&&"id"!==d?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var h=new n(f);return h.__drColorMappingBy=d,h}}}function m(e,t){var i=e.get(t);return o(i)&&i.length?{name:t,range:i}:null}function g(e,t,i,n,a,o){var s=r.extend({},t);if(a){var l=a.type,c="color"===l&&a.__drColorMappingBy,u="index"===c?n:"id"===c?o.mapIdToIndex(i.getId()):i.getValue(e.get("visualDimension"));s[l]=a.mapValueToVisual(u)}return s}e.exports=l},"90ce":function(e,t,i){"use strict";i("5951")},"90fb7":function(e,t,i){},"910a":function(e,t,i){},"910c":function(e,t,i){},9110:function(e,t,i){i("96cf");const n=i("9423"),{fetchFile:a}=i("b8df");e.exports={createFFmpeg:n,fetchFile:a}},"911c":function(e,t,i){"use strict";i("8826")},9159:function(e,t,i){"use strict";i("5923")},9183:function(e,t,i){},"919a":function(e,t,i){},"919e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:oncologyReview:title:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:readingRes"),align:"center",prop:"","show-overflow-tooltip":""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.QuestionList[n].DictionaryCode,parseInt(t.row.QuestionList[n].Answer)))+"\n ")]):i("span",[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")])]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:e.$t("trials:oncologyReview:title:isGlobalUpdate"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:view"))+"\n ")]):e._e()]}}],null,!1,1913502680)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:e.$t("trials:oncologyReview:title:visitRemark"),"show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:oReviewRes"),align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:e.$t("trials:oncologyReview:title:findings"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:e.$t("common:ruleMessage:select")},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.assessTypeList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Code}})})),1):i("span",[e._v(e._s(e.getAssessType(t.row.EvaluationResult)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.$t("trials:oncologyReview:title:reason")))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)}):e._e()],1)},a=[],r=(i("20d6"),i("5f87")),o={name:"OReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{oncologyInfo:{},questionCols:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=[];if(this.auditInfo.OncologyInfo.OncologyVisits.length>0){var t=this.auditInfo.OncologyInfo.OncologyVisits[0];t.QuestionList.map((function(t){e.push(t.QuestionName)}))}this.questionCols=e,this.assessTypeList=this.auditInfo.OncologyInfo.AssessTypeList,this.oncologyInfo=this.auditInfo.OncologyInfo},handleViewDetail:function(e){var t=this.$route.query.trialId,i=Object(r["a"])(),n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].Value:""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"91be":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"91e9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{staticClass:"box-card",staticStyle:{width:"800px"},attrs:{size:"small"}},[i("div",[i("el-button",{attrs:{type:"danger"},on:{click:e.handleReset}},[e._v(e._s(e.$t("admin:reset")))])],1)])},a=[],r=i("50fc"),o={name:"Account",props:{userId:{type:String,default:""}},methods:{handleReset:function(){var e=this;this.$confirm(this.$t("admin:message:password"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["s"])(e.userId).then((function(t){t.IsSuccess&&e.$message({message:e.$t("trials:adRules:message:msg7"),type:"success"})}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},9214:function(e,t,i){},"922f":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-system",use:"icon-system-usage",viewBox:"0 0 1084 1024",content:''});o.a.add(s);t["default"]=s},"923b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,disabled:"look"===e.type,"label-width":"130px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"类型",prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"单位"}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"表格类型标识",prop:"LesionType"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.LesionType,callback:function(t){e.$set(e.form,"LesionType",t)},expression:"form.LesionType"}},e._l(e.lesionTypes,(function(t){return i("el-option",{key:t.Code,attrs:{value:parseInt(t.Code),label:e.$fd("LesionType",parseInt(t.Code))}})})),1)],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称",prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称(EN)",prop:"GroupEnName"}},[i("el-input",{model:{value:e.form.GroupEnName,callback:function(t){e.$set(e.form,"GroupEnName",t)},expression:"form.GroupEnName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称(EN)",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"选项类型",prop:"QuestionGenre",rules:[{required:"calculation"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.questionGenreChange(t,e.form)}},model:{value:e.form.QuestionGenre,callback:function(t){e.$set(e.form,"QuestionGenre",t)},expression:"form.QuestionGenre"}},[i("el-radio",{attrs:{label:-1}},[e._v("\n 无\n ")]),e._v(" "),e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:0===t.value||3===t.value,expression:"item.value===0 || item.value===3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2)],1):e._e(),e._v(" "),0===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode"}},[i("el-select",{attrs:{clearable:""},on:{change:function(){e.form.DefaultValue=null}},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.DictionaryCode?e.$d[e.form.DictionaryCode]:[],(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),0===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.TypeValue?e.form.TypeValue.split("|"):[],(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValue"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"是否裁判问题"}},[i("el-radio-group",{on:{change:function(t){e.isJudgeQuestionChange(t,e.form)}},model:{value:e.form.IsJudgeQuestion,callback:function(t){e.$set(e.form,"IsJudgeQuestion",t)},expression:"form.IsJudgeQuestion"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValue"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.RelevanceValue,callback:function(t){e.$set(e.form,"RelevanceValue",t)},expression:"form.RelevanceValue"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题分组"}},[i("el-select",{attrs:{clearable:"",disabled:e.isParentExistGroup},model:{value:e.form.GroupId,callback:function(t){e.$set(e.form,"GroupId",t)},expression:"form.GroupId"}},e._l(e.groupOptions,(function(e){return i("el-option",{key:e,attrs:{label:e.GroupName,value:e.GroupId}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"全局阅片是否显示"}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"问题标识",prop:"QuestionType"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.QuestionType,callback:function(t){e.$set(e.form,"QuestionType",t)},expression:"form.QuestionType"}},e._l(e.CriterionDictionaryList.QuestionType,(function(e){return i("el-option",{key:e.Id,attrs:{value:parseInt(e.Code),label:e.ValueCN}})})),1)],1),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:"最大上传个数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),"group"!==e.form.Type&&"summary"!==e.form.Type?i("el-form-item",{attrs:{label:"注释"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"自增序号前缀"}},[i("el-input",{model:{value:e.form.OrderMark,callback:function(t){e.$set(e.form,"OrderMark",t)},expression:"form.OrderMark"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"最大行数"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.MaxQuestionCount,callback:function(t){e.$set(e.form,"MaxQuestionCount",t)},expression:"form.MaxQuestionCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否在阅片页面显示"}},[i("el-radio-group",{model:{value:e.form.IsShowInDicom,callback:function(t){e.$set(e.form,"IsShowInDicom",t)},expression:"form.IsShowInDicom"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:Remark"),prop:"Remark"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("e56e")),s=i("3e42"),l={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}},type:{type:String,default:function(){return""}}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{validateTypeVal:t,form:{Id:"",ReadingQuestionCriterionSystemId:"",QuestionName:"",QuestionEnName:"",Type:"input",ValueType:"",Unit:"",QuestionGenre:"",TypeValue:"",DictionaryCode:"",ParentId:"",ParentTriggerValue:"",ShowOrder:0,ShowQuestion:0,IsRequired:2,IsJudgeQuestion:!1,GroupName:"",GroupEnName:"",Remark:"",ImageCount:1,RelevanceId:"",RelevanceValue:"",LesionType:"",QuestionType:null,IsShowInDicom:!1,OrderMark:"",MaxQuestionCount:0,GlobalReadingShowType:3,DefaultValue:null,LimitEdit:0,GroupId:null},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],LesionType:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],QuestionGenre:[{required:!0,message:"请选择",trigger:"blur"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:500,message:"最大长度为 500"}],DictionaryCode:[{required:!0,message:"请选择",trigger:"blur"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValue:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValue:[{required:!0,message:"请选择",trigger:"blur"}],GroupName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}]},loading:!1,btnLoading:!1,parentOptions:[],parentTriggerValOptions:[],groupOptions:[],isParentExistGroup:!1,lesionTypes:[],dicList:[],CriterionDictionaryList:[]}},mounted:function(){this.initForm()},methods:{getCriterionDictionary:function(){var e=this;Object(o["bb"])({ReadingCriterionId:this.data.ReadingQuestionCriterionSystemId,DictionaryCode:"QuestionType"}).then((function(t){e.CriterionDictionaryList=t.Result}))},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getGroupOptions();case 2:return e.next=4,this.getParentQuestions();case 4:return e.next=6,this.getLesionType();case 6:return e.next=8,this.getBasicConfigSelect();case 8:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0),this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(r=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){r.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=r)))}this.getCriterionDictionary();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,"upload"!==e.form.Type&&(e.form.ImageCount=0),Object(o["q"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},getBasicConfigSelect:function(){var e=this;Object(o["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionSystemId};Object(o["Db"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionCriterionSystemId:e.data.ReadingQuestionCriterionSystemId,id:e.data.Id};Object(o["Ab"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},questionGenreChange:function(e,t){t.DictionaryCode="",t.TypeValue=""},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.IsJudgeQuestion=!1),"table"===e?t.IsRequired=2:t.LesionType=null,t.DictionaryCode="",t.TypeValue="",t.ValueType="",t.Unit=""},isShowQuestionChange:function(e,t){console.log(e),2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValue=""):(t.ParentId="",t.ParentTriggerValue="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValue="")},parentQuestionChange:function(e,t){if(this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i){if(3===this.parentOptions[i].QuestionGenre)this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n}this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName)}}else t.GroupName="",t.GroupEnName="";t.ParentTriggerValue=""},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=n}}t.RelevanceValue=""},isJudgeQuestionChange:function(e,t){e&&(t.IsRequired=0)},getLesionType:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionSystemId};Object(s["Vb"])(n).then((function(i){e.lesionTypes=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"104a81c2",null);t["default"]=d.exports},"923d":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("ee1a"),o=r.isDimensionStacked,s=n.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function c(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function u(e,t,i,n,r,s){var l=[],c=o(t,n),u=c?t.getCalculationInfo("stackResultDimension"):n,d=b(t,u,e),f=t.indicesOfNearest(u,d)[0];l[r]=t.get(i,f),l[s]=t.get(u,f);var h=t.get(n,f),p=a.getPrecision(t.get(n,f));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,h]}var d=n.curry,f={min:d(u,"min"),max:d(u,"max"),average:d(u,"average")};function h(e,t){var i=e.getData(),a=e.coordinateSystem;if(t&&!c(t)&&!n.isArray(t.coord)&&a){var r=a.dimensions,o=p(t,i,a,e);if(t=n.clone(t),t.type&&f[t.type]&&o.baseAxis&&o.valueAxis){var l=s(r,o.baseAxis.dim),u=s(r,o.valueAxis.dim),d=f[t.type](i,o.baseDataDim,o.valueDataDim,l,u);t.coord=d[0],t.value=d[1]}else{for(var h=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)f[h[m]]&&(h[m]=b(i,i.mapDimension(r[m]),h[m]));t.coord=h}}return t}function p(e,t,i,n){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=i.getAxis(m(n,a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function m(e,t){var i=e.getData(),n=i.dimensions;t=i.getDimension(t);for(var a=0;a'});o.a.add(s);t["default"]=s},9390:function(e,t,i){i("d090"),i("83ba"),i("ee66")},"93d0":function(e,t){var i="original",n="arrayRows",a="objectRows",r="keyedColumns",o="unknown",s="typedArray",l="column",c="row";t.SOURCE_FORMAT_ORIGINAL=i,t.SOURCE_FORMAT_ARRAY_ROWS=n,t.SOURCE_FORMAT_OBJECT_ROWS=a,t.SOURCE_FORMAT_KEYED_COLUMNS=r,t.SOURCE_FORMAT_UNKNOWN=o,t.SOURCE_FORMAT_TYPED_ARRAY=s,t.SERIES_LAYOUT_BY_COLUMN=l,t.SERIES_LAYOUT_BY_ROW=c},"93ec":function(e,t,i){"use strict";i("7e5c")},9406:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dashboard"},[i("div",{staticClass:"dashboard-header"},[i("h1",[e._v("Extimaging Real-Time IRC Information")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.currentTime))])])]),e._v(" "),i("div",{staticClass:"dashboard-main"},[i("div",{staticClass:"left fl"},[i("div",{staticClass:"item box"},[i("workload-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("workload-of-months",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("workload-of-reviewers",{attrs:{area:e.area}})],1)]),e._v(" "),i("div",{ref:"mapContent",staticClass:"center fl"},[i("div",{ref:"map",staticClass:"top box"},[e.mapWidth?i("distribution-map",{attrs:{area:e.area,height:e.mapHeight,width:e.mapWidth}}):e._e()],1),e._v(" "),i("div",{ref:"workloadList",staticClass:"bottom box",staticStyle:{background:"rgba(0, 35, 120, 0.36)"}},[e.bottomHeight?i("latest-reads",{attrs:{height:e.bottomHeight}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"right fl"},[i("div",{staticClass:"item box"},[i("reviewers-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("enrollments-per-quarter",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("enrollments-of-reviewers",{attrs:{area:e.area}})],1)])])])},a=[],r=i("d42f"),o=i("f2f9"),s=i("6283"),l=i("5db3"),c=i("abf4"),u=i("31d6"),d=i("a5a9"),f=i("f9b9"),h=i("c1df"),p=i.n(h),m={name:"Dashboard",components:{WorkloadStats:r["default"],WorkloadOfMonths:o["default"],WorkloadOfReviewers:s["default"],DistributionMap:l["default"],LatestReads:c["default"],ReviewersStats:u["default"],EnrollmentsPerQuarter:d["default"],EnrollmentsOfReviewers:f["default"]},data:function(){return{area:"",currentTime:"",timer:"",bottomHeight:"",mapHeight:"",mapWidth:""}},mounted:function(){this.setHeight(),this.timer=setInterval(this.getCurrentTime,1e3);var e=this;window.onresize=function(){e.mapWidth="",e.bottomHeight="",e.setHeight()}},destroyed:function(){window.onresize=null,clearInterval(this.timer)},methods:{setHeight:function(){this.mapHeight=this.$refs["map"].clientHeight+"px",this.mapWidth=this.$refs["map"].clientWidth+"px",this.area=this.$refs["mapContent"].clientHeight*this.$refs["mapContent"].clientWidth+"px",this.bottomHeight=this.$refs["workloadList"].clientHeight+"px"},getCurrentTime:function(){this.currentTime=p()().format("YYYY-MM-DD HH:mm:ss")}}},g=m,v=(i("2de6"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"5153edd4",null);t["default"]=b.exports},9423:function(e,t,i){const{defaultArgs:n,baseOptions:a}=i("c4b1"),{setLogging:r,setCustomLogger:o,log:s}=i("908e"),l=i("f1c3"),c=i("1bd14"),{defaultOptions:u,getCreateFFmpegCore:d}=i("b8df"),{version:f}=i("67c5"),h=Error("ffmpeg.wasm is not ready, make sure you have completed load().");e.exports=(e={})=>{const{log:t,logger:i,progress:p,...m}={...a,...u,...e};let g=null,v=null,b=null,y=!1,w=p;const _=e=>{"FFMPEG_END"===e&&null!==b&&(b(),b=null,y=!1)},I=({type:e,message:t})=>{s(e,t),l(t,w),_(t)},x=async()=>{if(s("info","load ffmpeg-core"),null!==g)throw Error("ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.");{s("info","loading ffmpeg-core");const{createFFmpegCore:e,corePath:t,workerPath:i,wasmPath:n}=await d(m);g=await e({mainScriptUrlOrBlob:t,printErr:e=>I({type:"fferr",message:e}),print:e=>I({type:"ffout",message:e}),locateFile:(e,t)=>{if("undefined"!==typeof window){if("undefined"!==typeof n&&e.endsWith("ffmpeg-core.wasm"))return n;if("undefined"!==typeof i&&e.endsWith("ffmpeg-core.worker.js"))return i}return t+e}}),v=g.cwrap("proxy_main","number",["number","number"]),s("info","ffmpeg-core loaded")}},S=()=>null!==g,T=(...e)=>{if(s("info","run ffmpeg command: "+e.join(" ")),null===g)throw h;if(y)throw Error("ffmpeg.wasm can only run one command at a time");return y=!0,new Promise(t=>{const i=[...n,...e].filter(e=>0!==e.length);b=t,v(...c(g,i))})},C=(e,...t)=>{if(s("info",`run FS.${e} ${t.map(e=>"string"===typeof e?e:`<${e.length} bytes binary file>`).join(" ")}`),null===g)throw h;{let n=null;try{n=g.FS[e](...t)}catch(i){throw"readdir"===e?Error(`ffmpeg.FS('readdir', '${t[0]}') error. Check if the path exists, ex: ffmpeg.FS('readdir', '/')`):"readFile"===e?Error(`ffmpeg.FS('readFile', '${t[0]}') error. Check if the path exists`):Error("Oops, something went wrong in FS operation.")}return n}},k=()=>{if(null===g)throw h;y=!1,g.exit(1),g=null,v=null,b=null},R=e=>{w=e},D=e=>{o(e)};return r(t),o(i),s("info","use ffmpeg.wasm v"+f),{setProgress:R,setLogger:D,setLogging:r,load:x,isLoaded:S,run:T,exit:k,FS:C}}},9442:function(e,t,i){var n=i("6d8b");function a(e){var t=[];n.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,n.defaults(e,e.mapLocation))}))}e.exports=a},"944e":function(e,t,i){var n=i("3842"),a=n.round;function r(e,t,i,r){var s={},c=e[1]-e[0],u=s.interval=n.nice(c/t,!0);null!=i&&ur&&(u=s.interval=r);var d=s.intervalPrecision=o(u),f=s.niceTickExtent=[a(Math.ceil(e[0]/u)*u,d),a(Math.floor(e[1]/u)*u,d)];return l(f,e),s}function o(e){return n.getPrecisionSafe(e)+2}function s(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=r,t.getIntervalPrecision=o,t.fixExtent=l},9474:function(e,t,i){"use strict";i("f4001")},"94b1":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("9d57"),o=r.layout,s=r.largeLayout;i("5aa9"),i("17b8"),i("67cc"),i("01ed"),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,a.curry(o,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),n.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},"94b3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.participate_form,"search-handle":e.participate_handle},on:{search:e.handleSearch,reset:e.handleReset}})],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"workloadStats",attrs:{stripe:"",height:"100",data:e.list},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",sortable:"custom",label:"Organization","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",sortable:"custom",label:"Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",sortable:"custom",label:"User Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Phone","show-overflow-tooltip":"","min-width":"100",prop:"Phone",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",sortable:"custom",label:"Email","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCount",label:"Trial Count","min-width":"150",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{trigger:"click",placement:"bottom-start"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.trialListLoading,expression:"trialListLoading"}],staticClass:"trial-list",attrs:{data:e.trialList,height:"300",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Trial ID","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited",label:"Expedited","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.Expedited?"No":1===t.row.Expedited?"24H":"48H")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CROName",label:"CRO","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:"Role","min-width":"90","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("span",{staticStyle:{color:"#00d1b2",cursor:"pointer"},on:{click:function(i){return e.handleGetTrialList(t.row.UserId)}}},[e._v("\n "+e._s(t.row.TrialCount)+"\n ")])])],1)]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=i("48fb"),o=i("fe09"),s=i("333d"),l=i("f36a"),c=i("d13d"),u=function(){return{PageSize:20,PageIndex:1,Asc:!0,SortField:"",UserInfo:"",OrganizationName:""}},d={name:"WorkloadStats",components:{Pagination:s["default"],BoxContent:l["default"],SearchForm:c["default"]},data:function(){return{participate_form:o["c"],participate_handle:o["d"],searchData:u(),list:[],trialList:[],listLoading:!1,trialListLoading:!1,total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["d"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleGetTrialList:function(e){var t=this;this.trialList=[],this.trialListLoading=!0,Object(r["c"])(e).then((function(e){t.trialListLoading=!1,t.trialList=e.Result})).catch((function(){t.trialListLoading=!1}))},handleReset:function(){this.searchData=u(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"94e4":function(e,t,i){var n=i("401b"),a=i("53f3"),r=a.getSymbolSize,o=a.getNodeGlobalScale,s=i("6d8b"),l=i("0c37"),c=l.getCurvenessForEdge,u=Math.PI,d=[];function f(e,t){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),r=e.getData(),o=r.graph,l=a.width/2+a.x,u=a.height/2+a.y,d=Math.min(a.width,a.height)/2,f=r.count();r.setLayout({cx:l,cy:u}),f&&(h[t](e,i,o,r,d,l,u,f),o.eachEdge((function(t,i){var a,r=s.retrieve3(t.getModel().get("lineStyle.curveness"),c(t,e,i),0),o=n.clone(t.node1.getLayout()),d=n.clone(t.node2.getLayout()),f=(o[0]+d[0])/2,h=(o[1]+d[1])/2;+r&&(r*=3,a=[l*r+f*(1-r),u*r+h*(1-r)]),t.setLayout([o,d,a])})))}}var h={value:function(e,t,i,n,a,r,o,s){var l=0,c=n.getSum("value"),u=2*Math.PI/(c||s);i.eachNode((function(e){var t=e.getValue("value"),i=u*(c?t:1)/2;l+=i,e.setLayout([a*Math.cos(l)+r,a*Math.sin(l)+o]),l+=i}))},symbolSize:function(e,t,i,n,a,s,l,c){var f=0;d.length=c;var h=o(e);i.eachNode((function(e){var t=r(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=h;var i=Math.asin(t/2/a);isNaN(i)&&(i=u/2),d[e.dataIndex]=i,f+=2*i}));var p=(2*u-f)/c/2,m=0;i.eachNode((function(e){var t=p+d[e.dataIndex];m+=t,e.setLayout([a*Math.cos(m)+s,a*Math.sin(m)+l]),m+=t}))}};t.circularLayout=f},9523:function(e,t){function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},9538:function(e,t,i){"use strict";i("1b38")},"953c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"signTempForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.signTempForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"955d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"institution-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Sites",name:"Sites"}},["Sites"===e.activeTab?i("Sites"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"CROs",name:"CROs"}},["CROs"===e.activeTab?i("CROs"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sponsors",name:"Sponsors"}},["Sponsors"===e.activeTab?i("Sponsors"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("c22c")),o=i("293b"),s=i("a5fc"),l=i("723e"),c={name:"Financials",components:{Hospitals:r["default"],Sites:o["default"],CROs:s["default"],Sponsors:l["default"]},data:function(){return{activeTab:"Sites"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="Sites"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/r_institutions?tabActive=".concat(e.name)})}}},u=c,d=(i("0641"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"958c":function(e,t,i){"use strict";i.d(t,"R",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"r",(function(){return o})),i.d(t,"A",(function(){return s})),i.d(t,"n",(function(){return l})),i.d(t,"O",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"k",(function(){return d})),i.d(t,"W",(function(){return f})),i.d(t,"i",(function(){return h})),i.d(t,"h",(function(){return p})),i.d(t,"J",(function(){return m})),i.d(t,"I",(function(){return g})),i.d(t,"M",(function(){return v})),i.d(t,"m",(function(){return b})),i.d(t,"S",(function(){return y})),i.d(t,"T",(function(){return w})),i.d(t,"ab",(function(){return _})),i.d(t,"E",(function(){return I})),i.d(t,"e",(function(){return x})),i.d(t,"G",(function(){return S})),i.d(t,"F",(function(){return T})),i.d(t,"d",(function(){return C})),i.d(t,"s",(function(){return k})),i.d(t,"t",(function(){return R})),i.d(t,"f",(function(){return D})),i.d(t,"u",(function(){return L})),i.d(t,"c",(function(){return O})),i.d(t,"K",(function(){return $})),i.d(t,"B",(function(){return N})),i.d(t,"X",(function(){return A})),i.d(t,"y",(function(){return P})),i.d(t,"p",(function(){return E})),i.d(t,"L",(function(){return M})),i.d(t,"C",(function(){return F})),i.d(t,"v",(function(){return j})),i.d(t,"o",(function(){return V})),i.d(t,"H",(function(){return q})),i.d(t,"a",(function(){return z})),i.d(t,"q",(function(){return B})),i.d(t,"D",(function(){return U})),i.d(t,"w",(function(){return Q})),i.d(t,"N",(function(){return H})),i.d(t,"j",(function(){return G})),i.d(t,"z",(function(){return W})),i.d(t,"x",(function(){return Y})),i.d(t,"V",(function(){return K})),i.d(t,"P",(function(){return Z})),i.d(t,"l",(function(){return X})),i.d(t,"Q",(function(){return J})),i.d(t,"Y",(function(){return ee})),i.d(t,"Z",(function(){return te})),i.d(t,"U",(function(){return ie})),i.d(t,"bb",(function(){return ne}));var n=i("b775");function a(e){return Object(n["a"])({url:"/TaskAllocationRule/getTaskAllocationRuleList",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/TaskAllocationRule/addOrUpdateTaskAllocationRule",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/TaskAllocationRule/deleteTaskAllocationRule/".concat(e),method:"delete"})}function s(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorUserSelectList/".concat(e),method:"get"})}function l(e){return Object(n["a"])({url:"/TrialConfig/configTrialTaskInfo",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/VisitTask/getSubjectAssignList",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/VisitTask/assignSubjectDoctor",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/VisitTask/cancelSubjectAssignDoctor",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/VisitTask/manualAssignDoctorApplyTask",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/VisitTask/autoSubjectAssignDoctor",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/VisitTask/assignSubjectTaskToDoctor",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/VisitTask/getReadingTaskList",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/VisitTask/getReReadingTaskList",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/TaskAllocationRule/getSubjectApplyDoctorTaskStatList",method:"post",data:e})}function b(e){return Object(n["a"])({url:"/TrialConfig/configTrialReadingTaskViewRule",method:"put",data:e})}function y(e){return Object(n["a"])({url:"/ReadingImageTask/getTrialConfirmCriterionList",method:"post",data:e})}function w(e){return Object(n["a"])({url:"/ReadingImageTask/getTrialCriterionJudgeQuestionList",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/ReadingImageTask/setTrialCriterionJudgeQuestionAnswerGroup",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/VisitTask/getJudgeVisitTaskList",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/VisitTask/applyReReading",method:"post",data:e})}function S(e){return Object(n["a"])({url:"/TaskMedicalReview/getMedicalReviewTaskList",method:"post",data:e})}function T(e){return Object(n["a"])({url:"/TaskMedicalReview/getMIMUserList/".concat(e),method:"get"})}function C(e){return Object(n["a"])({url:"/TaskMedicalReviewRule/addOrUpdateTaskMedicalReviewRule",method:"post",data:e})}function k(e){return Object(n["a"])({url:"/TaskMedicalReviewRule/deleteTaskMedicalReviewRule/".concat(e),method:"delete"})}function R(e){return Object(n["a"])({url:"/TaskMedicalReview/generateMedicalReviewTask",method:"post",data:e})}function D(e){return Object(n["a"])({url:"/TaskMedicalReview/assignMedicalReviewTask",method:"post",data:e})}function L(e){return Object(n["a"])({url:"/TaskConsistentRule/getAnalysisTaskList",method:"post",data:e})}function O(e){return Object(n["a"])({url:"/TaskConsistentRule/addOrUpdateTaskConsistentRule",method:"post",data:e})}function $(e){return Object(n["a"])({url:"/VisitTask/getSPMReReadingTaskList",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/TaskMedicalReview/getGenerateMedicalReviewTaskList",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/TaskMedicalReview/manuallyGeneratedAndAssignedMedicalReview",method:"post",data:e})}function P(e){return Object(n["a"])({url:"/TaskConsistentRule/getDoctorSelfConsistentRuleSubjectList",method:"post",data:e})}function E(e){return Object(n["a"])({url:"/TaskConsistentRule/confirmGenerateSelfConsistentTask",method:"post",data:e})}function M(e){return Object(n["a"])({url:"/TaskConsistentRule/getSelfConsistentDoctorStatList",method:"post",data:e})}function F(e){return Object(n["a"])({url:"/TaskConsistentRule/getGroupConsistentRuleSubjectList",method:"post",data:e})}function j(e){return Object(n["a"])({url:"/TaskConsistentRule/getConsistentRule",method:"post",data:e})}function V(e){return Object(n["a"])({url:"/TaskConsistentRule/confirmGenerateGroupConsistentTask",method:"post",data:e})}function q(e,t,i){return Object(n["a"])({url:i?"/VisitTask/getReReadingOrBackInfluenceTaskList/".concat(e,"/").concat(t,"?applyId=").concat(i):"/VisitTask/getReReadingOrBackInfluenceTaskList/".concat(e,"/").concat(t),method:"get"})}function z(e,t){return Object(n["a"])({url:"/VisitTask/PMSetTaskBack/".concat(e,"/").concat(t),method:"put"})}function B(e){return Object(n["a"])({url:"/Inspection/VisitTask/ConfirmReReading",method:"post",data:e})}function U(e){return Object(n["a"])({url:"/VisitTask/getInfluencedTaskList?taskId=".concat(e),method:"get"})}function Q(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorPlanAllocationRuleList?TrialId=".concat(e.TrialId),method:"get"})}function H(e){return Object(n["a"])({url:"/VisitTask/getSubjectAssignAndTaskStatList",method:"post",data:e})}function G(e){return Object(n["a"])({url:"/VisitTask/batchAssignDoctorToSubject",method:"post",data:e})}function W(e,t){return Object(n["a"])({url:"/VisitTask/getDoctorSubjectStat?TrialId=".concat(e,"&TrialReadingCriterionId=").concat(t),method:"get"})}function Y(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorSelectList",method:"post",data:e})}function K(e){return Object(n["a"])({url:"/TrialMaintenance/getTrialSiteCodeSelect?TrialId=".concat(e),method:"get"})}function Z(e,t){return Object(n["a"])({url:"/VisitTask/getSubjectAssignedDoctorList?SubjectId=".concat(e,"&TrialReadingCriterionId=").concat(t),method:"get"})}function X(e){return Object(n["a"])({url:"/VisitTask/cancelSubjectAssignedDoctor",method:"post",data:e})}function J(e){return Object(n["a"])({url:"/TaskAllocationRule/getSubjectCancelDoctorHistoryList?SubjectId=".concat(e),method:"get"})}function ee(e){return Object(n["a"])({url:"/TaskConsistentRule/setAnalysisTaskInvalid",method:"post",data:e})}function te(e){return Object(n["a"])({url:"/TaskMedicalReview/setMedicalReviewInvalid",method:"post",data:e})}function ie(e){return Object(n["a"])({url:"/VisitTask/getTrialCriterionList?TrialId=".concat(e),method:"get"})}function ne(e){return Object(n["a"])({url:"/DoctorWorkload/updateTrialReviewerState",method:"put",data:e})}},9595:function(e,t,i){},"95a8":function(e,t,i){var n=i("3eba");i("1953"),i("307d"),n.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},"965a":function(e,t,i){},9680:function(e,t){function i(e,t,i,n,a,r,o){if(0===a)return!1;var s=a,l=0,c=e;if(o>t+s&&o>n+s||oe+s&&r>i+s||r0?(a=[],n.map((function(e){a.push(e.lessionName)})),t=this.$t("trials:reading:warnning:msg200"),t=t.replace("xxx",a.join("en"===this.language?", ":"、")),this.$confirm(t,{type:"warning",showCancelButton:!1}).then((function(){})).catch((function(){}))):this.handleConfirm();case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getAnswerInfo:function(e,t,i){var n=e.findIndex((function(e){return e.VisitTaskId===t}));if(-1===n)return"";var a=e[n][i];return isNaN(parseInt(a))?a:parseInt(a)},getTableHeight:function(){this.height=window.innerHeight-170},getReportInfo:function(e){var t=this;this.loading=!0;var i={visitTaskId:this.visitTaskId,trialId:this.$router.currentRoute.query.trialId,IsCalculate:!1!==e};Object(s["Yc"])(i).then((function(e){t.readingTaskState=e.Result.ReadingTaskState,t.tumorEvaluate=e.Result.CalculateResult.TumorEvaluate?parseInt(e.Result.CalculateResult.TumorEvaluate):null,t.isExistDisease=e.Result.CalculateResult.IsExistDisease?parseInt(e.Result.CalculateResult.IsExistDisease):null,t.answerArr=[],t.questions=e.Result.TaskQuestions.concat(),t.visitTaskList=e.Result.VisitTaskList;var i=t.getQuestions(e.Result.TaskQuestions,!t.isShowDetail,null,null);t.taskQuestions=[],i.forEach((function(e){t.$set(t.taskQuestions,t.taskQuestions.length,e)})),console.log(i),t.setScrollTop(),t.loading=!1})).catch((function(){t.loading=!1}))},setScrollTop:function(e){var t=this;setTimeout((function(){t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight,t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight,t.getTableHeight()}),50)},getQuestions:function(e,t,i,n){var a=this,r=[];return 0!==e.length&&e.forEach((function(e){i=e.LesionType;var o=[7];if(o=1!==e.LesionType&&2!==e.LesionType||!t?[3,4,5,6,2,8,10,7]:[0,1,3,4,5,6,2,8,10,7],0!==i||0!==n||a.isShowDetail||1!==a.CriterionType||o.push(1),0===n&&o.push(1),!o.includes(e.QuestionMark)){var s=e;if(s.Answers={},e.RowIndex>0)try{var l=e.Childrens.findIndex((function(e){return 8===e.QuestionMark})),c=e.Childrens.findIndex((function(e){return 10===e.QuestionMark})),u=e.Childrens.findIndex((function(e){return 7===e.QuestionMark}));if(l>-1&&e.Childrens[l].Answer.length>0){var d=e.Childrens[l].Answer.findIndex((function(e){return""!==e.Answer})),f="";if(f=s.IsCanEditPosition?"".concat(e.Childrens[l].Answer[d].Answer,"--").concat(e.Childrens[c].Answer[d].Answer):"".concat(e.Childrens[l].Answer[d].Answer),e.SplitOrMergeLesionName&&d>-1){s.QuestionName="".concat(s.QuestionName," --").concat(f);var h={};console.log(u),u>=0&&a.visitTaskList.forEach((function(t){var i=e.Childrens[u].Answer.find((function(e){return e.VisitTaskId===t.VisitTaskId}));i&&(h[i.VisitTaskId]=a.$fd(e.Childrens[u].DictionaryCode,parseInt(i.Answer)))})),console.log(h),a.$set(s,"Answers",h)}else if(!e.SplitOrMergeLesionName&&d>-1){s.QuestionName="".concat(s.QuestionName,"--").concat(f);h={};console.log(u),u>=0&&a.visitTaskList.forEach((function(t){var i=e.Childrens[u].Answer.find((function(e){return e.VisitTaskId===t.VisitTaskId}));i&&(h[i.VisitTaskId]=a.$fd(e.Childrens[u].DictionaryCode,parseInt(i.Answer)))})),console.log(h),a.$set(s,"Answers",h)}else s.QuestionName="".concat(s.QuestionName," ");if(1===a.CriterionType){var p=e.Childrens.findIndex((function(e){return 2===e.QuestionMark}));p>-1&&(n=e.Childrens[p].Answer[d].Answer?parseInt(e.Childrens[p].Answer[d].Answer):null,console.log("isLymphNodes",e.Childrens),e.Childrens.forEach((function(e){a.$set(e,"isLymphNodes",n)})))}}}catch(m){console.log(m)}e.Answer.forEach((function(t){e.DictionaryCode?s.Answers[t.VisitTaskId]=t.Answer?parseInt(t.Answer):null:s.Answers[t.VisitTaskId]=t.Answer})),10===e.QuestionType&&(a.QuestionTypeList[10]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:10})),11===e.QuestionType&&(a.QuestionTypeList[11]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:11})),12===e.QuestionType&&(a.QuestionTypeList[12]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:12})),15===e.QuestionType&&(a.QuestionTypeList[15]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:15})),13===e.QuestionType&&(a.QuestionTypeList[13]=s.Answers[a.visitTaskId],console.log(a.currentEvaluateResult),a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:13})),14===e.QuestionType&&(a.QuestionTypeList[14]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:14})),e.Childrens.length>=1&&(s.Childrens=a.getQuestions(e.Childrens,t,i,n)),r.push(s)}})),r},handleShowDetail:function(e){this.getReportInfo()},handleExistDiseaseChange:function(e){e===this.isExistDisease&&this.tumorEvaluate===this.currentEvaluateResult&&(this.currentTaskReason="",this.evaluateReasonChange("")),this.currentTaskReason="",this.evaluateReasonChange("");var t=this.answerArr.findIndex((function(e){return 15===e.questionType}));console.log(this.answerArr,t,e),t>-1&&(this.answerArr[t].answer=e)},handleChange:function(e,t){var i=this.answerArr.findIndex((function(e){return e.questionType===t}));i>-1&&(this.answerArr[i].answer=e)},handleEvaluateResultChange:function(e){e===this.tumorEvaluate&&this.isExistDisease===this.currentExistDisease&&(this.currentTaskReason="",this.evaluateReasonChange("")),this.currentTaskReason="",this.evaluateReasonChange("");var t=this.answerArr.findIndex((function(e){return 13===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},evaluateReasonChange:function(e){var t=this.answerArr.findIndex((function(e){return 14===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleConfirm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.handleSave(!1);case 2:return e.next=4,this.verifyVisitTaskQuestions();case 4:t=c["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=t,this.signVisible=!0;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(s["Of"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},handleResize:function(){var e=this;this.$nextTick((function(){e.$refs.reportList&&e.$refs.reportList.doLayout()}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};Object(s["Ze"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,f["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm(t.$t("trials:readingReport:message:msg4"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){Object(p["a"])("visitTaskId",t.visitTaskId)}))),t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},previewDicoms:function(e){var t=Object(d["a"])(),i=this.$router.currentRoute.query.subjectCode,n=this.$router.currentRoute.query.subjectId,a=this.$router.currentRoute.query.trialId,r=this.$router.currentRoute.query.isReadingTaskViewInOrder,o=this.$router.currentRoute.query.criterionType,s=this.$router.currentRoute.query.readingTool,l="/readingDicoms?trialId=".concat(a,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(e.VisitTaskId,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(t),c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleSave:function(e){var t=this;return new Promise((function(i,n){var a="";console.log(t.answerArr),t.answers=[];t.answerArr.map((function(e){13===e.questionType&&(e.answer,!0),14===e.questionType&&(a=e.answer),15===e.questionType&&e.answer,t.answers.push({id:e.id,answer:e.answer})})),console.log(t.currentExistDisease,t.isExistDisease,a),t.loading=!0;var r={visitTaskId:t.visitTaskId,answers:t.answers};Object(s["V"])(r).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))}}},g=m,v=(i("7069"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"704963d3",null);t["default"]=b.exports},"96e7":function(e,t,i){"use strict";i("e4c2")},9704:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("f706"),o=i("73ca"),s=i("4a01"),l=i("01ef"),c=i("c526"),u=c.onIrrelevantElement,d=i("2306"),f=i("480f"),h=i("53f3"),p=h.getNodeGlobalScale,m="__focusNodeAdjacency",g="__unfocusNodeAdjacency",v=["itemStyle","opacity"],b=["lineStyle","opacity"];function y(e,t){var i=e.getVisual("opacity");return null!=i?i:e.getModel().get(t)}function w(e,t,i){var n=e.getGraphicEl(),a=y(e,t);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==i||(t=a),e.setStyle("opacity",t)}}))}function _(e,t){var i=y(e,t),n=e.getGraphicEl();n.traverse((function(e){!e.isGroup&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var I=n.extendChartView({type:"graph",init:function(e,t){var i=new r,n=new o,a=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(e,t,i){var n=this,a=e.coordinateSystem;this._model=e;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===a.type){var l={position:a.position,scale:a.scale};this._firstRender?s.attr(l):d.updateProps(s,l,e)}f(e.getGraph(),p(e));var c=e.getData();r.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,i),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,v),c.eachItemGraphicEl((function(t,a){var r=c.getItemModel(a);t.off("drag").off("dragend");var o=r.get("draggable");o&&t.on("drag",(function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,v),h.setFixed(a),c.setItemLayout(a,t.position))}),this).on("dragend",(function(){h&&h.setUnfixed(a)}),this),t.setDraggable(o&&h),t[m]&&t.off("mouseover",t[m]),t[g]&&t.off("mouseout",t[g]),r.get("focusNodeAdjacency")&&(t.on("mouseover",t[m]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[g]=function(){n._dispatchUnfocus(i)}))}),this),c.graph.eachEdge((function(t){var a=t.getGraphicEl();a[m]&&a.off("mouseover",a[m]),a[g]&&a.off("mouseout",a[g]),t.getModel().get("focusNodeAdjacency")&&(a.on("mouseover",a[m]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),a.on("mouseout",a[g]=function(){n._dispatchUnfocus(i)}))}));var b="circular"===e.get("layout")&&e.get("circular.rotateLabel"),y=c.getLayout("cx"),w=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var i=c.getItemModel(t),n=i.get("label.rotate")||0,a=e.getSymbolPath();if(b){var r=c.getItemLayout(t),o=Math.atan2(r[1]-w,r[0]-y);o<0&&(o=2*Math.PI+o);var s=r[0]0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return i}},9746:function(e,t,i){"use strict";i("a183")},9755:function(e,t,i){"use strict";i("2f6a")},9762:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskBlindName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskBlindName,callback:function(t){e.$set(e.searchData,"TaskBlindName",t)},expression:"searchData.TaskBlindName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:readingCategory")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditState,callback:function(t){e.$set(e.searchData,"AuditState",t)},expression:"searchData.AuditState"}},e._l(e.$d.MedicalReviewAuditState,(function(e){return i("el-option",{key:"AuditState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditAdvice")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditAdviceEnum,callback:function(t){e.$set(e.searchData,"AuditAdviceEnum",t)},expression:"searchData.AuditAdviceEnum"}},e._l(e.$d.AuditAdvice,(function(e){return i("el-option",{key:"AuditAdvice"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:doctorUserIdea")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserIdeaEnum,callback:function(t){e.$set(e.searchData,"DoctorUserIdeaEnum",t)},expression:"searchData.DoctorUserIdeaEnum"}},e._l(e.$d.MedicalReviewDoctorUserIdea,(function(e){return i("el-option",{key:"MedicalReviewDoctorUserIdea"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent","min-width":"100",label:e.$t("trials:medicalFeedback:table:isUrgent"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:medicalFeedback:table:subjectCode"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName","min-width":"100",label:e.$t("trials:medicalFeedback:table:taskBlindName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:medicalFeedback:table:criterionName"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedback:table:readingCategory"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:medicalFeedback:table:taskState"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:medicalFeedback:table:auditState"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.AuditState?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),1===t.row.AuditState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),2===t.row.AuditState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"FirstReplyTime","min-width":"100",label:e.$t("trials:medicalFeedback:table:firstReplyTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastReplyTime","min-width":"100",label:e.$t("trials:medicalFeedback:table:lastReplyTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditAdviceEnum",label:e.$t("trials:medicalFeedback:table:auditAdvice"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("AuditAdvice",t.row.AuditAdviceEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUserIdeaEnum","min-width":"120",label:e.$t("trials:medicalFeedback:table:doctorUserIdea"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:!t.row.IsHaveQuestion||t.row.IsInvalid,circle:"",title:e.$t("trials:medicalFeedback:table:view"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleReadMecialAudit(t.row)}}}),e._v(" "),i("el-button",{attrs:{disabled:!t.row.IsHaveQuestion||t.row.IsInvalid,circle:"",title:e.$t("trials:medicalFeedback:table:reply"),icon:"el-icon-chat-dot-round"},on:{click:function(i){return e.handleReply(t.row)}}})]}}],null,!0)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):e._e()])})),1),e._v(" "),e.chatForm.visible?i("el-dialog",{attrs:{visible:e.chatForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.chatForm.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.chatForm,"visible",t)}}},[i("ChatForm",{attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId},on:{getList:e.getList,close:function(t){e.chatForm.visible=!1}}})],1):e._e(),e._v(" "),e.auditVisible?i("el-dialog",{attrs:{visible:e.auditVisible,"close-on-click-modal":!1,fullscreen:!0,title:e.$t("trials:medicalFeedback:title:mfDetail")},on:{"update:visible":function(t){e.auditVisible=t}}},[i("MedicalAudit",{attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId,"row-data":e.currentRow},on:{getList:e.getList,close:function(t){e.auditVisible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("ea33"),d=i("a93a"),f=function(){return{IsUrgent:null,SubjectCode:"",TaskBlindName:"",ReadingCategory:null,AuditState:null,AuditAdviceEnum:null,DoctorUserIdeaEnum:null,PageIndex:1,PageSize:20}},h={name:"ReadTask",components:{BaseContainer:l["default"],Pagination:c["default"],ChatForm:u["default"],MedicalAudit:d["default"]},data:function(){return{searchData:f(),list:[],total:0,loading:!1,trialId:"",currentRow:{},chatForm:{visible:!1,title:""},auditVisible:!1,trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["ic"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReadMecialAudit:function(e){this.currentRow=Object(r["a"])({},e),this.auditVisible=!0},handleReply:function(e){this.currentRow=Object(r["a"])({},e),this.chatForm.title="".concat(this.$t("trials:medicalFeedback:title:qaRecord")," (").concat(e.SubjectCode," ").concat(e.TaskBlindName,")"),this.chatForm.visible=!0},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},9775:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dashboard"},[i("div",{staticClass:"dashboard-header"},[i("h1",[i("a",{attrs:{href:"#"},on:{click:e.handleTitleClick}},[e._v("GRR Real-Time IRC Information")])]),e._v(" "),i("div",[i("span",[e._v(e._s(e.currentTime))]),e._v(" "),e.isFullscreen?e._e():i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text",size:"small"},on:{click:e.loginOut}},[e._v("Sign Out")])],1)]),e._v(" "),i("div",{staticClass:"dashboard-main"},[i("div",{staticClass:"left fl"},[i("div",{staticClass:"item box"},[i("workload-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("workload-of-months",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("workload-of-reviewers",{attrs:{area:e.area}})],1)]),e._v(" "),i("div",{ref:"mapContent",staticClass:"center fl"},[i("div",{ref:"map",staticClass:"top box"},[e.mapWidth?i("distribution-map",{attrs:{area:e.area,height:e.mapHeight,width:e.mapWidth}}):e._e()],1),e._v(" "),i("div",{ref:"workloadList",staticClass:"bottom box",staticStyle:{background:"rgba(0, 35, 120, 0.36)"}},[e.bottomHeight?i("latest-reads",{attrs:{height:e.bottomHeight}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"right fl"},[i("div",{staticClass:"item box"},[i("reviewers-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("enrollments-per-quarter",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("enrollments-of-reviewers",{attrs:{area:e.area}})],1)])])])},a=[],r=i("93bf"),o=i.n(r),s=i("d42f"),l=i("f2f9"),c=i("6283"),u=i("5db3"),d=i("abf4"),f=i("31d6"),h=i("a5a9"),p=i("f9b9"),m=i("c1df"),g=i.n(m),v={name:"BigData",components:{WorkloadStats:s["default"],WorkloadOfMonths:l["default"],WorkloadOfReviewers:c["default"],DistributionMap:u["default"],LatestReads:d["default"],ReviewersStats:f["default"],EnrollmentsPerQuarter:h["default"],EnrollmentsOfReviewers:p["default"]},data:function(){return{area:"",currentTime:"",timer:"",bottomHeight:"",mapHeight:"",mapWidth:"",isFullscreen:!1}},mounted:function(){this.setHeight(),this.timer=setInterval(this.getCurrentTime,1e3);var e=this;window.onresize=function(){e.mapWidth="",e.bottomHeight="",e.setHeight()}},destroyed:function(){window.onresize=null,clearInterval(this.timer)},methods:{setHeight:function(){this.mapHeight=this.$refs["map"].clientHeight+"px",this.mapWidth=this.$refs["map"].clientWidth+"px",this.area=this.$refs["mapContent"].clientHeight*this.$refs["mapContent"].clientWidth+"px",this.bottomHeight=this.$refs["workloadList"].clientHeight+"px"},getCurrentTime:function(){this.currentTime=g()().format("YYYY-MM-DD HH:mm:ss")},handleTitleClick:function(){if(!o.a.enabled)return this.$message({message:"Your browser can not work",type:"warning"}),!1;o.a.toggle(),this.isFullscreen=!o.a.isFullscreen},loginOut:function(){var e=this;this.$confirm("Sure to sign out",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){e.$store.dispatch("user/logout").then((function(t){e.$router.push("/login")}))}))}}},b=v,y=(i("7951"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,null,null);t["default"]=w.exports},"97a1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container menu"},[i("el-tree",{staticStyle:{width:"80%"},attrs:{props:e.defaultProps,data:e.treeData,"node-key":"Id","default-expand-all":!0,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return i("span",{staticClass:"custom-tree-node"},[a.FunctionName?i("span",[e._v(e._s(n.label)+" --------------------(Function)")]):i("span",[e._v(e._s(n.label))]),e._v(" "),i("span",[i("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"small"},on:{click:function(){return e.append(a)}}},[e._v("Append")]),e._v(" "),i("el-button",{attrs:{type:"text",icon:"el-icon-edit",size:"small"},on:{click:function(){return e.edit(a)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",icon:"el-icon-delete",size:"small"},on:{click:function(){return e.remove(a)}}},[e._v("Delete")])],1)])}}])}),e._v(" "),e.model_cfg.visible?i("menu-form",{attrs:{form:e.currenNode,width:"500px"},on:{close:e.closeModel}}):e._e()],1)},a=[],r=i("a8db"),o=i("50fc"),s=i("bdb0"),l=i("9b6c"),c=["Children","CreateTime","CreateUserId","UpdateTime","UpdateUserId"],u={name:"Menu",components:{MenuForm:s["default"]},data:function(){return{model_cfg:l["a"],treeData:[],defaultProps:{label:"MenuName",children:"Children"},dialogVisible:!1,title:"",currenNode:{},nodeId:"",parentId:""}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this,t=this.$loading({target:document.querySelector(".menu"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"});Object(o["i"])().then((function(i){t.close(),e.treeData=i.Result})).catch((function(){t.close()}))},append:function(e){this.currenNode={},this.currenNode.ParentId=e.Id,this.currenNode.Status=1,this.nodeId=e.Id,this.model_cfg.title="Append",this.model_cfg.visible=!0},edit:function(e){var t=JSON.parse(JSON.stringify(e)),i=(t.Children,t.CreateTime,t.CreateUserId,t.UpdateTime,t.UpdateUserId,Object(r["a"])(t,c));i.MetaBreadcrumb=i.MetaBreadcrumb?1:0,i.Hidden=i.Hidden?1:0,this.currenNode=i,this.nodeId=e.Id,this.model_cfg.title="Edit",this.model_cfg.visible=!0},remove:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["d"])(e.Id).then((function(e){e.IsSuccess&&(t.getlist(),t.$message.success("Deleted successfully!"))}))}))},closeModel:function(){this.model_cfg.visible=!1,this.getlist()}}},d=u,f=(i("8502"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"97bd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"qa-wrapper"},[i("div",{staticClass:"qa-content"},[i("el-card",{staticStyle:{"min-height":"600px"},attrs:{shadow:"hover"}},[i("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.data.DicomStudyCount>0?i("el-tab-pane",{attrs:{label:e.$t("trials:audit:tab:dicoms"),name:"dicom"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:dicoms")))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isHaveFirstGiveMedicineDate,expression:"isHaveFirstGiveMedicineDate"}],staticStyle:{"text-align":"right"}},[i("h4",[e._v("\n "+e._s(e.$t("trials:audit:tip:visitWindow"))+":\n "),e.baseDate?i("span",{staticStyle:{"font-weight":"normal"}},[e._v("\n "+e._s(e.upperLimit+"~"+e.lowerLimit)+"\n ")]):i("span",[e._v(e._s(e.$t("trials:audit:tip:visitWindowNotSet")))])])])])],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary"},on:{click:e.handleViewImages}},[e._v("\n "+e._s(e.$t("trials:audit:button:previewAllDiocms"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary"},on:{click:e.handleViewReadingImages}},[e._v("\n "+e._s(e.$t("trials:audit:button:previewReadingDiocms"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.studyList,"row-class-name":e.tableRowClassName}},[i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:audit:table:studyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityForEdit",label:e.$t("trials:audit:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"检查设备"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartForEdit",label:e.$t("trials:audit:table:bodyPart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:audit:table:seriesCount")}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:audit:table:instanceCount")}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:audit:table:studyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:audit:message:qsOverWindow"),placement:"bottom"}},[e.isHaveFirstGiveMedicineDate&&e.baseDate&&t.row.StudyTime&&(e.moment(t.row.StudyTime).format("YYYY-MM-DD")>e.lowerLimit||e.moment(t.row.StudyTime).format("YYYY-MM-DD")0?i("el-tab-pane",{attrs:{label:e.$t("trials:audit:tab:nonDicoms"),name:"none-dicom"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:nonDicomsTitle")))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isHaveFirstGiveMedicineDate,expression:"isHaveFirstGiveMedicineDate"}],staticStyle:{"text-align":"right"}},[i("h4",[e._v(e._s(e.$t("trials:audit:tip:nonDicomsVisitWindow"))+":\n "),e.baseDate?i("span",{staticStyle:{"font-weight":"normal"}},[e._v("\n "+e._s(e.upperLimit+"~"+e.lowerLimit)+"\n ")]):i("span",[e._v(e._s(e.$t("trials:audit:tip:visitWindowNotSet")))])])])])],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",disabled:0===e.noneDicomStudyList.length,type:"primary"},on:{click:e.handleViewAllNoneDicoms}},[e._v("\n "+e._s(e.$t("trials:audit:tip:nonDicomsPreviewAll"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.noneDicomStudyList}},[i("el-table-column",{attrs:{prop:"CodeView",label:e.$t("trials:audit:table:nonDicomsStudyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modality",label:e.$t("trials:audit:table:nonDicomsModality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPart",label:e.$t("trials:audit:table:nonDicomsBodypart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:audit:table:nonDicomsFileCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FileCount?i("el-popover",{attrs:{trigger:"click",placement:"bottom"}},[i("el-table",{attrs:{data:t.row.NoneDicomStudyFileList,height:"300",size:"small"}},[i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:audit:table:nonDicomsFileName"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){return i.preventDefault(),e.previewFile(t.row)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:nonDicomsPreview"))+"\n ")])]}}],null,!0)})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("el-button",{attrs:{type:"text"}},[e._v("\n "+e._s(t.row.FileCount)+"\n ")])],1)],1):i("span",[e._v(e._s(t.row.FileCount))])]}}],null,!1,2114129080)}),e._v(" "),i("el-table-column",{attrs:{prop:"ImageDate",label:e.$t("trials:audit:table:nonDicomsStudyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isHaveFirstGiveMedicineDate&&e.baseDate&&t.row.ImageDate&&(e.moment(t.row.ImageDate).format("YYYY-MM-DD")>e.lowerLimit||e.moment(t.row.ImageDate).format("YYYY-MM-DD")0?i("ClinicalData",{staticStyle:{"margin-top":"5px"},attrs:{data:e.data,"subject-clinical-data":e.subjectClinicalData,"enum-type":1*e.relationInfo.TrialClinicalInformationTransmissionEnum,"subject-visit-id":e.data.Id,"is-audit":e.isAudit,"subject-id":e.data.SubjectId}}):e._e()],1):e._e()],1)],1),e._v(" "),i("el-card",{staticStyle:{"margin-top":"10px"},attrs:{shadow:"hover"}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:questions")))]),e._v(" "),e.qCQuestionAnswerList.length>0?i("div",{staticStyle:{"overflow-y":"auto"}},[i("QuestionForm",{ref:"questions",attrs:{"trial-id":e.trialId,"subject-visit-id":e.data.Id,"qc-process-enum":e.data.QCProcessEnum,"current-q-c-enum":e.currentQCType,answers:e.qCQuestionAnswerList,"is-audit":e.isAudit}})],1):i("h3",[e._v(e._s(e.$t("trials:audit:message:noData")))])]),e._v(" "),e.qcVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:dialogTitle:question"),visible:e.qcVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"1000px"},on:{"update:visible":function(t){e.qcVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[e.qcVisible?i("el-form",{ref:"qcForm",attrs:{model:e.qcForm,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:form:questionContent")}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.qcForm.qcContent}},[i("el-table-column",{attrs:{prop:"isSelect",label:"",width:"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row.isSelect,callback:function(i){e.$set(t.row,"isSelect",i)},expression:"scope.row.isSelect"}})]}}],null,!1,4270841726)}),e._v(" "),i("el-table-column",{attrs:{prop:"keyName",label:"",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"keyValue",label:e.$t("trials:audit:form:questionSummary")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.keyValue||t.row.isSelect,expression:"scope.row.keyValue || scope.row.isSelect"}],attrs:{type:"textarea",rows:4,size:"mini"},model:{value:t.row.keyValue,callback:function(i){e.$set(t.row,"keyValue",i)},expression:"scope.row.keyValue"}})]}}],null,!1,931411807)}),e._v(" "),i("el-table-column",{attrs:{prop:"ActionContent",label:e.$t("trials:audit:form:actionMatters")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.actionContent||t.row.isSelect,expression:"scope.row.actionContent || scope.row.isSelect"}],attrs:{type:"textarea",rows:4,size:"mini"},model:{value:t.row.actionContent,callback:function(i){e.$set(t.row,"actionContent",i)},expression:"scope.row.actionContent"}})]}}],null,!1,2624243220)})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:form:questionDeadline")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",size:"small",clearable:"","default-time":"23:59:59"},model:{value:e.qcForm.deadlineTime,callback:function(t){e.$set(e.qcForm,"deadlineTime",t)},expression:"qcForm.deadlineTime"}})],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.qcVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveQC}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.historyVisible?i("el-dialog",{attrs:{visible:e.historyVisible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":"",width:"80%",title:e.$t("trials:audit:dialogTitle:historicalQuestions")},on:{"update:visible":function(t){e.historyVisible=t}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{icon:"el-icon-refresh-left",circle:"",title:e.$t("trials:audit:button:refreshHistoryQs")},on:{click:e.getHistoryInfo}})],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.historyLoading,expression:"historyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.historyList,height:"500"}},[i("el-table-column",{attrs:{prop:"ChallengeCode",label:e.$t("trials:qcQuality:table:challengeCode"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:{color:t.row.IsClosed?"":"red"},attrs:{type:"text"},on:{click:function(i){return e.handleReply(t.row)}}},[e._v(e._s(t.row.ChallengeCode))])]}}],null,!1,2368458037)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsClosed",label:e.$t("trials:qcQuality:table:isClosed"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsClosed?e.$t("trials:qcQuality:title:closed"):e.$t("trials:qcQuality:title:unClose"))+"\n ")]}}],null,!1,1303919631)}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:qcQuality:table:createTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName",label:e.$t("trials:qcQuality:table:organizer"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CurrentActionUserName",label:e.$t("trials:qcCheck:table:crrentUser"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestMsgTime",label:e.$t("trials:qcQuality:table:latestMsgTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReuploadEnum",label:e.$t("trials:qcQuality:table:reUploadStatus"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReuploadEnum?i("span",[e._v("--")]):1===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):2===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):3===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):e._e()]}}],null,!1,176439862)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReUploadedTime",label:e.$t("trials:qcQuality:table:reUploadTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeadlineTime",label:e.$t("trials:qcQuality:table:deadline"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOverTime",label:e.$t("trials:qcQuality:table:isOverTime"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsOverTime))+"\n ")]}}],null,!1,1306561668)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClosedTime",label:e.$t("trials:qcQuality:table:closingTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",disabled:t.row.IsClosed||e.isAudit},on:{click:function(i){return e.handleReply(t.row)}}},[e._v("\n "+e._s(e.$t("trials:qcQuality:action:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",disabled:t.row.IsClosed||e.isAudit},on:{click:function(i){return e.handleCloseQC(t.row)}}},[e._v("\n "+e._s(e.$t("trials:qcQuality:action:close"))+"\n ")])]}}],null,!1,2559836546)})],1)],1):e._e(),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":"",width:"800px",title:e.$t("trials:qcQuality:dialogTitle:reply")+"("+e.currentQCRow.SubjectCode+" "+e.currentQCRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("chat-form",{attrs:{data:e.currentQCRow,"sign-text":e.relationInfo.TrialImageQCSignText,"clinical-enum":e.relationInfo.ClinicalInformationTransmissionEnum},on:{close:function(t){e.chatVisible=!1},getDialogList:e.getDialogList}})],1):e._e(),e._v(" "),e.editStudyInfoVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:action:edit"),visible:e.editStudyInfoVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editStudyInfoVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"studyForm",attrs:{model:e.studyForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.StudyCode,callback:function(t){e.$set(e.studyForm,"StudyCode",t)},expression:"studyForm.StudyCode"}})],1),e._v(" "),e.studyForm.IsDicomData?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality"),prop:"Modalities",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.studyForm.Modality,callback:function(t){e.$set(e.studyForm,"Modality",t)},expression:"studyForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:bodyPart"),prop:"BodyPartForEdit",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.studyForm.BodyPartForEdit,callback:function(t){e.$set(e.studyForm,"BodyPartForEdit",t)},expression:"studyForm.BodyPartForEdit"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:seriesCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.SeriesCount,callback:function(t){e.$set(e.studyForm,"SeriesCount",t)},expression:"studyForm.SeriesCount"}})],1),e._v(" "),e.studyForm.InstanceCount?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:instanceCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.InstanceCount,callback:function(t){e.$set(e.studyForm,"InstanceCount",t)},expression:"studyForm.InstanceCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.studyForm.StudyTime,callback:function(t){e.$set(e.studyForm,"StudyTime",t)},expression:"studyForm.StudyTime"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editStudyInfoVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateStudyInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.editNoneDicomVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:button:nonDicomsEdit"),visible:e.editNoneDicomVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editNoneDicomVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"noneDicomForm",attrs:{model:e.noneDicomForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsStudyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.noneDicomForm.CodeView,callback:function(t){e.$set(e.noneDicomForm,"CodeView",t)},expression:"noneDicomForm.CodeView"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsModality"),prop:"Modality",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.noneDicomForm.Modality,callback:function(t){e.$set(e.noneDicomForm,"Modality",t)},expression:"noneDicomForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsBodypart"),prop:"BodyParts",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.noneDicomForm.BodyParts,callback:function(t){e.$set(e.noneDicomForm,"BodyParts",t)},expression:"noneDicomForm.BodyParts"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsStudyDate"),prop:"ImageDate"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.noneDicomForm.ImageDate,callback:function(t){e.$set(e.noneDicomForm,"ImageDate",t)},expression:"noneDicomForm.ImageDate"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editNoneDicomVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateNoneDicomInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:qcQuality:dialogTitle:closeQuestion")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"closeQuestionForm",attrs:{model:e.closeQuestionForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:label:closeReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.closeQuestionForm.Type,callback:function(t){e.$set(e.closeQuestionForm,"Type",t)},expression:"closeQuestionForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason1")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason2")))])],1)],1),e._v(" "),2===e.closeQuestionForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:closereason"),prop:"Remake",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.closeQuestionForm.Remake,callback:function(t){e.$set(e.closeQuestionForm,"Remake",t)},expression:"closeQuestionForm.Remake"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.closeBtnLoading,size:"small",type:"primary"},on:{click:function(t){e.closeQuestionVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.closeBtnLoading,size:"small",type:"primary"},on:{click:e.handleCloseQuestion}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.imgObj.visible?i("el-dialog",{attrs:{visible:e.imgObj.visible,title:e.$t("trials:uploadNonDicoms:dialogTitle:preview"),"append-to-body":"",width:"565px"},on:{"update:visible":function(t){return e.$set(e.imgObj,"visible",t)}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.imgObj.loading,expression:"imgObj.loading"}],staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[i("el-image",{staticStyle:{height:"500px",width:"500px"},attrs:{src:"/api"+e.imgObj.url,fit:"fit"},on:{error:function(t){e.imgObj.loading=!1},load:function(t){e.imgObj.loading=!1}}})],1)]):e._e()],1),e._v(" "),i("div",{staticClass:"function-wrapper"},[i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:audit:button:save"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:e.handleQC}},[e._v("\n "+e._s(e.$t("trials:audit:button:question"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:e.handleHistoryQC}},[e._v("\n "+e._s(e.$t("trials:audit:button:historicalQuestions")+"("+(void 0!==e.relationInfo.TotalChallengeCount?e.relationInfo.TotalChallengeCount:0)+", "+(void 0!==e.relationInfo.NotClosedChallengeCount?e.relationInfo.NotClosedChallengeCount:0)+")")+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:function(t){return e.handleQCState(8)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:auditPassed"))+"\n ")])],1)])},a=[],r=(i("6b54"),i("96cf"),i("3b8d")),o=(i("a481"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("9a3b"),c=i("86a6"),u=i("901f"),d=i("6d22"),f=i("c1df"),h=i.n(f),p=i("2fd0"),m=i("179b"),g=i("5f87"),v=i("7a9e"),b={name:"QualityAssurance",components:{ChatForm:u["default"],ClinicalData:p["default"],QuestionForm:d["default"],SignForm:m["default"]},props:{data:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},qType:{type:Number,default:1}},data:function(){return{activeName:this.data.DicomStudyCount>0?"dicom":"none-dicom",questionForm:{},qCQuestionAnswerList:[],studyList:[],seriesList:[],relationInfo:{},noneDicomStudyList:[],qcForm:{subjectVisitId:"",challengeType:"",content:"",actionContent:"",deadlineTime:"",qcContent:""},qcVisible:!1,chatVisible:!1,loading:!1,btnLoading:!1,historyVisible:!1,historyList:[],historyLoading:!1,editStudyInfoVisible:!1,studyForm:{StudyCode:"",IsDicomData:!0,Modalities:"",BodyPartForEdit:[],SeriesCount:null,StudyTime:""},currentQCRow:{},isAudit:!1,qcType:"",trialBodyPartTypes:[],trialModalitys:[],signVisible:!1,signCode:"",auditState:null,currentNoneDicomId:"",editNoneDicomVisible:!1,noneDicomForm:{Id:"",CodeView:"",BodyParts:[],Modality:"",ImageDate:""},subjectClinicalData:{},moment:h.a,currentQCType:null,currentUser:zzSessionStorage.getItem("userName"),pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},isHaveFirstGiveMedicineDate:!1,baseDate:"",upperLimit:"",lowerLimit:"",closeQuestionForm:{Id:"",SubjectVisitId:"",Type:null,Reason:"",Remake:""},closeBtnLoading:!1,closeQuestionVisible:!1,trialId:"",dictionaryList:{},currentSeriesIsReading:!1,currentSeriesIsDeleted:!1,imgObj:{url:"",visible:!1,loading:!1},open:null}},mounted:function(){this.disabled?(this.isAudit=!0,this.currentQCType=this.qType):this.currentQCType=this.data.AuditState<6?1:2,window.addEventListener("message",this.receiveMsg),this.trialId=this.$route.query.trialId,this.getQCInfo(),this.getDicData()},methods:{getQCInfo:function(){var e=this;this.loading=!0,Object(s["he"])(this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){if(e.qCQuestionAnswerList=t.Result.QCQuestionAnswerList,e.studyList=t.Result.StudyList,e.seriesList=t.Result.SeriesList,e.noneDicomStudyList=t.Result.NoneDicomStudyList,e.relationInfo=t.Result.RelationInfo,e.trialBodyPartTypes=e.relationInfo.TrialBodyPartTypes?e.relationInfo.TrialBodyPartTypes.trim().split("|"):[],e.trialModalitys=e.relationInfo.TrialModalitys?e.relationInfo.TrialModalitys.trim().split("|"):[],e.subjectClinicalData=t.Result.SubjectClinicalData,e.baseDate=t.Result.RelationInfo.SubjectFirstGiveMedicineTime,e.baseDate){var i=1*t.Result.RelationInfo.VisitDay+1*t.Result.RelationInfo.VisitWindowLeft;e.upperLimit=h()(e.baseDate,"YYYY-MM-DD").add(i,"days").format("YYYY-MM-DD");var n=1*t.Result.RelationInfo.VisitDay+1*t.Result.RelationInfo.VisitWindowRight;e.lowerLimit=h()(e.baseDate,"YYYY-MM-DD").add(n,"days").format("YYYY-MM-DD")}e.isHaveFirstGiveMedicineDate=t.Result.RelationInfo.IsHaveFirstGiveMedicineDate,e.loading=!1})).catch((function(){e.loading=!1}))},getCheckList:function(){var e=this;this.loading=!0,Object(s["Hc"])(this.trialId,this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){e.loading=!1,t.Result.forEach((function(t,i){e.$set(e.qCQuestionAnswerList[i],"Id",t.Id)}))})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i){t.$refs["questions"].submit().then((function(n){var a=[];n.forEach((function(e){var i=t.qCQuestionAnswerList.findIndex((function(t){return t.TrialQCQuestionConfigureId===e.Id}));i>-1&&a.push({id:t.qCQuestionAnswerList[i].Id,answer:e.answer,trialQCQuestionConfigureId:e.Id})})),t.loading=!0,Object(s["p"])(t.trialId,t.data.Id,t.data.QCProcessEnum,t.currentQCType,a).then((function(n){t.loading=!1,n.IsSuccess&&(!0!==e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.getCheckList(),i(!0))})).catch((function(){t.loading=!1,i(!1)}))})).catch((function(){t.loading=!1,i(!1)}))}))},handleSaveQC:function(){var e=this;this.$refs["qcForm"].validate((function(t){if(t){e.btnLoading=!0,e.qcForm.subjectVisitId=e.data.Id;var i=[],n=[],a=[];if(e.qcForm.qcContent.forEach((function(t){if(t.isSelect){n.push("".concat(t.keyName));var r="".concat(t.keyName,"
    ");t.keyValue&&(r="".concat(r).concat(e.$t("trials:audit:form:questionSummary"),":").concat(t.keyValue,"
    ")),t.actionContent&&(a.push("".concat(t.actionContent)),r="".concat(r).concat(e.$t("trials:audit:form:actionMatters"),":").concat(t.actionContent,"
    ")),i.push(r)}})),0===i.length)return e.$message.error(e.$t("trials:audit:message:qsContentIsNull")),void(e.btnLoading=!1);e.qcForm.content=i.join("|"),e.qcForm.challengeType=n.join("|"),e.qcForm.actionContent=a.join("|");var r={challengeType:e.qcForm.challengeType,subjectVisitId:e.qcForm.subjectVisitId,content:e.qcForm.content,actionContent:e.qcForm.actionContent,reuploadEnum:0,deadlineTime:e.qcForm.deadlineTime};Object(s["o"])(e.trialId,e.data.QCProcessEnum,e.currentQCType,r).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.qcVisible=!1,e.relationInfo.TotalChallengeCount++,e.relationInfo.NotClosedChallengeCount++)})).catch((function(){e.btnLoading=!1}))}}))},handleQC:function(){var e=this;this.loading=!0,Object(s["If"])(this.trialId,this.data.Id,this.currentQCType).then((function(t){e.loading=!1,t.IsSuccess&&e.renderQCForm()})).catch((function(){e.loading=!1}))},handleQCVerify:function(){var e=this;return this.loading=!0,new Promise((function(t){Object(s["If"])(e.trialId,e.data.Id,e.currentQCType).then((function(i){e.loading=!1,i.IsSuccess?t(!0):t(!1)})).catch((function(){e.loading=!1,t(!1)}))}))},renderQCForm:function(){var e=[],t=this.dictionaryList["ChallengeType"];t.forEach((function(t){e.push({keyName:t.Value,keyValue:"",isSelect:!1})}));var i=!1;this.isHaveFirstGiveMedicineDate&&this.baseDate&&(i=this.isHyperwindow()),i&&e.push({keyName:this.$t("trials:audit:message:qsOverWindow"),keyValue:"".concat(this.$t("trials:audit:message:qsOverWindow1"),":").concat(this.upperLimit,"~").concat(this.lowerLimit,",").concat(this.$t("trials:audit:message:qsOverWindow2"),":").concat(h()(this.relationInfo.EarliestScanDate).format("YYYY-MM-DD"),"~").concat(h()(this.relationInfo.LatestScanDate).format("YYYY-MM-DD"),",").concat(this.$t("trials:audit:message:qsOverWindow3")),isSelect:!1,actionContent:this.$t("trials:audit:message:qsOverWindow4")}),this.qcForm.qcContent=e;var n=this.relationInfo.TrialChangeDefalutDays;this.qcForm.deadlineTime=h()().add(1*n,"days").format("YYYY-MM-DD HH:mm:ss"),this.qcVisible=!0},isHyperwindow:function(){var e=!1;return(this.relationInfo.EarliestScanDatethis.lowerLimit)&&(e=!0),e},getDicData:function(){var e=this;Object(c["c"])(["ChallengeType"]).then((function(t){e.dictionaryList=Object(o["a"])({},t.Result)}))},handleHistoryQC:function(){this.historyVisible=!0,this.getHistoryInfo()},getHistoryInfo:function(){var e=this;this.historyLoading=!0,Object(s["gc"])(this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){e.historyList=t.Result,e.historyLoading=!1})).catch((function(){e.historyLoading=!1}))},handleReply:function(e){var t=this;this.historyLoading=!0,Object(s["Dc"])(e.Id).then((function(i){t.historyLoading=!1,i.IsSuccess&&(i.Result.length>0&&Object.assign(e,i.Result[0]),t.currentQCRow=Object(o["a"])({},e),t.chatVisible=!0)})).catch((function(){t.historyLoading=!1}))},getDialogList:function(){var e=this;this.historyLoading=!0,Object(s["Dc"])(this.currentQCRow.Id).then((function(t){if(e.historyLoading=!1,t.IsSuccess&&t.Result.length>0){var i=e.historyList.findIndex((function(t){return t.Id===e.currentQCRow.Id}));i>-1&&(e.currentQCRow=Object.assign(e.historyList[i],t.Result[0]))}})).catch((function(){e.historyLoading=!1}))},handleCloseQuestion:function(){var e=this;this.$refs["closeQuestionForm"].validate((function(t){if(t){e.closeBtnLoading=!0,1===e.closeQuestionForm.Type?e.closeQuestionForm.Reason=e.$t("trials:qcQuality:message:problemSolved"):2===e.closeQuestionForm.Type&&(e.closeQuestionForm.Reason="".concat(e.$t("trials:qcQuality:message:problemNotSolved"),"

    ").concat(e.$t("trials:consistencyCheck:label:closereason"),":").concat(e.closeQuestionForm.Remake));var i={TrialId:e.data.TrialId,QcChallengeId:e.closeQuestionForm.Id,SubjectVisitId:e.data.Id,CloseEnum:e.closeQuestionForm.Type,CloseReason:e.closeQuestionForm.Reason};Object(s["X"])(i).then((function(t){e.closeBtnLoading=!1,t.IsSuccess&&(e.getHistoryInfo(),e.$message.success(e.$t("trials:qcQuality:message:closedSuccessfully")),e.closeQuestionVisible=!1,e.relationInfo.NotClosedChallengeCount--)})).catch((function(){e.closeBtnLoading=!1}))}}))},handleCloseQC:function(e){this.closeQuestionForm=Object.assign(this.closeQuestionForm,e),this.closeQuestionForm.CurrentQCType=this.currentQCType,this.closeQuestionForm.AuditState=this.data.AuditState,this.closeQuestionForm.TrialQCProcess=this.data.QCProcessEnum,this.closeQuestionForm.Type=null,this.closeQuestionForm.Reason="",this.closeQuestionForm.Remake="",this.closeQuestionVisible=!0},handleQCInfo:function(e){this.currentQCRow=Object(o["a"])({},e),this.chatVisible=!0},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.IsReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.IsReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.IsReading?1:2;i.loading=!0,Object(s["Re"])(i.trialId,i.data.Id,t.StudyId,t.Id,e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getStudyInfo())})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.IsDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.IsDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.IsDeleted?5:4;i.loading=!0,Object(s["Re"])(i.trialId,i.data.Id,t.StudyId,t.Id,e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getStudyInfo())})).catch((function(){i.loading=!1}))})).catch((function(){}))},receiveMsg:function(e){"refreshSeriesList"===e.data.type&&this.getStudyInfo()},getStudyInfo:function(){var e=this;this.loading=!0,Object(s["ie"])(this.data.Id).then((function(t){e.loading=!1,e.studyList=t.Result.StudyList,e.seriesList=t.Result.SeriesList})).catch((function(){e.loading=!1}))},handleQCState:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(7!==t){e.next=5;break}return this.signCode=this.getSignCode(t),this.signVisible=!0,this.auditState=t,e.abrupt("return");case 5:if(8!==t){e.next=12;break}if(i=!0,n=[],this.studyList.forEach((function(e){e.BodyPartForEdit||(i=!1,n.push(e.StudyCode))})),i){e.next=12;break}return this.$message.error(this.$t("trials:qcQuality:title:title1").replace("xxx",n.toString())),e.abrupt("return");case 12:return this.loading=!0,e.next=15,this.handleSave(!0);case 15:if(a=e.sent,a){e.next=18;break}return e.abrupt("return");case 18:Object(s["Gf"])(this.trialId,this.data.Id).then((function(e){r.loading=!1,e.IsSuccess&&(r.signCode=r.getSignCode(t),r.signVisible=!0,r.auditState=t)})).catch((function(){r.loading=!1}));case 19:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getSignCode:function(e){if(1===this.relationInfo.TrialQCProcessEnum&&8===e){var t=v["default"].processSignature.QCSingleReviewPassed;return t}if(1===this.relationInfo.TrialQCProcessEnum&&7===e){var i=v["default"].processSignature.QCSingleReviewFailed;return i}if(2===this.relationInfo.TrialQCProcessEnum&&8===e&&1===this.currentQCType){var n=v["default"].processSignature.PreliminaryReviewOfQCPassed;return n}if(2===this.relationInfo.TrialQCProcessEnum&&7===e&&1===this.currentQCType){var a=v["default"].processSignature.PreliminaryReviewOfQCFailed;return a}if(2===this.relationInfo.TrialQCProcessEnum&&8===e&&2===this.currentQCType){var r=v["default"].processSignature.SecondaryReviewOfQCPassed;return r}if(2===this.relationInfo.TrialQCProcessEnum&&7===e&&2===this.currentQCType){var o=v["default"].processSignature.SecondaryReviewOfQCFailed;return o}},closeSignDialog:function(e,t){e?this.setQCStatus(t):this.signVisible=!1},setQCStatus:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.loading=!0,i={data:{TrialId:this.trialId,SubjectVisitId:this.data.Id,AuditState:this.auditState},signInfo:t},Object(l["c"])(i).then((function(e){n.loading=!1,e.IsSuccess&&(n.$refs["signForm"].btnLoading=!1,n.signVisible=!1,n.$message.success(n.$t("common:message:savedSuccessfully")),n.isAudit=!0,n.$forceUpdate(),n.$emit("getList"),n.getNextQCInfo())})).catch((function(){n.loading=!1,n.$refs["signForm"].btnLoading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getNextQCInfo:function(){var e=this,t=this.$t("trials:qcQuality:title:title2");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,e.$emit("nextTask")})).catch((function(t){e.loading=!1}))},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""},handleEditStudy:function(e){this.editStudyInfoVisible=!0,this.studyForm=Object(o["a"])({},e);var t=[];-1!==this.studyForm.BodyPartForEdit.indexOf("|")?t=this.studyForm.BodyPartForEdit.split("|"):""!==this.studyForm.BodyPartForEdit&&t.push(this.studyForm.BodyPartForEdit),this.$set(this.studyForm,"Modality",e.ModalityForEdit),this.studyForm.BodyPartForEdit=t},handleUpdateStudyInfo:function(){var e=this;this.$refs["studyForm"].validate((function(t){if(t){e.btnLoading=!0,e.studyForm.BodyPart=e.studyForm.BodyPartForEdit.join("|");var i={id:e.studyForm.StudyId,subjectVisitId:e.data.Id,type:1,modality:e.studyForm.Modality,bodyPart:e.studyForm.BodyPart};Object(s["qf"])(e.data.TrialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getStudyInfo(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editStudyInfoVisible=!1)})).catch((function(){e.btnLoading=!1}))}}))},refreshList:function(){2===this.currentQCType?(this.currentQCType=1,this.getHistoryInfo()):this.getHistoryInfo(),this.$emit("getList")},handleEditNoneDicomInfo:function(e){var t=Object(o["a"])({},e),i=t.CodeView,n=t.Id,a=t.BodyPart,r=t.Modality,s=t.ImageDate;this.noneDicomForm.CodeView=i,this.noneDicomForm.Id=n,this.noneDicomForm.BodyPart=a,this.noneDicomForm.Modality=r,this.noneDicomForm.ImageDate=s,this.noneDicomForm.BodyParts=a.split(", "),this.editNoneDicomVisible=!0},handleUpdateNoneDicomInfo:function(){var e=this;this.$refs.noneDicomForm.validate((function(t){t&&(e.btnLoading=!0,e.noneDicomForm.BodyPart=e.noneDicomForm.BodyParts.join(", "),e.noneDicomForm.TrialId=e.trialId,e.noneDicomForm.SiteId=e.data.SiteId,e.noneDicomForm.SubjectId=e.data.SubjectId,e.noneDicomForm.SubjectVisitId=e.data.Id,Object(s["k"])(e.noneDicomForm).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getNoneDicomList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editNoneDicomVisible=!1)})).catch((function(){e.btnLoading=!1})))}))},getNoneDicomList:function(){var e=this;this.loading=!0,Object(s["xc"])(this.data.Id).then((function(t){e.noneDicomStudyList=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},previewFile:function(e){this.imgObj.url=e.FullFilePath,this.imgObj.loading=!0,this.imgObj.visible=!0},handleViewImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&showDelete=").concat(this.isAudit?0:1,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewReadingImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&isReading=1&TokenKey=").concat(e)});window.open(t.href,"_blank")},handlePreviewStudy:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showdicom?trialId=".concat(this.trialId,"&subjectVisitId=").concat(this.data.Id,"&studyId=").concat(e.StudyId,"&showDelete=").concat(this.isAudit?0:1,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handlePreviewInstance:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showdicom?trialId=".concat(this.trialId,"&studyId=").concat(e.StudyId,"&studyCode=").concat(e.StudyCode,"&modality=").concat(e.Modality,"&description=").concat(e.Description,"&seriesId=").concat(e.Id,"&seriesNumber=").concat(e.SeriesNumber,"&showDelete=").concat(this.isAudit?0:1,"&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(t,"&type=Series")});this.open=window.open(i.href,"_blank")},handleViewAllNoneDicoms:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handlePreviewNoneDicomFiles:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.data.Id,"&studyId=").concat(e.Id,"&TokenKey=").concat(t)});window.open(i.href,"_blank")}}},y=b,w=(i("0d82"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"005ce119",null);t["default"]=_.exports},9843:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"100%"}},[i("transition",{attrs:{name:"viewer-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.urlList.length>0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}}),e._v(" "),e.readingTaskState<2?i("i",{staticClass:"el-icon-bottom-right",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},on:{click:e.handleDrawArrow}}):e._e(),e._v(" "),e.readingTaskState<2?i("svg-icon",{staticClass:"svg-icon",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},attrs:{"icon-class":"rectangle"},on:{click:e.handleDrawRectangle}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},[e.canvasSize.width&&e.canvasPosition.y?i("canvas",{style:e.imgStyle,attrs:{id:"canvas",height:e.canvasSize.height,width:e.canvasSize.width},on:{mousedown:e.handleMouseDown,mousemove:e.handleMouseMove,mouseup:e.handleMouseUp,contextmenu:e.handleContextmenu}}):e._e()])],2)])],1)},a=[],r=i("db72"),o=(i("20d6"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("526f")),l=i("6bd7"),c=i("4360"),u=Object(l["a"])()?"DOMMouseScroll":"mousewheel",d="",f={name:"NoneDicomsCanvas",props:{readingTaskState:{type:Number,default:2},urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},studyId:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{loading:!1,index:this.initialIndex,isShow:!1,infinite:!0,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1},imgUrl:"",ctx:null,canvasPosition:{x:"",y:""},canvasSize:{height:"",width:""},canvasMousePosition:{x:"",y:""},mousePosition:{x:"",y:""},color:"rgb(255, 0, 0)",lineWidth:2,isMouseDown:!1,canvasMouseStart:{x:"",y:""},model:"",currentImg:"",imgId:"",currentDrawData:{},canvasData:[],imgZoom:1,isToolDisabled:!1,lesionName:"",visitTaskId:"",isInit:!1,imgSize:{height:"",width:""}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e),this.imgUrl=this.urlList[e].Path,this.imgId=this.urlList[e].Id,this.loadImage()}}},mounted:function(){var e=this;window.addEventListener("message",this.receiveMsg),document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{getCanvasData:function(){var e=this;return new Promise(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.visitTaskId=e.$router.currentRoute.query.visitTaskId,e.canvasData=[],t.next=4,c["a"].dispatch("reading/getMeasuredData",e.visitTaskId);case 4:return t.next=6,c["a"].dispatch("reading/getNoneDicomMeasuredData",e.visitTaskId).then((function(t){t.forEach((function(t){t&&t.MeasureData&&e.canvasData.push(t.MeasureData)})),sessionStorage.setItem("measureData",e.canvasData)}));case 6:i();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},loadImage:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,this.isInit){e.next=5;break}return e.next=4,this.getCanvasData();case 4:this.isInit=!0;case 5:return t=new Image,t.src=this.imgUrl,e.abrupt("return",new Promise((function(e){t.onload=function(){i.currentImg=t,i.loading=!1,i.initCanvas(t),e(t)}})));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleDrawArrow:function(){var e={type:"isCanActiveNoneDicomTool",data:"",toolName:"ArrowAnnotate"};window.opener.postMessage(e,window.location)},handleDrawRectangle:function(){var e={type:"isCanActiveNoneDicomTool",data:"",toolName:"RectangleRoi"};window.opener.postMessage(e,window.location)},receiveMsg:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("nonedicoms",t.data.type),"isCanActiveNoneDicomTool"!==t.data.type){e.next=12;break}if(!t.data.data.isCanActiveTool){e.next=7;break}this.model=t.data.data.toolName,this.lesionName=t.data.data.lesionName,e.next=10;break;case 7:if(t.data.data.reason){e.next=9;break}return e.abrupt("return");case 9:this.$confirm(t.data.data.reason,{type:"warning",distinguishCancelAndClose:!0,showCancelButton:!1}).then((function(){}));case 10:e.next=40;break;case 12:if("removeNoneDicomMeasureData"!==t.data.type){e.next=24;break}return i=this.canvasData.findIndex((function(e){return e.data.uuid===t.data.data.data.uuid})),this.canvasData.splice(i,1),d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=18,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 18:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="",e.next=40;break;case 24:if("addNoneDicomMeasureData"!==t.data.type){e.next=40;break}n=this.canvasData.length-1;case 26:if(!(n>=0)){e.next=33;break}if(!this.canvasData[n]||!this.canvasData[n].data||this.canvasData[n].data.uuid!==t.data.data.data.uuid){e.next=30;break}return this.canvasData[n]=t.data.data,e.abrupt("break",33);case 30:n--,e.next=26;break;case 33:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=36,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 36:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="";case 40:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initCanvas:function(e){var t=this;this.loading=!0,this.canvasSize.height=e.height,this.canvasSize.width=e.width,this.imgSize.height=e.height,this.imgSize.width=e.width;var i=document.getElementsByClassName("image-viewer__canvas")[0];this.canvasPosition={x:i.offsetWidth/2-e.width/2,y:i.offsetHeight/2-e.height/2-25},this.$nextTick(Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return d=document.getElementById("canvas").getContext("2d"),i.next=3,d.drawImage(e,0,0,e.width,e.height);case 3:t.drawToArr(),t.loading=!1;case 5:case"end":return i.stop()}}),i)}))))},clearCanvas:function(){this.canvasData=[],this.currentDrawData={},d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height)},handleContextmenu:function(e){e.preventDefault()},handleMouseDown:function(e){0===e.button&&(this.isMouseDown=!0,this.canvasMouseStart={x:e.offsetX,y:e.offsetY})},handleMouseMove:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.mousePosition={x:t.pageX,y:t.pageY},this.canvasMousePosition={x:t.offsetX,y:t.offsetY},(t.offsetX<0||t.offsetY<0||0===t.offsetX||0===t.offsetY)&&(this.isMsg=!1,this.isMouseDown=!1),this.isMouseDown){e.next=5;break}return e.abrupt("return");case 5:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=8,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 8:return e.next=10,this.drawToArr();case 10:"ArrowAnnotate"===this.model?this.drawArrowAnnotate(t):"RectangleRoi"===this.model&&this.drawRectangle(t);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),drawToArr:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.canvasData.forEach((function(e){if(e.instanceId===t.imgId)if("ArrowAnnotate"===e.type){var i,n,a=10,r=45,o=e.data.handles.start.x,s=e.data.handles.start.y,l=e.data.handles.end.x,c=e.data.handles.end.y,u=180*Math.atan2(s-c,o-l)/Math.PI,f=(u+r)*Math.PI/180,h=(u-r)*Math.PI/180,p=a*Math.cos(f),m=a*Math.sin(f),g=a*Math.cos(h),v=a*Math.sin(h);d.lineWidth=t.lineWidth,d.beginPath(),d.moveTo(o*t.imgZoom,s*t.imgZoom),d.lineTo(l*t.imgZoom,c*t.imgZoom),i=l+p,n=c+m,d.moveTo(i,n),d.lineTo(l,c),i=l+g,n=c+v,d.lineTo(i,n),t.drawText(d,{x:o,y:s},{x:l,y:c},e.data.remark,t.color),d.strokeStyle=t.color,d.stroke()}else"RectangleRoi"===e.type&&(d.lineWidth=t.lineWidth,d.beginPath(),d.strokeStyle=t.color,d.strokeRect(e.data.handles.start.x,e.data.handles.start.y,e.data.handles.end.x-e.data.handles.start.x,e.data.handles.end.y-e.data.handles.start.y),t.drawText(d,{x:e.data.handles.start.x,y:e.data.handles.start.y},{x:e.data.handles.end.x,y:e.data.handles.end.y},e.data.remark,t.color))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleMouseUp:function(e){if(0===e.button){if("ArrowAnnotate"===this.model||"RectangleRoi"===this.model){for(var t in this.currentDrawData.data.handles)this.currentDrawData.data.handles[t].x=this.currentDrawData.data.handles[t].x/this.imgZoom,this.currentDrawData.data.handles[t].y=this.currentDrawData.data.handles[t].y/this.imgZoom;this.currentDrawData&&this.currentDrawData.data&&this.canvasData.push(this.currentDrawData)}this.isMouseDown=!1,this.model="",this.lesionName="",this.canvasMousePosition={x:e.offsetX,y:e.offsetY};var i={type:"setMeasurement",data:this.currentDrawData};window.opener.postMessage(i,window.location)}},drawArrowAnnotate:function(e){var t,i,n=10,a=45,r=this.canvasMouseStart.x,o=this.canvasMouseStart.y,s=e.offsetX,l=e.offsetY,c=180*Math.atan2(o-l,r-s)/Math.PI,u=(c+a)*Math.PI/180,f=(c-a)*Math.PI/180,h=n*Math.cos(u),p=n*Math.sin(u),m=n*Math.cos(f),g=n*Math.sin(f);d.lineWidth=this.lineWidth,d.beginPath(),d.strokeStyle=this.color,d.moveTo(this.canvasMouseStart.x,this.canvasMouseStart.y),d.lineTo(e.offsetX,e.offsetY),t=s+h,i=l+p,d.moveTo(t,i),d.lineTo(s,l),t=s+m,i=l+g,d.lineTo(t,i),this.drawText(d,{x:r,y:o},{x:s,y:l},this.lesionName,this.color),d.stroke(),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"ArrowAnnotate",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"ArrowAnnotate",toolType:"ArrowAnnotate"}}},drawRectangle:function(e){d.beginPath(),d.strokeStyle=this.color,d.strokeRect(this.canvasMouseStart.x,this.canvasMouseStart.y,e.offsetX-this.canvasMouseStart.x,e.offsetY-this.canvasMouseStart.y),this.drawText(d,{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},{x:e.offsetX,y:e.offsetY},this.lesionName,this.color),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"RectangleRoi",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"RectangleRoi",toolType:"RectangleRoi"}}},drawText:function(e,t,i,n,a){if(n&&""!==n){var r=5,o=this.textBoxWidth(e,n,r),s=12,l=s+10,c=Math.max(o,l)/2+r;i.x0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(s["b"])(document,"keydown",this._keyDownHandler),Object(s["b"])(document,u,null)},deviceSupportUninstall:function(){Object(s["a"])(document,"keydown",this._keyDownHandler),Object(s["a"])(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},h=f,p=(i("cea2"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"9de1d678",null);t["default"]=m.exports},9850:function(e,t,i){var n=i("401b"),a=i("1687"),r=n.applyTransform,o=Math.min,s=Math.max;function l(e,t,i,n){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}l.prototype={constructor:l,union:function(e){var t=o(e.x,this.x),i=o(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-i,this.x=t,this.y=i},applyTransform:function(){var e=[],t=[],i=[],n=[];return function(a){if(a){e[0]=i[0]=this.x,e[1]=n[1]=this.y,t[0]=n[0]=this.x+this.width,t[1]=i[1]=this.y+this.height,r(e,e,a),r(t,t,a),r(i,i,a),r(n,n,a),this.x=o(e[0],t[0],i[0],n[0]),this.y=o(e[1],t[1],i[1],n[1]);var l=s(e[0],t[0],i[0],n[0]),c=s(e[1],t[1],i[1],n[1]);this.width=l-this.x,this.height=c-this.y}}}(),calculateTransform:function(e){var t=this,i=e.width/t.width,n=e.height/t.height,r=a.create();return a.translate(r,r,[-t.x,-t.y]),a.scale(r,r,[i,n]),a.translate(r,r,[e.x,e.y]),r},intersect:function(e){if(!e)return!1;e instanceof l||(e=l.create(e));var t=this,i=t.x,n=t.x+t.width,a=t.y,r=t.y+t.height,o=e.x,s=e.x+e.width,c=e.y,u=e.y+e.height;return!(n=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(e){return new l(e.x,e.y,e.width,e.height)};var c=l;e.exports=c},98508:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.questionForm[e.question.Id],rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{}}},computed:{calculationValue:{get:function(){return this.questionForm[this.question.Id]},set:function(){}}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"number"===this.question.Type?this.$set(this.questionForm,this.question.Id,0):this.$set(this.questionForm,this.question.Id,""),1===this.question.TableQuestionType&&null!==this.question.LesionType&&this.getOrganInfoList()},methods:{save:function(){},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={},console.log(this.QuestionsForm)},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(r["Rd"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},formItemNumberChange:function(e,t){this.$emit("formItemTableNumberChange",e,t)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("3250"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"0dceee0a",null);t["default"]=c.exports},9859:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-function-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"roleFunction",staticClass:"table",attrs:{size:"small",data:e.list},on:{select:e.handleSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"Function Name",prop:"FunctionName",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"Description",prop:"Note"}})],1)],1)},a=[],r=(i("ac6a"),i("50fc")),o={name:"RoleFunction",data:function(){return{loading:!1,list:[]}},methods:{getFunctions:function(e,t){var i=this;this.roleId=e,this.loading=!0,this.list=[],Object(r["j"])(e,t).then((function(e){i.list=e.Result,i.loading=!1,i.list.forEach((function(e){i.$nextTick((function(){i.$refs["roleFunction"].toggleRowSelection(e,e.IsSelect)}))}))}))},handleSelect:function(e,t){var i=this,n=e.length&&-1!==e.indexOf(t),a={RoleId:this.roleId,FunctionId:t.Id,IsSelect:n};Object(r["t"])(a).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},resetTable:function(){this.list=[]}}},s=o,l=(i("3059"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"985e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v(e._s(e.$t("trials:enrolledReviews:button:upload")))]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s("("+e.$t("trials:enrolledReviews:label:mustBepdf")+")"))])],1)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("3e42"),s="ACK of SOW",l={name:"UploadFile",props:{doctorId:{type:String,required:!0},trialId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,s,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({DoctorId:t.doctorId,name:i,FileName:i,Path:e.Result.FilePath,FullPath:e.Result.FullFilePath,Type:s}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.Path,a=t.FullPath,r=t.Type,s={DoctorId:this.doctorId,Type:r,Path:n,FullPath:a,FileName:i};Object(o["Bf"])(this.trialId,s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].Id=t.Result,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getFileList",e.fileList))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,"pdf");if(!i)return this.$message.error(this.$t("trials:enrolledReviews:label:mustBepdf")),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm(this.$t("trials:enrolledReviews:message:deleteSOWWarning"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.Id?Object(o["wb"])(this.trialId,this.doctorId,e.Id).then((function(e){e.IsSuccess&&(i.fileList=[],i.$message.success(i.$t("common:message:savedSuccessfully")),i.$emit("getFileList",i.fileList))})):(this.fileList=[],this.$emit("getFileList",this.fileList)))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:enrolledReviews:message:uploadSowWaring1"))},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.toLocaleLowerCase().indexOf(i)>-1}}},c=l,u=(i("cd8e"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"98ab":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"98b0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"98b7":function(e,t){var i="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=i},"98c2":function(e,t,i){"use strict";i("47ad")},"98cf":function(e,t,i){"use strict";i("878a")},"98e7":function(e,t,i){var n=i("6d8b"),a=n.createHashMap;function r(e){return{getTargetSeries:function(t){var i={},n=a();return t.eachSeriesByType(e,(function(e){e.__paletteScope=i,n.set(e.uid,e)})),n},reset:function(e,t){var i=e.getRawData(),n={},a=e.getData();a.each((function(e){var t=a.getRawIndex(e);n[t]=e})),i.each((function(t){var r,o=n[t],s=null!=o&&a.getItemVisual(o,"color",!0),l=null!=o&&a.getItemVisual(o,"borderColor",!0);if(s&&l||(r=i.getItemModel(t)),!s){var c=r.get("itemStyle.color")||e.getColorFromPalette(i.getName(t)||t+"",e.__paletteScope,i.count());null!=o&&a.setItemVisual(o,"color",c)}if(!l){var u=r.get("itemStyle.borderColor");null!=o&&a.setItemVisual(o,"borderColor",u)}}))}}}e.exports=r},"998c":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("e86a"),o=Math.PI;function s(e,t){t=t||{},n.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new a.Group,s=new a.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(s);var l=t.fontSize+" sans-serif",c=new a.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(i.add(c),t.showSpinner){var u=new a.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),i.add(u)}return i.resize=function(){var i=r.getWidth(t.text,l),n=t.showSpinner?t.spinnerRadius:0,a=(e.getWidth()-2*n-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner?0:i/2),o=e.getHeight()/2;t.showSpinner&&u.setShape({cx:a,cy:o}),c.setShape({x:a-n,y:o-n,width:2*n,height:2*n}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i}e.exports=s},"99e4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:visitName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskAllocationState,callback:function(t){e.$set(e.searchData,"TaskAllocationState",t)},expression:"searchData.TaskAllocationState"}},e._l(e.$d.TaskAllocationState,(function(e){return i("el-option",{key:"TaskAllocationState"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:reviewAssign:readingTask:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewAssign:readingTask:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewAssign:readingTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:readingTask:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewAssign:readingTask:table:visitName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewAssign:readingTask:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:readingTask:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewAssign:readingTask:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:reviewAssign:readingTask:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskAllocationState",label:e.$t("trials:reviewAssign:readingTask:table:assignStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskAllocationState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:reviewAssign:readingTask:table:role"),sortable:"custom","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:adReader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewAssign:readingTask:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:historyReader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.HistoryReadingDoctorUserList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewAssign:readingTask:table:assignTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"分配规则",visible:e.AllocationConfigVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("首次分配规则")]),e._v(" "),i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"60px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addOrEdit()}}},[e._v("\n 添加阅片人\n ")]),e._v(" "),i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"分配对象"}},[i("el-radio-group",{model:{value:e.TrialTaskInfo.TaskAllocateObjEnum,callback:function(t){e.$set(e.TrialTaskInfo,"TaskAllocateObjEnum",t)},expression:"TrialTaskInfo.TaskAllocateObjEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人列表"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.addOrEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("后续分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例第二次裁判任务自动分配(在拟分配的阅片人未标记为退出项目状态时)默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.AutoAlloctionVisible?i("el-dialog",{attrs:{title:"分配裁判",visible:e.AutoAlloctionVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AutoAlloctionVisible=t}}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:3,border:""}},[i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 分配对象\n ")]),e._v("\n "+e._s(e.$fd("TaskAllocateObj",e.TrialTaskInfo.TaskAllocateObjEnum))+"\n ")],2),e._v(" "),i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 备选医生\n ")]),e._v(" "),i("el-tag",[e._v(e._s(e.TaskAllocationRuleList.length?e.TaskAllocationRuleList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString().replaceAll(",","/"):"无"))])],2)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("受试者阅片人最新关系表")]),e._v(" "),i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.taskSearchData.SiteId,callback:function(t){e.$set(e.taskSearchData,"SiteId",t)},expression:"taskSearchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:"taskSearchData"+t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.taskSearchData.SubjectCode,callback:function(t){e.$set(e.taskSearchData,"SubjectCode",t)},expression:"taskSearchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.DoctorUserId,callback:function(t){e.$set(e.taskSearchData,"DoctorUserId",t)},expression:"taskSearchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否已分配阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsHaveAssigned,callback:function(t){e.$set(e.taskSearchData,"IsHaveAssigned",t)},expression:"taskSearchData.IsHaveAssigned"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否生效"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsAssignConfirmed,callback:function(t){e.$set(e.taskSearchData,"IsAssignConfirmed",t)},expression:"taskSearchData.IsAssignConfirmed"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.openAutoAlloction}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset2}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.autoSubjectAssignDoctor}},[e._v("\n 自动分配裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n 手动分配裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.cancelSubjectAssignDoctor()}}},[e._v("\n 清空裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAssignDoctorApplyTask(null)}}},[e._v("\n 生效\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],attrs:{border:"",data:e.SubjectAssignList,stripe:""},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:"中心编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"受试者编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},e._l(t.row.DoctorUserList,(function(t){return i("div",{key:"SubjectCode"+t.UserName,staticStyle:{display:"flex","justify-content":"center","align-items":"center","margin-right":"5px"}},[i("el-tag",[e._v("\n "+e._s(t.UserName+"("+t.FullName+")")+"\n ")])],1)})),0):e._e()]}}],null,!1,241325678)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组001)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,1).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,1).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,2591996451)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组002)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,2).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,2).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,1800428195)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"裁判","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,3).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,3).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,1316145571)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否分配阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAssignedDoctorUser?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))])]}}],null,!1,76085216)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否生效","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}],null,!1,1672716963)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"绑定时间",width:"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUserList.length?t.row.DoctorUserList[0].AssignTime:"")+"\n ")]}}],null,!1,2127155942)}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-connection",title:"应用"},on:{click:function(i){return e.manualAssignDoctorApplyTask(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-close",title:"清空阅片人"},on:{click:function(i){return e.cancelSubjectAssignDoctor(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-refresh-right",title:"手动分配"},on:{click:function(i){return e.manualAllocation(t.row)}}})]}}],null,!1,1674162749)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.SubjectAssignListTotal,page:e.taskSearchData.PageIndex,limit:e.taskSearchData.PageSize},on:{"update:page":function(t){return e.$set(e.taskSearchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.taskSearchData,"PageSize",t)},pagination:e.openAutoAlloction}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{id:"TaskAllocationRuleList",title:"选择阅片人",visible:e.manualAllocationVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("div",[i("div",{staticStyle:{"line-height":"32px"}},[e._v("\n 当前项目阅片模式为:"+e._s(e.$fd("ReadingMethod",e.ReadingType))+"\n ")]),e._v(" "),i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择裁判为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v(e._s(e.TaskAllocationRuleSelectList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString()))]):e._e()],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""},on:{"selection-change":e.handleTaskAllocationRuleListSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,3202248926)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,4282686787)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,747019486)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,1568028271)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,2846004346)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,3188380639)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}],null,!1,805216297)}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.manualAllocationVisible=!1,e.TaskAllocationRuleSelectList=[]}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveTaskAllocationRuleSelectList}},[e._v("\n 分配\n ")])],1)],1):e._e(),e._v(" "),e.readVisible?i("el-dialog",{attrs:{title:"分配",visible:e.readVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.applyVisible?i("el-dialog",{attrs:{title:"分配",visible:e.applyVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.applyVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.WaitApplyVisible?i("el-dialog",{attrs:{title:"确定生效吗?",visible:e.WaitApplyVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.WaitApplyVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.WaitApplyList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,3202248926)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,4282686787)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,747019486)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后受试者比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount>0?(100*(t.row.SelfApplyedSubjectCount+t.row.WaitApplySelfSubjectCount)/(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,180275977)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,1568028271)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后任务比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount>0?(100*(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount)/(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,547530505)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,2846004346)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后总任务量","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(e._s(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,261709692)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,3188380639)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后待处理任务量","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(" "+e._s(t.row.SelfUndoTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,518290002)})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.WaitApplyVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.manualAssignDoctorApplyTaskSave}},[e._v("\n 确定\n ")])],1)],1):e._e()],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=(i("7514"),i("c5f6"),i("3e42")),l=i("958c"),c=i("eca8"),u=i("6071"),d=i("333d"),f=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,IsJudgeDoctor:!0}},h=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,IsJudgeDoctor:!0,TrialReadingCriterionId:null}},p={name:"TrialsNotice",components:{BaseContainer:u["default"],Pagination:d["default"],AddOrEditTaskAllocationRule:c["default"]},props:{allocationReadingCategory:{type:String},allocationSubjectCode:{type:String},trialReadingCriterionId:{type:Number}},data:function(){return{trialCriterionList:[],searchData:f(),taskSearchData:h(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,ReadingType:null}},mounted:function(){this.searchData.ReadingCategory=this.allocationReadingCategory,this.searchData.SubjectCode=this.allocationSubjectCode,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,console.log(this.searchData.SubjectCode,this.searchData.ReadingCategory),this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getRole:function(e,t,i){var n;return 1===i?(~[1,2,3].indexOf(t)&&(n="R1"),~[4].indexOf(t)&&(n="A1"),~[5].indexOf(t)&&(n="O1")):2===i&&(~[1,2,3].indexOf(t)&&(1===e?n="R1":2===e&&(n="R2")),~[4].indexOf(t)&&(n="A1"),~[5].indexOf(t)&&(n="O1")),console.log(n),n},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{UserName:null,FullName:null}),i},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm("是否确定分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({IsJudgeDoctor:!0},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm("是否确定取消分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({IsJudgeDoctor:!0},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({IsJudgeDoctor:!0},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success("保存成功"),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,this.ApplyTaskInfo.IsJudgeDoctor=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("生效成功"),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId}))),IsJudgeDoctor:!0};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}console.log(this.ApplyTaskInfo),this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error("该项目没有有效阅片人")})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm("确定执行自动分配?").then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId,IsJudgeDoctor:!0}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("自动分配成功"),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e=this;if(0!==this.TaskAllocationRuleSelectList.length){this.loading=!0,this.btnLoading=!0;var t={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(e,t){return{DoctorUserId:e.DoctorUserId,ArmEnum:3}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0,IsJudgeDoctor:!0};Object(l["g"])(t).then((function(t){e.loading=!1,e.btnLoading=!1,e.openAutoAlloction(),e.TaskAllocationRuleSelectList=[],e.SubjectAssignSelectList=[],e.getDoctorUserSelectList(),e.$message.success("分配成功"),e.manualAllocationVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error("请选择裁判")},selectable:function(e){var t=1;return!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},cancelSubjectAssignDoctor:function(e){var t=this;e?this.$confirm("确定要清空该受试者的裁判吗?").then((function(){var i={SubjectIdList:[e.SubjectId],TrialId:t.trialId,IsJudgeDoctor:!0};t.loading=!0,t.btnLoading=!0,Object(l["k"])(i).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):0!==this.SubjectAssignSelectList.length?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var e={SubjectIdList:t.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(e).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):this.$message.error("请勾选要清空阅片人的受试者")},manualAllocation:function(e){e&&(this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error("请勾选要分配的受试者")},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({IsJudgeDoctor:!0},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.AllocationConfigVisible=!1,e.getList(),e.$message.success("保存成功")})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.UserName,"(").concat(e.FullName,")的任务分配规则?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!0).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId,IsJudgeDoctor:!0}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId,IsJudgeDoctor:!0}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(l["E"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReset2:function(){this.taskSearchData=h(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=(i("22a0"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"b9b1c9aa",null);t["default"]=v.exports},"99f5":function(e,t,i){},"9a3b":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return s}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Inspection/QCOperation/CRCRequestToQC",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Inspection/QCOperation/CheckBack",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/Inspection/QCOperation/SetReuploadFinished",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/Inspection/QCOperation/QCPassedOrFailed",method:"post",data:e})}},"9a4e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container exchange-rate data-list"},[i("div",{staticClass:"filter-container"},[i("el-date-picker",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{size:"small",placeholder:"Search Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.pickerOption},model:{value:e.listQuery.SearchMonth,callback:function(t){e.$set(e.listQuery,"SearchMonth",t)},expression:"listQuery.SearchMonth"}}),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleNew}},[e._v("New")])],1),e._v(" "),i("div",{staticClass:"list-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.list,stripe:"",height:"100%",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Month","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Rate",label:"Rate","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"Update Time","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.timer,attrs:{title:e.title,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"rateForm",attrs:{"label-width":"150px",rules:e.rules,model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"Month: ",prop:"YearMonth"}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM",disabled:""!=e.form.Id&&void 0!=e.form.Id},model:{value:e.form.YearMonth,callback:function(t){e.$set(e.form,"YearMonth",t)},expression:"form.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Exchange Rate: ",prop:"Rate"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.Rate,callback:function(t){e.$set(e.form,"Rate",t)},expression:"form.Rate"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("20d6"),i("6b95")),o=i("333d"),s={name:"ExchangeRate",components:{Pagination:o["default"]},data:function(){return{listQuery:{SearchMonth:"",PageIndex:1,PageSize:20},list:[],listLoading:!1,total:0,dialogVisible:!1,title:"",timer:"",form:{},rules:{Rate:[{required:!0,message:"Please specify",trigger:"blur"}],YearMonth:[{required:!0,message:"Please specify",trigger:"blur"}]},btnDisabled:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["w"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleNew:function(){this.form={},this.title="Add",this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e){this.title="Edit",this.form=JSON.parse(JSON.stringify(e)),this.timer=(new Date).getTime(),this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.rateForm.validate((function(t){if(t){e.btnDisabled=!0;var i={Rate:e.form.Rate,YearMonth:e.form.YearMonth};e.form.Id&&(i.Id=e.form.Id),Object(r["b"])(i).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success("Updated successfully!"),e.dialogVisible=!1),e.btnDisabled=!1})).catch((function(){e.btnDisabled=!1}))}}))},handleDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Yes",cancelButtonText:"No"}).then((function(){Object(r["j"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))})).catch((function(e){}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery.SearchMonth="",this.listQuery.PageIndex=1,this.getList()}}},l=s,c=(i("eee5"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"0ef5ef66",null);t["default"]=u.exports},"9a6f":function(e,t,i){"use strict";i("2763")},"9ab6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.typeOptions,(function(e){return i("el-option",{key:e.FileTypeId,attrs:{label:e.FileType,value:e.FileTypeId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:fileName")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:isSign")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSign,callback:function(t){e.$set(e.searchData,"IsSign",t)},expression:"searchData.IsSign"}},e._l(e.$d.YesOrNo,(function(t){return"无"!==t.raw.ValueCN?i("el-option",{attrs:{label:t.label,value:t.value}}):e._e()})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",type:"primary"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"TrialAttachments",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:self-attachment:table:fileType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:self-attachment:table:fileName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:self-attachment:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:self-attachment:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:self-attachment:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:self-attachment:table:signTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:self-attachment:action:preview")},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",disabled:!!t.row.ConfirmTime,title:e.$t("trials:self-attachment:action:sign")},on:{click:function(i){return e.handleSign(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[e.currentIsConfirm?e._e():i("span",{staticStyle:{position:"fixed",right:"75px",top:"14px"}},[i("span",{staticStyle:{color:"red","margin-right":"10px"}},[e._v("\n "+e._s(e.$t("common:message:signTip"))+"\n "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.duration<60*e.currentMinMinutes,expression:"duration < currentMinMinutes * 60"}]},[e._v(e._s("("+(60*e.currentMinMinutes-e.duration)+"s)"))])]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:null!==e.timer||0===e.duration,loading:e.btnLoading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{attrs:{"is-system-doc":e.currentRow.IsSystemDoc,"document-id":e.currentRow.Id,"file-name":e.fileName,"trial-id":e.trialId},on:{closeDialog:e.closeSignDialog}})],1):e._e()],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("c686"),d=i("1d64"),f=i("4360"),h=function(){return{FileTypeId:"",Name:"",SortField:"",IsSign:null,Asc:!1,PageIndex:1,PageSize:20}},p={name:"TrialAttachments",components:{BaseContainer:l["default"],Pagination:c["default"],PreviewFile:u["default"],SignForm:d["default"]},data:function(){return{searchData:h(),loading:!1,list:[],total:0,currentRow:{},currentPath:"",currentType:"",currentIsConfirm:!1,currentMinMinutes:0,title:"",duration:0,timer:null,previewVisible:!1,btnLoading:!1,signVisible:!1,fileName:"",currentUser:zzSessionStorage.getItem("userName"),typeOptions:[],trialId:this.$route.query.trialId}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTypeOptions(),this.$route.query.isSign&&(this.searchData.IsSign=JSON.parse(this.$route.query.isSign)),this.getList()},destroyed:function(){this.timer&&this.stopTimer()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["fe"])(this.searchData).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!1,e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount,n=i.OtherInfo.NeedSignCount,t.next=6,f["a"].dispatch("user/setTotalNeedSignTrialDocCount",n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getTypeOptions:function(){var e=this;Object(s["Fd"])(this.trialId).then((function(t){e.typeOptions=t.Result}))},handlePreview:function(e){this.currentRow=Object(r["a"])({},e);var t=e.Name,i=e.FullFilePath,n=e.SignViewMinimumMinutes;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=n,this.currentIsConfirm=!0,this.title=t,this.previewVisible=!0},handleSign:function(e){var t=this;this.currentRow=Object(r["a"])({},e);var i=e.Name,n=e.FullFilePath,a=e.SignViewMinimumMinutes;this.currentPath=n,this.currentType=e.Name?i.substring(i.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=a,this.currentIsConfirm=!1,this.title=i,this.fileName=i.slice(0,i.lastIndexOf("."));var o=this.trialId;this.loading=!0,Object(s["Ke"])(o,e.Id,e.IsSystemDoc).then((function(e){t.loading=!1,t.previewVisible=!0;var i=t;setTimeout((function(){i.initTimer()}),1e3)})).catch((function(){t.loading=!1}))},initTimer:function(){this.currentMinMinutes>0&&!this.currentIsConfirm&&(this.duration=0,this.timer&&this.stopTimer(),this.startTimer())},startTimer:function(){var e=this;this.timer=setInterval((function(){e.duration++,e.duration>=60*e.currentMinMinutes&&e.stopTimer()}),1e3)},stopTimer:function(){clearInterval(this.timer),this.timer=null},handleConfirm:function(){this.signVisible=!0},closeSignDialog:function(e){this.signVisible=!1,e&&(this.currentIsConfirm=!0,this.getList())},handleReset:function(){var e=this;this.searchData=h(),this.getList(),this.$nextTick((function(){e.$refs.TrialAttachments.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},m=p,g=i("2877"),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},"9b06":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stats-reviewer"},[i("div",{ref:"listContainer",staticClass:"list-container"},[e.tableHeight?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{size:"small",stripe:"",height:"97%",data:e.list,"show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",sortable:"custom",label:"Hospital","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}],null,!1,809595983)}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"105","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID","min-width":"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Pending",label:"Pending","min-width":"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:"Approved","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:"Reading","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Finished",label:"Finished","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Total",label:"Total","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EntryRate",label:"Entry Rate","min-width":"100","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EntryRate)+"%")]}}],null,!1,2000662405)})],1):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("c5f6"),i("ac6a"),i("48fb")),o=i("333d"),s=i("0340"),l={components:{Pagination:o["default"]},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},total:0,listLoading:!1,tableHeight:0,arrID:[]}},watch:{param:{handler:function(e,t){this.listQuery.HospitalId=e.HospitalId,this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate},deep:!0}},mounted:function(){this.tableHeight=this.$refs.listContainer.clientHeight+"px",this.listQuery.HospitalId=this.param.HospitalId,this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.PageIndex=1,this.listQuery.PageSize=20,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["a"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSelectChange:function(e){for(var t=[],i=0;i0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("EntryRate"!==e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else n[t]="Total (Current Page)"})),n[11]=(100*(n[9]+n[8])/n[10]).toFixed(2)+"%",n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},resetList:function(){this.getList()},export:function(){var e=this,t="".concat(this.listQuery.BeginDate,"~").concat(this.listQuery.EndDate),i=[{key:"Index",width:5},{key:"Hospital",width:25},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:10},{key:"ReviewerCode",width:10},{key:"Pending",width:10},{key:"Approved",width:10},{key:"Reading",width:10},{key:"Finished",width:10},{key:"Total",width:10},{key:"Rate",width:20}],n="Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),a=["","Hospital","Surname","Given Name","Name CN","Reviewer ID","Pending","Approved","Reading","Finished","Total","Entry rate(%)"],r=0,o=0,l=0,c=0,u=0,d=1,f=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));f.forEach((function(e){e.Index=d++,e.Rate=e.EntryRate/100,r+=e.Pending,o+=e.Approved,l+=e.Reading,c+=e.Finished,u+=e.Total}));var h=["","Total","","","","",r,o,l,c,u,(l+c)/u],p=[{colIndex:12,format:"0.00%"}];Object(s["a"])(t,i,"Enrollments Statistics",n,a,f,h,p)}}},c=l,u=(i("cc92"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"42fc63ef",null);t["default"]=d.exports},"9b2c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-logininfor",use:"icon-logininfor-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"9b42":function(e,t){function i(e,t){var i=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,a,r=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done);o=!0)if(r.push(n.value),t&&r.length===t)break}catch(l){s=!0,a=l}finally{try{o||null==i["return"]||i["return"]()}finally{if(s)throw a}}return r}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9b6c":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n={visible:!1,title:"",width:"600px",showClose:!0}},"9b8f":function(e,t,i){"use strict";i.r(t);i("a481");var n,a,r={created:function(){var e=this.$route,t=e.params,i=e.query,n=t.path;this.$router.replace({path:"/"+n,query:i})},render:function(e){return e()}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"9b925":function(e,t,i){"use strict";i("0bd1")},"9ba0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container monthly-paymentDetail"},[i("div",{staticClass:"filter-container"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Name:"}},[i("el-input",{staticStyle:{width:"160px"},attrs:{readonly:""},model:{value:e.basicInfo.Name,callback:function(t){e.$set(e.basicInfo,"Name",t)},expression:"basicInfo.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ID:"}},[i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.basicInfo.Code,callback:function(t){e.$set(e.basicInfo,"Code",t)},expression:"basicInfo.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank:"}},[i("el-input",{staticStyle:{width:"180px"},attrs:{readonly:""},model:{value:e.basicInfo.RankName,callback:function(t){e.$set(e.basicInfo,"RankName",t)},expression:"basicInfo.RankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Month:"}},[i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.basicInfo.YearMonth,callback:function(t){e.$set(e.basicInfo,"YearMonth",t)},expression:"basicInfo.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Exchange Rate:"}},[i("el-input",{staticStyle:{width:"80px"},attrs:{readonly:""},model:{value:e.basicInfo.ExchangeRate,callback:function(t){e.$set(e.basicInfo,"ExchangeRate",t)},expression:"basicInfo.ExchangeRate"}})],1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.exportExcel}},[e._v("Export Excel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:function(t){return e.handleWindowPrint("#payDetailPdf2",e.htmlTitle)}}},[e._v("Export PDF")])],1)],1),e._v(" "),i("el-table",{attrs:{id:"payDetailPdf2",height:"90%",data:e.list,"span-method":e.objectSpanMethod,border:"","show-summary":"","summary-method":e.getSummaries,align:"center",size:"small"}},[i("el-table-column",{attrs:{prop:"TrialCode",label:"Project ID","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentType",label:"Read Type","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s("Adjustment"!=t.row.TrialCode?t.row.PaymentType:t.row.AdjustmentView.AdjustType))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Count",label:"Volume","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s("Adjustment"!=t.row.TrialCode?t.row.Count:t.row.AdjustmentView.Note))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"BasePrice",label:"Base Rate ($)","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.BasePrice)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PersonalAdditional",label:"Personal Adjustment ($)","show-overflow-tooltip":"","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PersonalAdditional)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialAdditional",label:"Project Adjustment ($)","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TrialAdditional)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalUnitPrice",label:"Adjusted Rate ($)","show-overflow-tooltip":"","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TotalUnitPrice)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentUSD",label:"Subtotal ($)","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentCNY",label:e.rmbTitle,"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.basicInfo.ExchangeRate?i("span",{staticStyle:{color:"red"}},[e._v(e._s("Setting Needed"))]):i("span",[e._v(e._s(t.row.PaymentCNY))])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("e8ae"),s=i.n(o),l=i("3339"),c={name:"PaymentDetail",filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{basicInfo:{},list:[],spanArr:[],pos:0,htmlTitle:"",rmbTitle:"",loading:!1}},mounted:function(){var e=this.$router.currentRoute.query;this.basicInfo=function(e){var t=e.Id,i=e.DoctorId,n=e.ChineseName,a=e.LastName,r=e.FirstName,o=e.Code,s=e.ExchangeRate,l=e.RankName,c=e.YearMonth;return{Id:t,DoctorId:i,ChineseName:n,LastName:a,FirstName:r,Code:o,ExchangeRate:s,RankName:l,YearMonth:c}}(e),this.basicInfo.Name="".concat(this.basicInfo.FirstName," ").concat(this.basicInfo.LastName," ").concat(this.basicInfo.ChineseName),this.htmlTitle=this.basicInfo.ChineseName+"_"+this.basicInfo.YearMonth,this.getList()},methods:{getList:function(){var e=this;Object(r["o"])(this.basicInfo.Id,this.basicInfo.DoctorId,this.basicInfo.YearMonth).then((function(t){e.list=t.Result.DetailList,e.rmbTitle="Subtotal(¥)",e.getSpanArr(t.Result.DetailList),e.list.forEach((function(e,t,i){e.AdjustmentView&&(e.AdjustmentView.Note="Note: ".concat(e.AdjustmentView.Note))}))}))},getSummaries:function(e){var t=this,i=e.columns,n=e.data,a=[];return i.forEach((function(e,i){if(0!==i){if("PaymentUSD"===e.property){var r=n.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(a[i]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}if("PaymentCNY"===e.property){var o=n.map((function(e){return Number(e["PaymentCNY"])}));return a[i]=o.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0),void(0===a[i]&&0===t.basicInfo.ExchangeRate&&(a[i]="Setting Needed"))}}else a[i]="Total"})),a},getSpanArr:function(e){for(var t=0;t0?1:0;return{rowspan:a,colspan:r}}if("Adjustment"===t.TrialCode){if(2===n)return[1,5];if(3===n||4===n||5===n||6===n)return[0,0]}},exportExcel:function(){var e=new s.a.Workbook,t=e.addWorksheet(this.basicInfo.ChineseName+" "+this.basicInfo.YearMonth);t.properties.defaultRowHeight=22,t.columns=[{header:"Project ID",key:"TrialCode",width:15},{header:"Type",key:"PaymentType",width:30},{header:"Count",key:"Count",width:15},{header:"Base Price",key:"BasePrice",width:15},{header:"Personal Additional",key:"PersonalAdditional",width:22},{header:"Trial Additional",key:"TrialAdditional",width:22},{header:"Total Price",key:"TotalUnitPrice",width:22},{header:"Total Fee",key:"PaymentUSD",width:22},{header:"Subtotal(¥)",key:"PaymentCNY",width:22}];var i=this,n=0,a=0;this.list.forEach((function(e){n+=parseFloat(e.PaymentUSD),a+=parseFloat(e.PaymentCNY)}));var r=Number(this.list.length+1),o=4;t.mergeCells("A1","I2"),t.getCell("A1").value="Monthly Payment",t.getCell("A1").alignment={vertical:"middle",horizontal:"center"},t.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},t.mergeCells("A3","D3"),t.getCell("A3").value="Name:"+this.basicInfo.ChineseName+" ID:"+i.basicInfo.Code,t.mergeCells("E3","I3"),t.getCell("E3").value=" Rank:"+i.basicInfo.RankName+" Month:"+i.basicInfo.YearMonth+" Exchange Rate: "+Number(i.basicInfo.ExchangeRate),t.getCell("A3").alignment={vertical:"middle",horizontal:"left"},t.getCell("E3").alignment={vertical:"middle",horizontal:"right"},t.getCell("A4").value="Project ID",t.getCell("B4").value="Read Type",t.getCell("C4").value="Volume",t.getCell("D4").value="Base Rate($)",t.getCell("E4").value="Personal Adjustment($)",t.getCell("F4").value="Project Adjustment($)",t.getCell("G4").value="Adjusted Rate($)",t.getCell("H4").value="Subtotal($)",t.getCell("I4").value="Subtotal(¥)",t.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},t.addRows(this.list);for(var l=Math.floor(Number(this.list.length/9)),c=0;c0){var p="A"+(10*l+o+1),m="A"+(10*l+o+f);t.mergeCells(p,m),t.getCell(p).alignment={vertical:"middle",horizontal:"center"}}if(h>0){var g="A"+(10*l+o+f+1),v="A"+(r+o-1);t.mergeCells(g,v),t.getCell(g).alignment={vertical:"middle",horizontal:"center"};var b=0;for(b=0;b3&&e.eachCell((function(e,t){e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),e.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,i.basicInfo.ChineseName+" "+i.basicInfo.YearMonth+".xlsx");else{var n=document.createElement("a"),a=URL.createObjectURL(t);n.href=a,n.download=i.basicInfo.ChineseName+" "+i.basicInfo.YearMonth+".xlsx",document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}))},handleWindowPrint:function(e,t,i){var n=document.createElement("iframe");n.style.display="none";var a=document.createElement("script"),r=document.createElement("style");r.type="text/css",document.body.appendChild(n),document.head.getElementsByTagName("title")[0].innerText="".concat(t),n.contentDocument.head.innerHTML='\n '.concat(t,'\n \n \n ');var o='
    Monthly Payment
    ',s="
    \n \n \n \n \n \n
    ");n.contentDocument.body.innerHTML=o+s+document.querySelector(e).outerHTML,n.contentDocument.body.style.zoom=.75,n.contentDocument.getElementsByClassName("el-table--scrollable-y").style="",n.contentDocument.getElementsByClassName("el-table__body-wrapper")[0].style={"max-height":"100%"},n.contentDocument.getElementsByClassName("el-table__header-wrapper")[0].remove();var l=document.createElement("tr");l.innerHTML=' \n \n
    Trial ID
    \n \n \n
    Read Type
    \n \n \n
    Volume
    \n \n \n
    Base Rate ($)
    \n \n \n
    Personal Adjustment ($)
    \n \n \n
    Trial Adjustment ($)
    \n \n \n
    Adjusted Rate ($)
    \n \n \n
    Subtotal ($)
    \n \n \n
    Subtotal(¥)
    \n \n ',n.contentDocument.getElementsByClassName("el-table__body")[0].children[1].appendChild(l);var c=n.contentDocument.getElementsByClassName("el-table__body")[0].children[1].firstChild;c.parentNode.insertBefore(l,c);var u=0,d=0;this.list.forEach((function(e){u+=parseFloat(e.PaymentUSD),d+=parseFloat(e.PaymentCNY)})),n.contentDocument.getElementsByClassName("el-table__footer-wrapper")[0].remove();var f=document.createElement("tr");f.innerHTML='\n \n
    Total
    \n \n \n
    \n \n \n
    \n \n \n
    \n \n \n
    \n \n \n
    \n \n \n
    \n \n \n
    '.concat(u,'
    \n \n \n
    ').concat(d,"
    \n \n "),n.contentDocument.getElementsByClassName("el-table__body")[0].lastChild.appendChild(f),r.innerHTML=".el-table td{border:1px solid #ccc;}\n th{text-align:center} td{text-align:right}\n @page{size: landscape;}\n ",n.contentDocument.body.appendChild(r),a.innerText='if (window.navigator.userAgent.indexOf("Edge") >= 0)\n{ \nwindow.print();\n\n}\nelse{window.print();}',n.contentDocument.body.appendChild(a)}}},u=c,d=(i("5c80"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"9ba3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-people"},[i("svg-icon",{attrs:{"icon-class":"clipboard","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:trialsStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.trialCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-documentation"},[i("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:attachmentsStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.signedDocumentsCount,duration:3e3}}),e._v(" "),i("span",[e._v(" / ")]),e._v(" "),i("countTo",{attrs:{"start-val":0,"end-val":e.documentsCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-monitor"},[i("svg-icon",{attrs:{"icon-class":"monitor","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:pendingTasksStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.taskCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-message"},[i("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:messagesStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.needReadSystemNoticeCount,duration:3e3}}),e._v(" "),i("span",[e._v(" / ")]),e._v(" "),i("countTo",{attrs:{"start-val":0,"end-val":e.messageCount,duration:3e3}})],1)])])])],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("3e42"),s=i("ec1b"),l=i.n(s),c=i("4360"),u={name:"PanelCount",components:{countTo:l.a},data:function(){return{trialCount:0,signedDocumentsCount:0,documentsCount:0,taskCount:0,messageCount:0,needReadSystemNoticeCount:0,TotalNeedSignSystemDocCount:0}},mounted:function(){this.getData()},methods:{getData:function(){var e=this;Object(o["Lb"])().then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.trialCount=i.Result.TrialCount,e.signedDocumentsCount=i.Result.HaveSignedSystemDocCount+i.Result.HaveSignedTrialDocCount,e.documentsCount=i.Result.TotalNeedSignSystemDocCount+i.Result.TotalNeedSignTrialDocCount,e.TotalNeedSignSystemDocCount=i.Result.WaitSignSystemDocCount,t.next=6,c["a"].dispatch("user/setTotalNeedSignSystemDocCount",e.TotalNeedSignSystemDocCount);case 6:e.taskCount=i.Result.TotalApprovalRequiredCount,e.messageCount=i.Result.TotalSystemNoticeCount,e.needReadSystemNoticeCount=i.Result.NeedReadSystemNoticeCount,e.$emit("getSignSystemDocCount",i.Result.WaitSignSystemDocCount);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},d=u,f=(i("7bbb"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"67f22414",null);t["default"]=h.exports},"9bb8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",staticStyle:{position:"relative"},style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",staticStyle:{"padding-bottom":"50px","overflow-y":"auto"},style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),e.ecrfShow?i("QuestionsPreview",{ref:"QuestionsPreview",attrs:{visitTaskId:e.visitTaskId,criterionId:e.TrialReadingCriterionId}}):e._e()],1),e._v(" "),i("div",{staticStyle:{position:"absolute",bottom:"0",left:"0","z-index":"10",background:"#000",width:"100%",display:"flex","justify-content":"right","align-items":"center",height:"50px"}},[e.readingTaskState<2?i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n 保存\n ")]):e._e(),e._v(" "),e.readingTaskState<2&&e.IseCRFShowInDicomReading?i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini"},on:{click:e.handleConfirm}},[e._v("提交")]):e._e()],1),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("9b92"),c=i("179b"),u=i("f33a"),d=i("7a9e"),f=i("4360"),h=i("2f62"),p={name:"CustomizeMeasurementList",components:{QuestionsPreview:u["default"],SignForm:c["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),height:window.innerHeight-140,visitTaskId:"",loading:!1,CriterionType:null,subjectCode:"",taskBlindName:"",TrialReadingCriterionId:null,ecrfShow:!1,signCode:null,signVisible:!1,readingTaskState:null}},computed:Object(o["a"])({},Object(h["b"])(["visitTaskList"])),mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.TrialReadingCriterionId=this.$router.currentRoute.query.TrialReadingCriterionId,l["a"].$on("loadMeasurementList",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log(11111,e.$refs["QuestionsPreview"]),e.visitTaskId!==i.visitTaskId&&(e.visitTaskId=i.visitTaskId,e.taskBlindName=i.taskBlindName,e.$refs["QuestionsPreview"].getCustomTableQuestionAnswer(i.visitTaskId));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),l["a"].$on("getCustomTableQuestionAnswer",(function(t){e.$refs["QuestionsPreview"].getCustomTableQuestionAnswer(t)})),l["a"].$on("setCollapseActive",(function(e){})),l["a"].$on("changeLesionType",(function(e){})),l["a"].$on("getAllUnSaveLesions",(function(e){})),l["a"].$on("split",(function(e){})),l["a"].$on("setReadingState",(function(t){console.log(t),e.readingTaskState=t})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){l["a"].$off("loadMeasurementList"),l["a"].$off("setCollapseActive"),l["a"].$off("changeLesionType"),l["a"].$off("getUnSaveTarget"),l["a"].$off("setReadingState"),l["a"].$off("getCustomTableQuestionAnswer")},methods:{closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};this.signVisible=!1,Object(s["Ze"])(i).then((function(e){if(e.IsSuccess)try{t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,f["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){try{l["a"].$emit("getNextTask")}catch(e){console.log(e)}})).catch((function(e){}))}catch(i){console.log(i)}t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},handleConfirm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$refs["QuestionsPreview"].handleSave(!1);case 2:t=e.sent,t&&(i=d["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=i,this.signVisible=!0);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(e){this.$refs["QuestionsPreview"].handleSave(e)},setHeight:function(){this.height=window.innerHeight-140},initPage:function(e){this.visitTaskId!==e.visitTaskId&&(this.visitTaskId=e.visitTaskId,this.taskBlindName=e.taskBlindName,this.activeName="",this.ecrfShow=!0)}}},m=p,g=(i("00ac"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"7e724ab5",null);t["default"]=v.exports},"9bd1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:trialId")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:experimentName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.ExperimentName,callback:function(t){e.$set(e.searchData,"ExperimentName",t)},expression:"searchData.ExperimentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:pi")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.HeadPI,callback:function(t){e.$set(e.searchData,"HeadPI",t)},expression:"searchData.HeadPI"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:indication")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Indication,callback:function(t){e.$set(e.searchData,"Indication",t)},expression:"searchData.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:status")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.TrialStatusStr,callback:function(t){e.$set(e.searchData,"TrialStatusStr",t)},expression:"searchData.TrialStatusStr"}},e._l(e.$d.TrialStatusEnum,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:trials-list:table:createDate")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:new"],expression:"['trials:trials-list:new']"}],attrs:{icon:"el-icon-plus",type:"primary"},on:{click:e.handleNew}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("el-drawer",{attrs:{visible:e.isShow,"with-header":!1,size:"390px"},on:{"update:visible":function(t){e.isShow=t}}},[i("div",{staticStyle:{padding:"10px"}},[i("el-form",{attrs:{"label-width":"140px"}},[i("el-form-item",{attrs:{label:"Trial ID"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Trial ID",clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Indication",clearable:""},model:{value:e.searchData.Indication,callback:function(t){e.$set(e.searchData,"Indication",t)},expression:"searchData.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Assessment Criteria"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Assessment Criteria",clearable:"",multiple:""},model:{value:e.searchData.CriterionIds,callback:function(t){e.$set(e.searchData,"CriterionIds",t)},expression:"searchData.CriterionIds"}},e._l(e.dict.type.ReadingStandard,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Sponsor"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Sponsor",clearable:""},model:{value:e.searchData.SponsorId,callback:function(t){e.$set(e.searchData,"SponsorId",t)},expression:"searchData.SponsorId"}},e._l(e.sponsorList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.SponsorName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"CRO",clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Phase"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Phase",clearable:""},model:{value:e.searchData.Phase,callback:function(t){e.$set(e.searchData,"Phase",t)},expression:"searchData.Phase"}},e._l(e.phaseOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"ReviewType"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"ReviewType",clearable:"",multiple:""},model:{value:e.searchData.ReviewTypeIds,callback:function(t){e.$set(e.searchData,"ReviewTypeIds",t)},expression:"searchData.ReviewTypeIds"}},e._l(e.dict.type.ReviewType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"Modality",clearable:""},model:{value:e.searchData.ModalityIds,callback:function(t){e.$set(e.searchData,"ModalityIds",t)},expression:"searchData.ModalityIds"}},e._l(e.dict.type.ReadingType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Expedited: "}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"value-key":"value",clearable:""},model:{value:e.searchData.Expedited,callback:function(t){e.$set(e.searchData,"Expedited",t)},expression:"searchData.Expedited"}},e._l(e.expeditedOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"BeginDate: "}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"date","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"EndDate: "}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"date","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Attended Reviewer Type:"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Attended Reviewer Type",clearable:""},model:{value:e.searchData.AttendedReviewerType,callback:function(t){e.$set(e.searchData,"AttendedReviewerType",t)},expression:"searchData.AttendedReviewerType"}},e._l(e.$d.AttendedReviewerType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSelectSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isShow=!1}}},[e._v("Back")])],1)],1)],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:e.$t("trials:trials-list:table:trialId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ExperimentName",label:e.$t("trials:trials-list:table:experimentName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HeadPI",label:e.$t("trials:trials-list:form:pi"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:e.$t("trials:trials-list:form:indication"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityList",label:e.$t("trials:trials-list:form:modality"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ModalityList.toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialStatusStr",label:e.$t("trials:trials-list:table:status"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return["Initializing"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Ongoing"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Completed"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Stopped"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:trials-list:table:createDate"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"",width:"250",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:panel"],expression:"['trials:trials-list:panel']"}],attrs:{circle:"",icon:"el-icon-info",disabled:"Initializing"===t.row.TrialStatusStr&&!e.hasPermi(["role:pm"])||t.row.IsDeleted,title:e.$t("trials:trials-list:action:panel")},on:{click:function(i){return e.handleDetail(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:edit"],expression:"['trials:trials-list:edit']"}],attrs:{circle:"",icon:"el-icon-edit-outline",disabled:t.row.IsDeleted,title:e.$t("trials:trials-list:action:edit")},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:status"],expression:"['trials:trials-list:status']"}],attrs:{circle:"",icon:"el-icon-edit",disabled:t.row.IsDeleted,title:e.$t("trials:trials-list:action:status")},on:{click:function(i){return e.handleStatus(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:abolish"],expression:"['trials:trials-list:abolish']"}],attrs:{circle:"",icon:"el-icon-delete",disabled:t.row.IsDeleted||"Initializing"!==t.row.TrialStatusStr,title:e.$t("trials:trials-list:action:abolition")},on:{click:function(i){return e.handleAbandon(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("TrialForm",{attrs:{"trial-id":e.currentId},on:{getList:e.getList,closeDialog:e.closeDialog}})],1):e._e(),e._v(" "),e.statusVisible?i("el-dialog",{attrs:{visible:e.statusVisible,"close-on-click-modal":!1,title:e.$t("trials:trials-list:dialogTitle:changeStatus"),width:"700px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.statusVisible=t}}},[i("TrialStatusForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e()],2)},a=[],r=(i("ac6a"),i("db72")),o=i("3e42"),s=i("4360"),l=i("2f62"),c=i("e8ae"),u=i.n(c),d=i("6071"),f=i("333d"),h=i("ce7a"),p=i("038b"),m=function(){return{Code:"",CriterionIds:[],SponsorId:"",ReviewTypeIds:[],CROId:"",Expedited:"",Indication:"",Phase:"",ModalityIds:[],BeginDate:"",EndDate:"",AttendedReviewerType:"",ResearchProgramNo:"",ExperimentName:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},g={name:"Trials",components:{Pagination:f["default"],BaseContainer:d["default"],TrialForm:h["default"],TrialStatusForm:p["default"]},dicts:["ReadingStandard","ReviewType","ReadingType"],data:function(){var e=this;return{timeList:[],userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),selectArr:[],searchData:m(),list:[],listLoading:!1,total:0,isShow:!1,dialogVisible:!1,title:"",currentId:"",statusVisible:!1,currentRow:{},currentUser:zzSessionStorage.getItem("userName"),phaseOptions:[{value:"I"},{value:"II"},{value:"III"},{value:"IV"}],expeditedOption:this.$d.TrialExpeditedState,beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["sponsorList","croList"])),created:function(){this.initPage()},methods:{changeTimeList:function(){this.timeList?(this.searchData.BeginDate=this.timeList[0],this.searchData.EndDate=this.timeList[1]):(this.searchData.BeginDate=null,this.searchData.EndDate=null)},initPage:function(){this.getList(),s["a"].dispatch("global/getSponsorList"),s["a"].dispatch("global/getCROList")},getList:function(){var e=this;this.listLoading=!0,Object(o["Qd"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSelectSearch:function(){this.searchData.PageIndex=1,this.getList(),this.isShow=!1},handleReset:function(){this.searchData=m(),this.getList()},handleNew:function(){this.title=this.$t("trials:trials-list:dialogTitle:new"),this.currentId="",this.dialogVisible=!0},handleEdit:function(e){this.title=this.$t("trials:trials-list:dialogTitle:edit"),this.currentId=e.Id,this.dialogVisible=!0},closeDialog:function(){this.dialogVisible=!1},handleStatus:function(e){var t=this;"Initializing"===e.TrialStatusStr?(this.listLoading=!0,Object(o["oe"])(e.Id).then((function(i){t.listLoading=!1,i.Result?(t.currentRow=Object(r["a"])({},e),t.statusVisible=!0):t.$confirm(i.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}})})).catch((function(){t.listLoading=!1}))):(this.currentRow=Object(r["a"])({},e),this.statusVisible=!0)},closeStatusDialog:function(){this.statusVisible=!1},handleAbandon:function(e){var t=this;this.$confirm(this.$t("trials:trials-list:message:abolition"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.currentRow=Object(r["a"])({},e),t.abandonTrial()})).catch((function(){}))},abandonTrial:function(){var e=this;this.listLoading=!0,Object(o["h"])(this.currentRow.Id,!0).then((function(t){e.listLoading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("trials:trials-list:message:abolitionSuccessfully")))})).catch((function(){e.listLoading=!1}))},handleDetail:function(e){this.$router.push({path:"/trials/trials-panel?trialId=".concat(e.Id,"&trialCode=").concat(e.TrialCode,"&researchProgramNo=").concat(e.ResearchProgramNo)})},handleSelectChange:function(e){for(var t=[],i=0;i3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),e.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,"Trials.xlsx");else{var i=document.createElement("a"),n=URL.createObjectURL(t);i.href=n,i.download="Trials.xlsx",document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(n)}),0)}}))}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"9bd5":function(e,t,i){},"9bdb":function(e,t,i){var n=i("282b"),a=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(e,t){return a(this,e,t)}};e.exports=r},"9c12":function(e,t,i){var n=i("d3f4"),a=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&a(e)===e}},"9c1f":function(e,t,i){"use strict";i("a80d")},"9c2c":function(e,t,i){var n=i("401b"),a=n.min,r=n.max,o=n.scale,s=n.distance,l=n.add,c=n.clone,u=n.sub;function d(e,t,i,n){var d,f,h,p,m=[],g=[],v=[],b=[];if(n){h=[1/0,1/0],p=[-1/0,-1/0];for(var y=0,w=e.length;y=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{staticStyle:{"max-width":"300px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.auditState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.auditState>=2,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.auditState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.auditState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e()],1):e._e(),e._v(" "),e._l(e.question.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"audit-state":e.auditState,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),i("c5f6"),{name:"FormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},auditState:{type:Number,required:!0}},data:function(){return{}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("7acf"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"1f24eb5c",null);t["default"]=l.exports},"9ca8":function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("3842"),o=r.parsePercent,s=r.MAX_SAFE_INTEGER,l=i("f934"),c=i("55ac"),u=Math.max,d=Math.min,f=n.retrieve,h=n.each,p=["itemStyle","borderWidth"],m=["itemStyle","gapWidth"],g=["upperLabel","show"],v=["upperLabel","height"],b={seriesType:"treemap",reset:function(e,t,i,r){var s=i.getWidth(),u=i.getHeight(),d=e.option,p=l.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),m=d.size||[],g=o(f(p.width,m[0]),s),v=o(f(p.height,m[1]),u),b=r&&r.type,w=["treemapZoomToNode","treemapRootToNode"],_=c.retrieveTargetInfo(r,w,e),I="treemapRender"===b||"treemapMove"===b?r.rootRect:null,x=e.getViewRoot(),S=c.getPathToRoot(x);if("treemapMove"!==b){var T="treemapZoomToNode"===b?C(e,_,x,g,v):I?[I.width,I.height]:[g,v],D=d.sort;D&&"asc"!==D&&"desc"!==D&&(D="desc");var L={squareRatio:d.squareRatio,sort:D,leafDepth:d.leafDepth};x.hostTree.clearLayouts();var O={x:0,y:0,width:T[0],height:T[1],area:T[0]*T[1]};x.setLayout(O),y(x,L,!1,0);O=x.getLayout();h(S,(function(e,t){var i=(S[t+1]||x).getValue();e.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},O))}))}var $=e.getData().tree.root;$.setLayout(k(p,I,_),!0),e.setLayoutInfo(p),R($,new a(-p.x,-p.y,s,u),S,x,0)}};function y(e,t,i,n){var a,r;if(!e.isRemoved()){var o=e.getLayout();a=o.width,r=o.height;var s=e.getModel(),l=s.get(p),c=s.get(m)/2,f=D(s),h=Math.max(l,f),g=l-c,v=h-c;s=e.getModel();e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),a=u(a-2*g,0),r=u(r-g-v,0);var b=a*r,_=w(e,s,b,t,i,n);if(_.length){var I={x:g,y:v,width:a,height:r},x=d(a,r),C=1/0,k=[];k.area=0;for(var R=0,L=_.length;R=0;l--){var c=a["asc"===n?o-l-1:l].getValue();c/i*ts[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function S(e,t,i){for(var n,a=0,r=1/0,o=0,s=e.length;oa&&(a=n));var l=e.area*e.area,c=t*t*i;return l?u(c*a/l,l/(c*r)):1/0}function T(e,t,i,n,a){var r=t===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],c=i[s[r]],f=t?e.area/t:0;(a||f>i[l[o]])&&(f=i[l[o]]);for(var h=0,p=e.length;hs&&(u=s),o=r}u'});o.a.add(s);t["default"]=s},"9cc9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:subjectId")}},[i("el-input",{staticStyle:{width:"130px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:gender")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Sex,callback:function(t){e.$set(e.searchData,"Sex",t)},expression:"searchData.Sex"}},e._l(e.$d.Sex,(function(e){return i("el-option",{key:e.value,attrs:{value:e.label,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:status")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Status,callback:function(t){e.$set(e.searchData,"Status",t)},expression:"searchData.Status"}},e._l(e.$d.Subject_Visit_Status,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),e.visitPlanConfirmed?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:new"],expression:"['trials:trials-panel:subject:new']"}],staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"subjectList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:subject:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),e.otherInfo.IsSubjectSecondCodeView?i("el-table-column",{attrs:{prop:"MedicalNo",label:e.$t("trials:subject:table:medicalNo"),"show-overflow-tooltip":"",sortable:"custom"}}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"Age",label:e.$t("trials:subject:table:age"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sex",label:e.$t("trials:subject:table:gender"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:e.$t("trials:subject:table:status"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.Status?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("Subject_Visit_Status",t.row.Status)))]):e._e(),e._v(" "),2===t.row.Status?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("Subject_Visit_Status",t.row.Status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalVisitCount",label:e.$t("trials:subject:table:totalVisitCount"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TotalVisitCount>0&&(e.hasCrcRoute||e.hasQCRoute)?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleTotalVisitCount(t.row.Code)}}},[e._v("\n "+e._s(t.row.TotalVisitCount)+"\n ")]):i("span",[e._v(" "+e._s(t.row.TotalVisitCount))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestVisitName",label:e.$t("trials:subject:table:latestVisitName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:subject:edit","trials:trials-panel:subject:status","trials:trials-panel:subject:delete"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:edit"],expression:"['trials:trials-panel:subject:edit']"}],attrs:{circle:"",title:e.$t("trials:subject:action:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:status"],expression:"['trials:trials-panel:subject:status']"}],attrs:{circle:"",title:e.$t("trials:subject:action:status"),icon:"el-icon-edit"},on:{click:function(i){return e.handleEditStatus(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:delete"],expression:"['trials:trials-panel:subject:delete']"}],attrs:{circle:"",title:e.$t("trials:subject:action:delete"),icon:"el-icon-delete",disabled:t.row.StudyCount>0},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,3070414922)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("SubjectsForm",{attrs:{data:e.rowData,"other-info":e.otherInfo},on:{close:e.closeEditDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.statusVisible?i("el-dialog",{attrs:{visible:e.statusVisible,"close-on-click-modal":!1,title:e.$t("trials:subject:dialogTitle:editStatus"),width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.statusVisible=t}}},[i("SubjectStatusForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.MessageVisible?i("el-dialog",{attrs:{visible:e.MessageVisible,"close-on-click-modal":!1,title:e.$t("trials:subject:title:sendReport").replace("xxx",e.rowData.Code),width:"720px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.MessageVisible=t}}},[i("MessageTable",{attrs:{data:e.rowData},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=(i("7f7f"),i("7514"),i("3e42")),s=i("3f2a"),l=i("6071"),c=i("333d"),u=i("ebaf"),d=i("e054"),f=i("c611"),h=i("c1df"),p=i.n(h),m=function(){return{Code:"",Status:"",SiteId:"",ShortName:"",Sex:"",PageIndex:1,PageSize:20}},g={name:"SubjectList",components:{BaseContainer:l["default"],Pagination:c["default"],SubjectsForm:u["default"],SubjectStatusForm:d["default"],MessageTable:f["default"]},data:function(){return{moment:p.a,MessageVisible:!1,model_cfg:{visible:!1,showClose:!0,width:"700px",title:""},searchData:m(),loading:!1,list:[],total:0,siteOptions:[],visitPlanConfirmed:!1,rowData:{},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),otherInfo:{},editDialog:{title:"",visible:!1},statusVisible:!1,trialId:"",hasCrcRoute:!1,hasQCRoute:!1}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.subjectList.doLayout()}))}},mounted:function(){var e=this.$store.getters.routes.find((function(e){return"Trials"===e.name})),t=e.children.find((function(e){return"TrialsPanel"===e.name})).children;this.hasCrcRoute=this.hasRoute("crc-upload",t),this.hasQCRoute=this.hasRoute("qc-check",t),this.trialId=this.$route.query.trialId,this.getSite(),this.getList()},methods:{handleMessage:function(e){this.rowData=Object(r["a"])({},e),this.MessageVisible=!0},handleExport:function(){var e=this;Object(s["o"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.$route.query.trialId,Object(o["od"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo,e.visitPlanConfirmed=t.OtherInfo.VisitPlanConfirmed})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.editDialog.title=this.$t("common:button:new"),this.editDialog.visible=!0},handleEdit:function(e){this.rowData=e,this.editDialog.title=this.$t("trials:subject:dialogTitle:edit"),this.editDialog.visible=!0},closeEditDialog:function(){this.editDialog.visible=!1},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:subject:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["zb"])(t.trialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleAudit:function(e){var t=this.$router.resolve({path:"/audit",query:{Id:e.TrialId,Code:this.$route.query.trialCode,SubName:e.Name,SubId:e.Id,Type:2}});window.open(t.href,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleEditStatus:function(e){this.rowData=Object(r["a"])({},e),this.statusVisible=!0},closeStatusDialog:function(){this.statusVisible=!1},handleTotalVisitCount:function(e){this.hasCrcRoute?this.$router.push({path:"/trials/trials-panel/visit/crc-upload?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&subjectCode=").concat(e)}):this.hasQCRoute&&this.$router.push({path:"/trials/trials-panel/visit/qc-check?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&subjectCode=").concat(e)})},hasRoute:function(e,t){for(var i=0;i0&&(o=null===o?l:Math.min(o,l))}i[a]=o}}return i}function v(e){var t=g(e),i=[];return n.each(e,(function(e){var n,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(s[1]-s[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);n=c?u/p*c:u}else{var m=e.getData();n=Math.abs(s[1]-s[0])/m.count()}var g=r(e.get("barWidth"),n),v=r(e.get("barMaxWidth"),n),b=r(e.get("barMinWidth")||1,n),y=e.get("barGap"),w=e.get("barCategoryGap");i.push({bandWidth:n,barWidth:g,barMaxWidth:v,barMinWidth:b,barGap:y,barCategoryGap:w,axisKey:h(o),stackId:f(e)})})),b(i)}function b(e){var t={};n.each(e,(function(e,i){var n=e.axisKey,a=e.bandWidth,r=t[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;t[n]=r;var s=e.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;null!=d&&(r.gap=d);var f=e.barCategoryGap;null!=f&&(r.categoryGap=f)}));var i={};return n.each(t,(function(e,t){i[t]={};var a=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),l=r(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),n.each(a,(function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),i&&(n=Math.max(n,i)),e.width=n,c-=n+l*n,u--}else{var n=d;t&&tn&&(n=i),n!==d&&(e.width=n,c-=n+l*n,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var f,h=0;n.each(a,(function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)})),f&&(h-=f.width*l);var p=-h/2;n.each(a,(function(e,n){i[t][n]=i[t][n]||{bandWidth:o,offset:p,width:e.width},p+=e.width*(1+l)}))})),i}function y(e,t,i){if(e&&t){var n=e[h(t)];return null!=n&&null!=i&&(n=n[f(i)]),n}}function w(e,t){var i=m(e,t),a=v(i),r={},o={};n.each(i,(function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=f(e),c=a[h(n)][l],u=c.offset,d=c.width,p=i.getOtherAxis(n),m=e.get("barMinHeight")||0;r[l]=r[l]||[],o[l]=o[l]||[],t.setLayout({bandWidth:c.bandWidth,offset:u,size:d});for(var g=t.mapDimension(p.dim),v=t.mapDimension(n.dim),b=s(t,g),y=p.isHorizontal(),w=S(n,p,b),_=0,I=t.count();_=0?"p":"n",O=w;if(b&&(r[l][D]||(r[l][D]={p:w,n:w}),O=r[l][D][L]),y){var $=i.dataToPoint([R,D]);x=O,T=$[1]+u,C=$[0]-w,k=d,Math.abs(C)u||(f=u),{progress:h}}function h(e,t){var u,h=e.count,p=new d(2*h),m=new d(2*h),g=new d(h),v=[],b=[],y=0,w=0;while(null!=(u=e.next()))b[c]=t.get(o,u),b[1-c]=t.get(s,u),v=i.dataToPoint(b,null,v),m[y]=l?n.x+n.width:v[0],p[y++]=v[0],m[y]=l?v[1]:n.y+n.height,p[y++]=v[1],g[w++]=u;t.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:m,barWidth:f,valueAxisStart:S(a,r,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function I(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function x(e){return e.pipelineContext&&e.pipelineContext.large}function S(e,t,i){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=m,t.makeColumnLayout=v,t.retrieveColumnLayout=y,t.layout=w,t.largeLayout=_},"9d72":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionName,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[t.TrialReadingCriterionId===e.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskBlindName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:armEnum")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ArmEnum,callback:function(t){e.$set(e.searchData,"ArmEnum",t)},expression:"searchData.ArmEnum"}},e._l(e.$d.ArmEnum,(function(e){return i("el-option",{key:"ArmEnum"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:readingCategory")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditState,callback:function(t){e.$set(e.searchData,"AuditState",t)},expression:"searchData.AuditState"}},e._l(e.$d.MedicalReviewAuditState,(function(e){return i("el-option",{key:"AuditState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"mimMedicalAudit",refInFor:!0,attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:medicalFeedback:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:medicalFeedback:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:medicalFeedback:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName",label:e.$t("trials:medicalFeedback:table:taskName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:medicalFeedback:table:taskBlindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedback:table:readingCategory"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:medicalFeedback:table:taskState"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"Role",label:e.$t("trials:medicalFeedback:table:armEnum"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:medicalFeedback:table:reader"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:medicalFeedback:table:signTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:medicalFeedback:table:allocateTime"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsInvalid","min-width":"100",label:e.$t("trials:medicalFeedback:table:isInvalid"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsInvalid?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:medicalFeedback:table:auditState"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.AuditState?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),1===t.row.AuditState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),2===t.row.AuditState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditAdviceEnum",label:e.$t("trials:medicalFeedback:table:auditAdvice"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("AuditAdvice",t.row.AuditAdviceEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUserIdeaEnum",label:e.$t("trials:medicalFeedback:table:doctorUserIdea"),"min-width":"150",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditSignTime",label:e.$t("trials:medicalFeedback:table:auditSignTime"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AuditState<2?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:medicalFeedback:button:audit"),disabled:t.row.IsInvalid},on:{click:function(i){return e.handleAudit(t.row)}}}):e._e(),e._v(" "),2===t.row.AuditState?i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:medicalFeedback:table:view")},on:{click:function(i){return e.handleView(t.row)}}}):e._e(),e._v(" "),i("el-button",{attrs:{icon:"el-icon-chat-dot-round",circle:"",title:e.$t("trials:medicalFeedback:title:feedback"),disabled:!t.row.IsHaveQuestion||t.row.IsInvalid},on:{click:function(i){return e.handleReply(t.row)}}})]}}],null,!0)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):e._e()])})),1),e._v(" "),e.auditVisible?i("el-dialog",{attrs:{visible:e.auditVisible,"close-on-click-modal":!1,fullscreen:!0,title:e.$t("trials:medicalFeedback:title:mfDetail")},on:{"update:visible":function(t){e.auditVisible=t}}},[i("MedicalAudit",{attrs:{"visit-task-id":e.currentRow.VisitTaskId,"task-medical-review-id":e.currentRow.Id,"row-data":e.currentRow},on:{getList:e.getList,close:function(t){e.auditVisible=!1},nextTask:e.nextTask}})],1):e._e(),e._v(" "),e.chatForm.visible?i("el-dialog",{attrs:{visible:e.chatForm.visible,"close-on-click-modal":!1,width:"800px",title:e.chatForm.title,"append-to-body":""},on:{"update:visible":function(t){return e.$set(e.chatForm,"visible",t)}}},[i("ChatForm",{ref:"chatForm",attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId},on:{handleCloseReply:e.handleCloseReply}})],1):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:medicalFeedback:title:closeQc")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("CloseQC",{attrs:{"task-medical-review-id":e.currentRow.Id},on:{close:function(t){e.closeQuestionVisible=!1},refresh:e.refresh}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("5f87"),c=i("6071"),u=i("333d"),d=i("a93a"),f=i("3866"),h=i("0e69"),p=function(){return{PageIndex:1,PageSize:20,TrialId:"",SiteId:"",SubjectId:"",SubjectCode:"",TaskName:"",IsUrgent:null,DoctorUserId:"",ReadingCategory:null,ReadingTaskState:null,AuditState:null,TaskState:null}},m={name:"MIMMedicalAudit",components:{BaseContainer:c["default"],Pagination:u["default"],MedicalAudit:d["default"],ChatForm:f["default"],CloseQC:h["default"]},data:function(){return{list:[],total:0,loading:!1,siteOptions:[],doctorUserList:[],trialId:"",searchData:p(),auditVisible:!1,chatForm:{visible:!1,title:""},currentRow:{},otherInfo:{},isConfirmMedicineQuestion:!1,TrialReadingCriterionId:"0",trialCriterionList:[],closeQuestionVisible:!1}},watch:{TrialReadingCriterionId:function(e){this.getList()},list:function(){var e=this;this.$nextTick((function(){e.$refs.mimMedicalAudit[0].doLayout()}))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList(),this.getSite(),this.getDoctorUserSelectList()},methods:{refresh:function(){this.isClosedDialog=!0,this.$refs["chatForm"].getMessageList()},handleCloseReply:function(){this.closeQuestionVisible=!0},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["oc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},handleView:function(e){this.currentRow=Object(r["a"])({},e),this.auditVisible=!0,1===e.ReadingCategory&&this.handleViewReadingPage(e)},handleReply:function(e){this.currentRow=Object(r["a"])({},e),this.chatForm.title="".concat(this.$t("trials:medicalFeedback:title:qaRecord")," (").concat(e.SubjectCode," ").concat(e.TaskBlindName,")"),this.chatForm.visible=!0},handleAudit:function(e){this.otherInfo.IsConfirmMedicineQuestion?(this.currentRow=Object(r["a"])({},e),this.auditVisible=!0,1===e.ReadingCategory&&this.handleViewReadingPage(e)):this.$alert(this.$t("trials:medicalFeedback:message:confirmTemplate"),{callback:function(e){}})},handleViewReadingPage:function(e){var t=this.$route.query.trialId,i=Object(l["a"])(),n=e.VisitTaskId,a=e.CriterionType,r=e.ReadingTool;r=isNaN(parseInt(r))?null:parseInt(r);var o=e.IsReadingTaskViewInOrder,s=e.TrialReadingCriterionId,c="";c=0===r?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(n,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(a,"&readingTool=").concat(r,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(n,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(a,"&readingTool=").concat(r,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var u=this.$router.resolve({path:c});window.open(u.href,"_blank")},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.doctorUserList=t.Result}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},nextTask:function(e){var t=this;Object(o["tc"])({medicalReviewId:e}).then((function(e){t.auditVisible=!1,t.currentRow=e.Result,t.$nextTick((function(){t.auditVisible=!0}))})).catch((function(){t.auditVisible=!1}))}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"9e2e":function(e,t,i){var n=i("a73c"),a=i("9850"),r=i("82eb"),o=r.WILL_BE_RESTORED,s=new a,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){e.save();var r=this.transform;i.transformText?this.setTransform(e):r&&(s.copy(t),s.applyTransform(r),t=s),n.renderText(this,e,a,i,t,o),e.restore()}}};var c=l;e.exports=c},"9e47":function(e,t,i){var n=i("6d8b"),a=i("71ad"),r=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,c=i("8e43"),u=["value","category","time","log"];function d(e,t,i,o){n.each(u,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,a){var o=this.layoutMode,c=o?s(t):{},u=a.getTheme();n.merge(t,u.get(r+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),o&&l(t,c,o)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},a[r+"Axis"],o],!0)})})),r.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}e.exports=d},"9e69":function(e,t,i){var n=i("2b3e"),a=n.Symbol;e.exports=a},"9e87":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("50e5");n.registerAction("dataZoom",(function(e,t){var i=r.createLinkedNodesFinder(a.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),a.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},"9e95":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{attrs:{"before-leave":e.checkLeave},on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1)],1)],1)},a=[],r=(i("386d"),i("4917"),i("3b2b"),i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{active:"BasicInfo",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},mounted:function(){this.active=this.$route.query.tabActive,""===this.$route.query.Id&&"BasicInfo"!==this.active&&this.$router.push({path:"/ReviewersResearch"}),this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id");this.$router.push({path:"/ReviewersResearchForm?Id=".concat(i,"&tabActive=").concat(e.name,"&ReviewStatus=").concat(Object(m["b"])("ReviewStatus"))})},checkLeave:function(){var e=Object(m["b"])("Id");return!!e||(this.$message({message:"Please fill in the basic information first",type:"warning"}),!1)},getQueryString:function(e){console.log(window.location.href);var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!=i?unescape(i[2]):null}}},v=g,b=(i("5e36"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"96a3c784",null);t["default"]=y.exports},"9ed6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("div",{staticClass:"login-header"}),e._v(" "),n("div",{staticClass:"login-body"},[n("div",{staticClass:"login-l"},[n("div",{staticClass:"login-logo"},["zh"===e.language?n("img",{attrs:{src:i("95b1"),alt:""}}):n("img",{attrs:{src:i("052c"),alt:""}})]),e._v(" "),e._m(0)]),e._v(" "),n("div",{staticClass:"login-r"},[e._m(1),e._v(" "),n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[n("el-form-item",{attrs:{prop:"username",rules:[{required:!0,message:this.$t("login:formRule:userName"),trigger:"blur"}]}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),n("el-input",{ref:"username",attrs:{size:"small",placeholder:e.$t("login:form:userName"),name:"username",type:"text",tabindex:"1"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"password",rules:[{required:!0,message:this.$t("login:formRule:password"),trigger:"blur"}]}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),n("el-input",{key:e.passwordType,ref:"password",attrs:{size:"small",type:e.passwordType,placeholder:e.$t("login:form:password"),name:"password",tabindex:"2"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"10px"},attrs:{loading:e.loading,type:"primary",size:"medium"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("\n "+e._s(e.$t("login:button:login"))+"\n ")]),e._v(" "),n("div",{staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{type:"text",size:"medium"},nativeOn:{click:function(t){return t.preventDefault(),e.handleResetPwd(t)}}},[e._v("\n "+e._s(e.$t("login:button:forgetPassword"))+"\n ")])],1)],1)],1)]),e._v(" "),"zh"===e.language?n("div",{staticClass:"login-footer"},[n("span",[e._v("Copyright © 2023 武汉行藏科技有限公司 版权所有")]),e._v(" "),n("span",[e._v(" | ")]),e._v(" "),n("a",{on:{click:e.openAbout}},[n("span",{staticStyle:{color:"#00D1B2"}},[e._v("关于")])])]):e._e(),e._v(" "),e.aboutVisible?n("el-dialog",{staticStyle:{"margin-top":"0"},attrs:{visible:e.aboutVisible,width:"680px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.aboutVisible=t}}},[n("div",{staticStyle:{margin:"0 auto",width:"600px","line-height":"28px"}},[n("h1",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[e._v("关于")]),e._v(" "),n("p",[e._v("\n 产品名称:医学影像疗效智能评估系统软件\n ")]),e._v(" "),n("p",[e._v("\n 型号规格:V1.1\n ")]),e._v(" "),n("p",[e._v("\n 发布版本:V1.1.0.1\n ")]),e._v(" "),n("p",[e._v("\n 完整版本:V1.1.0.1\n ")]),e._v(" "),n("p",[e._v("\n 生产日期:2022-11-10\n ")]),e._v(" "),n("p",[e._v("\n 使用期限:10年\n ")]),e._v(" "),n("p",[e._v("\n 医疗器械注册证编号:ZC00001\n ")]),e._v(" "),n("p",[e._v("\n 医疗器械生产许可证编号:XK00001\n ")]),e._v(" "),n("p",[e._v("\n 注册人/生产企业名称:武汉行藏科技有限公司\n ")]),e._v(" "),n("p",[e._v("\n 住所:武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B5栋K409号\n ")]),e._v(" "),n("p",[e._v("\n 生产地址:武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B6栋C033C室\n ")]),e._v(" "),n("p",[e._v("\n 其他内容详见说明书\n ")])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.aboutVisible=!1}}},[e._v("关闭")])],1)]):e._e()],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-image"},[n("img",{attrs:{src:i("856c")}})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-container"},[i("div",{staticClass:"title"},[e._v("EI Image Viewer")])])}],r=(i("a481"),i("db72")),o=i("2f62"),s=i("8105"),l=(i("381b"),{name:"Login",components:{TopLang:s["default"]},data:function(){return{VUE_APP_OSS_CONFIG_REGION:"oss-cn-shanghai",aboutVisible:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,message:this.$t("login:formRule:userName"),trigger:"blur"},{max:20,message:this.$t("common:ruleMessage:maxLength")}],password:[{required:!0,message:this.$t("login:formRule:password"),trigger:"blur"},{max:20,message:this.$t("common:ruleMessage:maxLength")}]},loading:!1,passwordType:"password",loginType:null,location:null}},computed:Object(r["a"])({},Object(o["b"])(["asyncRoutes","routes","language"])),mounted:function(){this.loginType=this.$route.query.loginType,this.location=this.$route.query.location,zzSessionStorage.setItem("loginType",this.loginType),localStorage.setItem("location",this.location),"USA"===this.location?(this.$i18n.locale="en",this.setLanguage("en"),this.$updateDictionary()):(this.$i18n.locale="zh",this.setLanguage("zh"),this.$updateDictionary())},methods:Object(r["a"])(Object(r["a"])({},Object(o["c"])({setLanguage:"lang/setLanguage"})),{},{openAbout:function(){this.aboutVisible=!0},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.loginType=this.$route.query.loginType,this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){if(!t)return e.$message.success(e.$t("login:message:login1")),void setTimeout((function(){e.$router.push({path:"/recompose?userName=".concat(e.loginForm.username)})}),500);e.$store.dispatch("permission/generateRoutes").then((function(t){if(e.loading=!1,t&&t.length>0){if(e.$store.dispatch("global/getNoticeList"),e.$router.addRoutes(t),"DevOps"===e.loginType)return void e.$router.replace({path:t[0].path});if(e.hasPermi(["role:radmin"]))return void e.$router.replace({path:t[0].path});e.hasPermi(["role:air","role:rpm","role:rcrc","role:rir"])?e.$router.replace({path:"/trials/trials-list"}):e.$router.replace({path:"/trials"})}else e.$message.warning(e.$t("login:message:login2"))}))})).catch((function(){e.loading=!1}))}))},handleResetPwd:function(){this.$router.push({name:"Resetpassword"})}})}),c=l,u=(i("2017"),i("8fb6"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"6b0bc58a",null);t["default"]=d.exports},"9edc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"agreements-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.agreementList,"span-method":e.objectSpanMethod,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"Trial ID","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"File Type","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return["Statement of Work"==t.row.Type||"Acknowledgement of SOW"==t.row.Type||"Consultant Agreement"==t.row.Type?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")]):e._e()]}}])})],1)],1)},a=[],r=(i("55dd"),i("ac6a"),{props:{doctorInfo:{type:Object,default:function(){return{}}}},data:function(){return{agreementList:[],spanArr:[],pos:0}},created:function(){this.initAgreement()},methods:{initAgreement:function(){var e=this;this.doctorInfo.AttachmentList&&(this.doctorInfo.AttachmentList.forEach((function(t){"Consultant Agreement"===t.Type&&(t.TrialCode="",e.agreementList.push(t))})),this.doctorInfo.SowList.forEach((function(t){t.Type="Statement of Work",e.agreementList.push(t)})),this.doctorInfo.AckSowList.forEach((function(t){t.Type="Acknowledgement of SOW",e.agreementList.push(t)})),this.agreementList=this.agreementList.sort((function(e,t){return e.TrialCode0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t'});o.a.add(s);t["default"]=s},"9f51":function(e,t,i){var n=i("857d"),a=n.normalizeRadian,r=2*Math.PI;function o(e,t,i,n,o,s,l,c,u){if(0===l)return!1;var d=l;c-=e,u-=t;var f=Math.sqrt(c*c+u*u);if(f-d>i||f+do&&(o+=r);var p=Math.atan2(u,c);return p<0&&(p+=r),p>=n&&p<=o||p+r>=n&&p+r<=o}t.containStroke=o},"9f63":function(e,t,i){"use strict";i("afba")},"9f82":function(e,t,i){var n=i("ee1a"),a=n.isDimensionStacked,r=i("6d8b"),o=r.map;function s(e,t,i){var n,r=e.getBaseAxis(),s=e.getOtherAxis(r),c=l(s,i),u=r.dim,d=s.dim,f=t.mapDimension(d),h=t.mapDimension(u),p="x"===d||"radius"===d?1:0,m=o(e.dimensions,(function(e){return t.mapDimension(e)})),g=t.getCalculationInfo("stackResultDimension");return(n|=a(t,m[0]))&&(m[0]=g),(n|=a(t,m[1]))&&(m[1]=g),{dataDimsForPoint:m,valueStart:c,valueAxisDim:d,baseAxisDim:u,stacked:!!n,valueDim:f,baseDim:h,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var i=0,n=e.scale.getExtent();return"start"===t?i=n[0]:"end"===t?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function c(e,t,i,n){var a=NaN;e.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=i.get(e.baseDim,n),o[1-r]=a,t.dataToPoint(o)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=c},"9fa2":function(e,t,i){},"9fa3":function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("1687");function o(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}a.inherits(o,n),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,a,o=this.getDefs(!0),s=t[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var c=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var u=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),c.brush(s),s.transform=u}else c.brush(s);var d=this.getSvgElement(s);n.innerHTML="",n.appendChild(d.cloneNode()),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&a.each(e.__clipPaths,(function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)}))};var s=o;e.exports=s},a0121:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a015:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"consistency-list"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:consistencyCheck:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:checkState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CheckState,callback:function(t){e.$set(e.searchData,"CheckState",t)},expression:"searchData.CheckState"}},e._l(e.$d.CheckState,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(1)}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:export1"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(2)}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:export2"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:download"))+"\n ")])],1),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:upload"],expression:"['trials:trials-panel:visit:consistency-check:upload']"}],staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-upload2"},on:{click:e.handleOpenUploadDialog}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:upload"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"consistencyTable",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:consistencyCheck:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckChallengeState",label:e.$t("trials:consistencyCheck:table:checkChallengeState"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.CheckChallengeState?i("span",[e._v(" -- ")]):1===t.row.CheckChallengeState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(2===e.userTypeEnumInt?e.$fd("CheckChallengeState",1):e.$fd("CheckChallengeState",2))+"\n ")]):2===t.row.CheckChallengeState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(2===e.userTypeEnumInt?e.$fd("CheckChallengeState",2):e.$fd("CheckChallengeState",1))+"\n ")]):3===t.row.CheckChallengeState?i("el-tag",[e._v(e._s(e.$fd("CheckChallengeState",t.row.CheckChallengeState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:consistencyCheck:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:consistencyCheck:table:subjectId"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:consistencyCheck:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.VisitName))]),e._v(" "),t.row.IsCheckBack?i("span",{staticClass:"status-primary-circle"},[e._v("回")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalitys",label:e.$t("trials:consistencyCheck:table:modality"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.Modalitys))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:consistencyCheck:table:scanDate"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.LatestScanDate.split(" ")[0]))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestBackState",label:e.$t("trials:consistencyCheck:table:requestBackState"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.RequestBackState===0?i("span",[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===1?i("el-tag",[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===2?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===3?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckTime",label:e.$t("trials:consistencyCheck:table:checkTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckPassedTime",label:e.$t("trials:consistencyCheck:table:checkPassedTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckState",label:e.$t("trials:consistencyCheck:table:checkState"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.CheckState?i("span",[e._v(" -- ")]):9===t.row.CheckState||10===t.row.CheckState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("CheckState",t.row.CheckState)))]):11===t.row.CheckState?i("el-tag",[e._v(e._s(e.$fd("CheckState",t.row.CheckState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckResult",label:e.$t("trials:consistencyCheck:table:checkResult"),"show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:consistency-check:reply","trials:trials-panel:visit:consistency-check:apply-fallback","trials:trials-panel:visit:consistency-check:fallback","trials:trials-panel:visit:consistency-check:close","trials:trials-panel:visit:consistency-check:pass"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:reply"),disabled:t.row.CheckState<10,icon:"el-icon-chat-dot-square"},on:{click:function(i){return e.handleReply(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:close"],expression:"['trials:trials-panel:visit:consistency-check:close']"}],attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:close"),icon:"el-icon-close",disabled:0===t.row.CheckChallengeState||3===t.row.CheckChallengeState||1===t.row.RequestBackState},on:{click:function(i){return e.handleOpenReason(t.row,"close")}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:pass"],expression:"['trials:trials-panel:visit:consistency-check:pass']"}],attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:pass"),icon:"el-icon-circle-check",disabled:11===t.row.CheckState||1===t.row.CheckChallengeState||2===t.row.CheckChallengeState},on:{click:function(i){return e.handleOpenReason(t.row,"pass")}}})]}}],null,!1,958960547)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.chatVisible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:consistencyCheck:dialogTitle:qsContent")+"("+e.currentRow.SubjectCode+" "+e.currentRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("ConsistencyCheckForm",{ref:"chatForm",attrs:{data:e.currentRow,"is-reply":e.isReply,"dialog-list":e.currentDialogList},on:{close:function(t){e.chatVisible=!1},getDialogList:e.getDialogList,handleApplyBack:e.handleApplyBack,handleBack:e.handleBack}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.currentRow.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.ReasonVisible?i("el-dialog",{attrs:{visible:e.ReasonVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"pass"===e.currentRow.type?"750px":"600px",title:e.ReasonTitle},on:{"update:visible":function(t){e.ReasonVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.QuestionForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:label:"+e.currentRow.type+"Reason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{on:{change:e.typeChange},model:{value:e.QuestionForm.Type,callback:function(t){e.$set(e.QuestionForm,"Type",t)},expression:"QuestionForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason1")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason2")))]),e._v(" "),"pass"===e.currentRow.type?i("el-radio",{attrs:{label:3}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason3")))]):e._e(),e._v(" "),"pass"===e.currentRow.type?i("el-radio",{attrs:{label:4}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason4")))]):e._e()],1)],1),e._v(" "),"pass"===e.currentRow.type&&4===e.QuestionForm.Type||"pass"!==e.currentRow.type&&2===e.QuestionForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:"+e.currentRow.type+"reason"),prop:"Remake"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.QuestionForm.Remake,callback:function(t){e.$set(e.QuestionForm,"Remake",t)},expression:"QuestionForm.Remake"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReasonVisible=!1,e.QuestionForm={Type:null,Reason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.passOrCloes}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),i("base-model",{attrs:{config:e.upload_cfg}},[i("template",{slot:"dialog-body"},[i("UploadExcel",{on:{refreshTable:e.refreshTable}})],1)],2)],2)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("e56e"),l=i("3f2a"),c=i("9a3b"),u=i("6071"),d=i("7eeb"),f=i("cb7b"),h=i("7234"),p=i("179b"),m=i("333d"),g=i("7a9e"),v=function(){return{SiteId:"",SubjectInfo:"",VisitPlanArray:[],CheckState:null,PageIndex:1,PageSize:20}},b={name:"ConsistencyCheck",components:{BaseContainer:u["default"],Pagination:m["default"],ConsistencyCheckForm:f["default"],UploadExcel:h["default"],BaseModel:d["default"],SignForm:p["default"]},data:function(){return{QuestionForm:{Type:null,Reason:null,Remake:null},searchData:v(),ReasonVisible:!1,total:0,list:[],btnLoading:!1,loading:!1,chatVisible:!1,currentRow:{},currentDialogList:[],siteOptions:[],visitPlanOptions:[],userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),upload_cfg:{visible:!1,title:this.$t("trials:consistencyCheck:button:upload"),width:"500px",showClose:!0},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Remake:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},signVisible:!1,signType:0,currentUser:zzSessionStorage.getItem("userName"),OtherInfo:{},signCode:"",trialId:this.$route.query.trialId,isReply:!1,ReasonTitle:null}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{handleExport:function(e){var t=this;1===e?Object(l["d"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):Object(l["b"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1}))},typeChange:function(e){e===("pass"===this.currentRow.type?4:2)?(this.QuestionForm.Reason=null,this.QuestionForm.Remake=null):this.QuestionForm.Reason=this.$t("trials:check:radio:".concat(this.currentRow.type,"reason").concat(e))},passOrCloes:function(){"pass"===this.currentRow.type?this.pass():this.handleClose(this.currentRow)},handleOpenReason:function(e,t){this.ReasonTitle="pass"===t?this.$t("trials:consistencyCheck:dialogTitle:xfpassManually"):this.$t("trials:consistencyCheck:dialogTitle:xfclose"),this.currentRow=Object(r["a"])(Object(r["a"])({},e),{},{Reason:null}),this.currentRow.type=t,this.QuestionForm={Type:null,Reason:null,Remake:null},this.ReasonVisible=!0},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Ub"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.OtherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleReply:function(e){var t=this;this.loading=!0,Object(o["Sb"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(Object.assign(e,i.Result.SubjectVisitCheck),t.currentRow=Object(r["a"])({},e),t.currentDialogList=i.Result.DialogList,t.isReply=!0,t.chatVisible=!0)})).catch((function(){t.loading=!1}))},getDialogList:function(){var e=this;this.loading=!0,this.$refs["chatForm"].loading=!0,Object(o["Sb"])(this.currentRow.Id).then((function(t){if(e.loading=!1,t.IsSuccess){var i=e.list.findIndex((function(t){return t.Id===e.currentRow.Id}));i>-1&&(e.currentRow=Object.assign(e.list[i],t.Result.SubjectVisitCheck),e.currentDialogList=t.Result.DialogList,e.$refs["chatForm"].addMessage(t.Result.DialogList[t.Result.DialogList.length-1]))}})).catch((function(){e.loading=!1,e.$refs["chatForm"].loading=!1}))},handleBack:function(){this.signType=1;var e=g["default"].processSignature.DataFallback;this.signCode=e,this.signVisible=!0},pass:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.btnLoading=!0,4===e.QuestionForm.Type&&(e.QuestionForm.Reason="".concat(e.QuestionForm.Remake));var i={Id:e.currentRow.Id,ManualPassReason:e.QuestionForm.Reason};Object(o["He"])(e.trialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getList(),e.QuestionForm.Type=null,e.ReasonVisible=!1,e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},back:function(e){var t=this;this.loading=!0;var i={data:{id:this.currentRow.Id},signInfo:e};Object(c["b"])(i).then((function(i){t.loading=!1,e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),i.IsSuccess&&(t.getList(),t.chatVisible=!1,t.$message.success(t.$t("trials:consistencyCheck:message:fallbackSuccessfully")))})).catch((function(){t.loading=!1,e&&(t.$refs["signForm"].btnLoading=!1)}))},handleClose:function(e){var t=this;this.$refs.reasonForm.validate((function(i){if(i){var n=Object.assign({},e);n.CheckChallengeState=3,t.btnLoading=!0,2===t.QuestionForm.Type&&(t.QuestionForm.Reason="".concat(t.$t("trials:qcQuality:message:problemNotSolved"),"

    ").concat(t.$t("trials:consistencyCheck:title:note")).concat(t.QuestionForm.Remake));var a={SubjectVisitId:e.Id,CloseCheckChallenge:t.QuestionForm.Reason};Object(o["W"])(t.trialId,a).then((function(e){t.btnLoading=!1,e.IsSuccess&&(t.getList(),t.ReasonVisible=!1,t.QuestionForm.Type=null,t.$message.success(t.$t("trials:consistencyCheck:message:closedSuccessfully")))})).catch((function(){t.btnLoading=!1}))}}))},handleDownload:function(){var e=this;this.loading=!0,Object(s["a"])("VisitCheck_Template").then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},handleOpenUploadDialog:function(){this.upload_cfg.visible=!0},handleView:function(e){this.currentRow=Object(r["a"])({},e),this.isReply=!1,this.chatVisible=!0},handleApplyBack:function(){var e=this;this.$confirm(this.$t("trials:consistencyCheck:message:apply"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.apply()})).catch((function(){}))},apply:function(){var e=this;this.loading=!0,Object(o["T"])(this.trialId,this.currentRow.Id).then((function(t){e.loading=!1,t.IsSuccess&&e.getDialogList()})).catch((function(){e.loading=!1}))},closeSignDialog:function(e,t){e?1===this.signType&&this.back(t):this.signVisible=!1},handlePassCheck:function(e){this.signType=2,this.currentRow=Object(r["a"])({},e);var t=g["default"].processSignature.ConsistencyCheckPassed;this.signCode=t,this.signVisible=!0},handleReset:function(){var e=this;this.searchData=v(),this.getList(),this.$nextTick((function(){e.$refs.consistencyTable.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},refreshTable:function(){this.upload_cfg.visible=!1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))}}},y=b,w=(i("98cf"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},a016:function(e,t,i){var n=i("4f85"),a=i("e46b"),r=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=i("c4a3"),c=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){c.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this))},getInitialData:function(e,t){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),c=this.getData().getName(e),u="html"===n?"
    ":"\n";return s(""===c?this.name:c)+u+r.map(l,(function(t,i){var n=a.get(a.mapDimension(t.dim),e);return s(t.name+" : "+n)})).join(u)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(r.map(i.dimensions,(function(e){return t.mapDimension(e)})),e,!0),a=0,o=n.length;a0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0)}case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.$route.query.trialId,Object(o["v"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId};Object(o["Nd"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={ReadingQuestionCriterionTrialId:e.data.ReadingQuestionCriterionTrialId,id:e.data.Id};Object(o["Dd"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},parentQuestionChange:function(e,t){if(this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName))}else t.ParentTriggerValue="",t.GroupName=""},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"9bf14570",null);t["default"]=u.exports},a04ed:function(e,t,i){var n=i("6cb7");n.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a078:function(e,t,i){},a082:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"assign-site"},[i("div",{staticClass:"filter-box"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteId")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.TrialSiteCode,callback:function(t){e.$set(e.listQuery,"TrialSiteCode",t)},expression:"listQuery.TrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteAliasName")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.TrialSiteAliasName,callback:function(t){e.$set(e.listQuery,"TrialSiteAliasName",t)},expression:"listQuery.TrialSiteAliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:form:keyWord")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:e.$t("trials:sitesList:formPlaceholder:keyWord")},model:{value:e.listQuery.UserKeyInfo,callback:function(t){e.$set(e.listQuery,"UserKeyInfo",t)},expression:"listQuery.UserKeyInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:status")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.IsDeleted,callback:function(t){e.$set(e.listQuery,"IsDeleted",t)},expression:"listQuery.IsDeleted"}},e._l(e.$d.IsSiteDisable,(function(e){return i("el-option",{key:e.label,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:add-site"],expression:"['trials:trials-panel:setting:personnel-manage:add-site']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:0===e.list.length},on:{click:e.handleResearchListExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:sitesList:table:siteId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TrialSiteCode?i("span",[e._v(e._s(t.row.TrialSiteCode))]):i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#f44336","font-size":"14px"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Site",label:e.$t("trials:sitesList:table:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteAliasName",label:e.$t("trials:sitesList:table:siteAliasName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:sitesList:table:city"),sortable:"custom","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:sitesList:table:country"),"show-overflow-tooltip":"",sortable:"custom","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserNameList",label:e.$t("trials:sitesList:table:staff"),"show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.UserCount>0?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.getCrcList(t.row)}}},[e._v("\n "+e._s(t.row.UserNameList.length>0?t.row.UserNameList.join(", "):"")+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:sitesList:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsSiteDisable",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsSiteDisable",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:sitesList:table:timeAdded"),"show-overflow-tooltip":"",sortable:"","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:sitesList:table:timeDeleted"),"show-overflow-tooltip":"",sortable:"","min-width":"120"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:personnel-manage:edit-site","trials:trials-panel:setting:personnel-manage:remove-site"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:sitesList:action:assign"),icon:"el-icon-user",disabled:t.row.IsDeleted},on:{click:function(i){return e.getCrcList(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:edit-site"],expression:"['trials:trials-panel:setting:personnel-manage:edit-site']"}],attrs:{circle:"",title:e.$t("common:button:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}})]}}],null,!1,591792113)}):e._e()],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.site_model.visible?i("base-model",{attrs:{config:e.site_model}},[i("template",{slot:"dialog-body"},[i("SiteForm",{on:{closeDialog:e.closeSiteDialog}})],1)],2):e._e(),e._v(" "),e.crc_model.visible?i("base-model",{attrs:{config:e.crc_model}},[i("template",{slot:"dialog-body"},[i("CRCForm",{attrs:{"site-id":e.currentSiteId},on:{closeDialog:e.closeDialog}})],1)],2):e._e(),e._v(" "),e.edit_model.visible?i("base-model",{attrs:{config:e.edit_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"editForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteId"),prop:"TrialSiteCode"}},[i("el-input",{model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteName")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Site,callback:function(t){e.$set(e.form,"Site",t)},expression:"form.Site"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteAliasName"),prop:"TrialSiteAliasName"}},[i("el-input",{model:{value:e.form.TrialSiteAliasName,callback:function(t){e.$set(e.form,"TrialSiteAliasName",t)},expression:"form.TrialSiteAliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:city")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:country")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:status")}},[i("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{type:"primary",size:"small",disabled:e.saveBtnLoading},on:{click:function(t){e.edit_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",loading:e.saveBtnLoading},on:{click:e.handleUpdateSiteID}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e(),e._v(" "),e.status_model.visible?i("base-model",{attrs:{config:e.status_model}},[i("template",{slot:"dialog-body"},[i("span",[e._v(e._s(e.$t("trials:internalStaff:table:status"))+":")]),e._v(" "),i("el-radio-group",{model:{value:e.staffStatus,callback:function(t){e.staffStatus=t},expression:"staffStatus"}},e._l(e.$d.IsUserExitTrial,(function(t){return i("el-radio",{key:t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.status_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e(),e._v(" "),e.siteOfcrc_model.visible?i("base-model",{attrs:{config:e.siteOfcrc_model}},[i("template",{slot:"dialog-body"},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){e.crc_model.visible=!0}}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userListLoading,expression:"userListLoading"}],attrs:{data:e.userList,height:"400",size:"small"}},[i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:internalStaff:table:name"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:internalStaff:table:uid"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:internalStaff:table:userType"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:internalStaff:table:phone"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:internalStaff:table:email"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:internalStaff:table:organization"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:internalStaff:table:status"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}],null,!1,2183258100)}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:internalStaff:table:authorizationTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:internalStaff:table:disableTime"),"show-overflow-tooltip":"",sortable:"","min-width":"120"}}),e._v(" "),i("el-table-column",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{circle:"",title:e.$t("trials:internalStaff:action:status"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleStatus(t.row)}}})]}}],null,!1,3770016010)})],1)],1)],2):e._e()],1)},a=[],r=i("a8db"),o=(i("20d6"),i("db72")),s=(i("ac6a"),i("456d"),i("a481"),i("3e42")),l=i("333d"),c=i("dcaf"),u=i("435b"),d=i("7eeb"),f=i("c1df"),h=i.n(f),p=["SortField","Asc","PageIndex","PageSize"],m=function(){return{UserKeyInfo:"",TrialSiteCode:"",TrialSiteAliasName:"",IsDeleted:null,SortField:"TrialSiteCode",Asc:!0,PageIndex:1,PageSize:20}},g={name:"Participant",components:{Pagination:l["default"],SiteForm:c["default"],CRCForm:u["default"],BaseModel:d["default"]},data:function(){return{list:[],listQuery:m(),listLoading:!1,total:0,currentSiteId:"",site_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:assignSite"),width:"60%"},crc_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:assignStaff").replace("xxx",this.$route.query.trialCode),width:"60%"},edit_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:editSite"),width:"600px"},status_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:editStaffStauts"),width:"500px"},siteOfcrc_model:{visible:!1,title:"",width:"70%"},form:{TrialSiteCode:"",Site:"",City:"",Country:"",IsDeleted:!1},saveBtnLoading:!1,staffStatus:null,currentRow:{},btnLoading:!1,userListLoading:!1,userList:[],moment:h.a,rules:{TrialSiteCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100"),trigger:"blur"}],TrialSiteAliasName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(s["md"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.site_model.visible=!0},handleAssignCRC:function(e){if(e.TrialSiteCode){this.currentSiteId=e.SiteId;var t=this.$t("trials:sitesList:dialogTitle:assignStaff");console.log(t),this.crc_model.title=t.replace("xxx",this.$route.query.trialCode),this.crc_model.visible=!0}else this.$message.error(this.$t("trials:sitesList:message:setSiteId"))},handleEdit:function(e){Object.keys(e).length&&(this.form=Object(o["a"])({},e)),this.edit_model.visible=!0},handleUpdateSiteID:function(){var e=this;this.$refs["editForm"].validate((function(t){if(t){e.saveBtnLoading=!0;var i={trialId:e.trialId,id:e.form.Id,trialSiteCode:e.form.TrialSiteCode,trialSiteAliasName:e.form.TrialSiteAliasName,isDeleted:e.form.IsDeleted};Object(s["Hb"])(i).then((function(t){e.saveBtnLoading=!1,t.IsSuccess&&(e.edit_model.visible=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.getList())})).catch((function(){e.saveBtnLoading=!1}))}}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:sitesList:message:removeSite"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(s["Db"])(e.Id,t.trialId).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:sitesList:message:removedSuccessfully")))}))}))},handleStatus:function(e){var t=Object(o["a"])({},e),i=t.IsDeleted;this.currentRow=Object(o["a"])({},e),this.staffStatus=i,this.status_model.visible=!0},saveStatus:function(){var e=this;this.btnLoading=!0,Object(s["xb"])(this.currentRow.Id,this.trialId,this.staffStatus).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.status_model.visible=!1,e.getTrialSiteCRCList(),e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))},getCrcList:function(e){this.currentRow=Object(o["a"])({},e),this.currentSiteId=e.SiteId;var t=this.$t("trials:sitesList:dialogTitle:staff");this.siteOfcrc_model.title=t.replace("xxx",e.TrialSiteCode),this.siteOfcrc_model.visible=!0,this.getTrialSiteCRCList()},getTrialSiteCRCList:function(){var e=this;this.userListLoading=!0,Object(s["Xd"])(this.trialId,this.currentRow.SiteId).then((function(t){e.userListLoading=!1,e.userList=t.Result})).catch((function(){e.userListLoading=!1}))},handleResearchListExport:function(){var e=this;this.listQuery.TrialId=this.trialId,this.listLoading=!0;var t=Object(o["a"])({},this.listQuery),i=(t.SortField,t.Asc,t.PageIndex,t.PageSize,Object(r["a"])(t,p));Object(s["nf"])(Object(o["a"])({},i)).then((function(t){e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleResearchList:function(){this.$router.push({path:"/trials/trials-panel/attachments/site-research?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo)})},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=m(),this.getList()},closeDialog:function(e){this.crc_model.visible=!1,e&&(this.listQuery=m(),this.getList(),this.getTrialSiteCRCList())},closeSiteDialog:function(){this.site_model.visible=!1,this.listQuery=m(),this.getList()}}},v=g,b=(i("1d50"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},a088:function(e,t,i){"use strict";i("c553")},a0f4:function(e,t,i){"use strict";i("c6f7")},a15a:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("9850"),o=i("e86a"),s=o.calculateTextPosition,l=a.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+a,n+r),e.lineTo(i-a,n+r),e.closePath()}}),c=a.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+a,n),e.lineTo(i,n+r),e.lineTo(i-a,n),e.closePath()}}),u=a.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.x,n=t.y,a=t.width/5*3,r=Math.max(a,t.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,d=Math.sin(c),f=Math.cos(c),h=.6*o,p=.7*o;e.moveTo(i-u,l+s),e.arc(i,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(i+u-d*h,l+s+f*h,i,n-p,i,n),e.bezierCurveTo(i,n-p,i-u+d*h,l+s+f*h,i-u,l+s),e.closePath()}}),d=a.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.height,n=t.width,a=t.x,r=t.y,o=n/3*2;e.moveTo(a,r),e.lineTo(a+o,r+i),e.lineTo(a,r+i/4*3),e.lineTo(a-o,r+i),e.lineTo(a,r),e.closePath()}}),f={line:a.Line,rect:a.Rect,roundRect:a.Rect,square:a.Rect,circle:a.Circle,diamond:c,pin:u,arrow:d,triangle:l},h={line:function(e,t,i,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+i,a.y2=t+n/2},rect:function(e,t,i,n,a){a.x=e,a.y=t,a.width=i,a.height=n},roundRect:function(e,t,i,n,a){a.x=e,a.y=t,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(e,t,i,n,a){var r=Math.min(i,n);a.x=e,a.y=t,a.width=r,a.height=r},circle:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.r=Math.min(i,n)/2},diamond:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.width=i,a.height=n},pin:function(e,t,i,n,a){a.x=e+i/2,a.y=t+n/2,a.width=i,a.height=n},arrow:function(e,t,i,n,a){a.x=e+i/2,a.y=t+n/2,a.width=i,a.height=n},triangle:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.width=i,a.height=n}},p={};n.each(f,(function(e,t){p[t]=new e}));var m=a.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,i){var n=s(e,t,i),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===t.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(e,t,i){var n=t.symbolType;if("none"!==n){var a=p[n];a||(n="rect",a=p[n]),h[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,i)}}});function g(e,t){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=e:this.__isEmptyBrush?(i.stroke=e,i.fill=t||"#fff"):(i.fill&&(i.fill=e),i.stroke&&(i.stroke=e)),this.dirty(!1)}}function v(e,t,i,n,o,s,l){var c,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),c=0===e.indexOf("image://")?a.makeImage(e.slice(8),new r(t,i,n,o),l?"center":"cover"):0===e.indexOf("path://")?a.makePath(e.slice(7),{},new r(t,i,n,o),l?"center":"cover"):new m({shape:{symbolType:e,x:t,y:i,width:n,height:o}}),c.__isEmptyBrush=u,c.setColor=g,c.setColor(s),c}t.createSymbol=v},a17a:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a183:function(e,t,i){},a18f:function(e,t,i){var n=i("3a56"),a=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=a},a1d1:function(e,t,i){},a21d:function(e,t,i){},a22aa:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"qc-check-wrapper"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:dicomForward:tableon:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:forwardStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ForwardState,callback:function(t){e.$set(e.searchData,"ForwardState",t)},expression:"searchData.ForwardState"}},e._l(e.$d.ForwardStateEnum,(function(t){return 0!==t.value?i("el-option",{attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.loading||0===e.selectArr.length,type:"primary",icon:"el-icon-document-copy"},on:{click:e.handleBulkForward}},[e._v("\n "+e._s(e.$t("trials:dicomForward:action:forward"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"forwardList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:dicomForward:table:siteId"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:dicomForward:table:subjectId"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:dicomForward:tableon:visitName"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardState",label:e.$t("trials:dicomForward:table:forwardStatus"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.ForwardState===0?i("span",[e._v("--")]):1*t.row.ForwardState===14?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):1*t.row.ForwardState===15?i("el-tag",[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):1*t.row.ForwardState===16?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardUserName",label:e.$t("trials:dicomForward:table:forwardUser"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardTime",label:e.$t("trials:dicomForward:table:forwardTime"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:forward-list:forward"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:forward-list:forward"],expression:"['trials:trials-panel:visit:forward-list:forward']"}],attrs:{circle:"",title:e.$t("trials:dicomForward:action:forward"),icon:"el-icon-document-copy",disabled:15===t.row.ForwardState},on:{click:function(i){return e.handleForward(t.row)}}})]}}],null,!1,1732356025)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("3e42"),o=i("6071"),s=i("333d"),l=function(){return{SiteId:"",SubjectInfo:"",VisitPlanArray:[],ForwardState:null,PageIndex:1,PageSize:20}},c={name:"ForwardList",components:{BaseContainer:o["default"],Pagination:s["default"]},data:function(){return{searchData:l(),total:0,list:[],loading:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),userId:zzSessionStorage.getItem("userId"),siteOptions:[],visitPlanOptions:[],trialId:this.$route.query.trialId,selectArr:[]}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ec"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleForward:function(e){var t=this;this.$confirm(this.$t("trials:dicomForward:message:sureToForward"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.forward([e.Id])})).catch((function(){}))},handleBulkForward:function(){var e=this;this.$confirm(this.$t("trials:dicomForward:message:sureToForward"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.forward(e.selectArr)})).catch((function(){}))},forward:function(e){var t=this;this.loading=!0,Object(r["Kb"])(this.trialId,e).then((function(e){t.loading=!1,t.$message.success(t.$t("trials:dicomForward:message:forwardSuccessfully")),t.getList()})).catch((function(){t.loading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;i'});o.a.add(s);t["default"]=s},a29f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("el-tabs",{attrs:{"tab-position":"right",type:"card"}},e._l(e.fileList,(function(t){return i("el-tab-pane",{key:t.Id,attrs:{label:t.FileName}},[-1!==t.Type.indexOf("jpg")||-1!==t.Type.indexOf("png")?i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{frameborder:"0",src:t.FullFilePath,width:"100%"}}):-1!==t.Type.indexOf("pdf")?i("embed",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.FullFilePath}}):i("div",[e._v("\n 该文件不支持在线预览,可点击"),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.downLoadFile(t.FullFilePath)}}},[e._v("下载")]),e._v("原件\n ")],1)])})),1)],1)},a=[],r=(i("ac6a"),i("3e42")),o={name:"PreviewFiles",props:{noneDicomId:{type:String,required:!0}},data:function(){return{fileType:"",fileUrl:"",loading:!1,fileList:[]}},mounted:function(){this.getFileList()},methods:{getFileList:function(){var e=this;this.loading=!0,Object(r["wc"])(this.noneDicomId).then((function(t){e.fileList=t.Result,e.fileList.forEach((function(e){var t=e.FileName;e.Type=t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase()})),e.loading=!1})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")}}},s=o,l=(i("b708"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},a2bf:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-date",use:"icon-date-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},a2f6:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a31a:function(e,t,i){"use strict";i("de44")},a342:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:notice:table:notificationType")}},[i("el-select",{attrs:{clearable:"",size:"small"},model:{value:e.searchData.NoticeTypeEnum,callback:function(t){e.$set(e.searchData,"NoticeTypeEnum",t)},expression:"searchData.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:notice:table:notificationContent")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.NoticeContent,callback:function(t){e.$set(e.searchData,"NoticeContent",t)},expression:"searchData.NoticeContent"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeTypeEnum","min-width":"100",label:e.$t("trials:notice:table:notificationType"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum}))?e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeContent","min-width":"100",label:e.$t("trials:notice:table:notificationContent"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeStateEnum","min-width":"100",label:e.$t("trials:notice:table:notificationStatus"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:0===t.row.ActualNoticeStateEnum?"info":1===t.row.ActualNoticeStateEnum?"success":"error"}},[e._v("\n "+e._s(e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum}))?e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum})).label:"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PublishUserName","min-width":"100",label:e.$t("trials:notice:table:publisher"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PublishedTime","min-width":"100",label:e.$t("trials:notice:table:releaseTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDate","min-width":"100",label:e.$t("trials:notice:table:endTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName","min-width":"100",label:e.$t("trials:notice:table:appendix"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{staticStyle:{color:"#00D1B2"},attrs:{href:t.row.FullFilePath,target:"_blank"}},[e._v(e._s(t.row.FileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRead","min-width":"100",label:e.$t("trials:notice:table:isRead"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsRead?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsRead)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsRead)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:notice:action:detail"),icon:"el-icon-info"},on:{click:function(i){return e.showDetail(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("b1ef")),s=i("6071"),l=i("333d"),c=function(){return{NoticeContent:"",NoticeTypeEnum:null,NoticeLevelEnum:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:null,Asc:!0,PageIndex:1,PageSize:20}},u={name:"TrialsNotice",components:{BaseContainer:s["default"],Pagination:l["default"]},dicts:["NoteType","NoticeState","NoticeMode"],data:function(){return{searchData:c(),list:[],total:0,loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["g"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},showDetail:function(e){var t=this,i=this.dict.type.NoteType.find((function(t){return 1*t.raw.Code===e.NoticeTypeEnum}))?this.dict.type.NoteType.find((function(t){return 1*t.raw.Code===e.NoticeTypeEnum})).label:"";if(e.IsRead||1!==e.ActualNoticeStateEnum)this.$alert(e.NoticeContent,i,{showConfirmButton:!1});else{var n=this.$createElement;this.$msgbox({title:i,message:n("span",null,e.NoticeContent),beforeClose:function(i,n,a){"confirm"===i?(n.confirmButtonLoading=!0,Object(o["h"])(e.Id).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.IsSuccess){e.next=4;break}return e.next=3,t.$store.dispatch("global/getNoticeList");case 3:t.getList();case 4:n.confirmButtonLoading=!1,a();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.confirmButtonLoading=!1}))):a()}})}},downLoadFile:function(e){e&&window.open(e,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,"7cac6c64",null);t["default"]=h.exports},a34c:function(e,t,i){},a36b:function(e,t,i){e.exports=i.p+"static/img/404.a57b6f31.png"},a38d:function(e,t,i){var n=i("2306"),a=i("392f"),r=i("9680"),o=i("68ab"),s=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var i=t.segs,n=t.curveness;if(t.polyline)for(var a=0;a0){e.moveTo(i[a++],i[a++]);for(var o=1;o0){var d=(s+c)/2-(l-u)*n,f=(l+u)/2-(c-s)*n;e.quadraticCurveTo(d,f,c,u)}else e.lineTo(c,u)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l0)for(var u=n[l++],d=n[l++],f=1;f0){var m=(u+h)/2-(d-p)*a,g=(d+p)/2-(h-u)*a;if(o.containStroke(u,d,m,g,h,p))return s}else if(r.containStroke(u,d,h,p))return s;s++}return-1}});function l(){this.group=new n.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var i=new s;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("color");a&&e.setStyle("stroke",a),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)})))},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var u=l;e.exports=u},a44c:function(e,t,i){},a483:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"userForm",staticStyle:{width:"800px"},attrs:{size:"small",model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-card",{staticClass:"Basic",attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Basic Information")])]),e._v(" "),e.user.UserCode?i("el-form-item",{attrs:{label:"S/N: ",prop:"UserCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserCode,callback:function(t){e.$set(e.user,"UserCode",t)},expression:"user.UserCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"User ID: ",prop:"UserName"}},[i("el-input",{model:{value:e.user.UserName,callback:function(t){e.$set(e.user,"UserName",t)},expression:"user.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Surname: ",prop:"LastName"}},[i("el-input",{model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Given Name: ",prop:"FirstName"}},[i("el-input",{model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:"Gender: ",prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},[i("el-radio",{attrs:{label:1}},[e._v("Male")]),e._v(" "),i("el-radio",{attrs:{label:0}},[e._v("Female")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Email: ",prop:"EMail"}},[i("el-input",{model:{value:e.user.EMail,callback:function(t){e.$set(e.user,"EMail",t)},expression:"user.EMail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Phone: ",prop:"Phone"}},[i("el-input",{model:{value:e.user.Phone,callback:function(t){e.$set(e.user,"Phone",t)},expression:"user.Phone"}})],1),e._v(" "),1==e.type?i("el-form-item",{attrs:{label:"Disable:"}},[i("el-switch",{attrs:{"active-value":0,"inactive-value":1},model:{value:e.user.Status,callback:function(t){e.$set(e.user,"Status",t)},expression:"user.Status"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"User Type: ",prop:"UserTypeId"}},[i("el-select",{ref:"userType",staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"Please select",disabled:!1===e.user.CanEditUserType},model:{value:e.user.UserTypeId,callback:function(t){e.$set(e.user,"UserTypeId",t)},expression:"user.UserTypeId"}},e._l(e.userTypeOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.UserType,value:e.Id}})})),1)],1)],1),e._v(" "),i("el-card",{staticClass:"Affiliation",staticStyle:{"margin-top":"10px"},attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Affiliation")])]),e._v(" "),i("el-form-item",{attrs:{prop:"IsZhiZhun"}},[i("el-radio-group",{on:{change:e.OrgnizationTypeChanged},model:{value:e.user.IsZhiZhun,callback:function(t){e.$set(e.user,"IsZhiZhun",t)},expression:"user.IsZhiZhun"}},[i("el-radio",{attrs:{label:!0}},[e._v("Internal")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("External")])],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1===e.user.IsZhiZhun,expression:"user.IsZhiZhun === false"}],attrs:{label:"Organization Name: "}},[i("el-input",{model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Department: ",prop:"DepartmentName"}},[i("el-input",{model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Position: ",prop:"PositionName"}},[i("el-input",{model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{staticStyle:{margin:"10px 15px"},attrs:{type:"primary",size:"small",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("50fc"),o={name:"UserInfo",props:{userId:{type:String,default:""}},data:function(){return{user:{UserName:"",LastName:"",FirstName:"",Sex:"",EMail:"",Phone:"",UserTypeId:"",IsZhiZhun:"",OrganizationName:"",DepartmentName:"",PositionName:""},userFormRules:{UserName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UserTypeId:[{required:!0,message:"Please Select",trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:"Please Select",trigger:["blur","change"]}],OrganizationName:[{required:!0,message:"Please specify",trigger:"blur"}],LastName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],FirstName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Phone:[{max:20,min:7,message:"The length is 7 to 20",trigger:["blur"]}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:["blur"]},{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please specify",trigger:"blur"}],Status:[{required:!0,message:"Please specify",trigger:"blur"}],DepartmentName:[{max:50,message:"The maximum length is 50"}],PositionName:[{max:50,message:"The maximum length is 50"}]},userTypeOptions:[],isDisabled:!1,type:0}},created:function(){this.getUserTypeList(),""!==this.userId?(this.getUserInfo(),this.type=1):this.type=0},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.UserTypeEnum=i[0].UserTypeEnum),e.user.Id?Object(r["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success("Updated successfully")})).catch((function(){e.isDisabled=!1})):Object(r["c"])(e.user).then((function(t){e.isDisabled=!1,e.user.Id=t.Result.Id,e.user.UserCode=t.Result.UserCode,e.$emit("getUserId",t.Result.Id),e.$message.success("Added successfully"),e.$router.push({path:"/system/user/list"})})).catch((function(){e.isDisabled=!1}))}}))},getUserTypeList:function(){var e=this;Object(r["o"])(0).then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},getUserInfo:function(){var e=this;Object(r["l"])(this.userId).then((function(t){e.user=t.Result}))},OrgnizationTypeChanged:function(e){this.user.OrganizationName=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},a4b1:function(e,t,i){var n=i("3eba");i("00ba"),i("4d62");var a=i("98e7"),r=i("24b9"),o=i("d3f47");n.registerVisual(a("funnel")),n.registerLayout(r),n.registerProcessor(o("funnel"))},a4dc:function(e,t,i){},a4fe:function(e,t,i){var n=i("3eba"),a="\0_ec_interaction_mutex";function r(e,t,i){var n=l(e);n[t]=i}function o(e,t,i){var n=l(e),a=n[t];a===i&&(n[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[a]||(e[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=r,t.release=o,t.isTaken=s},a512:function(e,t,i){},a543:function(e,t,i){},a582:function(e,t,i){"use strict";i("8c11")},a588:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!0},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]},{trigger:["blur","change"],validator:e.limitInputValidator}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||9===t.QuestionMark},on:{input:function(i){return e.limitInput(i,t)},focus:function(i){e.focusQs=Object.assign({},t)},change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",disabled:!e.isBaseLineTask&&11===t.QuestionMark||(e.isBaseLineTask||2===e.lesionType)&&7===t.QuestionMark||!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask||t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask||t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("96cf"),i("3b8d")),o=(i("f576"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],lesionNameId:"",lesionOrganId:"",lesionLocId:"",originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",pictureBaseStr:"",digitPlaces:0,focusQs:null}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{limitInputValidator:function(e,t,i){this.focusQs&&!this.isBaseLineTask&&11===this.focusQs.QuestionMark&&parseInt(t)>parseInt(this.questionForm.BaseLineLesionNumber)?i(new Error(this.$t("trials:reading:pcwg:msg6")+this.questionForm.BaseLineLesionNumber)):i()},limitInput:function(e,t){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},initForm:function(){var e=this;console.log(this.lesionType),this.questions.forEach((function(t){var i=e.answers[t.Id];console.log(e.answers[t.Id]),t.DictionaryCode&&(i=e.answers[t.Id]?Number(e.answers[t.Id]):""),e.isBaseLineTask&&7===t.QuestionMark&&0===e.lesionType&&(i=0),e.isBaseLineTask&&7===t.QuestionMark&&1===e.lesionType&&(i=0),e.$set(e.questionForm,t.Id,i)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:"");var t=this.getQuestionVal(7),i=this.getQuestionVal(11),n=this.questions.findIndex((function(e){return 11===e.QuestionMark}));this.questionForm.RowId?n>-1?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(t))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"BaseLineLesionNumber",this.answers.BaseLineLesionNumber),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.lesionNameId=this.getQuestionId(4),this.lesionOrganId=this.getQuestionId(5),this.lesionLocId=this.getQuestionId(6),console.log(this.lesionNameId),console.log(this.lesionOrganId),console.log(this.lesionLocId),this.originalQuestionForm=Object(o["a"])({},this.questionForm),0===this.lesionType&&this.questionForm.MeasureData,this.questionForm.MeasureData?(console.log("this.questionForm.MeasureData",this.questionForm.MeasureData),"Bidirectional"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(1)):"Length"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(0)):(this.organList=[],this.getOrganInfoList())):(this.organList=[],this.getOrganInfoList()),this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.isRender=!0},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},handleLocation:function(){c["a"].$emit("imageLocation",this.questionForm)},getOrganInfoList:function(e){var t=this;return new Promise(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",t.visitTaskId);case 3:a=JSON.parse(sessionStorage.getItem("organList"))||[],r=a.findIndex((function(e){return e.LesionType===t.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(e))?t.organList=a:t.organList=a.filter((function(t){return t.IsLymphNodes===parseInt(e)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex};Object(s["tb"])(n).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i()}))}))},formItemChange:function(e,t){var i=this;if(11!==t.QuestionMark){if(console.log("question",t),8===t.QuestionMark&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(console.log("index",n),n>-1){var a=this.organList[n];t.RelationQuestions.map((function(e){console.log("qs",e);var t=a[e.DataTableColumn];i.$set(i.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])}else t.RelationQuestions.map((function(e){i.$set(i.questionForm,e.Id,"")}))}t.Id!==this.lesionOrganId&&t.Id!==this.lesionLocId||this.$set(this.questionForm,this.lesionNameId,"".concat(this.questionForm[this.lesionOrganId]," ").concat(this.questionForm[this.lesionLocId])),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0);var r=this.getQuestionVal(2);r=r?parseInt(r):null;var o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=Number(this.getQuestionVal(0)),c=Number(this.getQuestionVal(1)),u=Number(this.getQuestionVal(7)),d=Number(this.getQuestionVal(11));this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:c,lesionState:u,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,lesionNum:d,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm})}},setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){if(e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr=""),"Length"===e.type||"Bidirectional"===e.type){var a=t.questions.find((function(e){return 0===e.QuestionMark})),r="";"Length"===e.type?r=e.data.length?e.data.length.toFixed(2):"":"Bidirectional"===e.type&&(r=e.data.longestDiameter),t.$set(t.questionForm,a.Id,r);var o=t.questions.find((function(e){return 1===e.QuestionMark})),s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,o.Id,s)}"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};!1===e.isDicomReading?(t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId}):(t.$set(t.questionForm,"IsDicomReading",!0),e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,OrderMarkName:e.data.remark,frame:isNaN(parseInt(e.frame))?0:e.frame}),u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var d=t.getQuestionVal(2);d=d?parseInt(d):null;var f=t.getQuestionVal(8),h=t.getQuestionVal(6),p=Number(t.getQuestionVal(0)),m=Number(t.getQuestionVal(1)),g=Number(t.getQuestionVal(7)),v=Number(t.getQuestionVal(11));t.$emit("resetQuestions",{isLymphLesion:d,lesionPart:f,lesionOrgan:h,lesionShort:m,lesionLength:p,lesionState:g,lesionNum:v,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},uploadScreenshots:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s'});o.a.add(s);t["default"]=s},a654:function(e,t,i){"use strict";i("479b")},a666:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",c=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(e,t,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),(function(t,i){if(!isNaN(t)){var c=n.getItemLayout(i);if(c&&c.point){var f=c.point,h=c.offset,p=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:f[0]+9*h,cy:f[1],r:3},silent:!0,z2:8+(h?0:r.Z2_EMPHASIS_LIFT+1)});if(!h){var m=e.mainSeries.getData(),g=n.getName(i),v=m.indexOfName(g),b=n.getItemModel(i),y=b.getModel("label"),w=b.getModel("emphasis.label"),_=m.getItemGraphicEl(v),I=a.retrieve2(e.getFormattedLabel(v,"normal"),g),x=a.retrieve2(e.getFormattedLabel(v,"emphasis"),I),S=_[s],T=Math.random();if(!S){S=_[s]={};var C=a.curry(u,!0),k=a.curry(u,!1);_.on("mouseover",C).on("mouseout",k).on("emphasis",C).on("normal",k)}_[l]=T,a.extend(S,{recordVersion:T,circle:p,labelModel:y,hoverLabelModel:w,emphasisText:x,normalText:I}),d(S,!1)}o.add(p)}}}))}});function u(e){var t=this[s];t&&t.recordVersion===this[l]&&d(t,e)}function d(e,t){var i=e.circle,n=e.labelModel,a=e.hoverLabelModel,o=e.emphasisText,s=e.normalText;t?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=c},a685:function(e,t,i){},a6a8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"hot-keys-container"},e._l(e.hotKeyList,(function(t,n){return i("div",{key:t.tag+"_"+n,staticClass:"wrapper"},[[i("div",{staticClass:"hot-keys-label"},[e._v(e._s(e.$fd("ShortcutKey",t.label)))]),e._v(" "),i("HotkeyInput",{staticClass:"hotkey",staticStyle:{width:"170px"},attrs:{hotkey:e.hotKeyList[n].keys,verify:e.handleHotkeyVerify,"hotkey-id":e.hotKeyList[n].id,placeholder:"请输入按键"},on:{"update:hotkey":function(t){return e.$set(e.hotKeyList[n],"keys",t)}}})]],2)})),0),e._v(" "),e.hotKeyList.length>0?i("div",{staticStyle:{"text-align":"right",width:"680px"}},[i("el-button",{attrs:{size:"small"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.$t("common:button:save")))])],1):e._e()])],2)},a=[],r=i("2d63"),o=(i("ac6a"),i("c5f6"),i("c24f")),s=i("6071"),l=i("e229"),c={name:"HotKeysListApp",components:{BaseContainer:s["default"],HotkeyInput:l["default"]},props:{readingTool:{type:Number,required:!0}},data:function(){return{hotKeyList:[],loading:!1}},watch:{hotKeyList:{handler:function(e){},immediate:!0}},mounted:function(){this.getHotkeys()},methods:{getHotkeys:function(){var e=this;this.loading=!0,this.hotKeyList=[],Object(o["c"])({imageToolType:this.readingTool}).then((function(t){t.Result.map((function(t){e.hotKeyList.push({id:t.Id,keys:{controlKey:{altKey:t.AltKey,ctrlKey:t.CtrlKey,shiftKey:t.ShiftKey,metaKey:t.MetaKey,key:t.Keyboardkey,code:t.Code},text:t.Text},label:t.ShortcutKeyEnum})})),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.loading=!0;var t={imageToolType:this.readingTool,shortcutKeyList:[]},i=[];this.hotKeyList.map((function(e){i.push({shortcutKeyEnum:e.label,keyboardkey:e.keys.controlKey.key,code:e.keys.controlKey.code,text:e.keys.text,altKey:e.keys.controlKey.altKey,ctrlKey:e.keys.controlKey.ctrlKey,shiftKey:e.keys.controlKey.shiftKey,metaKey:e.keys.controlKey.metaKey})})),t.shortcutKeyList=i,Object(o["h"])(t).then((function(t){console.log(t),e.loading=!1})).catch((function(){e.loading=!1}))},handleReset:function(){var e=this;this.$confirm("是否确认重置?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["g"])({imageToolType:e.readingTool}).then((function(t){e.$message.success("重置成功!"),e.getHotkeys()})).catch((function(){e.loading=!1}))})).catch((function(e){}))},handleHotkeyVerify:function(e){var t,i=Object(r["a"])(this.hotKeyList);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.keys.text===e.text&&n.id!==e.id)return this.$notify({title:"提示",message:"此快捷键已被“".concat(this.$fd("ShortcutKey",n.label),"”绑定"),type:"warning"}),!1}}catch(a){i.e(a)}finally{i.f()}return!0}}},u=c,d=(i("8eb4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},a6dc:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return o}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Menu/addOrUpdateMenu",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Menu/getMenuList",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/Menu/deleteMenu/".concat(e),method:"delete"})}},a723:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.enrollStats_form,"search-handle":e.enrollStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"hospitalSlot"},[i("el-select",{staticStyle:{width:"130px"},attrs:{placeholder:"Hospital",clearable:""},model:{value:e.searchData.HospitalId,callback:function(t){e.$set(e.searchData,"HospitalId",t)},expression:"searchData.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"enrollmentStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",sortable:"custom",label:"Hospital","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID","min-width":"70","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Pending",label:"Pending","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:"Approved","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:"Reading","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Finished",label:"Finished","min-width":"110","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Total",label:"Total","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EntryRate",label:"Entry Rate","min-width":"110","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EntryRate)+"%")]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("48fb"),s=i("0340"),l=i("2f62"),c=i("4360"),u=i("fe09"),d=i("333d"),f=i("f36a"),h=i("d13d"),p=function(){return{HospitalId:"",Reviewer:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM"),PageIndex:1,PageSize:20}},m={components:{Pagination:d["default"],BoxContent:f["default"],SearchForm:h["default"]},data:function(){var e=this;return{list:[],searchData:p(),enrollStats_form:u["a"],enrollStats_handle:u["b"],total:0,listLoading:!1,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["hospitalList"])),created:function(){c["a"].dispatch("global/getHospital")},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["a"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i-1}));f.forEach((function(e){e.Index=d++,e.Rate=e.EntryRate/100,r+=e.Pending,o+=e.Approved,l+=e.Reading,c+=e.Finished,u+=e.Total}));var h=["","Total","","","","",r,o,l,c,u,(l+c)/u],p=[{colIndex:12,format:"0.00%"}];Object(s["a"])(t,i,"Enrollments Statistics",n,a,f,h,p)}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},a73c:function(e,t,i){var n=i("6d8b"),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,c=n.isObject,u=i("e86a"),d=i("5693"),f=i("5e76"),h=i("7d6d"),p=i("82eb"),m=p.ContextCachedBy,g=p.WILL_BE_RESTORED,v=u.DEFAULT_FONT,b={left:1,right:1,center:1},y={top:1,bottom:1,middle:1},w=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],_={},I={};function x(e){return S(e),o(e.rich,S),e}function S(e){if(e){e.font=u.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||b[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||y[i]?i:"top";var n=e.textPadding;n&&(e.textPadding=s(e.textPadding))}}function T(e,t,i,n,a,r){n.rich?k(e,t,i,n,a,r):C(e,t,i,n,a,r)}function C(e,t,i,n,a,r){"use strict";var o,s=O(n),l=!1,c=t.__attrCachedBy===m.PLAIN_TEXT;r!==g?(r&&(o=r.style,l=!s&&c&&o),t.__attrCachedBy=s?m.NONE:m.PLAIN_TEXT):c&&(t.__attrCachedBy=m.NONE);var d=n.font||v;l&&d===(o.font||v)||(t.font=d);var f=e.__computedFont;e.__styleFont!==d&&(e.__styleFont=d,f=e.__computedFont=t.font);var p=n.textPadding,b=n.textLineHeight,y=e.__textCotentBlock;y&&!e.__dirtyText||(y=e.__textCotentBlock=u.parsePlainText(i,f,p,b,n.truncate));var _=y.outerHeight,x=y.lines,S=y.lineHeight,T=A(I,e,n,a),C=T.baseX,k=T.baseY,R=T.textAlign||"left",L=T.textVerticalAlign;D(t,n,a,C,k);var N=u.adjustTextY(k,_,L),P=C,F=N;if(s||p){var V=u.getWidth(i,f),q=V;p&&(q+=p[1]+p[3]);var z=u.adjustTextX(C,q,R);s&&$(e,t,n,z,N,q,_),p&&(P=j(C,R,p),F+=p[0])}t.textAlign=R,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var B=0;B=0&&(_=S[E],"right"===_.textAlign))L(e,t,_,n,C,b,P,"right"),k-=_.width,P-=_.width,E--;N+=(r-(N-v)-(y-P)-k)/2;while(R<=E)_=S[R],L(e,t,_,n,C,b,N+_.width/2,"center"),N+=_.width,R++;b+=C}}function D(e,t,i,n,a){if(i&&t.textRotation){var r=t.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),e.translate(n,a),e.rotate(-t.textRotation),e.translate(-n,-a)}}function L(e,t,i,n,o,s,l,c){var u=n.rich[i.styleName]||{};u.text=i.text;var d=i.textVerticalAlign,f=s+o/2;"top"===d?f=s+i.height/2:"bottom"===d&&(f=s+o-i.height/2),!i.isLineHolder&&O(u)&&$(e,t,u,"right"===c?l-i.width:"center"===c?l-i.width/2:l,f-i.height/2,i.width,i.height);var h=i.textPadding;h&&(l=j(l,c,h),f-=i.height/2-h[2]-i.textHeight/2),P(t,"shadowBlur",r(u.textShadowBlur,n.textShadowBlur,0)),P(t,"shadowColor",u.textShadowColor||n.textShadowColor||"transparent"),P(t,"shadowOffsetX",r(u.textShadowOffsetX,n.textShadowOffsetX,0)),P(t,"shadowOffsetY",r(u.textShadowOffsetY,n.textShadowOffsetY,0)),P(t,"textAlign",c),P(t,"textBaseline","middle"),P(t,"font",i.font||v);var p=E(u.textStroke||n.textStroke,g),m=M(u.textFill||n.textFill),g=a(u.textStrokeWidth,n.textStrokeWidth);p&&(P(t,"lineWidth",g),P(t,"strokeStyle",p),t.strokeText(i.text,l,f)),m&&(P(t,"fillStyle",m),t.fillText(i.text,l,f))}function O(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function $(e,t,i,n,a,r,o){var s=i.textBackgroundColor,u=i.textBorderWidth,h=i.textBorderColor,p=l(s);if(P(t,"shadowBlur",i.textBoxShadowBlur||0),P(t,"shadowColor",i.textBoxShadowColor||"transparent"),P(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),P(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||u&&h){t.beginPath();var m=i.textBorderRadius;m?d.buildPath(t,{x:n,y:a,width:r,height:o,r:m}):t.rect(n,a,r,o),t.closePath()}if(p)if(P(t,"fillStyle",s),null!=i.fillOpacity){var g=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=g}else t.fill();else if(c(s)){var v=s.image;v=f.createOrUpdateImage(v,null,e,N,s),v&&f.isImageReady(v)&&t.drawImage(v,n,a,r,o)}if(u&&h)if(P(t,"lineWidth",u),P(t,"strokeStyle",h),null!=i.strokeOpacity){g=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=g}else t.stroke()}function N(e,t){t.image=e}function A(e,t,i,n){var a=i.x||0,r=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)a=n.x+F(l[0],n.width),r=n.y+F(l[1],n.height);else{var c=t&&t.calculateTextPosition?t.calculateTextPosition(_,i,n):u.calculateTextPosition(_,i,n);a=c.x,r=c.y,o=o||c.textAlign,s=s||c.textVerticalAlign}var d=i.textOffset;d&&(a+=d[0],r+=d[1])}return e=e||{},e.baseX=a,e.baseY=r,e.textAlign=o,e.textVerticalAlign=s,e}function P(e,t,i){return e[t]=h(e,t,i),e[t]}function E(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function M(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function F(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function j(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function V(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=x,t.renderText=T,t.getBoxPosition=A,t.getStroke=E,t.getFill=M,t.parsePercent=F,t.needDrawText=V},a73c1:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.form,size:"small",rules:e.rules,disabled:"look"===e.type,"label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"问题类型",prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(t){return"calculation"!==t.value&&"increment"!==t.value?i("el-option",{key:t.value,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称",prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称(En)",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否复制前值"}},[i("el-switch",{model:{value:e.form.IsCopy,callback:function(t){e.$set(e.form,"IsCopy",t)},expression:"form.IsCopy"}})],1),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return 3!==t.value?i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.ValueType?i("el-form-item",{attrs:{label:"修约小数位",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-input",{attrs:{value:e.$fd("DigitPlaces",e.digitPlaces).toString(),disabled:!0}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:"单位",prop:"Unit",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&4===e.form.Unit?i("el-form-item",{attrs:{label:"自定义单位",prop:"CustomUnit",rules:[{required:!0,message:"请选择"}]}},[i("el-input",{model:{value:e.form.CustomUnit,callback:function(t){e.$set(e.form,"CustomUnit",t)},expression:"form.CustomUnit"}})],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.DataSource?i("div",{staticStyle:{background:"#f8f8f8",padding:"10px 0px","border-radius":"10px",position:"relative","margin-bottom":"10px"}},[i("el-form-item",{attrs:{label:"运算类型",prop:"CustomCalculateMark"}},[i("el-radio-group",{staticStyle:{"line-height":"40px"},on:{change:function(t){return e.CustomCalculateMarkChange(t)}},model:{value:e.form.CustomCalculateMark,callback:function(t){e.$set(e.form,"CustomCalculateMark",t)},expression:"form.CustomCalculateMark"}},e._l(e.$d.CustomCalculateMark,(function(t){return t.value<=4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1),e._v(" "),i("el-table",{staticStyle:{margin:"10px",width:"calc(100% - 20px)"},attrs:{data:e.form.CalculateQuestions,size:"small"}},[i("el-table-column",{attrs:{label:"序号","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,896436857)}),e._v(" "),i("el-table-column",{attrs:{label:"运算符号","show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.$index&&[1,2,3,4].includes(e.form.CustomCalculateMark)?null:e.$fd("CustomCalculateMark",e.form.CustomCalculateMark))+"\n ")]}}],null,!1,2919079095)}),e._v(" "),i("el-table-column",{attrs:{label:"问题名称",prop:"TableQuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsTable?e._e():i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(e.Questions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1),e._v(" "),t.row.IsTable?i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(t.row.QuestionId?e.tableQuestions.find((function(e){return e.QuestionId===t.row.QuestionId})).TableQuestions:[],(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1):e._e()]}}],null,!1,3464464953)}),e._v(" "),e.form.CustomCalculateMark<=4?i("el-table-column",{attrs:{label:"操作",prop:"TableQuestionId","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-plus",size:"mini",circle:"",title:"添加"},on:{click:function(i){return e.addCustomCalculateMark(t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-minus",size:"mini",circle:"",disabled:e.form.CalculateQuestions.length<=2,title:"删除"},on:{click:function(i){return e.deleteCustomCalculateMark(t.$index)}}})]}}],null,!1,27234887)}):e._e()],1),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#666",padding:"0 15px 0","text-align":"right"}},[i("i",{staticClass:"el-icon-info"}),e._v(e._s([1,2,3,4].includes(e.form.CustomCalculateMark)?"请选择同级问题!":"请选择表格问题下的子问题!")+"\n ")])],1):e._e(),e._v(" "),"select"!==e.form.Type&&"radio"!==e.form.Type&&"input"!==e.form.Type||!e.isFromSystem?e._e():i("el-form-item",{attrs:{label:"选项类型",prop:"TableQuestionType",rules:[{required:"input"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.tableQuestionTypeChange(t,e.form)}},model:{value:e.form.TableQuestionType,callback:function(t){e.$set(e.form,"TableQuestionType",t)},expression:"form.TableQuestionType"}},e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value,disabled:"radio"===e.form.Type&&(1===t.value||2===t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.isFromSystem&&3!==e.form.TableQuestionType||"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type?e._e():i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1),e._v(" "),2===e.form.TableQuestionType&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联问题",prop:"DependParentId"}},[i("el-select",{model:{value:e.form.DependParentId,callback:function(t){e.$set(e.form,"DependParentId",t)},expression:"form.DependParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"DependParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),1===e.form.TableQuestionType||e.form.DependParentId&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字段",prop:"DataTableColumn"}},[i("el-select",{model:{value:e.form.DataTableColumn,callback:function(t){e.$set(e.form,"DataTableColumn",t)},expression:"form.DataTableColumn"}},e._l(e.$d.OrganColumn,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),3===e.form.TableQuestionType||2===e.form.TableQuestionType&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode",rules:[{required:3===e.form.TableQuestionType,message:"请选择",trigger:"blur"}]}},[i("el-select",{model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.ParentTriggerValueList,callback:function(t){e.$set(e.form,"ParentTriggerValueList",t)},expression:"form.ParentTriggerValueList"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.RelevanceValueList,callback:function(t){e.$set(e.form,"RelevanceValueList",t)},expression:"form.RelevanceValueList"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"重复出现最大次数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,max:10},model:{value:e.form.MaxRowCount,callback:function(t){e.$set(e.form,"MaxRowCount",t)},expression:"form.MaxRowCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),"look"!==e.type?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()])},a=[],r=i("75fc"),o=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("c5f6"),i("3e42")),l=i("e56e"),c={name:"AddOrUpdateTableQs",props:{isFromSystem:{type:Boolean,required:!0},digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},data:{type:Object,default:function(){return{}}},readingQuestionId:{type:String,required:!0},criterionId:{type:String,required:!0},type:{type:String,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{form:{Id:"",ReadingQuestionId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ParentId:"",ParentTriggerValueList:[],ShowOrder:0,ShowQuestion:0,IsRequired:0,Remark:"",RelevanceId:"",RelevanceValueList:[],DataTableName:"",DataTableColumn:"",DictionaryCode:"",TableQuestionType:null,MaxRowCount:null,DependParentId:"",QuestionMark:null,CalculateQuestions:[],CustomCalculateMark:"",DataSource:0,GlobalReadingShowType:3,CustomUnit:null,ValueType:null,Unit:null,LimitEdit:0,DefaultValue:null,IsCopy:!1},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"最大长度为 200"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValueList:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValueList:[{required:!0,message:"请选择",trigger:"blur"}],DataTableName:[{required:!0,message:"请选择",trigger:"blur"}],DataTableColumn:[{required:!0,message:"请选择",trigger:"blur"}],DependParentId:[{required:!0,message:"请选择",trigger:"blur"}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],tblOptions:[],colOptions:[],dicList:[],Questions:[],tableQuestions:[],LimitEdit:0}},mounted:function(){this.initForm(),this.getCalculateTableQuestions("number"),this.getCalculateTableQuestions("table")},methods:{deleteCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e,1)},addCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e+1,0,{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null})},CustomCalculateMarkChange:function(){this.form.CustomCalculateMark<=4?this.form.CalculateQuestions=[{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null},{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null}]:this.form.CalculateQuestions=[{IsTable:!0,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null}]},getCalculateTableQuestions:function(e){var t=this;Object(s["Rb"])({QuestionId:this.readingQuestionId,type:e}).then((function(i){"table"===e?t.tableQuestions=i.Result:t.Questions=i.Result}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getParentQuestions();case 2:if(Object.keys(this.data).length>0){for(t in this.form)"CalculateQuestions"===t?(this.form[t]=JSON.parse(this.data[t]),console.log("CalculateQuestions",this.form[t])):this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))),this.form.RelevanceId&&(n=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==n&&(this.reParentTriggerValOptions=this.parentOptions[n].TypeValue.split("|")))}this.data.ShowOrder||this.list.length>0&&(a=this.list.map((function(e){return e.ShowOrder})),this.form.ShowOrder=Math.max.apply(Math,Object(r["a"])(a))+1);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getBasicConfigSelect:function(){var e=this;Object(l["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},save:function(){var e=this;this.$refs.tableQsForm.validate((function(t){if(t){e.loading=!0;var i=Object.assign({},e.form);i.ReadingQuestionId=e.readingQuestionId,i.TrialCriterionId=e.criterionId,i.CalculateQuestions=JSON.stringify(e.form.CalculateQuestions),Object(s["x"])(i).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))}}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionId:e.readingQuestionId,id:e.data.Id};Object(s["ad"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},isShowQuestionChange:function(e,t){"table"!==this.form.Type&&(2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):1===e?(t.ParentId="",t.ParentTriggerValueList=[],t.GroupName="",this.isParentExistGroup=!0):0===e&&(t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1))},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValueList=[])},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValueList=[]},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.reParentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.RelevanceValueList=[]},tableQuestionTypeChange:function(e,t){this.form.DictionaryCode="",this.form.DataTableColumn="",this.form.DataTableName="",this.form.DependParentId="",this.form.TypeValue=""},dataTableNameChange:function(e,t){if(e){var i=this.tblOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.colOptions=this.tblOptions[i].Columns)}t.DataTableColumn=""},qsTypeChange:function(e,t){t.TypeValue="",t.TableQuestionType=null,t.DependParentId="",t.DataTableColumn="",t.DataTableName="",t.DictionaryCode=""},close:function(){this.$emit("close")}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"8a55943a",null);t["default"]=f.exports},a753:function(e,t,i){var n=i("1f0e"),a=i("2306"),r=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,c=o.linearMap;function u(e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight(),r=Math.min(n,a),o=s(i[0],t.getWidth()),l=s(i[1],t.getHeight()),c=s(e.get("radius"),r/2);return{cx:o,cy:l,r:c}}function d(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var f=2*Math.PI,h=r.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n=e.get("axisLine.lineStyle.color"),a=u(e,i);this._renderMain(e,t,i,n,a)},dispose:function(){},_renderMain:function(e,t,i,n,r){for(var o=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),c=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,h=(d-u)%f,p=u,m=l.get("width"),g=s.get("show"),v=0;g&&v=e&&(0===t?0:n[t-1][0]).4?"bottom":"middle",textAlign:O<-.4?"left":O>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(y.get("show")&&L!==_){for(var M=0;M<=I;M++){O=Math.cos(T),$=Math.sin(T);var F=new a.Line({shape:{x1:O*m+h,y1:$*m+p,x2:O*(m-S)+h,y2:$*(m-S)+p},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:n((L+M/I)/_)}),f.add(F),T+=k}T-=k}else T+=C}},_renderPointer:function(e,t,i,r,o,l,u,d){var f=this.group,h=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],m=[l,u],g=e.getData(),v=g.mapDimension("value");g.diff(h).add((function(t){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:c(g.get(v,t),p,m,!0)}},e),f.add(i),g.setItemGraphicEl(t,i)})).update((function(t,i){var n=h.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:c(g.get(v,t),p,m,!0)}},e),f.add(n),g.setItemGraphicEl(t,n)})).remove((function(e){var t=h.getItemGraphicEl(e);f.remove(t)})).execute(),g.eachItemGraphicEl((function(e,t){var i=g.getItemModel(t),n=i.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(c(g.get(v,t),p,[0,1],!0))),a.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=g}else h&&h.eachItemGraphicEl((function(e){f.remove(e)}))},_renderTitle:function(e,t,i,n,r){var o=e.getData(),l=o.mapDimension("value"),u=e.getModel("title");if(u.get("show")){var d=u.get("offsetCenter"),f=r.cx+s(d[0],r.r),h=r.cy+s(d[1],r.r),p=+e.get("min"),m=+e.get("max"),g=e.getData().get(l,0),v=n(c(g,[p,m],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},u,{x:f,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,r){var o=e.getModel("detail"),l=+e.get("min"),u=+e.get("max");if(o.get("show")){var f=o.get("offsetCenter"),h=r.cx+s(f[0],r.r),p=r.cy+s(f[1],r.r),m=s(o.get("width"),r.r),g=s(o.get("height"),r.r),v=e.getData(),b=v.get(v.mapDimension("value"),0),y=n(c(b,[l,u],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:h,y:p,text:d(b,o.get("formatter")),textWidth:isNaN(m)?null:m,textHeight:isNaN(g)?null:g,textAlign:"center",textVerticalAlign:"middle"},{autoColor:y,forceRich:!0})}))}}}),p=h;e.exports=p},a75d:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a796:function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"e",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"d",(function(){return d}));var n=i("db72"),a=i("b775");function r(e,t,i){var n=new FormData;return n.append("file",e),Object(a["a"])({url:"/file/uploadFile/".concat(t,"/").concat(i),method:"post",data:n})}function o(e,t){return Object(a["a"])({url:"/attachment/deleteAttachment",method:"delete",data:{Id:e,Path:t}})}function s(e,t){return Object(a["a"])({url:"/attachment/getAttachmentByType/".concat(e,"/").concat(t),method:"get"})}function l(e){return Object(a["a"])({url:"/attachment/saveAttachments",method:"post",data:e})}function c(e,t,i){return Object(a["a"])({url:"/attachment/setOfficial/".concat(e,"/").concat(t,"/").concat(i),method:"post"})}function u(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new FormData;return r.append("file",e),Object(a["a"])(Object(n["a"])({url:"/file/uploadNonDoctorFile/".concat(t),method:"post",data:r},i))}function d(e,t,i){return Object(a["a"])({url:"/attachment/setLanguage/".concat(e,"/").concat(t,"/").concat(i),method:"post"})}},a7ad:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:criterion")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.CriterionTypeEnum,callback:function(t){e.$set(e.searchData,"CriterionTypeEnum",t)},expression:"searchData.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:isGeneral")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsGeneral,callback:function(t){e.$set(e.searchData,"IsGeneral",t)},expression:"searchData.IsGeneral"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$t("common:button:reset")))])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini",disabled:e.selectArr.length<=0},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1),e._v(" "),i("el-table",{attrs:{data:e.list,stripe:"",size:"small",height:"400"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedbackCfg:title:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:e.$t("trials:medicalFeedbackCfg:title:criterion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGeneral",label:e.$t("trials:medicalFeedbackCfg:title:isGeneral"),width:"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGeneral))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),"min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired"),"min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])})],1),e._v(" "),i("Pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("e56e")),o=i("333d"),s=i("3e42"),l=i("f36a"),c=function(){return{PageIndex:1,PageSize:20,QuestionName:"",Type:"",CriterionTypeEnum:null,IsGeneral:null}},u={name:"AddDefaultQS",components:{BoxContent:l["default"],Pagination:o["default"]},props:{trialReadingCriterionId:{type:String,default:function(){return""}},currentCriterionType:{type:Number,default:function(){return 0}}},data:function(){return{trialId:"",searchData:c(),list:[],loading:!1,selectArr:[],total:0}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.CurrentCriterionType=this.CurrentCriterionType,Object(r["sb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){console.log(e);for(var t=[],i=0;i0&&(e.user.userTypeEnum=i[0].UserTypeEnum),!0===e.user.IsZhiZhun&&(e.user.OrganizationName="ZhiZhun"),e.user.Id?Object(s["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success("Updated successfully")})).catch((function(){e.isDisabled=!1})):Object(s["c"])(e.user).then((function(t){e.isDisabled=!1,e.$emit("getUserId",t.Result.Id),e.$message.success("Added successfully")})).catch((function(){e.isDisabled=!1}))}}))},getUserInfo:function(){var e=this;Object(s["l"])(this.userId).then((function(t){e.user=t.Result}))},getUserTypeList:function(){var e=this;Object(s["n"])().then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},handelOrgnizationTypeChange:function(e){e&&(this.user.OrganizationId="",this.getOrgnizationList(e))},getOrgnizationList:function(e){var t=this;Object(s["g"])(e).then((function(e){e.IsSuccess&&(t.OrganizationOptions=e.Result)}))},initPage:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==this.userId){e.next=5;break}return e.next=3,l["a"].dispatch("user/getInfo");case 3:e.next=6;break;case 5:case 6:if(""!==this.userId){e.next=9;break}return e.next=9,l["a"].dispatch("user/getInfo");case 9:this.getUserInfo();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},a80d:function(e,t,i){},a82a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container reviewer-reading"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Timepoint",name:"TP"}},["TP"==e.active?i("timePoint"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Global",name:"Global"}},["Global"==e.active?i("global"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Adjusetment",name:"AD"}},["AD"==e.active?i("adjustment"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("db72")),o=i("3da5"),s=i("d758"),l=i("3ce7"),c=i("2f62"),u=i("4360"),d={name:"Reading",components:{TimePoint:o["default"],Global:s["default"],Adjustment:l["default"]},data:function(){return{active:"TP",load:{TP:!0,Global:!1,AD:!1}}},computed:Object(r["a"])({},Object(c["b"])(["reviewerWorkLoadActiveName"])),created:function(){this.$route.query.TrialId&&zzSessionStorage.setItem("trialId",this.$route.query.TrialId)},mounted:function(){this.active=this.reviewerWorkLoadActiveName},methods:{clickTab:function(e,t){this.active=e.name,u["a"].dispatch("reading/setActiveName",e.name)}}},f=d,h=(i("cd96"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},a850:function(e,t,i){"use strict";i("046d")},a87d:function(e,t,i){var n=i("22d1"),a=i("401b"),r=a.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),c=i("a73c"),u=i("9e2e"),d=i("19eb"),f=i("0da8"),h=i("76a5"),p=i("cbe5"),m=i("20c8"),g=i("42e5"),v=i("d3a4"),b=m.CMD,y=Math.round,w=Math.sqrt,_=Math.abs,I=Math.cos,x=Math.sin,S=Math.max;if(!n.canvasSupported){var T=",",C="progid:DXImageTransform.Microsoft",k=21600,R=k/2,D=1e5,L=1e3,O=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=k+","+k,e.coordorigin="0,0"},$=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},N=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},A=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},P=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},E=function(e,t,i){return(parseFloat(e)||0)*D+(parseFloat(t)||0)*L+i},M=c.parsePercent,F=function(e,t,i){var n=s.parse(t);i=+i,isNaN(i)&&(i=1),n&&(e.color=N(n[0],n[1],n[2]),e.opacity=i*n[3])},j=function(e){var t=s.parse(e);return[N(t[0],t[1],t[2]),t[3]]},V=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof g){var a,o=0,s=[0,0],l=0,c=1,u=i.getBoundingRect(),d=u.width,f=u.height;if("linear"===n.type){a="gradient";var h=i.transform,p=[n.x*d,n.y*f],m=[n.x2*d,n.y2*f];h&&(r(p,p,h),r(m,m,h));var v=m[0]-p[0],b=m[1]-p[1];o=180*Math.atan2(v,b)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";p=[n.x*d,n.y*f],h=i.transform;var y=i.scale,w=d,_=f;s=[(p[0]-u.x)/w,(p[1]-u.y)/_],h&&r(p,p,h),w/=y[0]*k,_/=y[1]*k;var I=S(w,_);l=0/I,c=2*n.r/I-l}var x=n.colorStops.slice();x.sort((function(e,t){return e.offset-t.offset}));for(var T=x.length,C=[],R=[],D=0;D=2){var $=C[0][0],N=C[1][0],A=C[0][1]*t.opacity,P=C[1][1]*t.opacity;e.type=a,e.method="none",e.focus="100%",e.angle=o,e.color=$,e.color2=N,e.colors=R.join(","),e.opacity=P,e.opacity2=A}"radial"===a&&(e.focusposition=s.join(","))}else F(e,n,t.opacity)},q=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof g||F(e,t.stroke,t.opacity)},z=function(e,t,i,n){var a="fill"===t,r=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(a||!a&&i.lineWidth)?(e[a?"filled":"stroked"]="true",i[t]instanceof g&&P(e,r),r||(r=v.createNode(t)),a?V(r,i,n):q(r,i),A(e,r)):(e[a?"filled":"stroked"]="false",P(e,r))},B=[[],[],[]],U=function(e,t){var i,n,a,o,s,l,c=b.M,u=b.C,d=b.L,f=b.A,h=b.Q,p=[],m=e.data,g=e.len();for(o=0;o.01?z&&(U+=270/k):Math.abs(Q-M)<1e-4?z&&UE?C-=270/k:C+=270/k:z&&QM?S+=270/k:S-=270/k),p.push(H,y(((E-F)*N+O)*k-R),T,y(((M-j)*A+$)*k-R),T,y(((E+F)*N+O)*k-R),T,y(((M+j)*A+$)*k-R),T,y((U*N+O)*k-R),T,y((Q*A+$)*k-R),T,y((S*N+O)*k-R),T,y((C*A+$)*k-R)),s=S,l=C;break;case b.R:var G=B[0],W=B[1];G[0]=m[o++],G[1]=m[o++],W[0]=G[0]+m[o++],W[1]=G[1]+m[o++],t&&(r(G,G,t),r(W,W,t)),G[0]=y(G[0]*k-R),W[0]=y(W[0]*k-R),G[1]=y(G[1]*k-R),W[1]=y(W[1]*k-R),p.push(" m ",G[0],T,G[1]," l ",W[0],T,G[1]," l ",W[0],T,W[1]," l ",G[0],T,W[1]);break;case b.Z:p.push(" x ")}if(i>0){p.push(n);for(var Y=0;YK&&(Y=0,W={});var i,n=Z.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(a){}t={style:n.fontStyle||G,variant:n.fontVariant||G,weight:n.fontWeight||G,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},W[e]=t,Y++}return t};l.$override("measureText",(function(e,t){var i=v.doc;H||(H=i.createElement("div"),H.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(H));try{H.style.font=t}catch(n){}return H.innerHTML="",H.appendChild(i.createTextNode(e)),{width:H.offsetWidth}}));for(var J=new o,ee=function(e,t,i,n){var a=this.style;this.__dirty&&c.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var s=l.parseRichText(o,a);o=[];for(var u=0;u=0||(a[i]=e[i]);return a}function l(e,t){if(null==e)return{};var i,n,r=s(e,t);if(a.a){var o=a()(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}i.d(t,"a",(function(){return l}))},a8ed:function(e,t,i){"use strict";i("6619")},a915:function(e,t,i){},a92b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):e._e(),e._v(" "),"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v(e._s(e.question.QuestionName))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openAddTableCol(e.question)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:add"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.questionForm[e.question.Id]}},e._l(e.question.TableQuestions.Questions,(function(e){return i("el-table-column",{attrs:{prop:e.Id,label:e.QuestionName,"min-width":"100","show-overflow-tooltip":""}})})),1)],1):[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0&&"table"!==e.question.Type?e._l(e.question.Childrens,(function(t){return i("QuestionFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,"calculation-list":e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e(),e._v(" "),e.addOrEdit.visible?i("el-dialog",{staticClass:"my_dialog",attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{size:"small"}},[e._l(e.QuestionsList,(function(t){return i("QuestionTableFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.QuestionsForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId},on:{formItemTableNumberChange:e.formItemTableNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.addOrEdit.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)],2)],1):e._e()],2)},a=[],r=(i("386d"),i("a481"),i("7f7f"),i("20d6"),i("6b54"),i("75fc")),o=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),s=i("98508"),l={name:"QuestionFormItem",components:{QuestionTableFormItem:s["default"]},props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},calculationList:{type:Array,default:[]}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},AnswersList:[],loading:!1}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.question.Id]||!t[this.question.Id])return}catch(i){console.log(i,e)}this.formItemNumberChange(this.question.Id,!1)}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"".concat(t)})}))),"table"===this.question.Type&&this.questionForm[this.question.Id]&&(this.QuestionsForm={},this.question.TableQuestions.Questions.forEach((function(t){"number"===t.Type?e.$set(e.QuestionsForm,t.Id,0):e.$set(e.QuestionsForm,t.Id,"")})))},methods:{getQuestionCalculateRelation:function(){var e=this;Object(o["Jc"])({TrialReadingCriterionId:this.criterionId,ReadingQuestionId:this.question.Id}).then((function(t){e.CalculationList=t.Result}))},save:function(){this.AnswersList.push(this.QuestionsForm),this.$emit("setFormItemData",{key:this.question.Id,val:this.AnswersList}),this.formItemNumberChange(this.question.Id,!0),this.addOrEdit.visible=!1},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:console.log(t.questionForm[n.QuestionId]),console.log(t.questionForm),t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o)),console.log("min",t.questionForm[n.QuestionId],o,i);break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(n){console.log(n)}return i},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){console.log(t,n);var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(console.log("find",a),a){var r=i.logic(t);!1!==r&&i.$emit("setFormItemData",{key:t.QuestionId,val:r})}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$emit("setFormItemData",{key:t.QuestionId,val:a})}}))},formItemTableNumberChange:function(){var e=this;this.question.TableQuestions.Questions.forEach((function(t){if("number"===t.Type&&1===t.DataSource){var i,n=JSON.parse(t.CalculateQuestions);n.forEach((function(n,a){if(0===a)i=e.QuestionsForm[n.TableQuestionId];else switch(t.CustomCalculateMark){case 1:i+=e.QuestionsForm[n.TableQuestionId];break;case 2:i-=e.QuestionsForm[n.TableQuestionId];break;case 3:i*=e.QuestionsForm[n.TableQuestionId];break;case 4:i/=e.QuestionsForm[n.TableQuestionId];break}})),e.$set(e.QuestionsForm,t.Id,i.toString())}}))},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+this.$t("trials:readingUnit:qsList:title:tableQs"),this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={}},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(o["Rd"])(t).then((function(t){e.organList=t.Result}))},formNumberItemChange:function(e){this.$emit("setFormItemData",{key:e.QuestionId,val:num})},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(o["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){if(this.checkFileSuffix(e.name))return!0;var t=this.$t("trials:readingUnit:qsList:message:imageFormat").replace("xxx",this.accept);return this.$message.error(t),!1},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},autoCalculation:function(){},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},c=l,u=(i("e93e"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"0dafc866",null);t["default"]=d.exports},a939:function(e,t,i){!function(t,i){e.exports=i()}("undefined"!=typeof self&&self,(function(){return function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(4)();var n=i(5),a=i(6);t.default={name:"vue-seamless-scroll",data:function(){return{xPos:0,yPos:0,delay:0,copyHtml:"",height:0,width:0,realBoxWidth:0}},props:{data:{type:Array,default:function(){return[]}},classOption:{type:Object,default:function(){return{}}}},computed:{leftSwitchState:function(){return this.xPos<0},rightSwitchState:function(){return Math.abs(this.xPos)=this.options.limitMoveNum},hoverStopSwitch:function(){return this.options.hoverStop&&this.autoPlay&&this.scrollSwitch},canTouchScroll:function(){return this.options.openTouch},isHorizontal:function(){return this.options.direction>1},baseFontSize:function(){return this.options.isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1},realSingleStopWidth:function(){return this.options.singleWidth*this.baseFontSize},realSingleStopHeight:function(){return this.options.singleHeight*this.baseFontSize},step:function(){var e=this.options.step;return this.isHorizontal?this.realSingleStopWidth:this.realSingleStopHeight,e}},methods:{reset:function(){this._cancle(),this._initMove()},leftSwitchClick:function(){if(this.leftSwitchState)return Math.abs(this.xPos)1||e.scale&&1!==e.scale)){var t=e.targetTouches[0],i=this.options.direction;this.endPos={x:t.pageX-this.startPos.x,y:t.pageY-this.startPos.y},event.preventDefault();var n=Math.abs(this.endPos.x)1&&(this.xPos=this.startPosX+this.endPos.x)}},touchEnd:function(){var e=this;if(this.canTouchScroll){var t=void 0,i=this.options.direction;if(this.delay=50,1===i)this.yPos>0&&(this.yPos=0);else if(0===i){var n=this.realBoxHeight/2*-1;this.yPos0&&(this.xPos=0);else if(3===i){var a=-1*this.realBoxWidth;this.xPos=t&&(this.$emit("ScrollEnd"),this.yPos=0),this.yPos-=o):0===a?(this.yPos>=0&&(this.$emit("ScrollEnd"),this.yPos=-1*t),this.yPos+=o):2===a?(Math.abs(this.xPos)>=i&&(this.$emit("ScrollEnd"),this.xPos=0),this.xPos-=o):3===a&&(this.xPos>=0&&(this.$emit("ScrollEnd"),this.xPos=-1*i),this.xPos+=o),this.singleWaitTime&&clearTimeout(this.singleWaitTime),this.realSingleStopHeight?Math.abs(this.yPos)%this.realSingleStopHeight1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.componentName||a.default.name,a.default)},"undefined"!=typeof window&&window.Vue&&Vue.component(a.default.name,a.default),t.default=a.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,(function(){return n[e]}))}(r);var o=i(7),s=i(3),l=s(a.a,o.a,!1,null,null,null);t.default=l.exports},function(e,t){e.exports=function(e,t,i,n,a,r){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId=a),r?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):n&&(c=n),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:s,options:u}}},function(e,t){var i=function(){window.cancelAnimationFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e)}}(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}()};e.exports=i},function(e,t){var i=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i0?i("HistoricAssessment",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):e._e()],1),e._v(" "),i("div",[i("h3",[e._v(e._s(e.$t("trials:medicalFeedback:title:auditQuestions")))]),e._v(" "),e.auditInfo.QuestionAnswerList&&e.auditInfo.QuestionAnswerList.length>0?i("Issues",{ref:"auditIssues",attrs:{"question-answer-list":e.auditInfo.QuestionAnswerList,"task-medical-review-id":e.taskMedicalReviewId,"audit-state":e.auditInfo.AuditState}}):e._e()],1),e._v(" "),i("div",[i("h3",[e._v(e._s(e.$t("trials:medicalFeedback:title:conclusions")))]),e._v(" "),e.auditInfo.MedicalReviewInfo&&Object.keys(e.auditInfo.MedicalReviewInfo).length>0?i("Conclusions",{ref:"auditConclusions",attrs:{"medical-review-info":e.auditInfo.MedicalReviewInfo,"audit-state":e.auditInfo.AuditState,"visit-task-id":e.visitTaskId,"subject-code":e.auditInfo.SubjectCode,"task-blind-name":e.auditInfo.TaskBlindName},on:{getMedicalAuditList:e.getMedicalAuditList}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"medical-audit-bottom-btn"},[i("el-divider"),e._v(" "),e.auditInfo.MedicalReviewInfo?i("el-button",{on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&e.isSendMessage?i("el-button",{attrs:{type:"primary"},on:{click:e.handleQc}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:qaRecord"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.handleAudit}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:auditCompleted"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.getNextTask}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:nextTask"))+"\n ")]):e._e()],1),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v("\n "+e._s(e.$t("common:dialogTitle:sign"))+"\n ")]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v("\n "+e._s("("+e.$t("common:label:sign")+e.currentUser+")")+"\n ")])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("d0f9"),l=i("3d8c"),c=i("fec6"),u=i("179b"),d=i("7a9e"),f={name:"MedicalAudit",components:{HistoricAssessment:s["default"],Issues:l["default"],Conclusions:c["default"],SignForm:u["default"]},props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0},rowData:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,auditInfo:{},signText:"",signCode:null,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isSendMessage:!1}},mounted:function(){this.getInfos()},methods:{getInfos:function(){var e=this;this.loading=!0;var t={trialId:this.$route.query.trialId,taskMedicalReviewId:this.taskMedicalReviewId};Object(o["rc"])(t).then((function(t){e.auditInfo=Object(r["a"])({},t.Result),e.isSendMessage=t.Result.IsSendMessage,e.loading=!1})).catch((function(){e.loading=!1}))},handleAudit:function(){var e=this;this.$refs["auditConclusions"].isClosedDialog||!this.$refs["auditConclusions"].form.IsHaveQuestion?(this.loading=!0,this.$refs["auditIssues"].handleSave(!1).then((function(){e.$refs["auditConclusions"].handleSave(!1).then((function(){e.loading=!1,e.isSendMessage=e.$refs["auditConclusions"].form.IsHaveQuestion;var t=d["default"].processSignature.MedicalAudit;e.signCode=t,e.signVisible=!0})).catch((function(){e.loading=!1}))})).catch((function(){e.loading=!1}))):this.$alert(this.$t("trials:medicalFeedback:message:closeQC"),{callback:function(e){}})},handleSave:function(){var e=this;this.loading=!0,this.$refs["auditIssues"].handleSave(!1).then((function(){e.$refs["auditConclusions"].handleSave(!1).then((function(){e.loading=!1,e.isSendMessage=e.$refs["auditConclusions"].form.IsHaveQuestion})).catch((function(){e.loading=!1}))})).catch((function(){e.loading=!1}))},handleQc:function(){this.$refs["auditConclusions"].handleReply()},getNextTask:function(){var e=this;this.loading=!0,this.$refs["auditIssues"].save().then((function(t){t?e.$refs["auditConclusions"].save().then((function(i){e.disPatchNextTask(!(!t||!i))})).catch((function(t){e.loading=!1})):e.disPatchNextTask(!1)})).catch((function(t){e.loading=!1}))},disPatchNextTask:function(e){var t=this,i=e?this.$t("trials:medicalFeedback:message:goNextTask02"):this.$t("trials:medicalFeedback:message:goNextTask03");this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,t.$emit("nextTask",t.taskMedicalReviewId)})).catch((function(e){t.loading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{taskMedicalReviewId:this.taskMedicalReviewId},signInfo:e};Object(o["b"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.loading=!1,t.$emit("getList"),t.auditInfo.AuditState=2,t.$confirm(t.$t("trials:medicalFeedback:message:goNextTask01"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,t.$emit("nextTask",t.taskMedicalReviewId)})).catch((function(e){}))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},nextTask:function(){this.$emit("nextTask",this.taskMedicalReviewId)},handleCancel:function(){this.$emit("close")},getMedicalAuditList:function(){this.$emit("getList")}}},h=f,p=(i("98c2"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"95377778",null);t["default"]=m.exports},a96b:function(e,t,i){var n=i("3eba"),a=n.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=a},a990:function(e,t,i){"use strict";i("a24f")},a991:function(e,t,i){var n=i("6d8b"),a=i("e86a"),r=i("84ce"),o=i("e0d3"),s=o.makeInner,l=s();function c(e,t){t=t||[0,360],r.call(this,"angle",e,t),this.type="category"}c.prototype={constructor:c,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),i=e.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),c=Math.abs(s),u=a.getBoundingRect(o,t.getFont(),"center","top"),d=Math.max(u.height,7),f=d/c;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=l(e.model),m=p.lastAutoInterval,g=p.lastTickCount;return null!=m&&null!=g&&Math.abs(m-h)<=1&&Math.abs(g-r)<=1&&m>h?h=m:(p.lastTickCount=r,p.lastAutoInterval=h),h}},n.inherits(c,r);var u=c;e.exports=u},a9f8:function(e,t,i){},a9fb:function(e,t,i){"use strict";i("0a2a")},aa01:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("4319"),s=i("55ac"),l=s.wrapTreePathInfo,c=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};u(i);var a=n.map(e.levels||[],(function(e){return new o(e,this,t)}),this),s=r.createTree(i,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var i=s.getNodeByDataIndex(t),n=a[i.depth];return n&&(e.parentModel=n),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(i,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function u(e){var t=0;n.each(e.children,(function(e){u(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}e.exports=c},aa1c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:role")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ArmEnum,callback:function(t){e.$set(e.searchData,"ArmEnum",t)},expression:"searchData.ArmEnum"}},e._l(e.$d.ArmEnum,(function(e){return i("el-option",{key:"ArmEnum"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:category")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSelfAnalysis,callback:function(t){e.$set(e.searchData,"IsSelfAnalysis",t)},expression:"searchData.IsSelfAnalysis"}},e._l(e.$d.IsSelfAnalysis,(function(e){return i("el-option",{key:"IsSelfAnalysis"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:auditTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(1)}}},[e._v("\n "+e._s(e.$t("common:button:export"))+e._s(e.$t("trials:consistencyAnalysis:button:self"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(2)}}},[e._v("\n "+e._s(e.$t("common:button:export"))+e._s(e.$t("trials:consistencyAnalysis:button:group"))+"\n ")]),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openTaskConsistentRule(!0)}}},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:button:self"))+"\n ")]):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openTaskConsistentRule(!1)}}},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:button:group"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:consistencyAnalysis:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:consistencyAnalysis:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:consistencyAnalysis:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:consistencyAnalysis:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubjectCode)+"\n "),t.row.IsReReadingOrBackInfluenceAnalysis?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:table:impact"))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:consistencyAnalysis:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:consistencyAnalysis:table:taskBlindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:consistencyAnalysis:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSelfAnalysis",label:e.$t("trials:consistencyAnalysis:table:category"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSelfAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("IsSelfAnalysis",t.row.IsSelfAnalysis)))]):i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("IsSelfAnalysis",t.row.IsSelfAnalysis)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:consistencyAnalysis:table:role"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),8===t.row.ArmEnum?i("el-tag",{staticStyle:{"border-color":"#4c2791",color:"#4c2791"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:consistencyAnalysis:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName)+"("+e._s(t.row.FullName)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:consistencyAnalysis:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:consistencyAnalysis:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:consistencyAnalysis:table:auditTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime",label:e.$t("trials:consistencyAnalysis:table:suggesteFinishedTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:consistencyAnalysis:table:reviewStatus"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:consistencyAnalysis:table:signTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingApplyState",label:e.$t("trials:consistencyAnalysis:table:applyStatus"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e(),e._v(" "),2===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e(),e._v(" "),3===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReReadingOrBackInfluenceAnalysis",label:e.$t("trials:consistencyAnalysis:table:impactInfluence"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReReadingOrBackInfluenceAnalysis?e._e():i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]),e._v(" "),t.row.IsReReadingOrBackInfluenceAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:2!==t.row.ReadingTaskState,icon:"el-icon-view",circle:"",title:e.$t("trials:consistencyAnalysis:action:view")},on:{click:function(i){return e.lookReadingResults(t.row)}}}),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{disabled:!t.row.IsReReadingOrBackInfluenceAnalysis||1===t.row.TaskState,icon:"el-icon-close",circle:"",title:e.$t("trials:consistencyAnalysis:action:setInvalid")},on:{click:function(i){return e.setAnalysisTaskInvalid(t.row)}}}):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("div",{staticClass:"remark"},[i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:table:impact"))+"\n ")]),e._v(" "),i("span",[e._v(" "+e._s(e.$t("trials:consistencyAnalysis:title:impactInfluence")))])]),e._v(" "),e.ReaderRulesVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:button:self"),visible:e.ReaderRulesVisible,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReaderRulesVisible=t}}},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.clickTab},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{staticStyle:{position:"absolute",right:"20px",top:"10px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addReaderRulesForm()}}},[e._v("\n "+e._s(e.$t("trials:selftConsistencyAnalysis:button:config"))+"\n ")]),e._v(" "),e.IsSelfAnalysis?i("div",{staticClass:"base-dialog-body",staticStyle:{"margin-top":"32px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.TaskConsistentRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:selftConsistencyAnalysis:table:reader"),"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.AnalysisDoctorUser?[e._v("\n "+e._s(t.row.AnalysisDoctorUser.UserName)+"("+e._s(t.row.AnalysisDoctorUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanVisitCount",label:e.$t("trials:selftConsistencyAnalysis:table:visitNum"),"min-width":"90","show-overflow-tooltip":""}}),e._v(" "),e.IsSelfAnalysis?i("el-table-column",{attrs:{prop:"IntervalWeeks",label:e.$t("trials:selftConsistencyAnalysis:table:intervalPeriod"),"min-width":"100","show-overflow-tooltip":""}}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"IsHaveReadingPeriod",label:e.$t("trials:selftConsistencyAnalysis:table:isReadingPeriod"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsHaveReadingPeriod?i("el-tag",{attrs:{size:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveReadingPeriod)))]):i("el-tag",{attrs:{size:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveReadingPeriod)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGenerateGlobalTask",label:e.$t("trials:selftConsistencyAnalysis:table:isGenerateGlobalTask"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsGenerateGlobalTask?i("el-tag",{attrs:{size:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGenerateGlobalTask)))]):i("el-tag",{attrs:{size:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGenerateGlobalTask)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanSubjectCount",label:e.$t("trials:selftConsistencyAnalysis:table:plannedSubjectNum"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GeneratedSubjectCount",label:e.$t("trials:selftConsistencyAnalysis:table:createdSubjectNum"),"min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-s-check",title:e.$t("trials:selftConsistencyAnalysis:button:select")},on:{click:function(i){return e.openDoctorConsistentRuleSubjectTable(t.row)}}})]}}],null,!0)})],1)],1):e._e()],1)})),1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReaderRulesVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ReaderRulesVisible2?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:button:group"),visible:e.ReaderRulesVisible2,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReaderRulesVisible2=t}}},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{staticStyle:{position:"absolute",right:"20px",top:"10px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addReaderRulesForm("g")}}},[e._v("\n "+e._s(e.$t("trials:grouptConsistencyAnalysis:button:config"))+"\n ")]),e._v(" "),i("GroupConsistentRuleSubjectTable",{ref:"GroupConsistentRuleSubjectTable"+t.TrialReadingCriterionId,refInFor:!0,staticStyle:{"margin-top":"40px"},attrs:{TrialReadingCriterionId:t.TrialReadingCriterionId,IsSelfAnalysis:e.IsSelfAnalysis,changeNum:e.changeNum},on:{close:function(){e.ReaderRulesVisible2=!1,e.rowData={}},getList:function(t){return e.getList()}}})],1)})),1)],1):e._e(),e._v(" "),e.ReaderRulesFormVisible?i("el-dialog",{attrs:{title:""+e.title,visible:e.ReaderRulesFormVisible,width:"480px","close-on-click-modal":!1},on:{"update:visible":function(t){e.ReaderRulesFormVisible=t}}},[i("ReaderRulesForm",{attrs:{isDisable:e.isDisable,TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData,"select-list":e.SelectList,"doctor-user-list":e.DoctorUserList,"is-self-analysis":e.IsSelfAnalysis},on:{close:function(){e.ReaderRulesFormVisible=!1,e.rowData={}},getList:function(t){return e.openTaskConsistentRule(e.IsSelfAnalysis)}}})],1):e._e(),e._v(" "),e.DoctorConsistentRuleSubjectTableVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:dialog:selectSubject"),visible:e.DoctorConsistentRuleSubjectTableVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.DoctorConsistentRuleSubjectTableVisible=t}}},[i("DoctorConsistentRuleSubjectTable",{attrs:{data:e.rowData},on:{close:function(){e.DoctorConsistentRuleSubjectTableVisible=!1,e.rowData={}},getList:function(t){return e.openTaskConsistentRule(e.IsSelfAnalysis)}}})],1):e._e(),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:dialog:applyReread"),visible:e.ApplyforReasonVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysis:applyReread:reason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:consistencyAnalysis:applyReread:imageReload")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:consistencyAnalysis:applyReread:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysis:applyReread:remark"),prop:"RequestReReadingReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)],2)},a=[],r=(i("7f7f"),i("ac6a"),i("db72")),o=i("958c"),s=i("3f2a"),l=i("cbb3"),c=i("5608"),u=i("3114"),d=i("6071"),f=i("333d"),h=i("5f87"),p=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,TrialSiteCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,TrialReadingCriterionId:null}},m={name:"TrialsNotice",components:{BaseContainer:d["default"],Pagination:f["default"],ReaderRulesForm:l["default"],DoctorConsistentRuleSubjectTable:c["default"],GroupConsistentRuleSubjectTable:u["default"]},data:function(){return{TrialReadingCriterionId:null,trialCriterionList:[],searchData:p(),maxLength:0,list:[],siteOptions:[],total:0,loading:!1,ReaderRulesVisible:!1,DoctorConsistentRuleSubjectTableVisible:!1,trialId:this.$route.query.trialId,ReaderRulesVisible2:!1,currentData:{},param:{},DoctorUserList:[],btnLoading:!1,rowData:{},OtherInfo:null,title:null,SelectList:[],TaskConsistentRuleList:[],isDisable:!1,ReaderRulesFormVisible:!1,IsSelfAnalysis:!0,timeList:[],ApplyforReasonVisible:!1,ApplyforReasonForm:{Type:null,RequestReReadingReason:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},changeNum:0}},mounted:function(){this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{handleExport:function(e){var t=this;this.searchData.TrialReadingCriterionId?1===e?Object(s["m"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):Object(s["f"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):this.$message.error(this.$t("trials:consistencyAnalysis:message:selectCriterion"))},getTrialCriterionList:function(){var e=this;this.loading=!0,Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.loading=!1})).catch((function(){e.loading=!1}))},setAnalysisTaskInvalid:function(e){var t=this;this.$confirm(this.$t("trials:consistencyAnalysis:applyReread:msg1")).then((function(){t.loading=!0,Object(o["Y"])([e.Id]).then((function(e){t.$message.success(t.$t("trials:consistencyAnalysis:applyReread:msg2")),t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))}))},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/reReadingTracking?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName,"&DoctorUserId=").concat(e.DoctorUserId)})},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,RequestReReadingType:2,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:consistencyAnalysis:applyReread:imageReload")};Object(o["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:consistencyAnalysis:applyReread:msg3")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},lookReadingResults:function(e){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var t=Object(h["a"])(),i="";i=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.TrialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.TrialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t);var n=this.$router.resolve({path:i});window.open(n.href,"_blank")},openApplyReReading:function(e){this.rowData=Object(r["a"])({},e),this.ApplyforReasonVisible=!0,this.ApplyforReasonForm={Type:null,Remake:null}},editReaderRulesForm:function(e){this.rowData=Object(r["a"])({},e),this.ReaderRulesFormVisible=!0},openDoctorConsistentRuleSubjectTable:function(e){this.rowData=Object(r["a"])({},e),this.DoctorConsistentRuleSubjectTableVisible=!0},addReaderRulesForm:function(e){var t=this;this.isDisable=!1,e?this.$refs["GroupConsistentRuleSubjectTable".concat(this.TrialReadingCriterionId)][0].list&&this.$refs["GroupConsistentRuleSubjectTable".concat(this.TrialReadingCriterionId)][0].list.forEach((function(e){e.IsHaveGeneratedTask&&(t.isDisable=!0)})):this.TaskConsistentRuleList.length>0?(this.rowData=Object(r["a"])({},this.TaskConsistentRuleList[0]),this.TaskConsistentRuleList.forEach((function(e){e.GeneratedSubjectCount&&(t.isDisable=!0)}))):this.rowData={},this.ReaderRulesFormVisible=!0},clickTab:function(e,t){var i=this;this.loading=!0,Object(o["L"])({TrialId:this.trialId,TrialReadingCriterionId:e.name}).then((function(e){i.TaskConsistentRuleList=e.Result,i.loading=!1})).catch((function(){i.loading=!1}))},openTaskConsistentRule:function(e){var t=this;this.loading=!0,e?(this.title=this.$t("trials:selftConsistencyAnalysis:button:config"),Object(o["L"])({TrialId:this.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(i){t.ReaderRulesFormVisible=!1,t.DoctorConsistentRuleSubjectTableVisible=!1,t.TaskConsistentRuleList=i.Result,t.IsSelfAnalysis=e,t.ReaderRulesVisible=!0,t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))):(this.changeNum++,this.ReaderRulesFormVisible=!1,this.title=this.$t("trials:grouptConsistencyAnalysis:button:config"),this.IsSelfAnalysis=e,this.ReaderRulesVisible2=!0,this.loading=!1)},getDoctorUserSelectList:function(){var e=this;Object(o["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(o["u"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.ReaderRulesVisible2=!1,e.AssignMedicalReviewTaskVisible=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},getSite:function(){var e=this;Object(o["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=(i("455b"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"7cfb5fa4",null);t["default"]=b.exports},aa3e:function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map(["x","y"],(function(i,n){var a=this.getAxis(i),r=t[n],o=e[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function r(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},aa3e1:function(e,t,i){"use strict";i("cf76")},aa48:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"adjustment-list"},[i("div",{staticClass:"list-container clearfix"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"adjustList",attrs:{size:"small",stripe:"",data:e.list,height:"99%","show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentUSD",label:"Amount($)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentCNY",label:"Amount(¥)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.AdjustPaymentCNY))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Note","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Adjust Month","min-width":"120",sortable:"custom","show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("7878")),o=i("6b95"),s=i("0340"),l=i("333d"),c=i("3339"),u={components:{Pagination:l["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{listQuery:{PageIndex:1,PageSize:20},list:[],total:0,arrID:[],listLoading:!1}},watch:{param:{handler:function(e,t){this.listQuery.PageIndex=e.PageIndex,this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginMonth=e.BeginMonth,this.listQuery.EndMonth=e.EndMonth},deep:!0}},mounted:function(){this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginMonth=this.param.BeginMonth,this.listQuery.EndMonth=this.param.EndMonth,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["r"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},resetList:function(){this.listQuery.PageIndex=1,this.getList()},selectMore:function(e){for(var t=[],i=0;i-1}));d.forEach((function(e){if(l+=e.AdjustPaymentCNY,c+=e.AdjustPaymentUSD,e.AdjustedYearMonth){var t=new Date(e.AdjustedYearMonth);e.AdjustedYearMonth=Object(r["FormatTime"])(t,"yyyy-MM")}e.Index=u++}));var f=["","Total","","","",c,l,"",""];Object(s["a"])(t,i,"Payment History",n,a,d,f,o)}}},d=u,f=(i("1170"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},aa5c:function(e,t,i){},aa81:function(e,t,i){"use strict";i("2e2c")},aaa2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片规则")]),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"是否肿瘤学阅片"}},[e._v("\n "+e._s(e.IsOncologyReading?"是":"否")+"\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("\n 配置\n ")]):e._e()],1),e._v(" "),i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片问题")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(2)}}},[e._v("\n 配置\n ")]):e._e(),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"肿瘤学阅片结果"}})],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}})],1),e._v(" "),i("base-model",{attrs:{config:e.config}},[i("template",{slot:"dialog-body"},[i("el-form",{attrs:{size:"small",inline:!0,"label-width":"110px"}},[1===e.config.configType?i("el-form-item",{attrs:{label:"是否肿瘤学阅片"}},[i("el-radio-group",{model:{value:e.form.IsOncologyReading,callback:function(t){e.$set(e.form,"IsOncologyReading",t)},expression:"form.IsOncologyReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsOncologyReading"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),2===e.config.configType?i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"肿瘤学阅片结果"}}):e._e(),e._v(" "),2===e.config.configType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.$d.OncologyAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.config.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.handleSave}},[e._v("保存")])],1)],2)],1)},a=[],r=(i("7514"),i("ac6a"),i("7eeb")),o=i("e56e"),s={props:{data:{type:String,default:function(){return{}}},criterionId:{type:String,required:!0}},components:{BaseModel:r["default"]},data:function(){return{form:{IsOncologyReading:!0},list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"肿瘤学阅片结果",appendToBody:!0,width:"600px",configType:0},selectedList:[],IsOncologyReading:!0}},mounted:function(){this.getList()},methods:{toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(o["Eb"])({SystemCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result.DictionaryList,e.IsOncologyReading=t.Result.IsOncologyReading,e.form.IsOncologyReading=t.Result.IsOncologyReading,console.log(e.$d.OncologyAssessType)}))},handleAdd:function(e){var t=this;this.config.configType=e,1===e?(this.config.title="是否肿瘤学阅片",this.config.visible=!0):(this.config.title="肿瘤学阅片结果",this.config.visible=!0,this.$nextTick((function(){var e=t.$d.OncologyAssessType.filter((function(e){return!!t.list.find((function(t){return t.DictionaryId===e.id}))}));t.toggleSelection(e)})))},handleSave:function(){var e=this;this.loading=!0;var t=this.$d.OncologyAssessType.filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))})),i={SystemCriterionId:this.criterionId,ParentCode:"OncologyAssessType",DictionaryIds:1===this.config.configType?t.map((function(e){return e.id})):this.selectedList.map((function(e){return e.id})),IsSystemCriterion:!0,IsOncologyReading:this.form.IsOncologyReading};Object(o["Mb"])(i).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList()})).catch((function(){}))},handleDelete:function(){}}},l=s,c=(i("9351"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"049c2eac",null);t["default"]=u.exports},aacc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"btn-wrapper"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",disabled:0==e.checkID.length},on:{click:e.downloadAttachement}},[e._v("Download")])],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,"span-method":e.objectSpanMethod,size:"small"},on:{"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"Type","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("33ba")),o={props:{attachmentList:{type:Array,default:function(){return[]}},doctorId:{type:String,default:""}},data:function(){return{tblList:[],checkID:[],spanArr:[],pos:0}},created:function(){this.tblList=this.filterListByType(this.attachmentList),this.getSpanArr(this.tblList)},methods:{filterListByType:function(e){var t=[];return e.length>0&&(e.forEach((function(e){"Diploma of the highest medical degree"===e.Type&&t.push(e)})),e.forEach((function(e){"Medical Qualification Certificate"===e.Type&&t.push(e)})),e.forEach((function(e){"Practice License"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(CT)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(MRI)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(NM)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(US)"===e.Type&&t.push(e)}))),t},downloadAttachement:function(){Object(r["m"])(this.doctorId,this.checkID).then((function(e){if(e.IsSuccess){var t=e.Result.FullFilePath;window.open(t)}}))},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},selectMore:function(e){for(var t=[],i=0;i0?1:0;return{rowspan:n,colspan:a}}if(3===i){var r=this.spanArr[t],o=r>0?1:0;return{rowspan:r,colspan:o}}if(4===i){var s=this.spanArr[t],l=s>0?1:0;return{rowspan:s,colspan:l}}},timeFormatter:function(e){return new Date(e.UpdateTime).format("yyyy-MM-dd hh:mm:ss")}}},s=o,l=(i("a89d"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},aadf:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var r=i("9d57"),o=r.layout,s=i("7f96");i("01ed"),n.registerLayout(a.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},aaf3:function(e,t,i){"use strict";i.d(t,"e",(function(){return n})),i.d(t,"f",(function(){return a})),i.d(t,"g",(function(){return r})),i.d(t,"h",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return u}));var n=[{type:"index"},{prop:"Name",label:"Name",minWidth:110,sortable:"custom",showOverflowTooltip:!0},{prop:"Modality",label:"Modality",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:110,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Items",type:"primary",emitKey:"items"},{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a=[{type:"Input",label:"Name:",prop:"Name",width:"120px",placeholder:""}],r=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],o={visible:!1,title:"",width:"600px",showClose:!0},s=[{type:"index"},{prop:"Name",label:"Item",sortable:"custom",showOverflowTooltip:!0},{prop:"ModalityList",label:"Modality",hidden:!0,slot:"modalitySlot",showOverflowTooltip:!0},{prop:"Description",label:"Description",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],l=[{type:"Select2",label:"Modality:",prop:"ModalityId",width:"150px",options:{},placeholder:""}],c=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],u={visible:!1,title:"",width:"600px",showClose:!0}},aaf6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-clinical-data"},[1===e.data.ClinicalUploadType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.data.FileList,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:readingPeriod:cd:table:fileName")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:viewFile"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),e.data.IsSign||e.data.IsCRCUpload?e._e():i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:deleteFile"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}})]}}],null,!1,1225421)})],1):i("div",[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1)],1)},a=[],r=i("3e42"),o=i("c1df"),s=i.n(o),l={name:"PreviewCD",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,moment:s.a}},methods:{handlePreview:function(e){e.Path&&window.open(e.Path,"_blank")},handleDelete:function(e,t){var i=this;this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.loading=!0,Object(r["nb"])(t.Id).then((function(t){i.fileList.splice(e,1),i.$emit("getList"),i.loading=!1,i.$message.success(i.$t("common:message:deletedSuccessfully"))})).catch((function(){i.loading=!1}))})).catch((function(){}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},ab05:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var a=t.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:e.getData().getVisual("color")},l=0,c=r.length;l0)for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLesionTypes:function(){var e=this;return new Promise((function(t,i){Object(o["db"])({criterionId:e.criterionId}).then((function(i){e.lesionTypes=i.Result,t()})).catch((function(){i(),e.loading=!1}))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},abf4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"workload_list",staticClass:"workload_list"},[i("div",{staticClass:"list-title",style:{fontSize:e.size}},[e._v("Latest 10 Reads")]),e._v(" "),i("div",{staticClass:"list-header"},[i("ul",{style:{fontSize:e.size}},[i("li",{staticStyle:{width:"5%"}},[e._v("No")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Reviewer Code")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Name")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Trial ID")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("TP")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("AD")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("GL")]),e._v(" "),i("li",{staticStyle:{width:"10%"}},[e._v("Total")])])]),e._v(" "),e.h?i("vue-seamless-scroll",{staticClass:"seamless-warp",style:{height:e.h},attrs:{data:e.dataList,"class-option":e.optionSetting}},[i("ul",e._l(e.dataList,(function(t,n){return i("li",{key:n,style:{fontSize:e.liSize}},[i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.No)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.ReviewerCode)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.Name)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.TrialCode)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Timepoint)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Adjudication)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Global)}}),e._v(" "),i("span",{staticStyle:{width:"10%"},domProps:{textContent:e._s(t.TotalReadingCount)}})])})),0)]):e._e()],1)},a=[],r=(i("ac6a"),i("a939")),o=i.n(r),s=i("5fd4"),l=i("6331"),c=10,u={components:{vueSeamlessScroll:o.a},props:{height:{type:String,default:""}},data:function(){return{dataList:[],h:"",length:0,size:"",liSize:""}},computed:{optionSetting:function(){return{step:.3,limitMoveNum:2,hoverStop:!0,direction:1}}},watch:{height:function(){this.setHeight()}},created:function(){var e=this;this.$nextTick((function(){e.getData()}))},mounted:function(){var e=this;this.size=Object(l["a"])(.17)+"px",this.liSize=Object(l["a"])(.16)+"px",this.$nextTick((function(){setTimeout((function(){e.getData()}),500)}))},methods:{setHeight:function(){var e=this.height;this.h=e.substring(0,e.indexOf("px"))-document.body.clientWidth/20*.65-30+"px"},getData:function(){var e=this;Object(s["b"])(c).then((function(t){if(t.IsSuccess){var i=t.Result;e.length=t.Result.length,i.forEach((function(t,i){t.No=i+1,t.Name="".concat(t.FirstName," ").concat(t.LastName),e.dataList.push(t),e.setHeight()}))}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=(i("587a"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3f9b7ef9",null);t["default"]=h.exports},abff:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticClass:"hot-keys-container"},e._l(e.hotKeyList,(function(t,n){return i("div",{key:t.tag+"_"+n,staticClass:"wrapper"},[[i("div",{staticClass:"hot-keys-label"},[e._v(e._s(e.$fd("ShortcutKey",t.label)))]),e._v(" "),i("HotkeyInput",{staticClass:"hotkey",staticStyle:{width:"170px"},attrs:{hotkey:e.hotKeyList[n].keys,verify:e.handleHotkeyVerify,"hotkey-id":e.hotKeyList[n].id,placeholder:e.$t("trials:hotkeys:message:input")},on:{"update:hotkey":function(t){return e.$set(e.hotKeyList[n],"keys",t)}}})]],2)})),0)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.$t("common:button:save")))])],1)])},a=[],r=(i("a481"),i("2d63")),o=(i("ac6a"),i("c5f6"),i("c24f")),s=i("4c4f"),l={name:"HotKeys",components:{HotkeyInput:s["default"]},props:{readingTool:{type:Number,required:!0}},data:function(){return{hotKeyList:[],loading:!1}},watch:{hotKeyList:{handler:function(e){},immediate:!0}},mounted:function(){this.getHotkeys()},methods:{getHotkeys:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0,this.hotKeyList=[],Object(o["c"])({imageToolType:this.readingTool}).then((function(i){i.Result.map((function(t){e.hotKeyList.push({id:t.Id,keys:{controlKey:{altKey:t.AltKey,ctrlKey:t.CtrlKey,shiftKey:t.ShiftKey,metaKey:t.MetaKey,key:t.Keyboardkey,code:t.Code},text:t.Text},label:t.ShortcutKeyEnum})})),t&&e.$emit("reset",e.hotKeyList),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.loading=!0;var t={imageToolType:this.readingTool,shortcutKeyList:[]},i=[];this.hotKeyList.map((function(e){i.push({shortcutKeyEnum:e.label,keyboardkey:e.keys.controlKey.key,code:e.keys.controlKey.code,text:e.keys.text,altKey:e.keys.controlKey.altKey,ctrlKey:e.keys.controlKey.ctrlKey,shiftKey:e.keys.controlKey.shiftKey,metaKey:e.keys.controlKey.metaKey})})),t.shortcutKeyList=i,Object(o["h"])(t).then((function(t){e.$emit("reset",e.hotKeyList),e.$emit("close"),e.loading=!1})).catch((function(){e.loading=!1}))},handleReset:function(){var e=this;this.$confirm(this.$t("trials:hotkeys:message:confirmReset"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["g"])({imageToolType:e.readingTool}).then((function(t){e.$message.success(e.$t("trials:hotkeys:message:resetSuccessfully")),e.getHotkeys(!0)})).catch((function(){e.loading=!1}))})).catch((function(e){}))},handleHotkeyVerify:function(e){var t,i=Object(r["a"])(this.hotKeyList);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.keys.text===e.text&&n.id!==e.id){var a=this.$t("trials:hotkeys:message:tip1").replace("xxx",this.$fd("ShortcutKey",n.label));return this.$notify({title:this.$t("trials:hotkeys:message:tip"),message:a,type:"warning"}),!1}}}catch(o){i.e(o)}finally{i.f()}return!0}}},c=l,u=(i("6b4d"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},abffa:function(e,t,i){var n=i("3eba"),a=i("f706"),r=i("c965"),o=i("87c3");n.extendChartView({type:"scatter",render:function(e,t,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=o().reset(e);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(e){var t=e.coordinateSystem,i=t&&t.getArea&&t.getArea();return e.get("clip",!0)?i:null},_updateSymbolDraw:function(e,t){var i=this._symbolDraw,n=t.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new r:new a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(e,t,i){var n=i("cbe5"),a=i("401b"),r=i("4a3f"),o=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,c=r.cubicAt,u=r.quadraticDerivativeAt,d=r.cubicDerivativeAt,f=[];function h(e,t,i){var n=e.cpx2,a=e.cpy2;return null===n||null===a?[(i?d:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?d:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?u:l)(e.x1,e.cpx1,e.x2,t),(i?u:l)(e.y1,e.cpy1,e.y2,t)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.x1,n=t.y1,a=t.x2,r=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,d=t.cpy2,h=t.percent;0!==h&&(e.moveTo(i,n),null==u||null==d?(h<1&&(o(i,l,a,h,f),l=f[1],a=f[2],o(n,c,r,h,f),c=f[1],r=f[2]),e.quadraticCurveTo(l,c,a,r)):(h<1&&(s(i,l,u,a,h,f),l=f[1],u=f[2],a=f[3],s(n,c,d,r,h,f),c=f[1],d=f[2],r=f[3]),e.bezierCurveTo(l,c,u,d,a,r)))},pointAt:function(e){return h(this.shape,e,!1)},tangentAt:function(e){var t=h(this.shape,e,!0);return a.normalize(t,t)}});e.exports=p},ac21:function(e,t,i){},ac67:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"statistics"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Workload Statistics",name:"workLoadStat"}},["workLoadStat"===e.activeTab?i("workload-stats"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Reviewer Enrollment Statistics",name:"reviewerEnrollmentsStat"}},["reviewerEnrollmentsStat"===e.activeTab?i("enrollments-stats-by-Reviewer"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Enrollment Reviewer",name:"trialEnrollmentsStats"}},["trialEnrollmentsStats"===e.activeTab?i("trial-enrollments-stats"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Participates Statistics",name:"participatesStats"}},["participatesStats"===e.activeTab?i("participates-stats"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("1e25")),o=i("a723"),s=i("09a2"),l=i("94b3"),c={name:"Statistics",components:{WorkloadStats:r["default"],EnrollmentsStatsByReviewer:o["default"],TrialEnrollmentsStats:s["default"],ParticipatesStats:l["default"]},data:function(){return{activeTab:"workLoadStat",load:{workLoadStat:!0,reviewerEnrollmentsStat:!1,trialEnrollmentsStats:!1,participatesStats:!1}}},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},u=c,d=(i("f914"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},ac6b:function(e,t,i){"use strict";i("7f7f");var n=i("d225"),a=i("b0b4"),r=i("013f"),o=i("4e2b"),s=i("c603"),l=i("e6ad"),c=i("75fc");function u(e,t,i,n){var a=(i.x-n.x)*e,r=(i.y-n.y)*t,o=Math.sqrt(a*a+r*r),s=a/o,l=r/o;return{x:s,y:l,length:o}}function d(e,t){if(!t.handles.perpendicularStart.locked)return!1;var i,n,a,r,o=t.handles,s=o.start,l=o.end,c=e.image,d=c.columnPixelSpacing,f=void 0===d?1:d,h=c.rowPixelSpacing,p=void 0===h?1:h;if(s.x===l.x&&s.y===l.y)i=s.x,n=s.y,a=l.x,r=l.y;else{var m={x:(s.x+l.x)/2,y:(s.y+l.y)/2},g=u(f,p,s,l),v=g.length/2,b=v/(2*p),y=v/(2*f);i=m.x+y*g.y,n=m.y-b*g.x,a=m.x-y*g.y,r=m.y+b*g.x}return t.handles.perpendicularStart.x=i,t.handles.perpendicularStart.y=n,t.handles.perpendicularEnd.x=a,t.handles.perpendicularEnd.y=r,!0}var f=l["import"]("util/getPixelSpacing"),h=l["getModule"],p=l["getToolState"],m=l["toolStyle"],g=l["toolColors"],v=l["import"]("drawing/getNewContext"),b=l["import"]("drawing/draw"),y=l["import"]("drawing/setShadow"),w=l["import"]("drawing/drawLine"),_=l["import"]("drawing/drawLinkedTextBox"),I=l["import"]("drawing/drawHandles"),x=function(e){var t=this,i=e.detail,n=i.element,a=i.canvasContext,r=i.image,o=this.configuration,s=o.handleRadius,l=o.drawHandlesOnHover,c=o.hideHandlesIfMoving,u=o.renderDashed,x=h("globalConfiguration").configuration.lineDash,T=p(n,this.name);if(T){var C=f(r),k=C.rowPixelSpacing,R=C.colPixelSpacing;if(k&&R)for(var D,L=v(a.canvas),O=m.getToolWidth(),$=function(e){var a=T.data[e];if(!1===a.visible)return"continue";D=g.getColorIfActive(a),!0===a.invalidated&&(a.longestDiameter&&a.shortestDiameter?t.throttledUpdateCachedStats(r,n,a):t.updateCachedStats(r,n,a)),b(L,(function(e){y(e,t.configuration);var r=a.handles,o=r.start,f=r.end,h=r.perpendicularStart,p=r.perpendicularEnd,m=r.textBox,g={color:D},v={color:D,strokeWidth:b};u&&(g.lineDash=x,v.lineDash=x),w(e,n,o,f,g);var b=O;d(i,a),w(e,n,h,p,v);var T={color:D,handleRadius:s,drawHandlesIfActive:l,hideHandlesIfMoving:c};t.configuration.drawHandles&&I(e,i,a.handles,T);var C=10,L=function(e){return[e.start,e.end,e.perpendicularStart,e.perpendicularEnd]},$=S(a,k,R);a.hasOwnProperty("remark")&&(a.hasOwnProperty("status")&&a.status?$.unshift("".concat(a.remark,"(").concat(a.status,")")):$.unshift(a.remark)),_(e,n,m,$,a.handles,L,D,O,C,!0)}))},N=0;N3&&void 0!==arguments[3]?arguments[3]:{};return Object.assign({x:e,y:t,index:i,drawnIndependently:!1,allowedOutsideImage:!1,highlight:!0,active:!1},n)},k=function(e){var t=e.currentPoints.image,i=t.x,n=t.y,a={toolName:this.name,toolType:this.name,isCreating:!0,visible:!0,active:!0,invalidated:!0,handles:{start:C(i,n,0),end:C(i,n,1,{active:!0}),perpendicularStart:C(i,n,2,{locked:!0}),perpendicularEnd:C(i,n,3),textBox:C(i-30,n-50,null,{highlight:!1,hasMoved:!0,active:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0})},longestDiameter:0,shortestDiameter:0};return a};i.d(t,"a",(function(){return R}));var R=function(e){Object(o["a"])(i,e);var t=Object(s["a"])(i);function i(e){var a;Object(n["a"])(this,i);var o={name:"Bidirectional"};return a=t.call(this,e,o),a.digits=e&&e.digits?e.digits:1,a.createNewMeasurement=k.bind(Object(r["a"])(a)),a.renderToolData=x.bind(Object(r["a"])(a)),a}return Object(a["a"])(i,[{key:"updateCachedStats",value:function(e,t,i){if(i.toolName===this.name){var n=Object(T["a"])(i,e,this.digits),a=n.longestDiameter,r=n.shortestDiameter;i.longestDiameter=a,i.shortestDiameter=r,i.invalidated=!1}}}]),i}(l["BidirectionalTool"])},ac7e:function(e,t,i){"use strict";i("2f07")},acc3:function(e,t,i){},acd7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trial-myinfo"},[i("div",{staticClass:"trial-myinfo-left"},[i("div",{staticClass:"trial-myinfo-left-top"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:avater"))+"\n ")]),e._v(" "),i("div",{staticClass:"trial-myinfo-body"},[i("div",[e._v("\n "+e._s(e.user.LastName)+"\n ")])])]),e._v(" "),i("div",{staticClass:"trial-myinfo-left-bottom"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:basicInfo"))+"\n ")]),e._v(" "),i("el-form",{ref:"userForm",attrs:{"label-position":"right",model:e.user,rules:e.userFormRules,"label-width":"120px"}},[e.user.Code?i("el-form-item",{attrs:{label:"ID: ",prop:"Code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.Code,callback:function(t){e.$set(e.user,"Code",t)},expression:"user.Code"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{disabled:8===e.user.UserTypeEnum,label:e.$t("trials:trials-myinfo:form:surname"),prop:"LastName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:surname")},model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{disabled:8===e.user.UserTypeEnum,label:e.$t("trials:trials-myinfo:form:givenname"),prop:"FirstName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:givenname")},model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:e.$t("trials:trials-myinfo:form:gender"),prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},[i("el-radio",{attrs:{label:1}},[e._v("Male")]),e._v(" "),i("el-radio",{attrs:{label:0}},[e._v("Female")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:organization"),prop:"OrganizationName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:organization")},model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:department"),prop:"DepartmentName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:organization")},model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:position"),prop:"PositionName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:position")},model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-button",{staticClass:"trial-info-btn",attrs:{type:"primary",size:"small"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:save"))+"\n ")])],1)]),e._v(" "),i("div",{staticClass:"trial-myinfo-right"},[i("div",{staticClass:"trial-myinfo-right-box"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:accountInfo"))+"\n ")]),e._v(" "),i("el-form",{attrs:{"label-position":"right","label-width":"150px"}},[i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:userName"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.UserName))])]),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"UserName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:userName")},model:{value:e.userForm.UserName,callback:function(t){e.$set(e.userForm,"UserName",t)},expression:"userForm.UserName"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.UserName,type:"primary",size:"small"},on:{click:e.setNewUserName}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:phone"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.Phone))])]),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"UserName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:phone")},model:{value:e.userForm.Phone,callback:function(t){e.$set(e.userForm,"Phone",t)},expression:"userForm.Phone"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.Phone,type:"primary",size:"small"},on:{click:e.setNewPhone}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:email"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.EMail))])]),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px",position:"relative"},attrs:{label:"",prop:"EMail"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:email")},on:{input:e.handleEmailChange},model:{value:e.userForm.EMail,callback:function(t){e.$set(e.userForm,"EMail",t)},expression:"userForm.EMail"}}),e._v(" "),i("el-button",{staticClass:"sendCode",attrs:{disabled:e.sendDisabled,type:"primary",size:"mini"},on:{click:e.sendVerificationCode}},[e._v(e._s(e.sendTitle))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"VerificationCode"}},[i("el-input",{attrs:{placeholder:e.$t("trials:researchForm:form:verifyCode")},model:{value:e.userForm.VerificationCode,callback:function(t){e.$set(e.userForm,"VerificationCode",t)},expression:"userForm.VerificationCode"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.EMail||!e.userForm.VerificationCode||e.sendDisabled,type:"primary",size:"small"},on:{click:e.setNewEmail}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{staticClass:"trial-myinfo-right-box"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:updatePaasord"))+"\n ")]),e._v(" "),i("el-form",{ref:"passwordForm",attrs:{"label-position":"right",model:e.password,rules:e.passwordFormRules,"label-width":"150px"}},[i("el-form-item",{attrs:{label:e.$t("recompose:form:oldPassword"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:oldPassword")},model:{value:e.password.OldPassWord,callback:function(t){e.$set(e.password,"OldPassWord",t)},expression:"password.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:newPassword"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:newPassword")},model:{value:e.password.NewPassWord,callback:function(t){e.$set(e.password,"NewPassWord",t)},expression:"password.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:confirmPassword"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:confirmPassword")},model:{value:e.password.ConfirmPassWord,callback:function(t){e.$set(e.password,"ConfirmPassWord",t)},expression:"password.ConfirmPassWord"}})],1)],1),e._v(" "),i("el-button",{staticClass:"trial-info-btn",attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:save"))+"\n ")])],1)])])},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=i("50fc"),l=i("b775");function c(e){return Object(l["a"])({url:"/User/sendVerificationCode/".concat(e),method:"get"})}function u(e,t){return Object(l["a"])({url:"/User/setNewEmail/".concat(e,"/").concat(t),method:"put"})}function d(e){return Object(l["a"])({url:"/User/setNewPhone/".concat(e),method:"put"})}function f(e){return Object(l["a"])({url:"/User/setNewUserName/".concat(e),method:"put"})}var h=i("8237"),p=i.n(h),m=i("4360"),g=i("2f62"),v="",b=60,y={name:"TrialsMyinfo",data:function(){return{userTypeOptions:[],user:{},password:{},userForm:{},sendDisabled:!0,sendTitle:this.$t("trials:trials-myinfo:button:getVCode"),userFormRules:{UserName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],UserTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],OrganizationName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],LastName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],FirstName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],Sex:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Status:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},passwordFormRules:{OldPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],NewPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}],ConfirmPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}]}}},computed:Object(o["a"])({},Object(g["b"])(["userId","name"])),mounted:function(){this.getUserInfo(),this.getUserTypeList()},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(console.log(t),t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.userTypeEnum=i[0].UserTypeEnum),e.user.Id&&Object(s["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()})).catch((function(){e.isDisabled=!1}))}}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.userForm.EMail&&e.test(this.userForm.EMail)?this.sendDisabled=!1:this.sendDisabled=!0},sendVerificationCode:function(){var e=this;c(this.userForm.EMail).then((function(){e.settime(e),e.$message.success(e.$t("trials:trials-myinfo:message:sendSuccessfully"))}))},save:function(){var e=this;this.$refs.passwordForm.validate((function(t){if(t){if(e.password.NewPassWord!==e.password.ConfirmPassWord)return void e.$message.error(e.$t("passwordReset:formRule:passwordsDiffer"));var i={UserId:e.userId,NewPassWord:p()(e.password.NewPassWord),OldPassWord:p()(e.password.OldPassWord)};Object(s["r"])(i).then((function(t){t.IsSuccess&&(e.$message.success(e.$t("trials:trials-myinfo:message:modifyPWSuccessfully")),setTimeout((function(){e.logout()}),1e3))}))}}))},setNewEmail:function(){var e=this;u(this.userForm.EMail,this.userForm.VerificationCode).then((function(){e.userForm.EMail="",e.userForm.VerificationCode="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},setNewUserName:function(){var e=this;f(this.userForm.UserName).then((function(){e.userForm.UserName="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},setNewPhone:function(){var e=this;d(this.userForm.Phone).then((function(){e.userForm.Phone="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},getUserInfo:function(){var e=this,t=this.$loading({fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.07)"});Object(s["l"])(this.userId).then(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.user=n.Result,zzSessionStorage.setItem("realName",e.user.RealName),i.next=4,m["a"].dispatch("user/updateInfo");case 4:t.close();case 5:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(){t.close()}))},settime:function(e){if(0===b)return e.sendDisabled=!1,e.sendTitle=this.$t("trials:trials-myinfo:button:getVCode"),b=60,void clearTimeout(v);e.sendDisabled=!0,e.sendTitle="".concat(this.$t("trials:trials-myinfo:button:wait"),"(").concat(b,"s)"),b--,b=b,v=setTimeout((function(){e.settime(e)}),1e3)},getUserTypeList:function(){var e=this;Object(s["n"])().then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},logout:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=zzSessionStorage.getItem("loginType"),e.next=3,this.$store.dispatch("user/logout");case 3:t?this.$router.push("/login?loginType=".concat(t)):this.$router.push("/login");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},w=y,_=(i("4a46"),i("2877")),I=Object(_["a"])(w,n,a,!1,null,null,null);t["default"]=I.exports},acd9:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r}));var n=i("b775");function a(e){return Object(n["a"])({url:"/imageShare/createImageShare",method:"post",data:e})}function r(e,t){return Object(n["a"])({url:"/imageShare/verifyShareImage/".concat(e,"/").concat(t),method:"get"})}},ace0:function(e,t,i){"use strict";i("7bf8")},ace7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",disabled:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准: ",prop:"CriterionTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",clearable:""},model:{value:e.form.CriterionTypeEnum,callback:function(t){e.$set(e.form,"CriterionTypeEnum",t)},expression:"form.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}},isDistinguishCriteria:{type:Boolean,required:!0}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,CriterionTypeEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],CriterionTypeEnum:[{required:this.isDistinguishCriteria,message:"Please select",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.loading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.loading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.loading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.loading=!0,Object(s["e"])(e.form).then((function(t){e.loading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("保存成功!")})).catch((function(){e.loading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("3eff"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},adca:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Inspection/TrialConfig/updateTrialState",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Inspection/TrialDocument/userConfirm",method:"post",data:e})}},adda:function(e,t,i){var n=i("94e4"),a=n.circularLayout;function r(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&a(e,"symbolSize")}))}e.exports=r},adf4:function(e,t,i){var n=i("4f85"),a=i("b1d4"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("6179"),l=i("6d8b"),c=i("e0d3"),u=c.groupData,d=i("eda2"),f=d.encodeHTML,h=i("c4a3"),p=2,m=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new h(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,i={},n=u(e,(function(e){return i.hasOwnProperty(e[0])||(i[e[0]]=-1),e[2]})),a=[];n.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var r=a.length,o=0;o'});o.a.add(s);t["default"]=s},ae75:function(e,t,i){var n=i("6d8b"),a=["rect","polygon","keep","clear"];function r(e,t){var i=e&&e.brush;if(n.isArray(i)||(i=i?[i]:[]),i.length){var r=[];n.each(i,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var s=e&&e.toolbox;n.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var l=s.feature||(s.feature={}),c=l.brush||(l.brush={}),u=c.type||(c.type=[]);u.push.apply(u,r),o(u),t&&!u.length&&u.push.apply(u,a)}}function o(e){var t={};n.each(e,(function(e){t[e]=1})),e.length=0,n.each(t,(function(t,i){e.push(i)}))}e.exports=r},ae98:function(e,t,i){"use strict";i("910a")},aed0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"是否需要回执:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsReturnRequired,callback:function(t){e.$set(e.searchData,"IsReturnRequired",t)},expression:"searchData.IsReturnRequired"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReturnRequired",label:"是否需要回执","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsReturnRequired?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:"是否加急","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsUrgent?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsAutoSend",label:"是否自动发送","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsAutoSend?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EmailForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("47b4"),u=function(){return{IsReturnRequired:"",IsUrgent:"",IsEnable:"",PageIndex:1,PageSize:20}},d={name:"EmailList",components:{BoxContent:s["default"],Pagination:l["default"],EmailForm:c["default"]},data:function(){return{searchData:u(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["D"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},af24:function(e,t,i){i("48c7"),i("f273")},af6e:function(e,t,i){},af70:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"LesionTypeList",attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LesionType",label:"病灶类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LesionType",t.row.LesionType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"器官类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":""}}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1)],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("LesionTypeForm",{attrs:{data:e.rowData},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("4572"),c=function(){return{OrganType:null}},u={name:"LesionTypeTbl",components:{BaseContainer:s["default"],LesionTypeForm:l["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:c(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["db"])({criterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={CriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["B"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},afa0:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e1fc"),o=i("04f6");function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var i=0;i=0&&(this.delFromStorage(e),this._roots.splice(o,1),e instanceof r&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var c=l;e.exports=c},afba:function(e,t,i){},afe7:function(e,t,i){"use strict";i("ab99")},aff8:function(e,t,i){},b006:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fab22"),o=i("fc82"),s=i("f4a2"),l=i("2306"),c=["axisLine","axisTickLabel","axisName"],u=n.extendComponentView({type:"parallelAxis",init:function(e,t){u.superApply(this,"init",arguments),(this._brushController=new o(t.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(e,t,i,n){if(!d(e,t,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=h(e,t),u=s.coordinateSystem,f=e.getAreaSelectStyle(),p=f.width,m=e.axis.dim,g=u.getAxisLayout(m),v=a.extend({strokeContainThreshold:p},g),b=new r(e,v);a.each(c,b.add,b),this._axisGroup.add(b.getGroup()),this._refreshBrushController(v,f,e,s,p,i);var y=n&&!1===n.animation?null:e;l.groupTransition(o,this._axisGroup,y)}}},_refreshBrushController:function(e,t,i,n,a,r){var o=i.axis.getExtent(),c=o[1]-o[0],u=Math.min(30,.1*Math.abs(c)),d=l.BoundingRect.create({x:o[0],y:-a/2,width:c,height:a});d.x-=u,d.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(d),isTargetByCursor:s.makeRectIsTargetByCursor(d,r,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(f(i))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,r=a.map(e,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function d(e,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===e}function f(e){var t=e.axis;return a.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function h(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=u;e.exports=p},b029:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"urgent-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"urgentConfigForm",staticStyle:{width:"800px"},attrs:{model:e.form,"label-width":"220px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:enroll"),prop:"IsEnrollementQualificationConfirm"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsEnrollementQualificationConfirm,callback:function(t){e.$set(e.form,"IsEnrollementQualificationConfirm",t)},expression:"form.IsEnrollementQualificationConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:pd"),prop:"IsPDProgressView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsPDProgressView,callback:function(t){e.$set(e.form,"IsPDProgressView",t)},expression:"form.IsPDProgressView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:trial"),prop:"IsUrgent"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:subject"),prop:"IsSubjectExpeditedView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectExpeditedView,callback:function(t){e.$set(e.form,"IsSubjectExpeditedView",t)},expression:"form.IsSubjectExpeditedView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",[!1===e.form.IsTrialUrgentConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),!1===e.form.IsTrialUrgentConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&!e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleUpdate}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:updateAndConfirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e()],1)],1),e._v(" "),e.confirmVisible?i("el-dialog",{attrs:{visible:e.confirmVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.confirmVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal"),"show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleConfirmConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.updateVisible?i("el-dialog",{attrs:{visible:e.updateVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.updateVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OldVal",label:e.$t("trials:trialCfg:table:cfgVal")+" ("+e.$t("trials:trialCfg:table:beforeChange")+")","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal")+" ("+e.$t("trials:trialCfg:table:updated")+")","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{fontColor:t.row.NewVal!==t.row.OldVal}},[e._v(e._s(t.row.NewVal))])]}}],null,!1,1329206807)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleUpdateConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("0662"),l=i("179b"),c=i("7a9e"),u={name:"UrgentConfig",components:{SignForm:l["default"]},data:function(){return{form:{TrialId:"",IsEnrollementQualificationConfirm:null,IsPDProgressView:null,IsUrgent:null,IsSubjectExpeditedView:null,IsTrialUrgentConfirmed:!1},rules:{IsEnrollementQualificationConfirm:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsPDProgressView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsUrgent:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsSubjectExpeditedView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsTrialUrgentConfirmed:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1}},methods:{handleSave:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.loading=!0,Object(o["bb"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.initialForm=Object(r["a"])({},e.form),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=c["default"].processSignature.ExpeditedConfigConfirmation;this.signCode=e,this.initialForm=Object(r["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=c["default"].processSignature.ExpeditedConfigUpdates;this.signCode=e,this.initialForm=Object(r["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.btnLoading=!0,Object(o["bb"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(r["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1})))}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(s["c"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialUrgentConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.confirmVisible=!1,t.updateVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:urgentCfg:form:enroll"),NewVal:this.$fd("YesOrNo",this.form.IsEnrollementQualificationConfirm),OldVal:this.$fd("YesOrNo",this.initialForm.IsEnrollementQualificationConfirm)},{Name:this.$t("trials:urgentCfg:form:pd"),NewVal:this.$fd("YesOrNo",this.form.IsPDProgressView),OldVal:this.$fd("YesOrNo",this.initialForm.IsPDProgressView)},{Name:this.$t("trials:urgentCfg:form:trial"),NewVal:this.$fd("YesOrNo",this.form.IsUrgent),OldVal:this.$fd("YesOrNo",this.initialForm.IsUrgent)},{Name:this.$t("trials:urgentCfg:form:subject"),NewVal:this.$fd("YesOrNo",this.form.IsSubjectExpeditedView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectExpeditedView)}]},initForm:function(e){for(var t in this.form)e.hasOwnProperty(t)&&(this.form[t]=e[t]);this.initialForm=Object(r["a"])({},this.form)}}},d=u,f=(i("a654"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"1059ce16",null);t["default"]=h.exports},b02f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"participant-list"},[i("div",{staticClass:"filter-box"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:staff:table:name")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserRealName,callback:function(t){e.$set(e.listQuery,"UserRealName",t)},expression:"listQuery.UserRealName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:uid")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserName,callback:function(t){e.$set(e.listQuery,"UserName",t)},expression:"listQuery.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:userType")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserTypeId,callback:function(t){e.$set(e.listQuery,"UserTypeId",t)},expression:"listQuery.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:organization")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.OrganizationName,callback:function(t){e.$set(e.listQuery,"OrganizationName",t)},expression:"listQuery.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:status")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.IsDeleted,callback:function(t){e.$set(e.listQuery,"IsDeleted",t)},expression:"listQuery.IsDeleted"}},[i("el-option",{attrs:{label:"退出",value:!0}}),e._v(" "),i("el-option",{attrs:{label:"加入",value:!1}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:add-internal-staff"],expression:"['trials:trials-panel:setting:personnel-manage:add-internal-staff']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.handleAdd("Add")}}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],ref:"settingList",attrs:{data:e.list,height:"100",stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:staff:table:name"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:staff:table:uid"),"show-overflow-tooltip":"",sortable:"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staff:table:userType"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staff:table:phone"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:staff:table:email"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staff:table:organization"),sortable:"","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:staff:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"JoinTime",label:e.$t("trials:staff:table:joinTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.JoinTime?e.moment(t.row.JoinTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RemoveTime",label:e.$t("trials:staff:table:exitTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.RemoveTime?e.moment(t.row.RemoveTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:staff:table:authorizationTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:staff:table:disableTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:personnel-manage:status"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:status"],expression:"['trials:trials-panel:setting:personnel-manage:status']"}],attrs:{circle:"",title:e.$t("trials:staff:action:status"),icon:"el-icon-edit-outline",disabled:e.hasPermi(["role:pm"])&&1*t.row.UserTypeEnum===1},on:{click:function(i){return e.handleStatus(t.row)}}})]}}],null,!1,2261394539)}):e._e()],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.staff_model.visible?i("base-model",{attrs:{config:e.staff_model}},[i("template",{slot:"dialog-body"},["Add"==e.isAdd?i("StaffForm",{on:{closeDialog:e.closeDialog}}):i("StaffExternalForm",{on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],2):e._e(),e._v(" "),e.status_model.visible?i("base-model",{attrs:{config:e.status_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"statusForm",attrs:{model:e.statusForm,"label-width":"110px",size:"small",rules:e.statusRules}},[i("el-form-item",{attrs:{label:e.$t("trials:staff:table:status"),prop:"isDeleted"}},[i("el-radio-group",{on:{change:e.handleIsDeletedChanged},model:{value:e.statusForm.isDeleted,callback:function(t){e.$set(e.statusForm,"isDeleted",t)},expression:"statusForm.isDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("退出")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("加入")])],1)],1),e._v(" "),e.statusForm.isDeleted?i("el-form-item",{attrs:{label:e.$t("trials:staff:table:exitTime"),prop:"removeTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.statusForm.removeTime,callback:function(t){e.$set(e.statusForm,"removeTime",t)},expression:"statusForm.removeTime"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:staff:table:joinTime"),prop:"joinTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.statusForm.joinTime,callback:function(t){e.$set(e.statusForm,"joinTime",t)},expression:"statusForm.joinTime"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.status_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("333d"),l=i("1a33"),c=i("2c9b"),u=i("7eeb"),d=i("c1df"),f=i.n(d),h=function(){return{UserRealName:"",UserName:"",UserTypeId:"",OrganizationName:"",IsDeleted:null,PageIndex:1,PageSize:20}},p={name:"Staff",components:{Pagination:s["default"],StaffForm:l["default"],BaseModel:u["default"],StaffExternalForm:c["default"]},data:function(){return{list:[],listQuery:h(),listLoading:!1,total:0,staff_model:{visible:!1,title:this.$t("trials:staff:dialogTitle:add"),width:"1200px"},status_model:{visible:!1,title:this.$t("trials:staff:dialogTitle:status"),width:"500px"},userTypeOptions:[],isAdd:"Add",staffStatus:null,btnLoading:!1,currentRow:{},trialId:"",moment:f.a,statusForm:{isDeleted:!1,removeTime:"",joinTime:""},statusRules:{removeTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],joinTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(o["pc"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(e){this.staff_model.visible=!0,this.isAdd=e},handleStatus:function(e){var t=Object(r["a"])({},e),i=t.IsDeleted,n=t.RemoveTime,a=t.JoinTime;this.currentRow=Object(r["a"])({},e),this.statusForm.isDeleted=i,this.statusForm.removeTime=n,this.statusForm.joinTime=a,this.status_model.visible=!0},saveStatus:function(){var e=this;this.$refs.statusForm.validate((function(t){if(t){e.btnLoading=!0;var i={id:e.currentRow.Id,trialId:e.trialId,isDeleted:e.statusForm.isDeleted,removeTime:e.statusForm.removeTime,joinTime:e.statusForm.joinTime};Object(o["uf"])(i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.status_model.visible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},handleIsDeletedChanged:function(e){e?this.statusForm.joinTime="":this.statusForm.removeTime=""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=h(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},closeDialog:function(){this.staff_model.visible=!1,this.$message.success(this.$t("common:message:savedSuccessfully")),this.getList()},handleExport:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(o["pf"])(Object(r["a"])({},this.listQuery)).then((function(t){e.listLoading=!1})).catch((function(){e.listLoading=!1}))},getUserType:function(){var e=this;Object(o["de"])().then((function(t){e.userTypeOptions=t.Result}))}}},m=p,g=(i("268d"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},b034:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",DataTypeEnum:3,PageIndex:1,PageSize:20,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{DataTypeEnum:3})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageIndex:1,PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},b047:function(e,t,i){var n=i("1a8c"),a=i("408c"),r=i("b4b0"),o="Expected a function",s=Math.max,l=Math.min;function c(e,t,i){var c,u,d,f,h,p,m=0,g=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(o);function y(t){var i=c,n=u;return c=u=void 0,m=t,f=e.apply(n,i),f}function w(e){return m=e,h=setTimeout(x,t),g?y(e):f}function _(e){var i=e-p,n=e-m,a=t-i;return v?l(a,d-n):a}function I(e){var i=e-p,n=e-m;return void 0===p||i>=t||i<0||v&&n>=d}function x(){var e=a();if(I(e))return S(e);h=setTimeout(x,_(e))}function S(e){return h=void 0,b&&c?y(e):(c=u=void 0,f)}function T(){void 0!==h&&clearTimeout(h),m=0,c=p=u=h=void 0}function C(){return void 0===h?f:S(a())}function k(){var e=a(),i=I(e);if(c=arguments,u=this,p=e,i){if(void 0===h)return w(p);if(v)return clearTimeout(h),h=setTimeout(x,t),y(p)}return void 0===h&&(h=setTimeout(x,t)),f}return t=r(t)||0,n(i)&&(g=!!i.leading,v="maxWait"in i,d=v?s(r(i.maxWait)||0,t):d,b="trailing"in i?!!i.trailing:b),k.cancel=T,k.flush=C,k}e.exports=c},b061:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"title"},[e._v("Education (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.educationList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Degree",label:"Degree","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Degree,expression:"scope.row.Degree"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Degree:t.row.DegreeCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Major","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Organization",label:"Institution","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Organization,expression:"scope.row.Organization"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Organization:t.row.OrganizationCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"title"},[e._v("Postgraduate Training (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.postgraduateList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Training,expression:"scope.row.Training"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Training:t.row.TrainingCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Specialty / Research Field","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",label:"Hospital","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Hospital,expression:"scope.row.Hospital"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Hospital:t.row.HospitalCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"School",label:"University","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.School,expression:"scope.row.School"}]},[e._v("\n "+e._s(e.isEnglish?t.row.School:t.row.SchoolCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1)],1)},a=[],r={props:{educationList:{type:Array,default:function(){return[]}},postgraduateList:{type:Array,default:function(){return[]}},isEnglish:{type:Boolean}},methods:{}},o=r,s=(i("18e0"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b0af:function(e,t,i){var n=i("2306"),a=i("3842"),r=a.round;function o(e,t,i){var a=e.getArea(),r=e.getBaseAxis().isHorizontal(),o=a.x,s=a.y,l=a.width,c=a.height,u=i.get("lineStyle.width")||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var d=new n.Rect({shape:{x:o,y:s,width:l,height:c}});return t&&(d.shape[r?"width":"height"]=0,n.initProps(d,{shape:{width:l,height:c}},i)),d}function s(e,t,i){var a=e.getArea(),o=new n.Sector({shape:{cx:r(e.cx,1),cy:r(e.cy,1),r0:r(a.r0,1),r:r(a.r,1),startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return t&&(o.shape.endAngle=a.startAngle,n.initProps(o,{shape:{endAngle:a.endAngle}},i)),o}function l(e,t,i){return e?"polar"===e.type?s(e,t,i):"cartesian2d"===e.type?o(e,t,i):null:null}t.createGridClipPath=o,t.createPolarClipPath=s,t.createClipPath=l},b0f2:function(e,t,i){"use strict";i("bb6c")},b11c:function(e,t,i){i("8ec5"),i("db9e"),i("4e9f"),i("d3a0"),i("767c"),i("7c4d"),i("df70")},b12d:function(e,t,i){},b12f:function(e,t,i){var n=i("e1fc"),a=i("8918"),r=i("625e"),o=function(){this.group=new n,this.uid=a.getUID("viewComponent")};o.prototype={constructor:o,init:function(e,t){},render:function(e,t,i,n){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,i,n){},r.enableClassExtend(o),r.enableClassManagement(o,{registerWhenExtend:!0});var l=o;e.exports=l},b147:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search-form",staticStyle:{"text-align":"left"}},[e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])||e.isFromSystem?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]),e._v(" "),e.isPreview?i("el-button",{attrs:{disabled:0===e.tblList.length,size:"mini",type:"primary"},on:{click:e.handlePreview}},[e._v("\n "+e._s(e.$t("common:button:preview"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,size:"small"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupName",label:e.$t("trials:readingUnit:qsList:title:groupName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupEnName",label:e.$t("trials:readingUnit:qsList:title:groupNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:readingUnit:qsList:title:qsName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:readingUnit:qsList:title:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:readingUnit:qsList:title:isRequired"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:e.$t("trials:readingUnit:qsList:title:isShow"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:e.$t("trials:readingUnit:qsList:title:isShowInDicom"),width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),width:"280","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm||e.isFromSystem||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handlelook(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:view"))+"\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:edit"))+"\n ")]),e._v(" "),"table"===t.row.Type?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:tableQs"))+"\n ")]):e._e(),e._v(" "),e.isConfirm||e.isFromSystem||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?e._e():i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:delete"))+"\n ")])]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("QuestionsForm",{ref:"addOrEdit",attrs:{data:e.rowData,"trial-criterion-id":e.trialCriterionId,"is-from-system":e.isFromSystem,"digit-places":e.digitPlaces,list:e.tblList,"is-look":e.isLook,IsSystemCriterion:e.IsSystemCriterion},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList,reloadArbitrationRules:e.reloadArbitrationRules}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,fullscreen:!0},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("QuestionsPreview",{attrs:{"criterion-id":e.trialCriterionId,"form-type":1}})],1):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,fullscreen:!0},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("TableQsList",{attrs:{"digit-places":e.digitPlaces,"reading-question-id":e.rowData.Id,"is-from-system":e.isFromSystem,"is-confirm":e.isConfirm,"criterion-id":e.trialCriterionId},on:{close:function(t){e.config.visible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("72a8"),l=i("0b82"),c=i("7faa"),u=function(){return{QuestionName:""}},d={name:"QcQuestions",components:{QuestionsForm:s["default"],QuestionsPreview:l["default"],TableQsList:c["default"]},props:{digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},trialCriterionId:{type:String,required:!0},readingCriterionPageId:{type:String,default:""},isConfirm:{type:Boolean,default:!0},isPreview:{type:Boolean,default:!0},isFromSystem:{type:Boolean,default:!0}},data:function(){return{searchData:u(),isLook:null,tblList:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:this.$t("trials:readingUnit:qsList:title:ecrfPreview")},config:{visible:!1,title:""}}},mounted:function(){this.tblList=this.list},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.searchData.ReadingCriterionPageId=this.readingCriterionPageId,Object(o["Xc"])(this.searchData).then((function(t){e.loading=!1,e.tblList=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionTrialId:this.trialCriterionId,ReadingCriterionPageId:this.readingCriterionPageId,Id:""},this.isLook=!1,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:add"),this.addOrEdit.visible=!0},handlelook:function(e){this.rowData=Object(r["a"])({},e),this.isLook=!0,this.rowData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.rowData.ReadingCriterionPageId=this.readingCriterionPageId,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:view"),this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.isLook=!1,this.rowData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.rowData.ReadingCriterionPageId=this.readingCriterionPageId,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:edit"),this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingUnit:qsList:message:deleteConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["sb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:readingUnit:qsList:message:deleteSuccessfully")))})).catch((function(){t.loading=!1}))}))},handlePreview:function(){this.preview.visible=!0},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.config.title="".concat(this.$fd("LesionType",e.LesionType),":").concat(this.$t("trials:readingUnit:qsList:title:tableQs")),this.config.visible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=u(),this.getList()},reloadArbitrationRules:function(){this.$emit("reloadArbitrationRules")}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,"8a9faf1e",null);t["default"]=p.exports},b169:function(e,t,i){"use strict";i("7086")},b16f:function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("4942"),o=i("41ef");function s(e,t){n.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}a.inherits(s,n),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var i=this;a.each(["fill","stroke"],(function(n){if(t.style[n]&&("linear"===t.style[n].type||"radial"===t.style[n].type)){var a,r=t.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(t);var s=a.getAttribute("id");e.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return r("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;n.prototype.update.call(this,e,(function(){var i=e.type,n=e._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void r("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var i=e.colorStops,n=0,a=i.length;n-1){var c=o.parse(l)[3],u=o.toHex(l);s.setAttribute("stop-color","#"+u),s.setAttribute("stop-opacity",c)}else s.setAttribute("stop-color",i[n].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&n.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&n.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},b191:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("router-view")},a=[],r={},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"6e7d99e5",null);t["default"]=l.exports},b1d4:function(e,t,i){var n=i("862d");function a(e,t){return t=t||{},n(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=a},b202:function(e,t,i){},b235:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},b244:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"previousOther",staticClass:"previousOther-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentType"),prop:"TreatmentType"}},[i("el-input",{model:{value:e.form.TreatmentType,callback:function(t){e.$set(e.form,"TreatmentType",t)},expression:"form.TreatmentType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),prop:"StartTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.form.StartTime,callback:function(t){e.$set(e.form,"StartTime",t)},expression:"form.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),prop:"EndTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endpickerOption},model:{value:e.form.EndTime,callback:function(t){e.$set(e.form,"EndTime",t)},expression:"form.EndTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={name:"PreviousOther",props:{parentData:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){var e=this;return{trialId:this.$route.query.trialId,form:{Id:"",TreatmentType:"",StartTime:"",EndTime:"",ClinicalDataTrialSetId:""},rules:{TreatmentType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,beginPickerOption:{disabledDate:function(t){return e.form.EndTime?t.getTime()>=new Date(e.form.EndTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.form.StartTime?t.getTime()>Date.now()||t.getTime()<=new Date(e.form.StartTime).getTime()-864e5:t.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.previousOther.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["m"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePODialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePODialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},b278:function(e,t,i){},b2e9:function(e,t,i){"use strict";i("36ff")},b300:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trialExperience-info"},[i("div",{staticClass:"title"},[e._v("Clinical Trial Experience")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.GCPList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase",label:"Phase","min-width":"20","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Review Criteria","min-width":"40","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EvaluationCriteriaList.length>0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"150","show-overflow-tooltip":""}})],1),e._v(" "),i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"GCP Certificate:"}},[i("span",[e._v(e._s(e.GCP))]),e._v(" "),e.form.GCP?i("a",{staticClass:"view",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previewGCP()}}},[e._v("View")]):e._e()]),e._v(" "),i("el-form-item",{attrs:{label:"Other Relevant Experience:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperience,callback:function(t){e.$set(e.form,"OtherClinicalExperience",t)},expression:"form.OtherClinicalExperience"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperienceCN,callback:function(t){e.$set(e.form,"OtherClinicalExperienceCN",t)},expression:"form.OtherClinicalExperienceCN"}})],1)],1)],1)},a=[],r={props:{trialExperience:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}},data:function(){return{GCPList:[],form:{},GCP:"",GCPPath:""}},mounted:function(){this.GCPList=this.trialExperience.ClinicalTrialExperienceList,this.form=this.trialExperience,this.GCP=this.trialExperience.GCP?"Yes":"No",this.trialExperience.GCP&&(this.GCPPath=this.trialExperience.GCPFullPath)},methods:{previewGCP:function(){this.GCPPath&&window.open(this.GCPPath,"_blank")}}},o=r,s=(i("8377"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b306:function(e,t,i){"use strict";i("5ce9")},b308:function(e,t,i){"use strict";i("c765")},b336:function(e,t,i){var n=i("6d8b"),a=n.each;function r(e){var t=e&&e.visualMap;n.isArray(t)||(t=t?[t]:[]),a(t,(function(e){if(e){o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&n.isArray(t)&&a(t,(function(e){n.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))}}))}function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=r},b369:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("80f0"),s=i("55ac"),l=i("f610"),c=i("4a01"),u=i("9850"),d=i("1687"),f=i("e6cd"),h=i("282b"),p=i("eda2"),m=p.windowOpen,g=a.bind,v=r.Group,b=r.Rect,y=a.each,w=3,_=["label"],I=["emphasis","label"],x=["upperLabel"],S=["emphasis","upperLabel"],T=10,C=1,k=2,R=h([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),D=function(e){var t=R(e);return t.stroke=t.fill=t.lineWidth=null,t},L=n.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=O(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,n){var r=t.findComponents({mainType:"series",subType:"treemap",query:n});if(!(a.indexOf(r,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(n,o,e),c=n&&n.type,u=e.layoutInfo,d=!this._oldTree,f=this._storage,h="treemapRootToNode"===c&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(u),m=this._doRender(p,e,h);d||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?m.renderFinally():this._doAnimation(p,m,e,h),this._resetController(i),this._renderBreadcrumb(e,i,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){var n=t.getData().tree,r=this._oldTree,s=O(),l=O(),c=this._storage,u=[],d=a.curry($,t,l,c,i,s,u);h(n.root?[n.root]:[],r&&r.root?[r.root]:[],e,n===r||!r,0);var f=p(c);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:m};function h(e,t,i,n,r){function s(e){return e.getId()}function l(a,o){var s=null!=a?e[a]:null,l=null!=o?t[o]:null,c=d(s,l,i,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,n,r+1)}n?(t=e,y(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new o(t,e,s,s).add(l).update(l).remove(a.curry(l,null)).execute()}function p(e){var t=O();return e&&y(e,(function(e,i){var n=t[i];y(e,(function(e){e&&(n.push(e),e.__tmWillDelete=1)}))})),t}function m(){y(f,(function(e){y(e,(function(e){e.parent&&e.parent.remove(e)}))})),y(u,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=f.createWrap();y(t.willDeleteEls,(function(e,t){y(e,(function(e,i){if(!e.invisible){var a,l=e.parent;if(n&&"drillDown"===n.direction)a=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,u=l.__tmNodeHeight/2),a="nodeGroup"===t?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}a&&s.add(e,a,r,o)}}))})),y(this._storage,(function(e,i){y(e,(function(e,n){var l=t.lastsForAnimation[i][n],c={};l&&("nodeGroup"===i?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=a.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),s.add(e,c,r,o))}))}),this),this._state="animating",s.done(g((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",g(this._onPan,this)),t.on("zoom",g(this._onZoom,this)));var i=new u(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>w||Math.abs(e.dy)>w)){var t=this.seriesModel.getData().tree.root;if(!t)return;var i=t.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new u(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,i-=o.y;var s=d.create();d.translate(s,s,[-t,-i]),d.scale(s,s,[e.scale,e.scale]),d.translate(s,s,[t,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&m(r,o)}}}}}),this)},_renderBreadcrumb:function(e,t,i){function n(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}i||(i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,i.node,g(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});function O(){return{nodeGroup:[],background:[],content:[]}}function $(e,t,i,n,o,s,l,c,u,d){if(l){var f=l.getLayout(),h=e.getData();if(h.setItemGraphicEl(l.dataIndex,null),f&&f.isInView){var p=f.width,m=f.height,g=f.borderWidth,y=f.invisible,w=l.getRawIndex(),T=c&&c.getRawIndex(),L=l.viewChildren,O=f.upperHeight,$=L&&L.length,A=l.getModel("itemStyle"),P=l.getModel("emphasis.itemStyle"),E=Q("nodeGroup",v);if(E){if(u.add(E),E.attr("position",[f.x||0,f.y||0]),E.__tmNodeWidth=p,E.__tmNodeHeight=m,f.isAboveViewRoot)return E;var M=l.getModel(),F=Q("background",b,d,C);if(F&&V(E,F,$&&f.upperLabelHeight),$)r.isHighDownDispatcher(E)&&r.setAsHighDownDispatcher(E,!1),F&&(r.setAsHighDownDispatcher(F,!0),h.setItemGraphicEl(l.dataIndex,F));else{var j=Q("content",b,d,k);j&&q(E,j),F&&r.isHighDownDispatcher(F)&&r.setAsHighDownDispatcher(F,!1),r.setAsHighDownDispatcher(E,!0),h.setItemGraphicEl(l.dataIndex,E)}return E}}}function V(t,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,i.setShape({x:0,y:0,width:p,height:m}),y)z(i);else{i.invisible=!1;var a=l.getVisual("borderColor",!0),o=P.get("borderColor"),s=D(A);s.fill=a;var c=R(P);if(c.fill=o,n){var u=p-2*g;B(s,c,a,u,O,{x:g,y:0,width:u,height:O})}else s.text=c.text=null;i.setStyle(s),r.setElementHoverStyle(i,c)}t.add(i)}function q(t,i){i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex;var n=Math.max(p-2*g,0),a=Math.max(m-2*g,0);if(i.culling=!0,i.setShape({x:g,y:g,width:n,height:a}),y)z(i);else{i.invisible=!1;var o=l.getVisual("color",!0),s=D(A);s.fill=o;var c=R(P);B(s,c,o,n,a),i.setStyle(s),r.setElementHoverStyle(i,c)}t.add(i)}function z(e){!e.invisible&&s.push(e)}function B(t,i,n,o,s,c){var u=M.get("name"),d=M.getModel(c?x:_),h=M.getModel(c?S:I),p=d.getShallow("show");r.setLabelStyle(t,i,d,h,{defaultText:p?u:null,autoColor:n,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:c?"upperLabel":"label"}),U(t,c,f),U(i,c,f),c&&(t.textRect=a.clone(c)),t.truncate=p&&d.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function U(t,i,n){var a=t.text;if(!i&&n.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function Q(e,n,a,r){var s=null!=T&&i[e][T],l=o[e];return s?(i[e][T]=null,H(l,s,e)):y||(s=new n({z:N(a,r)}),s.__tmDepth=a,s.__tmStorageName=e,G(l,s,e)),t[e][w]=s}function H(e,t,i){var n=e[w]={};n.old="nodeGroup"===i?t.position.slice():a.extend({},t.shape)}function G(e,t,i){var a=e[w]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,c=0,u=o.background[r.getRawIndex()];!n&&u&&u.old&&(s=u.old.width,c=u.old.height),a.old="nodeGroup"===i?[0,c]:{x:s,y:c,width:0,height:0}}a.fadein="nodeGroup"!==i}}function N(e,t){var i=e*T+t;return(i-1)/i}e.exports=L},b381:function(e,t,i){"use strict";i("383a")},b39a:function(e,t,i){var n=i("d3f4");e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3a7:function(e,t,i){"use strict";i("0c44")},b3f5:function(e,t,i){},b418:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisabled||"1"===e.$route.query.ReviewStatus}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("7f7f"),i("ac6a"),i("a796")),o={name:"UploadFile",props:{type:{type:String,required:!0},doctorId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},mounted:function(){this.initFileList()},methods:{initFileList:function(){var e=this;Object(r["b"])(this.doctorId,this.type).then((function(t){t.IsSuccess&&(t.Result.length>0?e.fileList=e.formatterFileList(t.Result):e.fileList=[])}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={name:e.FileName,path:e.Path,fullPath:e.FullPath,id:e.Id,type:e.Type};t.push(i)})),t},uploadFile:function(e){var t=this;this.$emit("handleUpload",!0);var i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,this.type,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({name:i,path:e.Result.FilePath,fullPath:e.Result.FullFilePath,type:t.type}),t.saveFile())})).catch((function(){t.btnDisabled=!1,t.$emit("handleUpload",!1)}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.path,a=t.fullPath,o=t.type,s=[{DoctorId:this.doctorId,Type:o,Path:n,FullPath:a,FileName:i}];Object(r["c"])(s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].id=t.Result[0].Id,e.$message.success("Uploaded successfully"),e.$emit("getFileList",t.Result[0].Id,t.Result[0].Path))})).catch((function(){e.btnDisabled=!1,e.$emit("handleUpload",!1)}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,["pdf","PDF"]);if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.id?Object(r["a"])(e.id,e.path).then((function(e){e.IsSuccess&&(i.fileList=[],i.$emit("getFileList","",""),i.$message({message:"Deleted successfully!",type:"success"}))})):this.fileList=[])},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.indexOf(i)>-1}}},s=o,l=(i("08a6"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},b419:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("4319"),o=i("6679"),s=i("fab22"),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),a=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function u(e){var t=e.getRadiusAxis();return t.inverse?0:1}function d(e){var t=e[0],i=e[e.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<1e-4&&e.pop()}var f=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,a=i.polar,r=a.getRadiusAxis().getExtent(),o=i.getTicksCoords(),s=i.getMinorTicksCoords(),c=n.map(i.getViewLabels(),(function(e){e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));d(c),d(o),n.each(l,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,a,o,s,r,c)}),this)}},_axisLine:function(e,t,i,n,r){var o,s=e.getModel("axisLine.lineStyle"),l=u(t),c=l?0:1;o=0===r[c]?new a.Circle({shape:{cx:t.cx,cy:t.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new a.Ring({shape:{cx:t.cx,cy:t.cy,r:r[l],r0:r[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,i,r,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),d=o[u(t)],f=n.map(i,(function(e){return new a.Line({shape:c(t,[d,d+l],e.coord)})}));this.group.add(a.mergePath(f,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,i,r,o){if(r.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),d=(s.get("inside")?-1:1)*l.get("length"),f=o[u(t)],h=[],p=0;pv?"left":"right",w=Math.abs(g[1]-b)/m<.3?"middle":g[1]>b?"top":"bottom";d&&d[c]&&d[c].textStyle&&(o=new r(d[c].textStyle,f,f.ecModel));var _=new a.Text({silent:s.isLabelSilent(e)});this.group.add(_),a.setTextStyle(_.style,o,{x:g[0],y:g[1],textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:y,textVerticalAlign:w}),p&&(_.eventData=s.makeAxisEventDataBase(e),_.eventData.targetType="axisLabel",_.eventData.value=i.rawLabel)}),this)},_splitLine:function(e,t,i,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),d=0;u=u instanceof Array?u:[u];for(var f=[],h=0;h'});o.a.add(s);t["default"]=s},b4b0:function(e,t,i){var n=i("8d74"),a=i("1a8c"),r=i("ffd6"),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(r(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?u(e.slice(2),i?2:8):s.test(e)?o:+e}e.exports=d},b4be:function(e,t,i){"use strict";i("117f")},b4d5:function(e,t,i){},b502:function(e,t,i){"use strict";i("1ea6")},b510:function(e,t,i){"use strict";i("075e")},b572:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px",color:"#fff"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):e._e(),e._v(" "),"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",color:"#fff",margin:"10px 0 5px"}},[i("span",[e._v(e._s(e.question.QuestionName))]),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.openAddTableCol(e.question)}}},[e._v("\n 添加\n ")]):e._e()],1),e._v(" "),i("el-table",{attrs:{data:e.questionForm[e.question.Id]}},[e._l(e.question.TableQuestions.Questions,(function(t){return i("el-table-column",{key:t.Id,attrs:{prop:t.Id,label:t.QuestionName,"show-overflow-tooltip":"","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(n){return["upload"===t.Type?i("span",[e._v("\n "+e._s(""===n.row[t.Id]?"":n.row[t.Id].split("|").length)+"\n ")]):"number"===t.Type?i("span",[e._v("\n "+e._s(n.row[t.Id]?parseFloat(n.row[t.Id]).toFixed(e.digitPlaces):null)+"\n ")]):i("span",[e._v("\n "+e._s(n.row[t.Id])+"\n ")])]}}],null,!0)})})),e._v(" "),e.readingTaskState<2?i("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":"",width:"100px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.openAddTableCol(e.question,t.$index)}}},[e._v("\n 编辑\n ")]),e._v(" "),"True"===t.row.IsCurrentTaskAdd||!e.question.IsCopyLesions||e.IsBaseline?i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.deleteTableCol(e.question,t.$index)}}},[e._v("\n 删除\n ")]):e._e()]}}],null,!1,4281095178)}):e._e()],2)],1):[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},on:{input:function(t){e.value=e.value.replace(/^\D*(\d*(?:.\d{0,2})?).*$/g,"$1")}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number",onblur:"value=parseInt(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",onblur:"value=parseInt(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0&&"table"!==e.question.Type?e._l(e.question.Childrens,(function(t){return i("CustomizeQuestionFormItem",{key:t.Id,attrs:{question:t,IsBaseline:e.IsBaseline,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,CalculationList:e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e(),e._v(" "),i("base-model",{staticClass:"my_dialog",attrs:{config:e.addOrEdit,"close-on-click-modal":!1,width:"400px","append-to-body":""}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.QuestionsForm,size:"small"}},e._l(e.QuestionsList,(function(t){return i("QuestionTableFormItem",{key:t.Id,attrs:{question:t,IsBaseline:e.IsBaseline,"reading-task-state":e.readingTaskState,"question-form":e.QuestionsForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,type:e.addOrEdit.type,CalculationList:e.CalculationList},on:{formItemTableNumberChange:e.formItemTableNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData,setFormTableItemData:e.setFormTableItemData}})})),1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.addOrEdit.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{staticClass:"my_upload_btn",attrs:{size:"small"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2)],2)},a=[],r=(i("386d"),i("7f7f"),i("6b54"),i("75fc")),o=(i("20d6"),i("3b2b"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("8ae4"),c=i("7eeb"),u=i("9b92"),d={name:"CustomizeQuestionFormItem",components:{QuestionTableFormItem:l["default"],BaseModel:c["default"]},props:{IsBaseline:{type:Boolean,required:!0},questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},CalculationList:{type:Array,default:[]}},data:function(){return{addOrEdit:{visible:!1,title:"",width:"400px"},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},AnswersList:[],loading:!1,RowIndex:0,RowId:null,digitPlaces:0}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.question.Id]||!t[this.question.Id])return}catch(i){}this.formItemNumberChange(this.question.Id,!1)}}},mounted:function(){var e=this;this.digitPlaces=localStorage.getItem("digitPlaces")?parseInt(localStorage.getItem("digitPlaces")):0,"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"table"===this.question.Type&&this.questionForm[this.question.Id]&&(this.QuestionsForm={},this.question.TableQuestions.Questions.forEach((function(t){"number"===t.Type?e.$set(e.QuestionsForm,t.Id,0):e.$set(e.QuestionsForm,t.Id,"")})))},methods:{deleteTableCol:function(e,t){var i=this;console.log(e),this.$confirm("确定要删除该行表格问题吗?").then((function(){var n=i.$loading({fullscreen:!0}),a={visitTaskId:i.visitTaskId,questionId:e.Id,rowId:i.questionForm[e.Id][t].RowId};Object(s["tb"])(a).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.IsSuccess&&(i.$message.success("删除成功"),u["a"].$emit("reGetQuestionAnswer")),n.close();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.close()}))}))},setFormTableItemData:function(e,t){this.$set(this.QuestionsForm,e,t)},handleSave:function(){var e=this;console.log(this.QuestionsForm),this.$refs.tableQsForm.validate((function(t){if(t){var i=e.$loading({fullscreen:!0}),n=[],a=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),r=function(t){a.test(t)&&-1===n.findIndex((function(e){return e.tableQuestionId===t}))&&(console.log(e.QuestionsForm),n.push({tableQuestionId:t,answer:e.QuestionsForm[t]}))};for(var l in e.QuestionsForm)r(l);if("edit"===e.addOrEdit.type)var c={questionId:e.question.Id,RowIndex:parseInt(e.QuestionsForm.RowIndex),RowId:e.QuestionsForm.RowId,visitTaskId:e.visitTaskId,trialId:e.$route.query.trialId,answerList:n};else{c={questionId:e.question.Id,RowIndex:e.questionForm[e.question.Id].length+1,visitTaskId:e.visitTaskId,trialId:e.$route.query.trialId,answerList:n};e.QuestionsForm.RowIndex=e.questionForm[e.question.Id].length+1}Object(s["ef"])(c).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success("保存成功!"),e.QuestionsForm.RowId=n.Result.RowId,e.save(),i.close();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()}))}}))},renderHeader:function(e,t){var i=document.createElement("span");return i.style.fontSize="14px",i.innerText=t.column.label,document.body.appendChild(i),t.column.realWidth=i.getBoundingClientRect().width+40,document.body.removeChild(i),e("span",t.column.label)},getQuestionCalculateRelation:function(){var e=this;Object(s["Jc"])({TrialReadingCriterionId:this.criterionId,ReadingQuestionId:this.question.Id}).then((function(t){e.CalculationList=t.Result}))},save:function(){var e=this;console.log(this.$refs.tableQsForm,this.QuestionsForm),this.$refs["tableQsForm"].validate((function(t){if(console.log(t),t){if("add"===e.addOrEdit.type)e.AnswersList.push(e.QuestionsForm);else{var i=e.AnswersList.findIndex((function(t){return t.RowId===e.QuestionsForm.RowId}));e.AnswersList.splice(i,1,e.QuestionsForm)}e.$emit("setFormItemData",{key:e.question.Id,val:e.AnswersList}),e.formItemNumberChange(e.question.Id,!0),e.addOrEdit.visible=!1}}))},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o));break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:0===parseFloat(t.questionForm[n.TableQuestionId])?i=0:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(a){console.log(a)}var n=parseInt(localStorage.getItem("digitPlaces"));return 2===e.ValueType&&(i*=100),i.toFixed(n)},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(a){var r=i.logic(t);!1!==r&&i.$emit("setFormItemData",{key:t.QuestionId,val:r})}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$emit("setFormItemData",{key:t.QuestionId,val:a})}}))},formItemTableNumberChange:function(){var e=this;this.question.TableQuestions.Questions.forEach((function(t){if("number"===t.Type&&1===t.DataSource){var i,n=JSON.parse(t.CalculateQuestions);n.forEach((function(n,a){if(0===a)i=e.QuestionsForm[n.TableQuestionId];else switch(t.CustomCalculateMark){case 1:i+=e.QuestionsForm[n.TableQuestionId];break;case 2:i-=e.QuestionsForm[n.TableQuestionId];break;case 3:i*=e.QuestionsForm[n.TableQuestionId];break;case 4:i/=e.QuestionsForm[n.TableQuestionId];break}})),e.$set(e.QuestionsForm,t.Id,i.toString())}}))},openAddTableCol:function(e,t){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,t||0===t?(this.addOrEdit.type="edit",console.log(this.questionForm),this.QuestionsForm=Object.assign({},this.questionForm[e.Id][t])):(this.addOrEdit.type="add",this.QuestionsForm={})},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(s["Rd"])(t).then((function(t){e.organList=t.Result}))},formNumberItemChange:function(e){this.$emit("setFormItemData",{key:e.QuestionId,val:num})},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(s["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},f=d,h=(i("30a1"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"11fb9fbd",null);t["default"]=p.exports},b582:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"QC问题配置",name:"qc"}},["qc"==e.activeTab?i("qc-questions"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"阅片标准配置",name:"criterions"}},["criterions"==e.activeTab?i("criterions-tmp"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"临床数据配置",name:"clinicalData"}},["clinicalData"==e.activeTab?i("clinical-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"医学审核问题配置",name:"medicalAudit"}},["medicalAudit"==e.activeTab?i("medical-audit"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"DICOM字段匿名化配置",name:"anonymization"}},["anonymization"==e.activeTab?i("Anonymization"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"DICOM字段新增配置",name:"increasefields"}},["increasefields"==e.activeTab?i("IncreaseFields"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"邮件管理",name:"email"}},["email"==e.activeTab?i("Email"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"签名管理",name:"sign"}},["sign"==e.activeTab?i("Sign"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("0a32")),o=i("5adc"),s=i("909f"),l=i("2ae9"),c=i("02c9"),u=i("87d6"),d=i("cc2e"),f=i("8455"),h={name:"Questions",components:{QcQuestions:r["default"],CriterionsTmp:o["default"],ClinicalData:s["default"],Anonymization:c["default"],IncreaseFields:u["default"],Email:d["default"],Sign:f["default"],MedicalAudit:l["default"]},data:function(){return{activeTab:"qc"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="qc"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/template?tabActive=".concat(e.name)})}}},p=h,m=(i("b3a7"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},b590:function(e,t,i){},b5c7:function(e,t,i){var n=i("282b"),a=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(e){var t=a(this,e);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(t.lineDash=i)}return t}};e.exports=r},b639:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"类型"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganInfo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini",disabled:0===e.selectArr.length},on:{click:e.handleAdd}},[e._v("\n 提交\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganInfo",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:"部位","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:"TULOC","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:"TULAT","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"备注","show-overflow-tooltip":""}})],1)],1)],2)},a=[],r=i("3e42"),o=i("6071"),s=function(){return{OrganType:null}},l={name:"DefaultOrgansList",components:{BaseContainer:o["default"]},data:function(){return{searchData:s(),loading:!1,list:[],total:0,selectArr:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.trialId=this.$route.query.trialId,Object(r["wd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){var t=[];e.map((function(e){t.push(e.Id)})),this.selectArr=t},handleAdd:function(){var e=this;this.loading=!0;var t={trialId:this.$route.query.trialId,organIds:this.selectArr};Object(r["O"])(t).then((function(t){e.loading=!1,e.getList(),e.$emit("getList")})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsCheckd}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},b686:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"study-wrapper"},[e.isReadingShowSubjectInfo?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c"}},[e._v("\n "+e._s(e.subjectCode)+"\n ")]):e._e(),e._v(" "),e.isReadingShowSubjectInfo?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c","margin-bottom":"5px"}},[e._v("\n "+e._s(e.taskBlindName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"ps"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.studyList,(function(t,n){return i("el-collapse-item",{key:""+t.StudyId,attrs:{name:""+t.StudyId}},[i("template",{slot:"title"},[t.IsCriticalSequence?i("div",{staticClass:"dicom-desc"},[e._v("\n "+e._s(e.$t("trials:reading:title:keySeries"))+"\n ")]):i("div",{staticClass:"dicom-desc",staticStyle:{width:"150px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.StudyCode+" "+(t.Description?t.Description:"")+" "+t.Modalities+" ("+t.SeriesCount+")",placement:"right"}},[i("div",[i("span",[e._v(e._s(t.StudyCode)+" "+e._s(t.Description))]),e._v(" "),i("span",[e._v(" "+e._s(t.Modalities)+" ("+e._s(t.SeriesCount)+")")])])])],1)]),e._v(" "),i("div",{staticClass:"series"},e._l(t.SeriesList,(function(t,a){return i("div",{key:a,staticStyle:{position:"relative",margin:"10px 0px"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(n,a,t)}}},[i("div",{staticClass:"series-wrapper",class:{"series-active":a==e.seriesIndex&&n===e.studyIndex}},[i("el-image",{staticClass:"image-preview",attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"image-desc"},[i("div",{staticClass:"flex-div"},[i("div",[e._v("#"+e._s(t.seriesNumber)+" ")]),e._v(" "),t.isDicom&&t.prefetchInstanceCount-1?i("div",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:marked"),placement:"right"}},[i("i",{staticClass:"el-icon-star-on",staticStyle:{"font-size":"16px",color:"#ff5722"}})])],1):e._e()])])],1),e._v(" "),t.isDicom&&t.prefetchInstanceCount>0&&t.prefetchInstanceCount-1){var a=parseInt((new Date).getTime()),r=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));r>-1&&(e.measureData=e.visitTaskList[r].MeasureData,e.studyList=e.visitTaskList[r].StudyList,e.studyList.map((function(t,r){t.SeriesList.map((function(t,o){var s=isNaN(parseInt(t.sliceThickness))?null:parseInt(t.sliceThickness);(5===s||t.instanceCount<=100)&&t.imageIds.map((function(s){var l=0;l=t.seriesId===i[n].seriesId?10*parseInt((new Date).getTime()):--a,e.imageList.push({imageId:s,seriesId:t.seriesId,studyIndex:r,seriesIndex:o,visitTaskId:t.visitTaskId,priority:l})}))}))})),e.loopLoad())}f["a"].$emit("loadImageStacks",i),t.close(),e.isRender=!0})).catch((function(){t.close()}))},loadInitialImage:function(e){var t=this,i=parseInt((new Date).getTime()),n=e.imageIds[e.imageIdIndex];d["a"].loadAndCacheImagePlus(n,e.seriesId,100*i).then((function(i){t.imageLoaded(e,i.data.string("x0020000e"))}))},getStudyList:function(){var e=this;if(!this.isRender){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(t>-1&&this.visitTaskList[t].StudyList&&this.visitTaskList[t].StudyList.length>0){this.measureData=this.visitTaskList[t].MeasureData,this.studyList=this.visitTaskList[t].StudyList;var i=this.studyList.findIndex((function(e){return e.IsDicom}));i>-1&&(this.studyIndex=i,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[i].StudyId)],this.loadImages(this.visitTaskList[t]))}this.isRender=!0}},getInitSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,l,c,u,d,f,h,m,g=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=[],i=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===g.visitTaskId})),this.studyList=this.visitTaskList[n].StudyList,!this.visitTaskList[n].IsBaseLineTask&&i){e.next=9;break}a=this.getFirstMarkedSeries(this.visitTaskList[n].MeasureData,Object(r["a"])(this.visitTaskList[n].StudyList)),0!==Object.keys(a).length?(this.studyIndex=a.studyIndex,this.seriesIndex=a.seriesIndex,t.push(a.series),this.activeNames=["".concat(this.studyList[this.studyIndex].StudyId)],this.studyList[a.studyIndex].SeriesList[a.seriesIndex].isFirstRender=!0):this.studyList.length>0&&(this.activeNames=["".concat(this.studyList[0].StudyId)]),e.next=37;break;case 9:if(o=null,l=parseInt(localStorage.getItem("CriterionType")),10===l?(c=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),o=c-1):o=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),!(o>-1)){e.next=30;break}return u=this.$router.currentRoute.query.trialId,e.next=16,p["a"].dispatch("reading/getMeasuredData",this.visitTaskList[o].VisitTaskId);case 16:return e.next=18,p["a"].dispatch("reading/getStudyInfo",{trialId:u,subjectVisitId:this.visitTaskList[o].VisitId,visitTaskId:this.visitTaskList[o].VisitTaskId,taskBlindName:this.visitTaskList[o].TaskBlindName});case 18:d=this.getFirstMarkedSeries(this.visitTaskList[o].MeasureData,Object(r["a"])(this.visitTaskList[o].StudyList)),t.push(d.series),f=this.getSecondMarkedSeries(d,Object(s["a"])({},this.visitTaskList[n])),this.studyIndex=f.studyIndex,this.seriesIndex=f.seriesIndex,t.push(f.series),this.studyList[f.studyIndex].SeriesList[f.seriesIndex].isFirstRender=!0,this.studyIndex=f.studyIndex,this.seriesIndex=f.seriesIndex,this.activeNames=["".concat(this.studyList[f.studyIndex].StudyId)],e.next=37;break;case 30:h=this.studyList.findIndex((function(e){return e.IsDicom})),m=this.studyList[h].SeriesList[0],m.imageIdIndex=Math.floor(m.imageIds.length/2),t.push(m),this.studyIndex=h,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[h].StudyId)];case 37:return e.abrupt("return",t);case 38:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getSecondMarkedSeries:function(e,t){var i=this,n={},a=t.StudyList,r=t.MeasureData;if(e.isMarked){var o=r.findIndex((function(t){return Object.keys(t.MeasureData).length>0&&t.OrderMarkName===e.measureData.OrderMarkName}));if(-1!==o){var s=a.findIndex((function(e){return e.StudyId===r[o].StudyId})),l=a[s].SeriesList,c=l.findIndex((function(e){return e.seriesId===r[o].SeriesId})),u=l[c].instanceList,d=u.findIndex((function(e){return e.includes(r[o].InstanceId)})),f=l[c];return f.imageIdIndex=d,n.studyIndex=s,n.seriesIndex=c,n.series=f,n.seriesId=f.seriesId,n}}var h=null,p=a.map((function(e){return e.SeriesList})).flat(),m=p.map((function(t,n){return{similar:i.strSimilarity2Percent(t.description,e.series.description),index:n}}));m=m.sort((function(e,t){return t.similar-e.similar}));var g=m[0]&&m[0].similar>.85?m[0].index:-1;if(g>-1&&(h=p[g]),!h){var v=p.findIndex((function(t){return t.sliceThickness===e.series.sliceThickness}));v>-1&&(h=p[v])}if(!h){var b=p.findIndex((function(t){return t.instanceCount===e.series.instanceCount}));b>-1&&(h=p[b])}if(!h){var y=p.findIndex((function(e){return e.isDicom&&5===parseInt(e.instanceCount)}));h=y>-1?p[y]:p[0]}return h&&(h.imageIdIndex=Math.floor(h.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount)),n.studyIndex=h.studyIndex,n.seriesIndex=h.seriesIndex,n.series=h,n.seriesId=h.seriesId),n},findSerialNumberClosest:function(e,t){for(var i=[],n=0;n0}));if(-1!==n){var a=t.findIndex((function(t){return t.StudyId===e[n].StudyId&&t.IsDicom}));if(a>-1){var r=t[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e[n].SeriesId})),s=r[o].instanceList,l=s.findIndex((function(t){return t.includes(e[n].InstanceId)})),c=r[o];c.imageIdIndex=l,i.studyIndex=a,i.seriesIndex=o,i.series=c,i.seriesId=c.seriesId,i.isMarked=!0,i.measureData=e[n]}}else{for(var u=null,d=0;d-1){u={studyIndex:d,seriesIdx:f,series:t[d].SeriesList[f]};break}}if(u)i.studyIndex=u.studyIndex,i.seriesIndex=u.seriesIdx,u.series.imageIdIndex=Math.floor(u.series.imageIds.length/2),i.series=u.series,i.seriesId=u.series.seriesId,i.isMarked=!1;else{var h=t.findIndex((function(e){return e.IsDicom}));if(h>-1){var p=t[h].SeriesList[0],m=Math.floor(p.imageIds.length/2);i.studyIndex=h,i.seriesIndex=0,i.series=p,i.series.imageIdIndex=m,i.seriesId=p.seriesId,i.isMarked=!1}}}return i},strSimilarity2Number:function(e,t){var i,n,a,r,o,s=e.length,l=t.length,c=[];if(0===s)return l;if(0===l)return s;for(i=0;i<=s;i++)c[i]=[],c[i][0]=i;for(n=0;n<=l;n++)c[0][n]=n;for(i=1;i<=s;i++)for(a=e.charAt(i-1),n=1;n<=l;n++)r=t.charAt(n-1),o=a===r?0:1,c[i][n]=this.Minimum(c[i-1][n]+1,c[i][n-1]+1,c[i-1][n-1]+o);return c[s][l]},strSimilarity2Percent:function(e,t){var i=e.length>t.length?e.length:t.length,n=this.strSimilarity2Number(e,t);return Number((1-n/i).toFixed(4))},Minimum:function(e,t,i){return e0&&(this.loopLoadStatus=0,this.loopLoad())}f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName})}else this.$emit("previewNoneDicoms",{visitTaskId:this.visitTaskId});p["a"].dispatch("reading/setActiveSeries",i)},setSeriesActive:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.visitTaskId}));if(-1!==i){this.studyList=this.visitTaskList[i].StudyList,this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var n="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(n)||(this.activeNames.push(n),this.loadImages(this.visitTaskList[i]))}},selectSeries:function(e){var t=this.studyList.map((function(e){return e.SeriesList})).flat(),i=t.findIndex((function(t){return t.seriesId===e.seriesId&&t.studyId===e.studyId}));if(-1!==i){var n=i+e.offset;n<0?n=0:n>=t.length&&(n=t.length-1),t[n].seriesIndex===this.seriesIndex&&t[n].studyIndex===this.studyIndex||(this.showSeriesImage(t[n].studyIndex,t[n].seriesIndex,t[n]),this.handleActiveSeries(t[n]))}},handleActiveSeries:function(e){this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(-1!==t){this.studyList=this.visitTaskList[t].StudyList;var i="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(i)||(this.activeNames.push(i),this.loadImages(this.visitTaskList[t]),p["a"].dispatch("reading/setActiveSeries",e))}},loadImages:function(e){var t=this,i=e.IsCurrentTask?parseInt((new Date).getTime()):999;this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){if(!e.loadStatus){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(e.isBeMark||5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}}))})),this.loopLoad()},loadImages2:function(e){var t=this,i=parseInt((new Date).getTime());if(e.IsCurrentTask)this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}))})),this.loopLoad();else{var n=this.studyList.findIndex((function(e){return e.IsCriticalSequence}));if(-1===n)return;this.studyList[n].SeriesList.forEach((function(e,a){e.loadStatus||e.imageIds.map((function(r){i--,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))})),this.loopLoad()}},loopLoad:function(){var e=this;this.imageList.length>0&&(d["a"].startTaskTimer(),this.imageList.map((function(t){d["a"].loadAndCacheImagePlus(t.imageId,t.seriesId,t.priority).then((function(i){e.imageLoaded(t,i.data.string("x0020000e"))}))})),this.imageList=[])},loadSeries:function(e,t,i){var n=this;console.log("loadSeries"),this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!0);var a=parseInt((new Date).getTime());e.imageIds.map((function(r){-1===e.imageloadedArr.indexOf(r)&&n.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:t,seriesIndex:i,visitTaskId:e.visitTaskId,priority:a})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())},stopLoadSeries:function(e,t,i){console.log("stopLoadSeries"),d["a"].removeTask(e.seriesId),this.$set(this.studyList[t].SeriesList[i],"isLoading",!1)},imageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:t.visitTaskId,imageId:t.imageId,seriesUid:i});case 2:case"end":return e.stop()}}),e)})));function t(t,i){return e.apply(this,arguments)}return t}(),cornerstoneImageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,c,u,d,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:this.visitTaskId,imageId:t.detail.image.imageId,seriesUid:t.detail.image.data.string("x0020000e")});case 2:i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===f.visitTaskId})),this.studyList=this.visitTaskList[i].StudyList,n=t.detail.image.sharedCacheKey,a=this.cachedImages.findIndex((function(e){return e.uri===n})),-1===a?this.cachedImages.push({uri:n,timestamp:(new Date).getTime()}):this.cachedImages[a].timestamp=(new Date).getTime(),r=t.detail.image.imageId,o=t.detail.image.data.string("x0020000e"),s=-1,l=-1,c=0;case 12:if(!(c0)){e.next=24;break}return e.abrupt("break",27);case 24:++c,e.next=12;break;case 27:if(!(l<0)){e.next=29;break}return e.abrupt("return");case 29:if(d=this.studyList[s].SeriesList[l].imageIds.indexOf(r),!(d<0)){e.next=32;break}return e.abrupt("return");case 32:this.studyList[s].SeriesList[l].imageloadedArr.indexOf(r)<0&&this.studyList[s].SeriesList[l].prefetchInstanceCount>=this.studyList[s].SeriesList[l].instanceCount&&(this.studyList[s].SeriesList[l].loadStatus=!0);case 33:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},g=m,v=(i("114c"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"be46460c",null);t["default"]=b.exports},b6b7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("3e42"),s="ACK of SOW",l={name:"UploadFile",props:{doctorId:{type:String,required:!0},trialId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,s,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({DoctorId:t.doctorId,name:i,FileName:i,Path:e.Result.FilePath,FullPath:e.Result.FullFilePath,Type:s}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.Path,a=t.FullPath,r=t.Type,s={DoctorId:this.doctorId,Type:r,Path:n,FullPath:a,FileName:i};Object(o["Bf"])(this.trialId,s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].Id=t.Result,e.$message.success("Uploaded successfully"),e.$emit("getFileList",e.fileList))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,"pdf");if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.Id?Object(o["wb"])(this.trialId,this.doctorId,e.Id).then((function(e){e.IsSuccess&&(i.fileList=[],i.$message({message:"Deleted successfully!",type:"success"}),i.$emit("getFileList",i.fileList))})):(this.fileList=[],this.$emit("getFileList",this.fileList)))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.toLocaleLowerCase().indexOf(i)>-1}}},c=l,u=(i("3b50"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},b6c6:function(e,t,i){},b6cb:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.setting_form,"search-handle":e.setting_handle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.setting_cols,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,edit:e.handleEdit,delete:e.handleDelete,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"modalitySlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.ModalityList&&i.row.ModalityList.length>0?i.row.ModalityList.join(", "):"")+"\n ")]}}])}),e._v(" "),e.setting_model.visible?i("setting-form",{attrs:{data:e.rowData},on:{close:e.closeModel}}):e._e()],1)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=(i("20d6"),i("e56e")),l=i("86a6"),c=i("aaf3"),u=i("f36a"),d=i("d13d"),f=i("c0ee"),h=i("ff1e"),p=function(){return{ModalityId:"",PageIndex:1,PageSize:20}},m={name:"TemplateSettings",components:{BoxContent:u["default"],SearchForm:d["default"],BaseTable:f["default"],SettingForm:h["default"]},data:function(){return{setting_cols:c["a"],setting_form:c["b"],setting_handle:c["c"],setting_model:c["d"],list:[],loading:!1,total:0,searchData:p(),rowData:{},readingType:{}}},mounted:function(){this.getList(),this.getInfo()},methods:{getList:function(){var e=this;this.loading=!0,Object(s["lb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},findItemIndex:function(e){return this.setting_form.findIndex((function(t){return t.prop&&t.prop===e}))},getInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:this.readingType.length>0&&(t=this.findItemIndex("ModalityId"),this.$set(this.setting_form[t],"options",this.readingType));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["ReadingType"]).then((function(t){var i=Object(r["a"])({},t.Result),n=i.ReadingType;e.readingType=n||{}})).catch((function(){}))},handleAdd:function(){this.rowData={},this.setting_model.title="Add",this.setting_model.visible=!0},handleEdit:function(e){this.rowData=e,this.setting_model.title="Add",this.setting_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(s["H"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},closeModel:function(){this.setting_model.visible=!1,this.getList()}}},g=m,v=(i("75ab"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},b6f9:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},b706:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"oncologyReview_wrapper"},[e.isReadingShowSubjectInfo?i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[i("h4",[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:subject"))+"\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])])]):e._e(),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-between"},attrs:{slot:"header"},slot:"header"},[i("div",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.$t("trials:oncologyReview:title:oncologyReview")))])]),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[e.isExistsClinicalData?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.previewCD}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:button:clinicalData"))+"\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:oncologyReview:title:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:readingRes"),align:"center",prop:""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.QuestionList[n].DictionaryCode,parseInt(t.row.QuestionList[n].Answer)))+"\n ")]):i("span",[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")])]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:e.$t("trials:oncologyReview:title:isGlobalUpdate"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:view"))+"\n ")]):e._e()]}}],null,!1,1339867352)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:e.$t("trials:oncologyReview:title:visitRemark"),"show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:oReviewRes"),align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:e.$t("trials:oncologyReview:title:findings"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:e.$t("common:ruleMessage:select")},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.assessTypeList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Code}})})),1):i("span",[e._v(e._s(e.getAssessType(t.row.EvaluationResult)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.$t("trials:oncologyReview:title:reason")))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)}):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.$t("trials:oncologyReview:title:previousRes")))])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:oncologyReview:title:oncologyReview"),"show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("9b92"),c=i("179b"),u={name:"OncologyReview",components:{SignForm:c["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,loading:!1,priorLoading:!1,priorList:[],questionCols:[],oncologyInfo:{},assessTypeList:[]}},mounted:function(){this.getList(),this.isReadingShowPreviousResults&&this.getPriorList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["yc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];if(t.Result.OncologyVisits.length>0){var n=t.Result.OncologyVisits[0];n.QuestionList.map((function(e){i.push(e.QuestionName)}))}e.questionCols=i,e.assessTypeList=t.Result.AssessTypeList,e.oncologyInfo=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].Value:""},handleSave:function(e){var t=this;this.loading=!0;var i=this.oncologyInfo.OncologyVisits.findIndex((function(e){return!e.EvaluationResult}));if(!(i>-1)){this.loading=!0;var n=[];this.oncologyInfo.OncologyVisits.map((function(e){e.EvaluationResult&&n.push({visitTaskId:e.VisitTaskId,evaluationResult:e.EvaluationResult,evaluationReason:e.EvaluationReason})}));var a={oncologyTaskId:this.visitTaskId,oncologyQuestionList:n};return new Promise((function(i,n){Object(r["Ne"])(a).then((function(n){t.loading=!1,t.getList(),e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,n(!1)}))}))}this.loading=!1,this.$confirm(this.$t("trials:oncologyReview:message:msg1"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){return Promise.reject(!1)})).catch((function(e){return Promise.reject(!1)}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handleConfirm:function(){var e=this;this.handleSave(!1).then((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{oncologyTaskId:this.visitTaskId},signInfo:e};Object(r["cf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.oncologyInfo.ReadingTaskState=2,window.opener.postMessage("refreshTaskList",window.location),t.$confirm(t.$t("trials:oncologyReview:title:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getPriorList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.currentRoute.query.criterionType,n=this.$router.currentRoute.query.readingTool;n=isNaN(parseInt(n))?null:parseInt(n);var a=this.$router.currentRoute.query.isReadingTaskViewInOrder,r=this.$router.currentRoute.query.TrialReadingCriterionId,o="";o=0===n?"/readingDicoms?TrialReadingCriterionId=".concat(r,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(a,"&criterionType=").concat(i,"&readingTool=").concat(n,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(r,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(a,"&criterionType=").concat(i,"&readingTool=").concat(n,"&TokenKey=").concat(t);var l=this.$router.resolve({path:o});window.open(l.href,"_blank")},previewCD:function(){var e=Object(s["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.oncologyInfo.SubjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.oncologyInfo.OncologyTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},d=u,f=(i("bebc"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"67d2c9e9",null);t["default"]=h.exports},b708:function(e,t,i){"use strict";i("eb17")},b719:function(e,t,i){var n=i("697e7");t.zrender=n;var a=i("1687");t.matrix=a;var r=i("401b");t.vector=r;var o=i("6d8b"),s=i("41ef");t.color=s;var l=i("2306"),c=i("3842");t.number=c;var u=i("eda2");t.format=u;var d=i("88b3");d.throttle;t.throttle=d.throttle;var f=i("1548");t.helper=f;var h=i("bda7");t.parseGeoJSON=h;var p=i("6179");t.List=p;var m=i("4319");t.Model=m;var g=i("84ce");t.Axis=g;var v=i("22d1");t.env=v;var b=h,y={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){y[e]=o[e]}));var w={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){w[e]=l[e]})),t.parseGeoJson=b,t.util=y,t.graphic=w},b72c:function(e,t,i){},b768:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:Name")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.UserName,callback:function(t){e.$set(e.searchData,"UserName",t)},expression:"searchData.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:role")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialRoleNameId,callback:function(t){e.$set(e.searchData,"TrialRoleNameId",t)},expression:"searchData.TrialRoleNameId"}},e._l(e.dict.type.SiteSurvey_UserRoles,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:organization")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.OrganizationName,callback:function(t){e.$set(e.searchData,"OrganizationName",t)},expression:"searchData.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:isGenerateAccount")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsGenerateAccount,callback:function(t){e.$set(e.searchData,"IsGenerateAccount",t)},expression:"searchData.IsGenerateAccount"}},[i("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),i("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:userType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.UserTypeId,callback:function(t){e.$set(e.searchData,"UserTypeId",t)},expression:"searchData.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:summary-record:sendEmail"],expression:"['trials:trials-panel:attachments:site-research:summary-record:sendEmail']"}],attrs:{type:"primary",icon:"el-icon-message",loading:e.sendEmailLoading,disabled:0===e.selectArr.length},on:{click:e.handleSendEmail}},[e._v("\n "+e._s(e.$t("trials:researchRecord:dialogButton:sendEmail"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:0===e.list.length},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:70},expression:"{bottomOffset:70}"}],ref:"researchUsers",attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteSurvey.TrialSiteCode",label:e.$t("trials:researchStaff:table:siteId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""+t.row.TrialSiteSurvey.TrialSiteCode))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteSurvey.SiteName",label:e.$t("trials:researchStaff:table:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""+t.row.TrialSiteSurvey.SiteName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:researchStaff:table:Name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialRoleName",label:e.$t("trials:researchStaff:table:role"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:researchStaff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:researchStaff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:researchStaff:table:organization"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGenerateAccount",label:e.$t("trials:researchStaff:table:isGenerateAccount"),"show-overflow-tooltip":"",sortable:"custom","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGenerateAccount))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:researchStaff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJoin",label:e.$t("trials:researchStaff:table:isJoin"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsJoin?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("db72"),o=i("a8db"),s=i("3e42"),l=i("6071"),c=i("333d"),u=["SortField","Asc","PageIndex","PageSize"],d=function(){return{SortField:"",Asc:!0,PageIndex:1,PageSize:20,SiteId:"",UserTypeId:"",IsGenerateAccount:null,TrialRoleNameId:"",UserName:"",OrganizationName:"",FormWriterKeyInfo:"",State:""}},f={name:"SiteResearchList",components:{BaseContainer:l["default"],Pagination:c["default"]},dicts:["SiteSurvey_UserRoles"],data:function(){return{searchData:d(),loading:!1,list:[],total:0,trialId:this.$route.query.trialId,siteOptions:[],userTypeOptions:[],selectArr:[],sendEmailLoading:!1}},mounted:function(){this.getList(),this.getSite(),this.getUserType()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["mf"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){this.selectArr=e},handleSendEmail:function(){var e=this;this.sendEmailLoading=!0;var t={TrialId:this.trialId,TrialSiteSurveyId:this.selectArr[0].TrialSiteSurveyId,BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose"),UserList:this.selectArr};Object(s["Ge"])(t).then((function(){e.sendEmailLoading=!1,e.$message.success(e.$t("trials:researchStaff:message:sendEmalil")),e.getList()})).catch((function(){e.sendEmailLoading=!1}))},handleExport:function(){var e=this;this.searchData.TrialId=this.trialId,this.loading=!0;var t=Object(r["a"])({},this.searchData),i=(t.SortField,t.Asc,t.PageIndex,t.PageSize,Object(o["a"])(t,u));Object(s["of"])(Object(r["a"])({},i)).then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getUserType:function(){var e=this;Object(s["ge"])(3).then((function(t){e.userTypeOptions=t.Result}))},handleSelectTable:function(e){return e.IsGenerateSuccess&&!e.IsJoin},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.researchUsers.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},b78b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"employment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.employment,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Department:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Department))]):i("span",[e._v(e._s(e.employment.DepartmentCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Rank:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Rank))]):i("span",[e._v(e._s(e.employment.RankCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Physician:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Physician))]):i("span",[e._v(e._s(e.employment.PhysicianCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Position:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Position))]):i("span",[e._v(e._s(e.employment.PositionCN))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Hospital:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.HospitalName))]):i("span",[e._v(e._s(e.employment.HospitalNameCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Affiliated University:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.UniversityAffiliated))]):i("span",[e._v(e._s(e.employment.UniversityAffiliatedCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"City:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.City))]):i("span",[e._v(e._s(e.employment.CityCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"State/Province:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Province))]):i("span",[e._v(e._s(e.employment.ProvinceCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Country:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Country))]):i("span",[e._v(e._s(e.employment.CountryCN))])])],1)],1)],1)],1)},a=[],r={props:{employment:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("4d89"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b79c:function(e,t,i){},b7c3:function(e,t,i){},b804:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[i("div",{class:e.className,style:{top:e.isSticky?e.stickyTop+"px":"",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[i("div",[e._v("sticky")])])],2)])},a=[],r=(i("c5f6"),{name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},handleReset:function(){this.active&&this.reset()},reset:function(){this.position="",this.width="auto",this.active=!1,this.isSticky=!1},handleScroll:function(){var e=this.$el.getBoundingClientRect().width;this.width=e||"auto";var t=this.$el.getBoundingClientRect().top;t1?"series.multiple.prefix":"series.single.prefix";s+=p(m(h),{seriesCount:r}),t.eachSeries((function(e,t){if(t1?"multiple":"single")+".";i=m(n?a+"withName":a+"withoutName"),i=p(i,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:v(e.subType)});var s=e.getData();window.data=s,s.count()>l?i+=p(m("data.partialData"),{displayCnt:l}):i+=m("data.allData");for(var c=[],d=0;d'});o.a.add(s);t["default"]=s},b8aa:function(e,t,i){},b8ae:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"anonymizationFrom",attrs:{model:e.form,rules:e.rules,"label-width":"160px",size:"small"}},[i("el-form-item",{attrs:{label:"Group",prop:"Group"}},[i("el-input",{model:{value:e.form.Group,callback:function(t){e.$set(e.form,"Group",t)},expression:"form.Group"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Element",prop:"Group"}},[i("el-input",{model:{value:e.form.Element,callback:function(t){e.$set(e.form,"Element",t)},expression:"form.Element"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescription"),prop:"Group"}},[i("el-input",{model:{value:e.form.TagDescription,callback:function(t){e.$set(e.form,"TagDescription",t)},expression:"form.TagDescription"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescriptionCN"),prop:"Group"}},[i("el-input",{model:{value:e.form.TagDescriptionCN,callback:function(t){e.$set(e.form,"TagDescriptionCN",t)},expression:"form.TagDescriptionCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ValueRepresentation"),prop:"Group"}},[i("el-input",{model:{value:e.form.ValueRepresentation,callback:function(t){e.$set(e.form,"ValueRepresentation",t)},expression:"form.ValueRepresentation"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsFixed")}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsFixed,callback:function(t){e.$set(e.form,"IsFixed",t)},expression:"form.IsFixed"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ReplaceValue")}},[i("el-input",{model:{value:e.form.ReplaceValue,callback:function(t){e.$set(e.form,"ReplaceValue",t)},expression:"form.ReplaceValue"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsEnable")}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",ValueRepresentation:"",ReplaceValue:"",IsEnable:!1,IsAdd:!1,IsFixed:!1}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{isEnable:!1,btnLoading:!1,form:{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",ValueRepresentation:"",ReplaceValue:"",IsEnable:!1,IsAdd:!1},rules:{Group:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.anonymizationFrom.validate((function(t){t&&(e.btnLoading=!0,Object(o["t"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},b8d4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"auditRecord"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("div",{staticStyle:{"margin-bottom":"15px"}},[i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:researchNo")}},[i("el-input",{attrs:{disabled:""},model:{value:e.ResearchProgramNo,callback:function(t){e.ResearchProgramNo=t},expression:"ResearchProgramNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:siteNo")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:subject")}},[i("el-input",{model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:visit")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.VisitPlanInfo,callback:function(t){e.$set(e.searchData,"VisitPlanInfo",t)},expression:"searchData.VisitPlanInfo"}},[e._l(e.visitPlanOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.VisitName,value:e.VisitNum}})})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:criterion")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialReadingCriterionName,value:e.TrialReadingCriterionId}})})),1)],1)],1),e._v(" "),i("div",[i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:funcModule")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},on:{change:e.getModuleTypeDescriptionList},model:{value:e.searchData.ModuleType,callback:function(t){e.$set(e.searchData,"ModuleType",t)},expression:"searchData.ModuleType"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{key:"ModuleType"+e.value,attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operationName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Description,callback:function(t){e.$set(e.searchData,"Description",t)},expression:"searchData.Description"}},e._l(e.DescriptionOptions,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operator")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.OpByUserName,callback:function(t){e.$set(e.searchData,"OpByUserName",t)},expression:"searchData.OpByUserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operateTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:isSign")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSign,callback:function(t){e.$set(e.searchData,"IsSign",t)},expression:"searchData.IsSign"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:"无"!==e.raw.ValueCN,expression:"item.raw.ValueCN !== '无'"}],key:"IsSign"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v(" "+e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))])],1)],1)])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",fixed:"left",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ResearchProgramNo","min-width":"140",label:e.$t("trials:auditRecord:table:researchNo"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCode","min-width":"100",label:e.$t("trials:auditRecord:table:siteNo"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:auditRecord:table:subject"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:auditRecord:table:visit"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName","min-width":"100",label:e.$t("trials:auditRecord:table:taskName"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName","min-width":"150",label:e.$t("trials:auditRecord:table:taskBlindName"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName","min-width":"100",label:e.$t("trials:auditRecord:table:criterion"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModuleTypeName","min-width":"100",label:e.$t("trials:auditRecord:table:funcModule"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description","min-width":"140",label:e.$t("trials:auditRecord:table:operationName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reason","min-width":"100",label:e.$t("trials:auditRecord:table:modifyReason"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSign","min-width":"120",align:"center",label:e.$t("trials:auditRecord:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsSign?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.SignText)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1):i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserRealName","min-width":"100",label:e.$t("trials:auditRecord:table:operator"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName","min-width":"100",label:e.$t("trials:auditRecord:table:userName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RoleName","min-width":"100",label:e.$t("trials:auditRecord:table:role"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime","min-width":"140",label:e.$t("trials:auditRecord:table:operateTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:"IP","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"","min-width":"150",fixed:"right",label:e.$t("common:action:action"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.lookDetails(t.row)}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:action:detail"))+"\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-start"}},[i("el-button",{staticStyle:{position:"relative",top:"-15px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.lookAssociated(1)}}},[e._v(e._s(e.$t("trials:auditRecord:title:historicalOperations")))]),e._v(" "),i("el-button",{staticStyle:{position:"relative",top:"-15px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.lookAssociated(0)}}},[e._v(e._s(e.$t("trials:auditRecord:title:relationOperations")))])],1),e._v(" "),e.auditData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.auditData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Enum",label:e.$t("trials:auditRecord:title:fieldName"),"show-overflow-tooltip":""}}),e._v(" "),"Add"!==e.OptType&&"Upload"!==e.OptType&&"Init"!==e.OptType?i("el-table-column",{attrs:{prop:"oldValue",label:"Add"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:beforeDeletion"):e.$t("trials:auditRecord:title:beforeModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.oldValue}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewDetail"))+"\n ")]):"Image"!==t.row.DataType&&"ImageList"!==t.row.DataType||!t.row.oldValue?i("span",[e._v("\n "+e._s(t.row.oldValue)+"\n ")]):i("viewer",{ref:t.row.oldValue,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(t.row.oldValue)}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage"))+e._s(t.row.oldValue instanceof Array?"("+t.row.oldValue.length+")":""))]),e._v(" "),e._l(t.row.oldValue,(function(n){return"ImageList"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n,crossorigin:"anonymous",alt:""}}):e._e()})),e._v(" "),"Image"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:t.row.oldValue,crossorigin:"anonymous",alt:""}}):e._e()],2)],1)]}}],null,!1,2271291657)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"newValue",label:"Add"===e.OptType||"Init"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:afterDeletion"):e.$t("trials:auditRecord:title:afterModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{style:{color:t.row.newValue!==t.row.oldValue?"#f66":null}},["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.newValue}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewDetail"))+"\n ")]):"Image"!==t.row.DataType&&"ImageList"!==t.row.DataType||!t.row.newValue?i("span",[e._v(e._s(t.row.newValue))]):i("viewer",{ref:t.row.newValue,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(t.row.newValue)}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage"))+e._s(t.row.newValue instanceof Array?"("+t.row.newValue.length+")":""))]),e._v(" "),e._l(t.row.newValue,(function(n){return"ImageList"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n,crossorigin:"anonymous",alt:""}}):e._e()})),e._v(" "),"Image"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:t.row.newValue,crossorigin:"anonymous",alt:""}}):e._e()],2)],1)]}}],null,!1,3190487380)})],1):e._e(),e._v(" "),e.tableListData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableListData,border:"",size:"small"}},e._l(e.tableList,(function(t){return i("el-table-column",{attrs:{prop:t.ColumnValue,label:t.IsMerge?t.MergeColumnName:t.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return t.IsMerge?void 0:[t.IsPicture?i("viewer",{ref:n.row[t.ColumnValue],refInFor:!0,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(n.row[t.ColumnValue])}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage")))]),e._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n.row[t.ColumnValue],crossorigin:"anonymous",alt:""}})]):i("span",[e._v(e._s(n.row[t.ColumnValue]))])]}}],null,!0)},[e._v(" "),e._l(t.ChildrenList,(function(n,a){return t.IsMerge?i("el-table-column",{attrs:{prop:n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue,label:n.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(r){return[t.IsPicture?i("viewer",{ref:r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue],refInFor:!0,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(t){return e.openImage(r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]),e._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue],crossorigin:"anonymous",alt:""}})]):i("span",[e._v(e._s(r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue]))])]}}],null,!0)}):e._e()}))],2)})),1):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{"margin-top":"20px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:signInfo"))+"\n ")]):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{color:"#f66","font-size":"12px"}},[e._v("\n "+e._s(e.otherData[0].Value)+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")])],1)],2),e._v(" "),e.model_cfg2.visible?i("el-dialog",{attrs:{visible:e.model_cfg2.visible,title:e.model_cfg2.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.model_cfg2,"visible",t)}}},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:300},expression:"{bottomOffset:300}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list2,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ResearchProgramNo","min-width":"90",label:e.$t("trials:auditRecord:table:researchNo"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCode","min-width":"100",label:e.$t("trials:auditRecord:table:siteNo"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:auditRecord:table:subject"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:auditRecord:table:visit"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName","min-width":"100",label:e.$t("trials:auditRecord:table:taskName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName","min-width":"150",label:e.$t("trials:auditRecord:table:taskBlindName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName","min-width":"100",label:e.$t("trials:auditRecord:table:criterion"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModuleTypeName","min-width":"100",label:e.$t("trials:auditRecord:table:funcModule"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description","min-width":"140",label:e.$t("trials:auditRecord:table:operationName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reason","min-width":"100",label:e.$t("trials:auditRecord:table:modifyReason"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSign","min-width":"90",align:"center",label:e.$t("trials:auditRecord:table:isSign"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsSign?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.SignText)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1):i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1)]}}],null,!1,1194668513)}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserRealName","min-width":"80",label:e.$t("trials:auditRecord:table:operator"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName","min-width":"80",label:e.$t("trials:auditRecord:table:userName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RoleName","min-width":"70",label:e.$t("trials:auditRecord:table:role"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime","min-width":"140",label:e.$t("trials:auditRecord:table:operateTime"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:"IP","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"","min-width":"150",label:e.$t("common:action:action"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.lookDetails2(t.row)}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:action:detail"))+"\n ")])]}}],null,!1,3448104446)})],1)],1):e._e(),e._v(" "),i("base-model",{attrs:{config:e.model_cfg3}},[i("template",{slot:"dialog-body"},[e.auditData2.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.auditData2,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Enum",label:e.$t("trials:auditRecord:title:fieldName"),"show-overflow-tooltip":""}}),e._v(" "),"Add"!==e.OptType&&"Upload"!==e.OptType&&"Init"!==e.OptType?i("el-table-column",{attrs:{prop:"oldValue",label:"Add"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:beforeDeletion"):e.$t("trials:auditRecord:title:beforeModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.oldValue}},[e._v(e._s(t.row.oldValue))]):i("span",[e._v("\n "+e._s(t.row.oldValue)+"\n ")])])]}}],null,!1,2838368906)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"newValue",label:"Add"===e.OptType||"Init"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:afterDeletion"):e.$t("trials:auditRecord:title:afterModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{style:{color:t.row.newValue!==t.row.oldValue?"#f66":null}},["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.newValue}},[e._v(e._s(t.row.newValue))]):i("span",[e._v(e._s(t.row.newValue))])])]}}],null,!1,2610221463)})],1):e._e(),e._v(" "),e.tableListData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableListData,border:"",size:"small"}},e._l(e.tableList,(function(t){return i("el-table-column",{attrs:{prop:t.ColumnValue,label:t.IsMerge?t.MergeColumnName:t.headName,align:"center","show-overflow-tooltip":""}},e._l(t.ChildrenList,(function(n,a){return t.IsMerge?i("el-table-column",{attrs:{prop:n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue,label:n.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n.IsPicture?i("span",{on:{click:function(i){return e.openImage(t.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]):i("span",[e._v(e._s(t.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue]))])]}}],null,!0)}):[t.IsPicture?i("span",{on:{click:function(i){return e.openImage(e.scope.row[t.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]):i("span",[e._v(e._s(e.scope.row[t.ColumnValue]))])]})),1)})),1):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{"margin-top":"20px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:signInfo"))+"\n ")]):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{color:"#f66","font-size":"12px"}},[e._v("\n "+e._s(e.otherData[0].Value)+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.model_cfg3.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")])],1)],2)],1)],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=(i("6b54"),i("7514"),i("ac6a"),i("3e42")),l=i("b775");function c(e){return Object(l["a"])({url:"/Inspection/getInspectionList",method:"post",data:e})}function u(e,t){return Object(l["a"])({url:"/FrontAuditConfig/getInspectionJsonDataList?TrialId=".concat(e,"&Id=").concat(t),method:"get"})}var d=i("2938"),f=i("333d"),h=i("6071"),p=i("7eeb"),m=i("5f87"),g={components:{BaseContainer:h["default"],Pagination:f["default"],BaseModel:p["default"]},dicts:["OptType","ModuleType","ChildrenType"],data:function(){var e=this,t=function(){return{SortField:"",Asc:!1,PageIndex:1,PageSize:20,ModuleType:null,BlindName:null,TrialId:e.$route.query.trialId,SiteId:null,SubjectId:null,SubjectInfo:null,SubjectVisitId:null,VisitPlanInfo:null,OptType:null,ChildrenType:null,Reason:null,IsSign:null,StartTime:null,EndTime:null,Description:null,OpByUserName:null,BatchId:null,TrialReadingCriterionId:null}};return{isViewer:!0,otherData:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},model_cfg2:{visible:!1,showClose:!0,width:"1000px",title:this.$t("trials:auditRecord:title:viewRelationOperations"),appendToBody:!0},model_cfg3:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},model_cfg4:{visible:!1,showClose:!0,width:"600px",title:this.$t("trials:auditRecord:title:viewImage"),appendToBody:!0},total:0,loading:!1,searchData:t(),ResearchProgramNo:null,list:[],list2:[],isOpen:!1,typeConfigList:[],DescriptionOptions:[],auditData:[],auditData2:[],siteOptions:[],visitPlanOptions:[],OptType:null,trialId:this.$route.query.trialId,configList2:[],otherData2:[],timeList:[],tableList:[],tableListData:[],trialCriterionList:[],openImageUrl:null,$viewer:null,imagesList:[]}},mounted:function(){this.ResearchProgramNo=this.$route.query.researchProgramNo,this.getSite(),this.getVisitPlanOptions(),this.getTrialCriterionList(),this.getList()},methods:{openImage:function(e){console.log(e),this.imagesList=e instanceof Array?e:[e],this.$refs[e][0]?this.$refs[e][0].$viewer.show():this.$refs[e].$viewer.show()},getTrialCriterionList:function(){var e=this;Object(s["Cd"])(this.trialId,!1).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},changeTimeList:function(){this.timeList?(this.searchData.StartTime=this.timeList[0],this.searchData.EndTime=this.timeList[1]):(this.searchData.StartTime=null,this.searchData.EndTime=null)},getModuleTypeDescriptionList:function(e){var t=this;this.searchData.Description=null,Object(d["i"])(e).then((function(e){t.DescriptionOptions=e.Result}))},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(s["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},toTree:function(e,t){function i(t){for(var n=[],a=0;a0&&t[e.TableFiledName].forEach((function(t,n){var l=i[e.TableFiledName][n];s="Add"===a.OptType||"Init"===a.OptType?{newValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",oldValue:""}:"Delete"===a.OptType?{oldValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",newValue:"--"}:{newValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",oldValue:l?l[e.Code]:"--"},s.key=t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0!==t[e.Code])?t[e.Code]:"--",s.Enum=e.ValueCN,s.DataType=e.DataType,s.IsTableFiled=e.IsTableFiled,o[r].push(s)}));else if("ImageList"!==e.DataType)if("Array"!==e.DataType&&"array"!==e.DataType){if("Router"===e.DataType)return s={oldValue:e.UrlConfig.IsHaveParameters?e.UrlConfig.RoutePath+"?"+e.UrlConfig.ParameterList.map((function(e){var i=t[e.UrlParameterValueName]?t[e.UrlParameterValueName]:n[e.UrlParameterValueName];return"token"===e.UrlParameterValueName&&(i=Object(m["a"])()),e.UrlParameterName+"="+i+"&"})).toString().replaceAll(",",""):e.UrlConfig.RoutePath,newValue:e.UrlConfig.IsHaveParameters?e.UrlConfig.RoutePath+"?"+e.UrlConfig.ParameterList.map((function(e){var i=t[e.UrlParameterValueName]?t[e.UrlParameterValueName]:n[e.UrlParameterValueName];return"token"===e.UrlParameterValueName&&(i=Object(m["a"])()),e.UrlParameterName+"="+i+"&"})).toString().replaceAll(",",""):e.UrlConfig.RoutePath},console.log(s),s.IsTableFiled=e.IsTableFiled,s.DataType=e.DataType,s.key=e.Code,s.Enum=e.ValueCN,void o[r].push(s);if("Table"===e.DataType){var l=[],c=[];e.TableConfigList.forEach((function(i,n){i.IsFixedColumn?l.push({IsPicture:i.IsPicture,headName:i.FixedColumnName,IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]}):i.ListName?t[e.Code][0][i.ListName].forEach((function(e,t){l.push({IsPicture:i.IsPicture,headName:e[i.ColumnName],IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]})})):l.push({IsPicture:i.IsPicture,headName:i.ColumnName,IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]})})),t[e.Code].forEach((function(t,i){var n={};e.TableConfigList.forEach((function(e){e.ListName?t[e.ListName].forEach((function(t,i){n[e.ListName+e.ColumnValue+i]=t[e.ColumnValue]})):n[e.ColumnValue]=t[e.ColumnValue]})),c.push(Object.assign({},n))}));var u=[],d=JSON.parse(JSON.stringify(l));return d.forEach((function(e){if(e.IsMerge){var t=d.filter((function(t){return t.MergeColumnName===e.MergeColumnName}));if(console.log(t),t){e.ChildrenList=Object.assign([],t);var i=u.find((function(t){return t.MergeColumnName===e.MergeColumnName}));i||u.push(e)}}else u.push(e)})),console.log(u,c),o.tableList=u,void(o.tableListData=c)}1===e.IsShowParent?(s="Delete"===a.OptType?{oldValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",newValue:"--"}:"Add"===a.OptType||"Init"===a.OptType?{newValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",oldValue:"--"}:{newValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",oldValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--"},console.log(s,"1")):s=0===e.IsShowParent?"Delete"===a.OptType?{oldValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",newValue:"--"}:"Add"===a.OptType||"Init"===a.OptType?{newValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",oldValue:"--"}:{newValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",oldValue:i&&(i[e.Code]&&null!==i[e.Code]&&""!==i[e.Code]||0===i[e.Code])?i[e.Code]:"--"}:"Delete"===a.OptType?{oldValue:a&&(a[e.Code]&&null!==a[e.Code]&&""!==a[e.Code]||0===a[e.Code])?a[e.Code]:"--",newValue:"--"}:("Add"===a.OptType||a.OptType,{newValue:a&&(a[e.Code]&&null!==a[e.Code]&&""!==a[e.Code]||0===a[e.Code])?a[e.Code]:"--",oldValue:"--"}),s.DataType=e.DataType,s.key=e.Code,s.Enum=e.ValueCN,o[r].push(s)}else t[e.Code]&&t[e.Code].length>0&&t[e.Code].forEach((function(t){var n=i?i[e.Code].find((function(i){return i[e.ChildDataLabel]==t[e.ChildDataLabel]})):null;s="Add"===a.OptType||"Init"===a.OptType?{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],newValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",oldValue:""}:"Delete"===a.OptType?{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],oldValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",newValue:"--"}:{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],newValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",oldValue:n?n[e.ChildDataValue]:"--"},o[r].push(s)}));else t[e.Code]&&t[e.Code].length>0&&(s="Add"===a.OptType||"Init"===a.OptType?{key:e.Code,Enum:e.ValueCN,newValue:t[e.Code]?t[e.Code]:"--",oldValue:""}:"Delete"===a.OptType?{key:e.Code,Enum:e.ValueCN,oldValue:t[e.Code]?t[e.Code]:"--",newValue:"--"}:{key:e.Code,Enum:e.ValueCN,newValue:t[e.Code]?t[e.Code]:"--",oldValue:i[e.Code]?i[e.Code]:"--"},s.DataType=e.DataType,o[r].push(s))}))},getJSON:function(e){var t=this;return new Promise((function(i){u(t.trialId,e.Id).then((function(e){i(e.Result)}))}))},lookAssociated:function(e){var t=this,i=Object.assign({},{SortField:"",Asc:!0,PageIndex:1,PageSize:20,TrialId:this.$route.query.trialId,BatchId:e?null:this.currentRow.BatchId,ObjectRelationParentId:e?this.currentRow.ObjectRelationParentId:null,RelationDeadlineTime:e?this.currentRow.CreateTime:null,GeneralId:e?this.currentRow.GeneralId:null});this.model_cfg2.title="".concat(this.$t("trials:auditRecord:title:viewRelationOperations"),"--").concat(this.currentRow.Description),this.loading=!0,c(i).then((function(e){t.list2=e.CurrentPageData,t.model_cfg2.visible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookDetails2:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getJSON(t);case 2:i=e.sent,n=i[0]?JSON.parse(i[0]):null,a=i[1]?JSON.parse(i[1]):null,Object(d["g"])(t.FrontAuditConfigId).then((function(e){console.log(e);var i=e.Result;r.formatting(i,n.Data,a?a.Data:null,n.CommonData,t,"auditData2"),console.log(r.auditData2),r.otherData2=[],t.IsSign&&r.otherData2.push({Enum:r.$t("trials:auditRecord:title:signInfo2"),Value:t.SignText}),r.model_cfg3.title=t.Description,r.model_cfg3.visible=!0}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),lookDetails:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.currentRow=Object(r["a"])({},t),this.OptType=t.OptType,e.next=4,this.getJSON(t);case 4:i=e.sent,n=i[0]?JSON.parse(i[0]):null,a=i[1]?JSON.parse(i[1]):null,Object(d["g"])(t.FrontAuditConfigId).then((function(e){console.log(e);var i=e.Result;o.formatting(i,n.Data,a?a.Data:null,n.CommonData,t,"auditData"),o.otherData=[],t.IsSign&&(console.log(t.SignText),o.otherData.push({Enum:o.$t("trials:auditRecord:title:signInfo2"),Value:t.SignText})),o.model_cfg.title=t.Description,o.model_cfg.visible=!0}));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleReset:function(){this.searchData=Object.assign(this.searchData,{SortField:"",Asc:!1,PageIndex:1,PageSize:20,ModuleType:null,BlindName:null,TrialId:this.$route.query.trialId,SiteId:null,SubjectId:null,SubjectInfo:null,SubjectVisitId:null,VisitPlanInfo:null,OptType:null,ChildrenType:null,Reason:null,IsSign:null,StartTime:null,EndTime:null,Description:null,OpByUserName:null,BatchId:null}),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},getList:function(){var e=this;this.loading=!0,c(this.searchData).then((function(t){e.list=t.CurrentPageData,e.total=t.TotalCount,e.model_cfg.visible=!1,e.loading=!1,e.searchData.BatchId=null})).catch((function(){e.loading=!1}))}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},b8df:function(e,t,i){const n=i("6cfe"),a=i("262e"),r=i("5ab7");e.exports={defaultOptions:n,getCreateFFmpegCore:a,fetchFile:r}},b8ec:function(e,t,i){var n=i("3eba");n.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},b946:function(e,t,i){},ba29:function(e,t,i){},ba41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-wrapper"},[n("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,a){return n("div",{key:a},[t.mineMsg?n("div",{staticClass:"word-my"},[n("div",{staticClass:"info"},[n("p",{staticClass:"time"},[n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.userName)+" ")]),e._v(" "),n("span",[e._v("("+e._s(t.chatTime)+") ")])]),e._v(" "),n("div",{staticClass:"info-content"},[e._v(e._s(t.contactText))])]),e._v(" "),n("img",{attrs:{src:i("303f")}})]):n("div",{staticClass:"word"},[n("img",{attrs:{src:i("011b")}}),e._v(" "),n("div",{staticClass:"info"},[n("p",{staticClass:"time"},[n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.userName)+" ")]),e._v(" "),n("span",[e._v("("+e._s(t.chatTime)+") ")])]),e._v(" "),n("div",{staticClass:"info-content"},[e._v(e._s(t.contactText))])])])])})),0),e._v(" "),n("div",{staticClass:"chat-message"},[n("el-input",{staticStyle:{width:"90%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容"},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}}),e._v(" "),n("el-button",{attrs:{type:"primary"}},[e._v("发送")])],1)])},a=[],r={data:function(){return{recordContent:[{mineMsg:!1,userName:"CRC",chatTime:"2021.10.28 10:20:38",contactText:"影像已上传完毕",headUrl:""},{mineMsg:!1,userName:"CRC",chatTime:"2021.10.30 16:05:12",contactText:"请核查",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""},{mineMsg:!1,userName:"CRC",chatTime:"2021.10.30 16:05:12",contactText:"请核查",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""}],newMessage:""}}},o=r,s=(i("19fd"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},ba63:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"clinical-data_content"},[i("el-divider"),e._v(" "),i("h4",{staticStyle:{margin:"0"}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips"))+"\n ")]),e._v(" "),i("h5",[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips1"))+"\n ")]),e._v(" "),i("h5",[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips2"))+"\n ")]),e._v(" "),i("div",{staticClass:"top"},[i("el-button",{attrs:{type:"primary",icon:"el-icon-view",size:"small",disabled:0===e.list.length},on:{click:function(t){return e.handlePreview()}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:preview"))+"\n ")]),e._v(" "),e.otherInfo.IsCanAddClinicalData&&e.hasPermi(["trials:trials-panel:subject:readingPeriod:edit"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]):e._e()],1),e._v(" "),i("div",{staticClass:"main"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:e.$t("trials:readingPeriod:cd:table:clinicalDataName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:e.$t("trials:readingPeriod:cd:table:dataLevel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:e.$t("trials:readingPeriod:cd:table:transferType")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:readingPeriod:cd:table:fileCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.ClinicalUploadType?"NA":t.row.FileCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingClinicalDataState",label:e.$t("trials:readingPeriod:cd:title:cdStatus"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),1===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),2===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),3===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",disabled:1===t.row.ClinicalUploadType&&0===t.row.FileCount,title:e.$t("trials:readingPeriod:cd:action:view"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row.Id)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:edit"),icon:"el-icon-edit-outline",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:"核查",icon:"el-icon-s-claim",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleVerification(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:delete"),icon:"el-icon-delete",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),e.addOrUpdateCD.visible?i("el-dialog",{attrs:{visible:e.addOrUpdateCD.visible,"close-on-click-modal":!1,title:e.addOrUpdateCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrUpdateCD,"visible",t)}}},[i("AddOrEditCD",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentData},on:{close:function(t){e.addOrUpdateCD.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.verification.visible?i("el-dialog",{attrs:{visible:e.verification.visible,"close-on-click-modal":!1,title:e.verification.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.verification,"visible",t)}}},[i("Verification",{attrs:{data:e.currentData},on:{close:function(t){e.verification.visible=!1},getList:e.getList,handlePreview:e.handlePreview,sign:e.handleSign}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)],1)},a=[],r=i("db72"),o=i("3e42"),s=i("2eec"),l=i("e540"),c=i("179b"),u=i("7a9e"),d=i("5f87"),f={name:"ClinicalData",components:{AddOrEditCD:s["default"],SignForm:c["default"],Verification:l["default"]},props:{trialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,searchData:{},list:[],total:0,dialogVisible:!1,addOrUpdateCD:{title:"",visible:!1},verification:{title:"",visible:!1},currentData:{},signCode:"",currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,otherInfo:{}}},mounted:function(){console.log(this.data),this.getList()},methods:{getList:function(){var e=this;this.searchData.ReadingId=this.data.Id,this.searchData.SubjectId=this.data.SubjectId,this.searchData.IsVisit=this.data.IsVisit,this.searchData.TrialId=this.data.TrialId,this.searchData.IsBaseLine=this.data.IsBaseLine,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.loading=!0,Object(o["Mc"])(this.searchData).then((function(t){e.list=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1})).catch((function(){e.loading=!1}))},handleAdd:function(){this.currentData=Object.assign({},{TrialId:this.data.TrialId,ReadingId:this.data.Id,IsVisit:this.data.IsVisit,SubjectId:this.data.SubjectId,IsBaseLine:this.data.IsBaseLine}),this.addOrUpdateCD.title=this.$t("common:button:new"),this.addOrUpdateCD.visible=!0},handleEdit:function(e){this.currentData=Object(r["a"])({},e),this.currentData.TrialId=this.data.TrialId,this.currentData.SubjectId=this.data.SubjectId,this.currentData.ReadingId=this.data.Id,this.currentData.IsVisit=this.data.IsVisit,this.currentData.IsBaseLine=this.data.IsBaseLine,this.addOrUpdateCD.title=this.$t("common:button:edit"),this.addOrUpdateCD.visible=!0},handleVerification:function(e){this.currentData=Object(r["a"])({},e),this.currentData.TrialId=this.data.TrialId,this.currentData.SubjectId=this.data.SubjectId,this.currentData.ReadingId=this.data.Id,this.currentData.IsVisit=this.data.IsVisit,this.currentData.IsBaseLine=this.data.IsBaseLine,this.verification.title=this.$t("trials:readingPeriod:cd:title:cdCheck"),this.verification.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["mb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleSign:function(){var e=u["default"].processSignature.CDQualityConfirmation;this.signCode=e,this.signVisible=!0},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{readingClinicalDataId:this.currentData.Id,TrialReadingCriterionId:this.trialReadingCriterionId},signInfo:e};Object(o["c"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.getList(),t.$nextTick((function(){t.verification.visible=!1})))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handlePreview:function(e){var t=Object(d["a"])(),i=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.data.SubjectId,"&trialId=").concat(this.data.TrialId,"&readingId=").concat(this.data.Id,"&readingClinicalDataId=").concat(e||"","&TokenKey=").concat(t)});window.open(i.href,"_blank")}}},h=f,p=(i("ec47"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"f64745d0",null);t["default"]=m.exports},ba8d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organType")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPart")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Part,callback:function(t){e.$set(e.searchData,"Part",t)},expression:"searchData.Part"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organ")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TULOC,callback:function(t){e.$set(e.searchData,"TULOC",t)},expression:"searchData.TULOC"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:isLymphNodes")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.IsLymphNodes,callback:function(t){e.$set(e.searchData,"IsLymphNodes",t)},expression:"searchData.IsLymphNodes"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"small"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.synchronizeSystemOrganToTrial}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:sync"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleSet}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:set"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:e.$t("trials:readingUnit:baseDataCfg:title:organType"),"min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Classification",label:e.$t("trials:readingUnit:baseDataCfg:title:classification"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClassificationEN",label:e.$t("trials:readingUnit:baseDataCfg:title:classificationEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPart"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PartEN",label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPartEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:e.$t("trials:readingUnit:baseDataCfg:title:organ"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOCEN",label:e.$t("trials:readingUnit:baseDataCfg:title:organEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:e.$t("trials:readingUnit:baseDataCfg:title:TULAT"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULATEN",label:e.$t("trials:readingUnit:baseDataCfg:title:TULATEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsLymphNodes",label:e.$t("trials:readingUnit:baseDataCfg:title:isLymphNodes"),"min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsLymphNodes?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCanEditPosition",label:e.$t("trials:readingUnit:baseDataCfg:title:isCanEditPosition"),"min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsCanEditPosition?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:readingUnit:baseDataCfg:title:showOrder"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:baseDataCfg:title:remark"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:readingUnit:baseDataCfg:title:isEnable"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm?i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))]):i("el-switch",{on:{change:function(i){return e.changeEnableStatus(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])})],1)],1),e._v(" "),e.criterion.visible?i("el-dialog",{attrs:{visible:e.criterion.visible,"close-on-click-modal":!1,title:e.criterion.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.criterion,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"criterionForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingCriterion"),prop:"CriterionId",rules:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{model:{value:e.form.CriterionId,callback:function(t){e.$set(e.form,"CriterionId",t)},expression:"form.CriterionId"}},e._l(e.criterions,(function(e){return i("el-option",{key:e.CriterionId,attrs:{label:e.CriterionName,value:e.CriterionId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.criterion.visible=!1}}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=i("3e42"),o=i("6071"),s=function(){return{OrganType:null,TULOC:null,TULAT:null,IsLymphNodes:null}},l={name:"OrgansList",components:{BaseContainer:o["default"]},props:{trialReadingCriterionId:{type:String,required:!0},isFromSystem:{type:Boolean,required:!0},isConfirm:{type:Boolean,required:!0}},data:function(){return{searchData:s(),loading:!1,list:[],total:0,trialId:"",criterion:{title:this.$t("trials:readingUnit:baseDataCfg:title:set"),visible:!1},formLoading:!1,form:{CriterionId:""},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getCriterions(),this.getList()},methods:{synchronizeSystemOrganToTrial:function(){var e=this;this.loading=!0,Object(r["if"])({TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.getList(),e.$message.success(e.$t("trials:readingUnit:baseDataCfg:message:sync"))})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.$route.query.trialId,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(r["Rd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addDialog.visible=!0},changeEnableStatus:function(e,t){var i=this;t.IsEnable=!e;var n=this.$t("trials:readingUnit:baseDataCfg:message:updateConfirm");this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=!t.IsEnable;i.loading=!0;var n={isEnable:e,ids:[t.Id]};Object(r["Pe"])(n).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getList())})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingUnit:baseDataCfg:message:deleteConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["Bb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:readingUnit:baseDataCfg:message:deleteSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getCriterions:function(){var e=this;Object(r["ud"])().then((function(t){e.criterions=t.Result}))},handleSet:function(){this.criterion.visible=!0,this.form.CriterionId=""},handleSave:function(){var e=this;this.$refs["criterionForm"].validate((function(t){if(t){e.formLoading=!0;var i={trialId:e.$route.query.trialId,systemCriterionId:e.form.CriterionId};Object(r["if"])(i).then((function(t){e.getList(),e.criterion.visible=!1,e.formLoading=!1})).catch((function(){e.formLoading=!1}))}}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},ba92:function(e,t,i){"use strict";var n=i("4bf8"),a=i("77f1"),r=i("9def");e.exports=[].copyWithin||function(e,t){var i=n(this),o=r(i.length),s=a(e,o),l=a(t,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:a(c,o))-l,o-s),d=1;l0)l in i?i[s]=i[l]:delete i[s],s+=d,l+=d;return i}},bad9:function(e,t,i){},bb05:function(e,t,i){"use strict";i("ec74")},bb1a:function(e,t,i){},bb6c:function(e,t,i){},bb70:function(e,t,i){var n=i("e86a"),a=i("3842"),r=a.parsePercent,o=Math.PI/180;function s(e,t,i,n,a,r,o,s,l,c){function u(t,i,n,a){for(var r=t;rl+o)break;if(e[r].y+=n,r>t&&r+1e[r].y+e[r].height)return void d(r,n/2)}d(i-1,n/2)}function d(t,i){for(var n=t;n>=0;n--){if(e[n].y-i0&&e[n].y>e[n-1].y+e[n-1].height)break}}function f(e,t,i,n,a,r){for(var o=t?Number.MAX_VALUE:0,s=0,l=e.length;s=o&&(f=o-10),!t&&f<=o&&(f=o+10),e[s].x=i+f*r,o=f}}e.sort((function(e,t){return e.y-t.y}));for(var h,p=0,m=e.length,g=[],v=[],b=0;b=i?v.push(e[b]):g.push(e[b]);f(g,!1,t,i,n,a),f(v,!0,t,i,n,a)}function l(e,t,i,a,r,o,l,u){for(var d=[],f=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,m=0;m0?"right":"left":L>0?"left":"right"}var z=c.get("rotate");$="number"===typeof z?z*(Math.PI/180):z?L<0?-D+Math.PI:-D:0,p=!!$,o.label={x:T,y:C,position:g,height:A.height,len:x,len2:S,linePoints:k,textAlign:R,verticalAlign:"middle",rotation:$,inside:P,labelDistance:v,labelAlignTo:b,labelMargin:y,bleedMargin:w,textRect:A,text:N,font:_},P||h.push(o.label)}})),!p&&e.get("avoidLabelOverlap")&&l(h,u,d,t,i,a,s,c)}e.exports=u},bb8c:function(e,t,i){"use strict";i("e781")},bc42:function(e,t,i){},bc5f:function(e,t,i){var n=i("6cb7");n.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},bc7b:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-druid",use:"icon-druid-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},bcaa1:function(e,t,i){var n=i("4ab1"),a=i("6d8b");function r(e,t){n.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function o(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}a.inherits(r,n),r.prototype.addWithoutUpdate=function(e,t){if(t&&o(t.style)){var i;if(t._shadowDom){i=t._shadowDom;var n=this.getDefs(!0);n.contains(t._shadowDom)||this.addDom(i)}else i=this.add(t);this.markUsed(t);var a=i.getAttribute("id");e.style.filter="url(#"+a+")"}},r.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},r.prototype.update=function(e,t){var i=t.style;if(o(i)){var a=this;n.prototype.update.call(this,t,(function(){a.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},r.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},r.prototype.updateDom=function(e,t){var i=t.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,r,o,s=e.style,l=e.scale&&e.scale[0]||1,c=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/c),i.setAttribute("flood-color",o);var u=r/2/l,d=r/2/c,f=u+" "+d;i.setAttribute("stdDeviation",f),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(r/2*200)+"%"),t.setAttribute("height",Math.ceil(r/2*200)+"%"),t.appendChild(i),e._shadowDom=t},r.prototype.markUsed=function(e){e._shadowDom&&n.prototype.markUsed.call(this,e._shadowDom)};var s=r;e.exports=s},bcbe:function(e,t,i){var n=i("6d8b"),a=i("fab22"),r=i("2306"),o=i("edb9"),s=i("6679"),l=i("58df"),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],f=["splitArea","splitLine"],h=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,i,s){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new r.Group;var u=o.layout(e),p=new a(e,u);n.each(d,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),n.each(f,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),r.groupTransition(c,this._axisGroup,e),h.superCall(this,"render",e,t,i,s)},remove:function(){u(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var i=e.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),c=[],u=0,d=t.getTicksCoords({tickModel:i}),f=[],h=[],p=0;p=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateXe&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e0&&this.resetChild(t.childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.id),e.childrens&&e.childrens.length>0&&t.resetChild(e.childrens)}))}}}),o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},bd4d:function(e,t,i){"use strict";i("b79c")},bd6b:function(e,t,i){var n=i("06ad"),a=i("4942"),r=i("6d8b"),o=r.isString,s=r.isFunction,l=r.isObject,c=r.isArrayLike,u=r.indexOf,d=function(){this.animators=[]};function f(e,t,i,n,a,r,l,c){o(n)?(r=a,a=n,n=0):s(a)?(r=a,a="linear",n=0):s(n)?(r=n,n=0):s(i)?(r=i,i=500):i||(i=500),e.stopAnimation(),h(e,"",e,t,i,n,c);var u=e.animators.slice(),d=u.length;function f(){d--,d||r&&r()}d||r&&r();for(var p=0;p0&&e.animate(t,!1).when(null==a?500:a,s).delay(r||0)}function p(e,t,i,n){if(t){var a={};a[t]={},a[t][i]=n,e.attr(a)}else e.attr(i,n)}d.prototype={constructor:d,animate:function(e,t){var i,r=!1,o=this,s=this.__zr;if(e){var l=e.split("."),c=o;r="shape"===l[0];for(var d=0,f=l.length;d=0)&&e(r,n,a)}))}var p=h.prototype;function m(e){return e[0]>e[1]&&e.reverse(),e}function g(e,t){return o.parseFinder(e,t,{includeMainTypes:f})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=w[e.brushType](0,i,t);e.__rangeOffset={offset:I[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(e,t,i){l(e,(function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&a.each(n.coordSyses,(function(n){var a=w[e.brushType](1,n,e.range);i(e,a.values,n,t)}))}),this)},p.setInputRanges=function(e,t){l(e,(function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=w[e.brushType](0,i.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?I[e.brushType](n.values,a.offset,S(n.xyMinMax,a.xyMinMax)):n.values}}),this)},p.makePanelOpts=function(e,t){return a.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:s.makeRectPanelClipPath(n),isTargetByCursor:s.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&c(n.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=g(t,e),a=0;a=0||c(n,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:y.grid,xAxisDeclared:s[e.id],yAxisDeclared:u[e.id]})})))},geo:function(e,t){l(e.geoModels,(function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:y.geo})}))}},b=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],y={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(r.getTransform(e)),t}},w={lineX:u(_,0),lineY:u(_,1),rect:function(e,t,i){var n=t[d[e]]([i[0][0],i[1][0]]),a=t[d[e]]([i[0][1],i[1][1]]),r=[m([n[0],a[0]]),m([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,i){var n=[[1/0,-1/0],[1/0,-1/0]],r=a.map(i,(function(i){var a=t[d[e]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a}));return{values:r,xyMinMax:n}}};function _(e,t,i,n){var r=i.getAxis(["x","y"][e]),o=m(a.map([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(n[e])):r.toGlobalCoord(r.dataToCoord(n[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var I={lineX:u(x,0),lineY:u(x,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return a.map(e,(function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]}))}};function x(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function S(e,t){var i=T(e),n=T(t),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function T(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var C=h;e.exports=C},bda7:function(e,t,i){var n=i("6d8b"),a=i("f279");function r(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var i=e.features,n=0;n>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=r,a=s,r=l,n.push([s/i,l/i])}return n}function s(e,t){return r(e),n.map(n.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var i=e.properties,r=e.geometry,o=r.coordinates,s=[];"Polygon"===r.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===r.type&&n.each(o,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new a(i[t||"name"],s,i.cp);return l.properties=i,l}))}e.exports=s},bdab5:function(e,t,i){"use strict";i("a21d")},bdb0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"menuForm",attrs:{model:e.form,"label-width":"110px",size:"small",rules:e.rules}},[i("el-form-item",{attrs:{label:"MenuName",prop:"MenuName"}},[i("el-input",{model:{value:e.form.MenuName,callback:function(t){e.$set(e.form,"MenuName",t)},expression:"form.MenuName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Route Name"}},[i("el-input",{model:{value:e.form.RouteName,callback:function(t){e.$set(e.form,"RouteName",t)},expression:"form.RouteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Component"}},[i("el-input",{model:{value:e.form.Component,callback:function(t){e.$set(e.form,"Component",t)},expression:"form.Component"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Redirect"}},[i("el-input",{model:{value:e.form.Redirect,callback:function(t){e.$set(e.form,"Redirect",t)},expression:"form.Redirect"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Path"}},[i("el-input",{model:{value:e.form.Path,callback:function(t){e.$set(e.form,"Path",t)},expression:"form.Path"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Title"}},[i("el-input",{model:{value:e.form.MetaTitle,callback:function(t){e.$set(e.form,"MetaTitle",t)},expression:"form.MetaTitle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Breadcrumb"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.MetaBreadcrumb,callback:function(t){e.$set(e.form,"MetaBreadcrumb",t)},expression:"form.MetaBreadcrumb"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Icon"}},[i("el-select",{model:{value:e.form.MetaIcon,callback:function(t){e.$set(e.form,"MetaIcon",t)},expression:"form.MetaIcon"}},e._l(e.iconOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Active Menu"}},[i("el-input",{model:{value:e.form.MetaActiveMenu,callback:function(t){e.$set(e.form,"MetaActiveMenu",t)},expression:"form.MetaActiveMenu"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Function Name"}},[i("el-input",{model:{value:e.form.FunctionName,callback:function(t){e.$set(e.form,"FunctionName",t)},expression:"form.FunctionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description"}},[i("el-input",{model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Hidden"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.Hidden,callback:function(t){e.$set(e.form,"Hidden",t)},expression:"form.Hidden"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Show Order"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Status"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.Status,callback:function(t){e.$set(e.form,"Status",t)},expression:"form.Status"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:function(t){return e.handleSave()}}},[e._v("Save")])],1)],2)},a=[],r=i("50fc"),o=i("9b6c"),s=i("7eeb"),l={components:{BaseModel:s["default"]},props:{form:{type:Object,default:function(){return{}}}},data:function(){return{model_cfg:o["a"],iconOptions:["dashboard","user","trial","statistics","financials","dictionary","admin"],rules:{MenuName:[{required:!0,message:"Please specify",trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.menuForm.validate((function(t){if(t){e.model_cfg.showClose=!1;var i=JSON.parse(JSON.stringify(e.form));i.MetaBreadcrumb=!!i.MetaBreadcrumb,i.Hidden=!!i.Hidden,e.loading=!0,Object(r["a"])(i).then((function(t){var n=i.Id?"Updated successfully":"Appended successfully";i.Id=t.Result,e.$message.success(n),e.$emit("close",i),e.loading=!1,e.model_cfg.showClose=!0})).catch((function(){e.loading=!1,e.model_cfg.showClose=!0}))}}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},bdc0:function(e,t,i){var n=i("3eba");i("d2a5"),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},bddc:function(e,t,i){"use strict";i("b946")},be0c:function(e,t,i){},be16:function(e,t,i){"use strict";i("a543")},be50:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Code:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyName,callback:function(t){e.$set(e.searchData,"KeyName",t)},expression:"searchData.KeyName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Dictionary Type","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"Description","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc05"),s=i("f36a"),l=function(){return{Asc:!0,SortField:"Code",Code:"",KeyName:"",DataTypeEnum:0,PageIndex:1,PageSize:500}},c={name:"DictionaryConfig",components:{BoxContent:s["default"],DictionaryTypeConfigForm:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},be6a:function(e,t,i){"use strict";i("ba29")},be8f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",disabled:0==e.submitIdArr.length,icon:"el-icon-check",loading:e.loading},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:submit"))+"\n ")]),e._v(" "),e.hasPermi(["role:pm"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:!e.total,loading:e.loading},on:{click:e.handleDownloadAll}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:submissionDownAll"))+"\n ")]):e._e()],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:submitter"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:submissionTime"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-download",circle:"",title:e.$t("trials:seletctedReviews:button:submissionDown")},on:{click:function(i){return e.handleDownload(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:e.$t("trials:seletctedReviews:title:language"),visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",[e._v(e._s(e.$t("trials:seletctedReviews:label:language"))+": ")]),e._v(" "),i("el-radio-group",{model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},[i("el-radio",{attrs:{label:2}},[e._v("English")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("中文")])],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleDownloadResumes}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=1,u={name:"Submission",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},loading:!1,total:0,listLoading:!1,submitIdArr:[],dialogVisible:!1,language:2,token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSubmit:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(s["df"])(t,e.submitIdArr,1).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","approval"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}})])]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},e._l(e.urlList,(function(t,n){return i("img",{directives:[{name:"show",rawName:"v-show",value:n===e.index,expression:"i === index"}],key:t.Id,ref:"img"+n,refInFor:!0,staticStyle:{"max-width":"100%","max-height":"100%"},style:e.imgStyle,attrs:{src:"/api/"+t.FullFilePath},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}})})),0)],2)])],1)},a=[],r=i("db72"),o=(i("c5f6"),i("526f")),s=i("6bd7"),l=Object(s["a"])()?"DOMMouseScroll":"mousewheel",c={name:"ImageViewer",props:{urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e)}}},mounted:function(){var e=this;document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var i=t.keyCode;switch(i){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(s["b"])((function(t){var i=t.wheelDelta?t.wheelDelta:-t.detail;i>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(o["b"])(document,"keydown",this._keyDownHandler),Object(o["b"])(document,l,null)},deviceSupportUninstall:function(){Object(o["a"])(document,"keydown",this._keyDownHandler),Object(o["a"])(document,l,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var i=this.transform,n=i.offsetX,a=i.offsetY,r=e.pageX,l=e.pageY;this._dragHandler=Object(s["b"])((function(e){t.transform.offsetX=n+e.pageX-r,t.transform.offsetY=a+e.pageY-l})),Object(o["b"])(document,"mousemove",this._dragHandler),Object(o["b"])(document,"mouseup",(function(e){Object(o["a"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},u=c,d=(i("551d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"277055d0",null);t["default"]=f.exports},bf5d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"research-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.researchInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Research,callback:function(t){e.$set(e.researchInfo,"Research",t)},expression:"researchInfo.Research"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.ResearchCN,callback:function(t){e.$set(e.researchInfo,"ResearchCN",t)},expression:"researchInfo.ResearchCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Grants,callback:function(t){e.$set(e.researchInfo,"Grants",t)},expression:"researchInfo.Grants"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.GrantsCN,callback:function(t){e.$set(e.researchInfo,"GrantsCN",t)},expression:"researchInfo.GrantsCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.auditView.BlindPublications,callback:function(t){e.$set(e.auditView,"BlindPublications",t)},expression:"auditView.BlindPublications"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonors,callback:function(t){e.$set(e.researchInfo,"AwardsHonors",t)},expression:"researchInfo.AwardsHonors"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonorsCN,callback:function(t){e.$set(e.researchInfo,"AwardsHonorsCN",t)},expression:"researchInfo.AwardsHonorsCN"}})],1)],1)],1)},a=[],r={props:{auditView:{type:Object,default:function(){return{}}},researchInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("8222"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},bf71:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(){}log(e,t){}}n.instance=new n},bf9b:function(e,t,i){var n=i("3eba"),a=i("d81e"),r=a.updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=e.dataIndex,n=t.getData().tree,a=n.getNodeByDataIndex(i);a.isExpand=!a.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,n=r(i,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},bfcf:function(e,t,i){"use strict";i("670b")},bfd8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),i("div",{staticClass:"lesions"},[i("Questions",{ref:"ecrf",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-first-change-task":e.isFirstChangeTask}})],1),e._v(" "),e.questions.length>0?e._l(e.questions,(function(t,n){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:n,staticClass:"lesions lesions_wrapper"},["group"===t.Type?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s("en"===e.language?t.GroupEnName:t.GroupName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"lesion_list"},e._l(t.Childrens,(function(n){return i("div",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===n.LesionType)&&!(e.isBaseLineTask&&3===n.LesionType),expression:"!(isBaseLineTask && item.LesionType === 2) && !(isBaseLineTask && item.LesionType === 3)"}],key:n.Id},["table"===n.Type?i("div",{staticClass:"flex-row"},[i("div",{staticClass:"title"},[e._v(e._s(n.QuestionName))]),e._v(" "),e.readingTaskState<2&&(e.isBaseLineTask||2===n.LesionType)?i("div",{staticClass:"add-icon",on:{click:function(t){return t.preventDefault(),e.handleAdd(n)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]):e._e(),e._v(" "),"table"===n.Type&&n.TableQuestions?i("el-collapse",{attrs:{accordion:""},on:{change:e.handleCollapseChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(n.TableQuestions.Answers,(function(a,r){return i("el-collapse-item",{key:r,attrs:{name:n.Id+"_"+a.RowIndex}},[i("template",{slot:"title"},[i("div",{staticStyle:{width:"300px",position:"relative"},style:{color:e.activeName===n.Id+a.RowIndex?"#ffeb3b":"#fff"}},[e._v("\n "+e._s(e.getLesionName(n.OrderMark,a.RowIndex,t.Childrens))+"\n "),e._v(" "),e.readingTaskState<2&&0===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:unsaved"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}})]):e._e(),e._v(" "),e.readingTaskState<2&&1===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:incompleteInfor"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#ff9800"}})]):e._e(),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"60px",top:"2px"}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","font-size":"10px",width:"200px"}},[n.TableQuestions.Answers[r].lesionPart?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionPart)+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionState?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(e.$fd("EvaluationOfState",parseInt(n.TableQuestions.Answers[r].lesionState)))+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionType?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionType)+"\n ")]):e._e(),e._v(" "),isNaN(parseInt(n.TableQuestions.Answers[r].lesionNum))||4!==n.LesionType?e._e():i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionNum)+"\n ")])])])],1)]),e._v(" "),i("QuestionForm",{ref:n.Id+"_"+a.RowIndex,refInFor:!0,attrs:{questions:n.TableQuestions.Questions,answers:n.TableQuestions.Answers[r],"lesion-type":n.LesionType,"order-mark":n.OrderMark,"table-questions":e.tableQuestions,"row-index":String(a.RowIndex),"question-name":n.QuestionName,"parent-qs-id":n.Id,"visit-task-id":e.visitTaskId,"is-current-task":e.isCurrentTask,"reading-task-state":e.readingTaskState,"is-base-line-task":e.isBaseLineTask},on:{getReadingQuestionAndAnswer:e.getReadingQuestionAndAnswer,determineExistsUnsavedLession:e.determineExistsUnsavedLession,resetQuestions:e.resetQuestions,close:e.close}})],2)})),1):e._e()],1)})),0)])})):e._e()],2)])},a=[],r=(i("f576"),i("28a5"),i("a481"),i("7514"),i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("9b92")),l=i("d862"),c=i("a588"),u=i("4360"),d=i("2f62"),f={name:"PCWG3Questions",components:{Questions:l["default"],QuestionForm:c["default"]},props:{isShow:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{height:window.innerHeight-140,questions:[],activeName:"",activeItem:{activeRowIndex:null,activeCollapseId:null},visitTaskId:"",isCurrentTask:!1,loading:!1,unSaveTargets:[],temporaryLesions:[],readingTaskState:2,isBaseLineTask:!1,taskBlindName:"",tableQuestions:[],isFirstRender:!1,criterionType:null,subjectCode:"",isConvertedTask:null,isFirstChangeTask:null,TaskNum:null,BlindName:null,isMax:!1}},computed:Object(o["a"])({},Object(d["b"])(["visitTaskList","language","lastCanvasTaskId","currentReadingTaskState"])),watch:{lastCanvasTaskId:{immediate:!0,handler:function(e){e&&this.initList()}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,window.addEventListener("message",this.receiveMsg),this.criterionType=parseInt(localStorage.getItem("CriterionType")),s["a"].$on("setCollapseActive",(function(t){e.setCollapseActive(t),console.log("setCollapseActive")})),s["a"].$on("changeLesionType",(function(t){e.changeLesionType(t),console.log("changeLesionType")})),s["a"].$on("getAllUnSaveLesions",(function(t){var i=e.getAllUnSaveLesions();t(i),console.log("getAllUnSaveLesions")})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){s["a"].$off("setCollapseActive"),s["a"].$off("changeLesionType"),s["a"].$off("getUnSaveTarget")},methods:{initList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===a.lastCanvasTaskId})),!(t>-1)){e.next=32;break}if(this.visitTaskId=this.visitTaskList[t].VisitTaskId,this.taskBlindName=this.visitTaskList[t].TaskBlindName,this.readingTaskState=this.visitTaskList[t].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[t].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[t].IsCurrentTask,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.TaskNum=this.visitTaskList[t].VisitTaskNum,this.BlindName=this.visitTaskList[t].TaskBlindName,this.visitTaskList[t].IsInit){e.next=30;break}if(i=this.$loading({fullscreen:!0}),n=this.trialId=this.$router.currentRoute.query.trialId,this.visitTaskList[t].measureDataInit){e.next=18;break}return e.next=18,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[t].VisitTaskId);case 18:if(this.visitTaskList[t].studyListInit){e.next=21;break}return e.next=21,u["a"].dispatch("reading/getStudyInfo",{trialId:n,subjectVisitId:this.visitTaskList[t].VisitId,visitTaskId:this.visitTaskList[t].VisitTaskId,taskBlindName:this.visitTaskList[t].TaskBlindName});case 21:if(this.visitTaskList[t].readingQuestionsInit){e.next=24;break}return e.next=24,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 24:if(this.visitTaskList[t].questionsInit){e.next=27;break}return e.next=27,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 27:return e.next=29,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[t].VisitTaskId});case 29:i.close();case 30:this.questions=this.visitTaskList[t].ReadingQuestions,this.$nextTick((function(){a.$refs["ecrf"].getQuestions(a.visitTaskId),a.getTableQuestions(),a.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var i="".concat(e.Id,"_").concat(t.RowIndex);a.$refs[i]&&a.$refs[i][0].initForm()}))}))}));case 32:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),modifyMeasuredData:function(e){if(e.questionInfo){this.activeItem.activeCollapseId=e.questionInfo.QuestionId,this.activeItem.activeRowIndex=String(e.questionInfo.RowIndex),this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$refs[t][0].setMeasureData(e.measureData)}},setMeasuredData:function(e){var t=this;this.activeItem.activeCollapseId?this.$nextTick((function(){var i="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);t.$refs[i][0].questionForm&&t.$refs[i][0].questionForm.MeasureData&&e.data.uuid===t.$refs[i][0].questionForm.MeasureData.data.uuid||!t.$refs[i][0].questionForm.MeasureData?t.$refs[i][0].setMeasureData(e):t.isBaseLineTask?t.createNTTarget(e):t.createNLTarget(e)})):this.isBaseLineTask?this.createNTTarget(e):this.createNLTarget(e)},createNTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 4===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType})),i=this.tableQuestions.findIndex((function(e){return 3===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e,this.tableQuestions[i])},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i,n){var a,r,o,s,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={saveTypeEnum:0},r=t.TableQuestions.Questions.find((function(e){return 9===e.QuestionMark})),o=t.TableQuestions.Questions.find((function(e){return 7===e.QuestionMark})),o&&(a[o.Id]=2),s=this.getMaxRowIndex(t.TableQuestions.Answers),s<1&&!this.isBaseLineTask&&(s=this.getMaxRowIndex(n.TableQuestions.Answers)),a.RowIndex="".concat(s+1,".00"),r&&(a[r.Id]=this.BlindName,a["BlindName"]=this.BlindName,a["TaskNum"]=this.TaskNum),e.next=10,u["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 10:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){c.$refs[l][0].setMeasureData(i)}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}(),determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$loading({fullscreen:!0}),t.next=3,u["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 3:return t.next=5,u["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 5:s["a"].$emit("getMeasureData"),n.close(),i();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.isMax=!1,this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.length0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n),t.$set(i,"isLesionSaved",!0);var a=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionNum",a);var r=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(r=isNaN(parseInt(r))?"":parseInt(r),t.$set(i,"lesionState",r),i.RowId){var o=t.questions.findIndex((function(e){return 11===e.QuestionMark}));o>-1?t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2):t.$set(i,"saveTypeEnum",isNaN(parseInt(r))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},getLesionName:function(e,t,i){var n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o)):n="".concat(e).concat(String(r).padStart(2,"0")),n},handleAdd:function(e){var t=this;if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var i=this.$t("trials:reading:warnning:msg5");return i=i.replace("xxx",this.unSaveTargets[0].lessionName),void this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}})}if(e.MaxQuestionCount&&e.MaxQuestionCount<=e.TableQuestions.Answers.length){var n=this.$t("trials:reading:pcwg:msg3").replace("xxx",e.QuestionName);n=n.replace("n",e.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}})}else{var a={saveTypeEnum:0},r=this.tableQuestions.findIndex((function(e){return 3===e.LesionType})),o=this.getMaxRowIndex(e.TableQuestions.Answers);o<1&&(o=this.getMaxRowIndex(this.tableQuestions[r].TableQuestions.Answers)),a.RowIndex="".concat(o+1,".00"),e.TableQuestions.Questions.forEach((function(e){9===e.QuestionMark?(a[e.Id]=t.BlindName,a["BlindName"]=t.BlindName,a["TaskNum"]=t.TaskNum):7===e.QuestionMark?a[e.Id]=2:a[e.Id]=""})),e.TableQuestions.Answers.push(a),this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=e.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&s["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},isCanActiveTool:function(e){if(this.getUnSaveTarget(),this.activeName){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(this.$refs[t][0].questionForm.MeasureData&&this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")}}else if(this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")};if(this.unSaveTargets.length>0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");return r=r.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:r}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):this.isBaseLineTask?"ArrowAnnotate"===e||"RectangleRoi"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}:"ArrowAnnotate"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}},checkToolCanActive:function(e){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);return this.$refs[t][0].questionForm.MeasureData?"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:{isCanActiveTool:!0,reason:""}:4===this.$refs[t][0].lesionType&&"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:4!==this.$refs[t][0].lesionType&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}},close:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.getReadingQuestionAndAnswer(t.visitTaskId),this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.activeName="";case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},h=f,p=(i("7919"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"9fec8896",null);t["default"]=m.exports},bfde:function(e,t,i){},bffc:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%",background:"#fff"}},[i("router-view")],1)},a=[];i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}))},c006:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"uploadFiles-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","show-file-list":!1,"http-request":e.handleUploadFile,"file-list":e.fileList,accept:e.accept}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isDisabled}},[e._v("Upload")])],1)],1)},a=[],r=(i("386d"),i("20d6"),i("14b9"),i("7f7f"),i("ac6a"),i("a796")),o={name:"UploadFiles",props:{type:{type:String,required:!0},doctorId:{type:String,required:!0},accept:{type:String,required:!0}},data:function(){return{fileList:[],repeat:!1,isDisabled:!1}},mounted:function(){this.initFileList()},methods:{initFileList:function(){var e=this,t=this.$loading({fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.07)"});Object(r["b"])(this.doctorId,this.type).then((function(i){t.close(),i.IsSuccess&&(i.Result.length>0?(e.fileList=e.formatterFileList(i.Result),e.$emit("getFileList",e.fileList)):e.fileList=[])})).catch((function(){t.close()}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={DoctorId:e.DoctorId,Type:e.Type,Path:e.Path,FullPath:e.FullPath,FileName:e.FileName,CreateTime:e.CreateTime,Id:e.Id};t.push(i)})),t},handleUploadFile:function(e){var t=this;if(this.repeat=!1,this.checkFileSuffix(e.file.name)){var i=this.fileList.some((function(t){return t.FileName===e.file.name}));i?this.$confirm("Override the existing resume?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){t.repeat=!0,t.uploadFile(e.file)})).catch((function(e){})):this.uploadFile(e.file)}else this.$message.error("Must be in ".concat(this.accept," format"))},uploadFile:function(e){var t=this;this.isDisabled=!0,Object(r["f"])(e,this.type,this.doctorId).then((function(i){if(t.repeat){var n=t.fileList.findIndex((function(t,i){return t.FileName===e.name}));t.fileList[n].Path=i.Result.FilePath,t.fileList[n].FullPath=i.Result.FullFilePath,t.fileList[n].ReUpload=!0}else{var a={DoctorId:t.doctorId,Type:t.type,Path:i.Result.FilePath,FullPath:i.Result.FullFilePath,FileName:e.name};t.fileList.push(a)}t.saveUploadFiles()})).catch((function(){t.isDisabled=!1}))},saveUploadFiles:function(){var e=this;Object(r["c"])(this.fileList).then((function(t){e.fileList=e.formatterFileList(t.Result),e.isDisabled=!1,e.$message.success("Uploaded successfully"),e.$emit("getFileList",e.fileList)})).catch((function(){e.isDisabled=!1}))},handleDeleteFile:function(e){var t=this;this.$confirm("Sure to remove?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["a"])(e.Id,e.Path).then((function(i){i.IsSuccess&&(t.fileList.splice(t.fileList.findIndex((function(t){return t.Id===e.Id})),1),t.$emit("getFileList",t.fileList),t.$message({message:"Deleted successfully!",type:"success"}))}))})).catch((function(e){}))},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return 1===this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())}}},s=o,l=(i("a255"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},c037:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("f7c6"),i("1ab3");var r=i("7782"),o=i("98e7"),s=i("292e"),l=i("d3f47");r("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(a.curry(s,"pie")),n.registerProcessor(l("pie"))},c067:function(e,t,i){},c07b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"130px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:reader"),prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:!!e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:plannedCount"),prop:"PlanSubjectCount"}},[i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-input-number",{attrs:{min:0,max:1e3,"controls-position":"right"},model:{value:e.form.PlanSubjectCount,callback:function(t){e.$set(e.form,"PlanSubjectCount",t)},expression:"form.PlanSubjectCount"}})],1)]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:status")}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:remark")}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}},TaskAllocationRuleList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanSubjectCount:0,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanSubjectCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(o["b"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"018aeb48",null);t["default"]=u.exports},c07d:function(e,t,i){"use strict";i("d22c")},c0ee:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",[i("el-col",{staticClass:"m-b-10",attrs:{span:24}},[i("el-table",e._b({directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:e.bottomOffset},expression:"{bottomOffset}"}],attrs:{data:e.list,height:e.tableHeight,stripe:"","highlight-current-row":e.highlightCurrentRow},on:{"selection-change":e.handleSelectionChange,"sort-change":e.sortByColumn,select:e.handleSelect,"cell-dblclick":e.celldblclick}},"el-table",e.$attrs,!1),[e._l(e.columns,(function(t,n){return[e._t("front-slot"),e._v(" "),"selection"===t.type?i("el-table-column",{key:n,attrs:{type:"selection",width:"55"}}):"index"===t.type?i("el-table-column",{key:n,attrs:{type:"index",width:"50"}}):i("el-table-column",{key:n,attrs:{align:"left",label:t.label,width:t.width,"min-width":t.minWidth,"show-overflow-tooltip":t.showOverflowTooltip||!1,sortable:t.sortable||!1,prop:t.prop},scopedSlots:e._u([{key:"default",fn:function(n){return[t.hidden?e._e():i("span",["operate"===t.type?i("span",e._l(t.operates,(function(t,a){return i("span",{key:a},[i("el-button",{staticStyle:{"margin-right":"5px"},attrs:{size:t.size||"mini",type:t.type||"primary"},on:{click:function(i){return e.handleClick(t,n.row)}}},[e._v(e._s(t.name))])],1)})),0):i("span",[e._v("\n "+e._s(n.row[t.prop])+"\n ")])]),e._v(" "),t.slot?i("span",[t.slot?e._t(t.slot,null,{scope:n}):e._e()],2):e._e()]}}],null,!0)})]})),e._v(" "),e._t("default")],2)],1),e._v(" "),e.hiddenPage?e._e():i("el-col",{staticClass:"page",attrs:{span:24}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.pagination}})],1)],1)},a=[],r=(i("c5f6"),i("333d")),o={name:"BaseTable",components:{Pagination:r["default"]},props:{list:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0,default:function(){return[]}},hiddenPage:{type:Boolean,default:!1},bottomOffset:{type:Number,default:45},searchData:{type:Object,default:function(){}},total:{type:Number,default:0},highlightCurrentRow:{type:Boolean,default:!1}},data:function(){return{}},computed:{tableHeight:function(){return 100}},methods:{handleClick:function(e,t){this.$emit("".concat(e.emitKey),t)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},handleSelect:function(e,t){this.$emit("handleSelect",e,t)},celldblclick:function(e,t){this.$emit("celldblclick",e,t)},sortByColumn:function(e){this.$emit("sortByColumn",e)},pagination:function(){this.$emit("getList")}}},s=o,l=(i("c9935"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"5bc86f40",null);t["default"]=c.exports},c109d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:contactor")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:""+e.$t("trials:researchRecord:placeholder:contactorInfo")},model:{value:e.searchData.UserKeyInfo,callback:function(t){e.$set(e.searchData,"UserKeyInfo",t)},expression:"searchData.UserKeyInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:status")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.State,callback:function(t){e.$set(e.searchData,"State",t)},expression:"searchData.State"}},e._l(e.researchState,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:isDeleted")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.IsDeleted,callback:function(t){e.$set(e.searchData,"IsDeleted",t)},expression:"searchData.IsDeleted"}},e._l(e.$d.YesOrNo,(function(t){return"无"!==t.raw.ValueCN?i("el-option",{attrs:{label:t.label,value:t.value}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:updateTime")}},[i("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.searchData.DateRange,callback:function(t){e.$set(e.searchData,"DateRange",t)},expression:"searchData.DateRange"}})],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:summary-record"],expression:"['trials:trials-panel:attachments:site-research:summary-record']"}],attrs:{type:"primary",icon:"el-icon-info"},on:{click:e.showResearchUser}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:questionStaffs"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:questionnaire-link"],expression:"['trials:trials-panel:attachments:site-research:questionnaire-link']"}],attrs:{type:"primary",icon:"el-icon-link"},on:{click:e.showResearchLink}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:questionLink"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"siteResearchList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:researchRecord:table:siteId"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteName",label:e.$t("trials:researchRecord:table:siteName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:researchRecord:table:contactor"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:researchRecord:table:contactorPhone"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:researchRecord:table:contactorEmail"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"preliminaryUser",label:e.$t("trials:researchRecord:table:preliminaryUser"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PreliminaryUser?t.row.PreliminaryUser.RealName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerUser",label:e.$t("trials:researchRecord:table:ReviewerUser"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ReviewerUser?t.row.ReviewerUser.RealName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"State",label:e.$t("trials:researchRecord:table:status"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.State?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),1===t.row.State?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),2===t.row.State?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),3===t.row.State?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:researchRecord:table:isDeleted"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:researchRecord:table:updateTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:0===t.row.State,circle:"",title:e.$t("trials:researchRecord:action:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewResearchList(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:abolish"],expression:"['trials:trials-panel:attachments:site-research:abolish']"}],attrs:{disabled:0!==t.row.State||t.row.IsDeleted,circle:"",title:e.$t("trials:researchRecord:action:abolish"),icon:"el-icon-delete"},on:{click:function(i){return e.handleRepealResearch(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.researchUserVisible?i("el-dialog",{attrs:{visible:e.researchUserVisible,title:e.$t("trials:researchRecord:dialogTitle:questionStaff"),"custom-class":"base-dialog-wrapper",fullscreen:!0},on:{"update:visible":function(t){e.researchUserVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"1px solid #ccc",padding:"10px"}},[e.researchUserVisible?i("Users"):e._e()],1)]):e._e(),e._v(" "),e.researchInfoVisible?i("el-dialog",{attrs:{visible:e.researchInfoVisible,fullscreen:!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.researchInfoVisible=t}}},[e.researchInfoVisible?i("research-form",{on:{refreshPage:e.getList}}):e._e()],1):e._e(),e._v(" "),i("base-model",{attrs:{config:e.share_model}},[i("template",{slot:"dialog-body"},[i("div",[i("i",{staticClass:"el-icon-success",staticStyle:{color:"#00d1b2"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:researchRecord:message:createLinkSuccessfully")))])]),e._v(" "),i("div",{staticStyle:{margin:"10px 0"}},[e._v("\n "+e._s(e.$t("trials:researchRecord:label:link"))+"\n "),i("el-input",{ref:"shareLink",attrs:{readonly:"",type:"textarea",autosize:""},model:{value:e.shareLink,callback:function(t){e.shareLink=t},expression:"shareLink"}})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyLink}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:copyLink"))+"\n ")])],1)])],2)],2)},a=[],r=i("3e42"),o=i("a599"),s=i("6071"),l=i("333d"),c=i("b768"),u=i("027d"),d=i("7eeb"),f=function(){return{SortField:"",Asc:!0,PageIndex:1,PageSize:20,SiteId:"",UserKeyInfo:"",State:null,IsDeleted:"",DateRange:""}},h={name:"SiteResearchList",components:{BaseContainer:s["default"],Pagination:l["default"],Users:c["default"],ResearchForm:u["default"],BaseModel:d["default"]},data:function(){return{searchData:f(),loading:!1,list:[],total:0,trialId:this.$route.query.trialId,siteOptions:[],researchUserVisible:!1,researchInfoVisible:!1,share_model:{visible:!1,title:"",width:"500px"},shareLink:"",researchState:this.$d.ResearchRecord}},mounted:function(){this.getList(),this.getSite()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ae"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleViewResearchList:function(e){Object(o["a"])("trialSiteSurveyId",e.Id),this.researchInfoVisible=!0},handleRepealResearch:function(e){var t=this;this.$confirm(this.$t("trials:researchRecord:message:abolish"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["g"])(t.trialId,e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:researchRecord:message:abolishSuccessfully")))}))}))},showResearchUser:function(){this.researchUserVisible=!0},copyLink:function(){var e=this;this.$copyText("".concat(this.$t("trials:researchRecord:message:researchFormLink"),": ").concat(this.shareLink)).then((function(t){e.$message.success(e.$t("trials:researchRecord:message:copySuccessfully"))})).catch((function(){e.$message.error(e.$t("trials:researchRecord:message:copyFailed"))}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},showResearchLink:function(){var e=this.trialId;this.shareLink="".concat(location.protocol,"//").concat(location.host,"/researchLogin?trialId=").concat(e),this.share_model.visible=!0},handleReset:function(){var e=this;this.searchData=f(),2===this.searchData.DateRange.length?(this.searchData.UpdateTimeBegin=this.searchData.DateRange[0],this.searchData.updateTimeEnd=this.searchData.DateRange[1]):(this.searchData.UpdateTimeBegin="",this.searchData.updateTimeEnd=""),this.getList(),this.$nextTick((function(){e.$refs.siteResearchList.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},c135:function(e,t){function i(e){if(Array.isArray(e))return e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c15b:function(e,t,i){"use strict";i("b72c")},c17f:function(e,t,i){},c1b0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{ref:"questionForm",staticStyle:{width:"600px"},attrs:{model:e.questionForm,size:"small"}},[e._l(e.answers,(function(t){return[t.IsShow?i("el-form-item",{key:t.TrialQCQuestionConfigureId,attrs:{label:""+t.QuestionName,prop:t.TrialQCQuestionConfigureId,rules:{required:t.IsRequired,message:e.$t("common:ruleMessage:specify")}}},["input"===t.Type?i("el-input",{staticStyle:{width:"500px"},attrs:{disabled:!t.IsEnable||e.isAudit},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}}):e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!t.IsEnable||e.isAudit},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e(),e._v(" "),"checkbox"===t.Type?i("el-checkbox-group",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e()],1):e._e()]}))],2):e._e()},a=[],r=(i("ac6a"),{props:{answers:{type:Array,default:function(){return[]}},isAudit:{type:Boolean,default:!1}},data:function(){return{questionForm:{},isRender:!1}},mounted:function(){this.formatAnswers()},methods:{formatAnswers:function(){var e=this;this.answers.forEach((function(t,i){!t.IsChild||t.IsChild&&""!==t.Answer?(e.$set(e.answers[i],"IsShow",!0),e.$set(e.questionForm,t.TrialQCQuestionConfigureId,t.Answer)):(e.$set(e.answers[i],"IsShow",!1),e.$set(e.questionForm,t.TrialQCQuestionConfigureId,""))})),this.isRender=!0},formItemChange:function(e,t){var i=this;this.answers.forEach((function(n,a){if(n.ParentId===t.TrialQCQuestionConfigureId)if(n.ParentTriggerValue===e)i.$set(i.answers[a],"Answer",""),i.$set(i.questionForm,n.TrialQCQuestionConfigureId,""),i.$set(i.answers[a],"IsShow",!0);else{i.$set(i.answers[a],"Answer",""),i.$set(i.answers[a],"IsShow",!1),i.$set(i.questionForm,n.TrialQCQuestionConfigureId,"");var r=i;i.removeChild(n.TrialQCQuestionConfigureId,r)}}))},removeChild:function(e,t){t.answers.length>0&&t.answers.forEach((function(i,n){i.ParentId===e&&(t.$set(t.answers[n],"Answer",""),t.$set(t.answers[n],"IsShow",!1),t.$set(t.questionForm,i.TrialQCQuestionConfigureId,""),t.removeChild(i.TrialQCQuestionConfigureId,t))}))},submit:function(){var e=this;return new Promise((function(t,i){e.$refs["questionForm"].validate((function(n){n?(e.answers.forEach((function(t,i){t.IsShow&&e.$set(e.answers[i],"Answer",e.questionForm[t.TrialQCQuestionConfigureId])})),t(e.answers)):(e.$confirm(e.$t("trials:audit:message:specifyQuestions"),{type:"warning",showCancelButton:!1,callback:function(e){}}),i())}))}))}}}),o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},c1c6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:send"])?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showNewMessage,expression:"showNewMessage"}],staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===e.ReuploadEnum||3===e.ReuploadEnum,expression:"ReuploadEnum === 0 || ReuploadEnum === 3"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:apply-reupload"],expression:"['trials:trials-panel:visit:crc-upload:apply-reupload']"}],attrs:{type:"primary"},on:{click:e.handleCRCApplyReupload}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:applyReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.ReuploadEnum,expression:"ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:reupload"],expression:"['trials:trials-panel:visit:crc-upload:reupload']"}],attrs:{type:"primary",loading:e.uploadBtnLoading},on:{click:e.openUploadDialog}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:reupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.ReuploadEnum,expression:" ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:set-reupload-finished"],expression:"['trials:trials-panel:visit:crc-upload:set-reupload-finished']"}],attrs:{type:"primary"},on:{click:e.handleSetUploadFinished}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:reuploadCompleted"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:send"],expression:"['trials:trials-panel:visit:crc-upload:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:send"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"append-to-body":"","custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.trialCode,expression:"trialCode"}]},[e._v(e._s(e.trialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.TrialSiteCode,expression:"data.TrialSiteCode"}]},[e._v(e._s(e.data.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.SubjectCode,expression:"data.SubjectCode"}]},[e._v(e._s(e.data.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.VisitName,expression:"data.VisitName"}]},[e._v(e._s(e.data.VisitName+" ("+e.data.VisitNum+")"))])],1)],1),e._v(" "),i("div",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[e.uploadVisible?i("upload-dicom-files",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.SubjectVisitId},on:{close:e.closeUpload,getList:e.reFreshList}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:uploadNonDicoms:tab:uploadNonDicoms"),name:"non-dicom"}},["non-dicom"===e.activeName?i("upload-non-dicom-files",{attrs:{data:e.data,"site-id":e.data.SiteId,"subject-id":e.data.SubjectId,"allow-add-or-edit":!0,"body-parts":e.bodyParts,modalities:e.modalities,"subject-visit-id":e.data.SubjectVisitId},on:{getList:e.reFreshList}}):e._e()],1),e._v(" "),e.data.IsBaseLine&&e.clinicalEnum>0?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"allow-add-or-edit":!0,data:e.data,"subject-visit-id":e.data.SubjectVisitId,"enum-type":e.clinicalEnum},on:{getList:e.reFreshList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.SubjectVisitId},on:{closeDialog:e.closeReuploadFinishedDialog}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o=i("9a3b"),s=i("268e"),l=i.n(s),c=i("19c3"),u=i.n(c),d=i("011b"),f=i.n(d),h=i("303f"),p=i.n(h),m=i("0280"),g=i("4ebb"),v=i("dda6"),b=i("179b"),y=i("5be4"),w=i("7a9e"),_={name:"ChatForm",components:{UploadDicomFiles:m["default"],UploadNonDicomFiles:g["default"],UploadClinicalData:v["default"],SignForm:b["default"]},props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},signText:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:l.a,pmAvatar:u.a,crcAvatar:f.a,qcAvatar:p.a,trialCode:this.$route.query.trialCode,needReUpload:!1,uploadVisible:!1,setUploadLoading:!1,activeName:"dicom",isReuploaded:!1,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:"",ReuploadEnum:0,trialId:"",uploadBtnLoading:!1}},mounted:function(){this.trialId=this.$route.query.trialId,this.data.IsClosed||(this.showNewMessage=!0),this.ReuploadEnum=1*this.data.ReuploadEnum,this.getMessageList()},methods:{getMessageList:function(){var e=[],t=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?t=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&t.push(this.data.Content);var i=t.map((function(e){return"
  • ".concat(e,"
  • ")})),n="\n
    ".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n
      \n ").concat(i.join(""),"\n
    \n
    \n

    \n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n

    \n

    ").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"}

    "),a=zzSessionStorage.getItem("userId");e.push({IsCurrentUser:this.data.CreateUserId===a,TalkContent:n,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),this.data.DialogList.forEach((function(t){e.push(t)})),this.recordContent=e,this.setScrollHeight()},addMessage:function(e){this.recordContent.push(e),this.setScrollHeight()},getMessageList2:function(){var e=this;this.loading=!0;var t=[],i=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?i=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&i.push(this.data.Content);var n=i.map((function(e){return"
  • ".concat(e,"
  • ")})),a="\n
    ".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n
      \n ").concat(n.join(""),"\n
    \n
    \n

    \n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n

    \n

    ").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"}

    "),o=zzSessionStorage.getItem("userId");t.push({IsCurrentUser:this.data.CreateUserId===o,TalkContent:a,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),Object(r["Dc"])(this.data.Id).then((function(i){e.loading=!1,i.Result.forEach((function(e){t.push(e)})),e.recordContent=t,e.setScrollHeight()})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){this.btnLoading=!0;var t={talkContent:this.newMessage,qcChallengeId:this.data.Id,subjectVisitId:this.data.SubjectVisitId};Object(r["G"])(this.trialId,t).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.newMessage="",e.reFreshList())})).catch((function(){e.btnLoading=!1}))}},openUploadDialog:function(){var e=this,t=this.data.Id;t&&(this.uploadBtnLoading=!0,Object(r["Lf"])(this.trialId,t).then((function(t){e.uploadBtnLoading=!1,t.IsSuccess&&(y["a"].studyList=[],e.uploadVisible=!0)})).catch((function(){e.$emit("getDialogList"),e.uploadBtnLoading=!1})))},close:function(){this.$emit("close")},reFreshList:function(){this.$emit("getDialogList")},closeUpload:function(){this.uploadVisible=!0},handleCRCApplyReupload:function(){var e=this;this.$confirm(this.$t("trials:crcQuestion:message:applyReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(r["S"])(e.trialId,e.data.SubjectVisitId,e.data.Id).then((function(t){t.IsSuccess&&(e.ReuploadEnum=1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.reFreshList()),e.loading=!1})).catch((function(){e.loading=!1}))})).catch((function(){}))},handleSetUploadFinished:function(){var e=this;if(this.clinicalEnum>0&&this.data.IsBaseLine){var t=w["default"].processSignature.ClinicalDataConfirmation;this.signCode=t,this.signVisible=!0}else this.$confirm(this.$t("trials:crcQuestion:message:reuploadConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.setReuploadFinished()})).catch((function(){}))},setReuploadFinished:function(e){var t=this;this.loading=!0;var i={data:{QcChallengeId:this.data.Id,TrialId:this.trialId,SetOrCancel:!0},signInfo:e};Object(o["d"])(i).then((function(i){e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.loading=!1,i.IsSuccess&&(t.ReuploadEnum=3,t.$message.success(t.$t("common:message:savedSuccessfully")),t.reFreshList())})).catch((function(){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},closeReuploadFinishedDialog:function(e,t){e?this.setReuploadFinished(t):this.signVisible=!1}}},I=_,x=(i("3264"),i("2877")),S=Object(x["a"])(I,n,a,!1,null,null,null);t["default"]=S.exports},c1f8:function(e,t,i){},c22c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"Hospital:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.HospitalName,callback:function(t){e.$set(e.searchData,"HospitalName",t)},expression:"searchData.HospitalName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Province,callback:function(t){e.$set(e.searchData,"Province",t)},expression:"searchData.Province"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.City,callback:function(t){e.$set(e.searchData,"City",t)},expression:"searchData.City"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddHospital}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Hospital","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalNameCN",label:"Hospital CN","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UniversityAffiliated",label:"University Affiliated","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UniversityAffiliatedCN",label:"University Affiliated CN","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CountryCN",label:"Country CN",width:"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"Province",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ProvinceCN",label:"Province CN",width:"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CityCN",label:"City CN",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[e.editDialog.visible?i("hospital-form",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("e12a"),c=function(){return{HospitalName:"",Province:"",City:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""}},u={name:"Hospitals",components:{BoxContent:o["default"],Pagination:s["default"],HospitalForm:l["default"]},data:function(){return{searchData:c(),editDialog:{visible:!1,title:""},list:[],total:0,loading:!1,rowData:{}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["ib"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddHospital:function(){this.rowData={},this.editDialog.title="Add",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=e,this.editDialog.title="Edit",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["E"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!")),t.loading=!1})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editDialog.visible=!1}}},d=u,f=(i("29ce"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"04d7b4f4",null);t["default"]=h.exports},c240:function(e,t){function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c26b:function(e,t,i){"use strict";var n=i("86cc").f,a=i("2aeb"),r=i("dcbc"),o=i("9b43"),s=i("f605"),l=i("4a59"),c=i("01f9"),u=i("d53b"),d=i("7a56"),f=i("9e1e"),h=i("67ab").fastKey,p=i("b39a"),m=f?"_s":"size",g=function(e,t){var i,n=h(t);if("F"!==n)return e._i[n];for(i=e._f;i;i=i.n)if(i.k==t)return i};e.exports={getConstructor:function(e,t,i,c){var u=e((function(e,n){s(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=n&&l(n,i,e[c],e)}));return r(u.prototype,{clear:function(){for(var e=p(this,t),i=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var i=p(this,t),n=g(i,e);if(n){var a=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=a),a&&(a.p=r),i._f==n&&(i._f=a),i._l==n&&(i._l=r),i[m]--}return!!n},forEach:function(e){p(this,t);var i,n=o(e,arguments.length>1?arguments[1]:void 0,3);while(i=i?i.n:this._f){n(i.v,i.k,this);while(i&&i.r)i=i.p}},has:function(e){return!!g(p(this,t),e)}}),f&&n(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,i){var n,a,r=g(e,t);return r?r.v=i:(e._l=r={i:a=h(t,!0),k:t,v:i,p:n=e._l,n:void 0,r:!1},e._f||(e._f=r),n&&(n.n=r),e[m]++,"F"!==a&&(e._i[a]=r)),e},getEntry:g,setStrong:function(e,t,i){c(e,t,(function(e,i){this._t=p(e,t),this._k=i,this._l=void 0}),(function(){var e=this,t=e._k,i=e._l;while(i&&i.r)i=i.p;return e._t&&(e._l=i=i?i.n:e._t._f)?u(0,"keys"==t?i.k:"values"==t?i.v:[i.k,i.v]):(e._t=void 0,u(1))}),i?"entries":"values",!i,!0),d(t)}}},c2a1:function(e,t,i){"use strict";i("ab64")},c2be:function(e,t,i){var n=i("2306"),a=n.extendShape,r=a({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r0||0,0),r=Math.max(t.r,0),o=.5*(r-a),s=a+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=Math.cos(l),f=Math.sin(l),h=Math.cos(c),p=Math.sin(c),m=u?c-l<2*Math.PI:l-c<2*Math.PI;m&&(e.moveTo(d*a+i,f*a+n),e.arc(d*s+i,f*s+n,o,-Math.PI+l,l,!u)),e.arc(i,n,r,l,c,!u),e.moveTo(h*r+i,p*r+n),e.arc(h*s+i,p*s+n,o,c-2*Math.PI,c-Math.PI,!u),0!==a&&(e.arc(i,n,a,c,l,u),e.moveTo(d*a+i,p*a+n)),e.closePath()}});e.exports=r},c2dd:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fc82"),o=i("10cc"),s=o.layoutCovers,l=n.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new r(t.getZr())).on("brush",a.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,c.apply(this,arguments)},updateTransform:function(e,t){return s(t),c.apply(this,arguments)},updateView:c,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:a.clone(e),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:a.clone(e),$from:i})}});function c(e,t,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=l},c387:function(e,t,i){},c41f:function(e,t,i){"use strict";var n=i("e6ad"),a=n["external"];function r(e){var t=a.cornerstone.metaData.get("imagePlaneModule",e.imageId);return t?{rowPixelSpacing:t.rowPixelSpacing||t.rowImagePixelSpacing,colPixelSpacing:t.columnPixelSpacing||t.colImagePixelSpacing}:{rowPixelSpacing:e.rowPixelSpacing,colPixelSpacing:e.columnPixelSpacing}}function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=r(t),a=n.rowPixelSpacing,o=n.colPixelSpacing,s=e.handles,l=s.start,c=s.end,u=s.perpendicularStart,d=s.perpendicularEnd,f=(l.x-c.x)*(o||1),h=(l.y-c.y)*(a||1),p=Math.sqrt(f*f+h*h),m=(u.x-d.x)*(o||1),g=(u.y-d.y)*(a||1),v=Math.sqrt(m*m+g*g);if(v||(v=0),v>p){var b=v,y=p;p=b,v=y}return{longestDiameter:p.toFixed(i),shortestDiameter:v.toFixed(i)}}i.d(t,"a",(function(){return o}))},c458:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"enroll-container"},[i("div",{staticClass:"content-wrapper",staticStyle:{height:"170px"}},[i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:trialInfor")))])]),e._v(" "),e.trialInfo?i("div",{staticClass:"trial-wrapper"},[i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:indication"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.Indication))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:criterion"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.CriterionList&&e.trialInfo.CriterionList.length>0?e.trialInfo.CriterionList.join(", "):""))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:modality"))+":")]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{content:e.trialInfo.Modalitys,placement:"top"}},[i("span",[e._v(e._s(e.trialInfo.Modalitys))])])],1)]),e._v(" "),i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:reviewMode"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("ReadingMethod",e.trialInfo.ReadingType)))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:totalReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.TotalReviewers))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:typeofReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("AttendedReviewerType",e.trialInfo.AttendedReviewerType)))])])])]):e._e(),e._v(" "),i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:spmEnroll:title:userList")))])])]),e._v(" "),i("div",{staticClass:"step-wrapper"},[i("div",{staticClass:"step-content"},[i("Approval",{ref:"approval",on:{nextStep:e.nextStep}})],1)])])},a=[],r=i("7d1c"),o=i("3e42"),s={name:"Enroll",components:{Approval:r["default"]},data:function(){return{trialInfo:null,TrialId:"",activeStatus:null,TrialMaxState:0}},mounted:function(){this.TrialId=this.$route.query.trialId,this.initPage()},methods:{initPage:function(){var e=this;Object(o["Pd"])(this.TrialId).then((function(t){e.trialInfo=t.Result.TrialView;var i=t.Result.TrialMaxState<1?0:t.Result.TrialMaxState<5?1:t.Result.TrialMaxState<8?2:3;e.activeStatus=i,e.TrialMaxState=i}))},handleClick:function(e){this.activeStatus=e},nextStep:function(e){this.activeStatus=3===this.activeStatus?3:this.activeStatus+1,this.TrialMaxState=this.activeStatus,this.$nextTick(function(){this.$refs[e].getList()}.bind(this))}}},l=s,c=(i("c924"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c4a3:function(e,t){function i(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var i=t();return i.indexOfName(e)>=0},this.indexOfName=function(t){var i=e();return i.indexOfName(t)},this.getItemVisual=function(t,i){var n=e();return n.getItemVisual(t,i)}}var n=i;e.exports=n},c4b1:function(e,t){e.exports={defaultArgs:["./ffmpeg","-nostdin","-y"],baseOptions:{log:!1,logger:()=>{},progress:()=>{},corePath:""}}},c4e3:function(e,t,i){(function(t,i){var n;!function(t){e.exports=t()}((function(){return function e(t,i,a){function r(s,l){if(!i[s]){if(!t[s]){var c="function"==typeof n&&n;if(!l&&c)return n(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[s]={exports:{}};t[s][0].call(d.exports,(function(e){var i=t[s][1][e];return r(i||e)}),d,d.exports,e,t,i,a)}return i[s].exports}for(var o="function"==typeof n&&n,s=0;s>2,s=(3&t)<<4|i>>4,l=1>6:64,c=2>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=r.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=i),64!==l&&(f[u++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,i){"use strict";var n=e("./external"),a=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,i,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=i,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,i){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(t.compressWorker(i)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,i){"use strict";var n=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,i){"use strict";var n=e("./utils"),a=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,t,i){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}i.magic="\b\0",r.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},i.compressWorker=function(e){return new l("Deflate",e)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,i){"use strict";function n(e,t){var i,n="";for(i=0;i>>=8;return n}function a(e,t,i,a,o,u){var d,f,h=e.file,p=e.compression,m=u!==s.utf8encode,g=r.transformTo("string",u(h.name)),v=r.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=r.transformTo("string",u(b)),w=r.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,I=w.length!==b.length,x="",S="",T="",C=h.dir,k=h.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!i||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),m||!_&&!I||(D|=2048);var L=0,O=0;C&&(L|=16),"UNIX"===o?(O=798,L|=function(e,t){var i=e;return e||(i=t?16893:33204),(65535&i)<<16}(h.unixPermissions,C)):(O=20,L|=function(e){return 63&(e||0)}(h.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(S=n(1,1)+n(l(g),4)+v,x+="up"+n(S.length,2)+S),I&&(T=n(1,1)+n(l(y),4)+w,x+="uc"+n(T.length,2)+T);var $="";return $+="\n\0",$+=n(D,2),$+=p.magic,$+=n(d,2),$+=n(f,2),$+=n(R.crc32,4),$+=n(R.compressedSize,4),$+=n(R.uncompressedSize,4),$+=n(g.length,2),$+=n(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+$+g+x,dirRecord:c.CENTRAL_FILE_HEADER+n(O,2)+$+n(y.length,2)+"\0\0\0\0"+n(L,4)+n(a,4)+g+x+y}}var r=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,i,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-n-1))/i:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=a(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)i=(i<<8)+this.byteAt(t);return this.index+=e,i},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":32}],19:[function(e,t,i){"use strict";var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,i){"use strict";var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,i){"use strict";var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../support"),r=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new s(e):a.uint8array?new l(n.transformTo("uint8array",e)):new r(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../utils");function r(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(r,n),r.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../crc32");function r(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(r,n),r.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(r,a),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(r,a),r.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,i){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var i=0;i "+e:e}},t.exports=n},{}],29:[function(e,i,n){"use strict";var a=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,i){return new c.Promise((function(n,r){var o=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,t){o.push(e),i&&i(t)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,i){switch(e){case"blob":return a.newBlob(a.transformTo("arraybuffer",t),i);case"base64":return s.encode(t);default:return a.transformTo(e,t)}}(c,function(e,i){var n,a=0,r=null,o=0;for(n=0;n>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t}(e)},i.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,i,a,r,o=e.length,l=new Array(2*o);for(t=i=0;t>10&1023,l[i++]=56320|1023&a)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+s[e[i]]>t?i:t}(t),l=t;o!==t.length&&(a.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:i.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,i){"use strict";var n=e("./support"),a=e("./base64"),r=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var i=0;i>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,i,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t},i.buf2binstring=function(e){return l(e,e.length)},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i>10&1023,c[n++]=56320|1023&a)}return l(c,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},{"./common":41}],43:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){for(i-=o=2e3>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s>>8^r[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,i){"use strict";var n,a=e("../utils/common"),r=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,m=2,g=8,v=9,b=286,y=30,w=19,_=2*b+1,I=15,x=3,S=258,T=S+x+1,C=42,k=113,R=1,D=2,L=3,O=4;function $(e,t){return e.msg=l[t],t}function N(e){return(e<<1)-(4e.avail_out&&(i=e.avail_out),0!==i&&(a.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function E(e,t){r._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function M(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(e,t){var i,n,a=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+S,h=c[r+o-1],p=c[r+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(i=t)+o]===p&&c[i+o-1]===h&&c[i]===c[r]&&c[++i]===c[r+1]){r+=2,i++;do{}while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&rl&&0!=--a);return o<=e.lookahead?o:e.lookahead}function V(e){var t,i,n,r,l,c,u,d,f,h,p=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-T)){for(a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=i=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--i;);for(t=i=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--i;);r+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=r,h=void 0,h=c.avail_in,f=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=r._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-x,n=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(V(e),0===e.lookahead&&t===c)return R;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,E(e,!1),0===e.strm.avail_out))return R;if(e.strstart-e.block_start>=e.w_size-T&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):(e.strstart>e.block_start&&(E(e,!1),e.strm.avail_out),R)})),new B(4,4,8,4,q),new B(4,5,16,8,q),new B(4,6,32,32,q),new B(4,4,16,16,z),new B(8,16,32,32,z),new B(8,16,128,128,z),new B(8,32,128,256,z),new B(32,128,258,1024,z),new B(32,258,258,4096,z)],i.deflateInit=function(e,t){return G(e,t,g,15,8,0)},i.deflateInit2=G,i.deflateReset=H,i.deflateResetKeep=Q,i.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},i.deflate=function(e,t){var i,a,o,l;if(!e||!e.state||5>8&255),M(a,a.gzhead.time>>16&255),M(a,a.gzhead.time>>24&255),M(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),M(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(M(a,255&a.gzhead.extra.length),M(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(M(a,0),M(a,0),M(a,0),M(a,0),M(a,0),M(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),M(a,3),a.status=k);else{var h=g+(a.w_bits-8<<4)<<8;h|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(h|=32),h+=31-h%31,a.status=k,F(a,h),0!==a.strstart&&(F(a,e.adler>>>16),F(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending!==a.pending_buf_size));)M(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexo&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexo&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&P(e),a.pending+2<=a.pending_buf_size&&(M(a,255&e.adler),M(a,e.adler>>8&255),e.adler=0,a.status=k)):a.status=k),0!==a.pending){if(P(e),0===e.avail_out)return a.last_flush=-1,d}else if(0===e.avail_in&&N(t)<=N(i)&&t!==u)return $(e,-5);if(666===a.status&&0!==e.avail_in)return $(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==c&&666!==a.status){var p=2===a.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(V(e),0===e.lookahead)){if(t===c)return R;break}if(e.match_length=0,i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}(a,t):3===a.strategy?function(e,t){for(var i,n,a,o,s=e.window;;){if(e.lookahead<=S){if(V(e),e.lookahead<=S&&t===c)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(i=r._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}(a,t):n[a.level].func(a,t);if(p!==L&&p!==O||(a.status=666),p===R||p===L)return 0===e.avail_out&&(a.last_flush=-1),d;if(p===D&&(1===t?r._tr_align(a):5!==t&&(r._tr_stored_block(a,0,0,!1),3===t&&(A(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),P(e),0===e.avail_out))return a.last_flush=-1,d}return t!==u?d:a.wrap<=0?1:(2===a.wrap?(M(a,255&e.adler),M(a,e.adler>>8&255),M(a,e.adler>>16&255),M(a,e.adler>>24&255),M(a,255&e.total_in),M(a,e.total_in>>8&255),M(a,e.total_in>>16&255),M(a,e.total_in>>24&255)):(F(a,e.adler>>>16),F(a,65535&e.adler)),P(e),0=i.w_size&&(0===s&&(A(i.head),i.strstart=0,i.block_start=0,i.insert=0),h=new a.Buf8(i.w_size),a.arraySet(h,t,p-i.w_size,i.w_size,0),t=h,p=i.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,V(i);i.lookahead>=x;){for(n=i.strstart,r=i.lookahead-(x-1);i.ins_h=(i.ins_h<>>=w=y>>>24,p-=w,0===(w=y>>>16&255))C[r++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(h&(1<>>=w,p-=w),p<15&&(h+=T[n++]<>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(h&(1<>>=w,p-=w,(w=r-o)>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(r=o.wsize-o.wnext)&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,i.check=r(i.check,V,2,0),_=w=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",i.mode=30;break}if(_-=4,P=8+(15&(w>>>=4)),0===i.wbits)i.wbits=P;else if(P>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<>8&1),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0,i.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.head&&(i.head.time=w),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,V[2]=w>>>16&255,V[3]=w>>>24&255,i.check=r(i.check,V,4,0)),_=w=0,i.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.head&&(i.head.xflags=255&w,i.head.os=w>>8),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0,i.mode=5;case 5:if(1024&i.flags){for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.length=w,i.head&&(i.head.extra_len=w),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(b<(C=i.length)&&(C=b),C&&(i.head&&(P=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,h,g,C,P)),512&i.flags&&(i.check=r(i.check,h,C,g)),b-=C,g+=C,i.length-=C),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===b)break e;for(C=0;P=h[g+C++],i.head&&P&&i.length<65536&&(i.head.name+=String.fromCharCode(P)),P&&C>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}e.adler=i.check=m(w),_=w=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,i.hold=w,i.bits=_,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){w>>>=7&_,_-=7&_,i.mode=27;break}for(;_<3;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}switch(i.last=1&w,_-=1,3&(w>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&w,_=w=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(C=i.length){if(b>>=5,_-=5,i.ndist=1+(31&w),w>>>=5,_-=5,i.ncode=4+(15&w),w>>>=4,_-=4,286>>=3,_-=3}for(;i.have<19;)i.lens[q[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,M={bits:i.lenbits},E=s(0,i.lens,0,19,i.lencode,0,i.work,M),i.lenbits=M.bits,E){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(O<16)w>>>=D,_-=D,i.lens[i.have++]=O;else{if(16===O){for(F=D+2;_>>=D,_-=D,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}P=i.lens[i.have-1],C=3+(3&w),w>>>=2,_-=2}else if(17===O){for(F=D+3;_>>=D)),w>>>=3,_-=3}else{for(F=D+7;_>>=D)),w>>>=7,_-=7}if(i.have+C>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;C--;)i.lens[i.have++]=P}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,M={bits:i.lenbits},E=s(l,i.lens,0,i.nlen,i.lencode,0,i.work,M),i.lenbits=M.bits,E){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,M={bits:i.distbits},E=s(c,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,M),i.distbits=M.bits,E){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,i.hold=w,i.bits=_,o(e,x),v=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,b=e.avail_in,w=i.hold,_=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;L=(j=i.lencode[w&(1<>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(L&&0==(240&L)){for($=D,N=L,A=O;L=(j=i.lencode[A+((w&(1<<$+N)-1)>>$)])>>>16&255,O=65535&j,!($+(D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=$,_-=$,i.back+=$}if(w>>>=D,_-=D,i.back+=D,i.length=O,0===L){i.mode=26;break}if(32&L){i.back=-1,i.mode=12;break}if(64&L){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&L,i.mode=22;case 22:if(i.extra){for(F=i.extra;_>>=i.extra,_-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;L=(j=i.distcode[w&(1<>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(0==(240&L)){for($=D,N=L,A=O;L=(j=i.distcode[A+((w&(1<<$+N)-1)>>$)])>>>16&255,O=65535&j,!($+(D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=$,_-=$,i.back+=$}if(w>>>=D,_-=D,i.back+=D,64&L){e.msg="invalid distance code",i.mode=30;break}i.offset=O,i.extra=15&L,i.mode=24;case 24:if(i.extra){for(F=i.extra;_>>=i.extra,_-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===y)break e;if(C=x-y,i.offset>C){if((C=i.offset-C)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}k=C>i.wnext?(C-=i.wnext,i.wsize-C):i.wnext-C,C>i.length&&(C=i.length),R=i.window}else R=p,k=v-i.offset,C=i.length;for(yb?(w=M[F+d[S]],N[A+d[S]]):(w=96,0),h=1<>D)+(p-=h)]=y<<24|w<<16|_|0,0!==p;);for(h=1<>=1;if(0!==h?($&=h-1,$+=h):$=0,S++,0==--P[x]){if(x===C)break;x=t[i+d[S]]}if(k>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,i){e.bi_valid>m-i?(e.bi_buf|=t<>m-e.bi_valid,e.bi_valid+=i-m):(e.bi_buf|=t<>>=1,i<<=1,0<--t;);return i>>>1}function q(e,t,i){var n,a,r=new Array(p+1),o=0;for(n=1;n<=p;n++)r[n]=o=o+i[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=V(r[s]++,s))}}function z(e){var t;for(t=0;t>1;1<=i;i--)Q(e,r,i);for(a=l;i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,r,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,r[2*a]=r[2*i]+r[2*n],e.depth[a]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,r[2*i+1]=r[2*n+1]=a,e.heap[1]=a++,Q(e,r,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,a,r,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(r=0;r<=p;r++)e.bl_count[r]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i>=7;n>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return r;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=i+5,i+4<=o&&-1!==t?Z(e,t,i,n):4===e.strategy||s===o?(F(e,2+(n?1:0),3),H(e,T,C)):(F(e,4+(n?1:0),3),function(e,t,i,n){var a;for(F(e,t-257,5),F(e,i-1,5),F(e,n-4,4),a=0;a>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(R[i]+c+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},i._tr_align=function(e){F(e,2,3),j(e,v,T),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,i){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,i("1c35").Buffer,i("c8ba"))},c515:function(e,t,i){i("849b"),i("8459"),i("b006")},c523:function(e,t,i){},c526:function(e,t){var i={axisPointer:1,tooltip:1,brush:1};function n(e,t,n){var a=t.getComponentByElement(e.topTarget),r=a&&a.coordinateSystem;return a&&a!==n&&!i[a.mainType]&&r&&r.model!==n}t.onIrrelevantElement=n},c533:function(e,t){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};e.exports=n},c54d:function(e,t,i){var n,a,r;(function(o,s){a=[t,i("313e")],n=s,r="function"===typeof n?n.apply(t,a):n,void 0===r||(e.exports=r)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};t?t.registerMap?t.registerMap("world",{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[{geometry:{type:"Polygon",coordinates:["@@࠿@ᠳ࡚с̶ʩт˷˔ƹͮɠͲ˖рԜ׷҄̕ҴNܾͰؼ÷۸ήԪ‡Үƴ̮¿ঞɪֶϤϲŹƛе²֭ĝDZƊĠǔōϭñėށ؅ਓɁȥԯ঻ƻԓࣗඩअ৯۝ڻो֑য়ߝล໥ϓ؇UļāļƫȖɩ̌]ᶼ̈́͘ɮ͜ɪ͚€®ĞĚ۪ƼɦːϪǰ;Ąߞᢌᣮ"],encodeOffsets:[[49130,8189]]},properties:{name:"Somalia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ƛ¬Ð@ĞÆÒªDZ"],encodeOffsets:[[9810,48188]]},properties:{name:"Liechtenstein",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌗†øĒ୬ͪࣆيʊˆ҄ؔ^˶ȇɪÈצϲ֌ĐФ؜ְദ׼ҢڴήࡔլİtʍԾ΃ʤ›՘IJʢË΢ǒŎɽĠPĀmǶVǢgΤ̑Įவňȵ’Ǒ¼ýĈå²yĞÇÞ³œëąÍĥʹ೵]Ɂ³Ɨ{‘ΡʼnƑcăZÉSÍƫH˃ǨǓѭLJƣġǥÕȿÕǃñÿśıƇħěŽđұĿЍU“ƉÝå‹Sĵ^čfʉdʇǍ·ƒণ֣oۋ@Ĺ"],encodeOffsets:[[-8891,28445]]},properties:{name:"Morocco",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌘…@ķœ@@@Ŕ@@̷@̩@ǕBȍ@ȋ@ƍ@ĩ᫫@@ɋ@΃@ɭ@ŕ@қ@΃Oх̉űƽw½gΉɩķƯtįQJ–dz˜՟TšRšPėRŏᇷCฝCċα`ý§¨Ƙ࢘Ӕ׎ŰшΞ׎LJĹèƤ࠴݂Ģָ͌܌۴КͲޞŚƀ","@@i˷@@j˸"],encodeOffsets:[[-13351,28480],[-8984,28120]]},properties:{name:"W. Sahara",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@A@ƟwđĵȏÒʁč«Ǔƅ@ã̌Ο˘SǴʒÊÆ`Å_֡˰ϟʊkˆIŠDZʪĠɁ˔˶àϷˈȘѬ˻W²ɤ˲ÚͩǀºĬȋːÈĆѠŎNJĘȘoø`Ȓg¤_€cº·¶ÙȈėÒ÷´›fFfV\\T^Qhɿ՘ɳ†kĝƱƨ÷YißMµGuOD‡Ǝ‰Ĩãɰ™İŸÈßĜhŴĬŬ~Ũ±â›Z‰ƒ]ãNÇk¹ėnjƽɣȭkƒěHãƺ˝Ǵ謭’¡İÃƩǝÿďȫ•Ẹ̀Q‘ßço}ß]ĕUΥ@Ʌ±@@"],encodeOffsets:[[22080,43262]]},properties:{name:"Serbia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@хǑޟ˜ܯőࡡԧ¡á͘з¤̧սշŊƉ™ˏͭąٝ°̺׿ٓɥɓӱŒз·ʫɫƚν@ӧʟƆƋʇğԻzЛϭĭ޿ॕʳכ]ʛŷѿĘࣻõЍĺٵȀ͋ĠШъȒȢȌȜxèFƆ·ǴăĆˁȡ|ɍ‚ƒZ{ƒZØaŤDĠŽƲDèij̎őͨaŦ̰̚˽êóļ@͒ƂDzȸZíĊ•´ubSv\\vÀT˜„ΠŠhňǞjΔö’´ƌ„’FgÈèTɶǓЀ«Ȁǫ͊î̲džzĺîĢƘ؜Ɣ˒Ř˞Lj°òŠńƲъ„ÖŖ¾ŚšǶRɄJǮˊרȋ¦HʲpȮ‹ńċľsĺ¤ÚR|¼[þJ¬wNwNÌÛļûĢmnjÂpp^ªô¤ʂĸ®T¸S–Z^‚b\\~VvL¤QȂƓR¦„¼¶^ê}ĞlôÒÈŒ”ǐ`Ɛ™ǢbÀèHϱĸ^ŽǠŶˌ̆ѨīÞŗ­Ƀ”aÎJĊtÄB~oűځĈʁŔů࠰˨ȦȨˈŢƠ®ĈRľsª_ÂW\\—a÷ËvkĄOΘĈŠ˜²˜ʹkҋČѼ­§MÕryŠWJ·oğ}ƽáHiĸã|u^Q"],encodeOffsets:[[76331,37911]]},properties:{name:"Afghanistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÂR̮cҮƠ͎Åǖ@ǔˆ|ɔDªĞƶHNJšŖ̈ƄĺTNJ|ʖ€ĞGR_¿ƽA½n½¦ƒʬGɼEҾi°oČ଩ýٵ͔ӑĠճēśnʕ¬ÓŠIàþÖÚ~ɈqɘM͚IJ̴™ŐŢdܓ×މoěG±ðƁIĵY൑@ȗ@@ڟ@ˑ@ˑBౝǶ֡া࡙ࢳǑ೟Ƶҧƀ਩¼ҹͺሹTᅍeғ̴ʟÌՋȭǃN‘OėFǗ–ģµƇoŒ͆ƖËܼɠˌ҆ლζ֌θɌƴȞǀЊ¢ݐс޴˫ߚ̢̤hˊүஒґۤݴɦƌOՎNዲQĮ…ĘÇƈǕžϡÐŻĚƉÆ˕Ԃۻ"],["@@̆Ƅ„_øęÞËr___ğ™ı•ͅ˭DeÌ·‹ӏɫ‰θƅːОΖ"]],encodeOffsets:[[[18002,-8293]],[[12802,-4697]]]},properties:{name:"Angola",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Π˗ä̋ÝԍȄ́ɊßQÙÚŷűŻȉ̍ǝ©¡aq›uwW@yÐğBƧůÙPь‹XkAűˬѽ̨ŚAĹɐȨࠐDŮȡæ½ʮ̾ϦŒŷɴÒ"],encodeOffsets:[[20546,43569]]},properties:{name:"Albania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ł•^ĊĤ³"],["@@ɨ÷ϫƯħƾƊ¡sƜƖ"]],encodeOffsets:[[[20135,61632]],[[20470,61800]]]},properties:{name:"Aland",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ɵ½íIir[ò\\¢Ö ÈOŢ~y@esQm"],encodeOffsets:[[1747,43524]]},properties:{name:"Andorra",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʙOǘøĂç"],["@@š‚ȆĶãŷ"],["@@ø֟˗ȫÁǸǣï…ԿƖw´ŷѡĹÂĹ˧څ[˥ççᒣʾ߳४oǪǘÚȱɴ‘ѼƸॺí̆ĐȾĚ̌҂ৎࠠŞɦò_m̙ź‘"]],encodeOffsets:[[[55223,24758]],[[54613,24841]],[[57650,26267]]]},properties:{name:"United Arab Emirates",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ؠQۓƫĵÜǪĢ"],["@@nᇜ͠έLJvµǥˠ›Ÿɏ׶УࢸНࢴŧʕȣ࢑įԭņ౳¦"],["@@ȴǛߖȡפϿବӗɒ˳͉ӡȧɇ“˽ͫЛoÁŒıξ”บɿɮȜǴGƌùÚD涐ÌE悶̆ž rºʒàǞȔɌͦžʮbΰƠ¥ʐĒɜũȈԵƛ۩ЧʩхŃɫˇԽ˳ŽƩǟXࢣ਍ʉƽƯɃƅ曡•ě½õijģ“ă¾ɣÙßdƕqùşȅiߜ‘l•gĝ‡ëĿēk©z¿HÃiÉZǜÁEÕáųeû¤ͩɅŷĻҩžѻőēȰ͗آ˯͆˿Ʒ̛fʳɔɧ˜¥ÞщܿਟՍ̍൱ͷઃŻأ€УƊϋȰʼnŁMĒå¯̩ŽÍīʩžБůǻӃǿ֋¥਻ΤɛŧŬਅϘŷƒƋŴcˎ’ňƗ¢θĖƒƙZ΍Εƻϟ̲ЛŹ³ýתǭѫȁ΋͏Yש͏͍R̅ҧšكʗցڛþؖ͟ӁٺóɖɁÛʗΉǁʔ@ľĩൿࡕǿʛş֡γƻ·̒LƷˋÉ͎KƨůԹ˻˃ѹƄ†ƒеίăрýѬ֯ౡ̊࿩fЩϘÊܞƛØգŋ̉Ԩ«֊þŴ˜\\Đʊ͐ƢÌ̮ȒĠvɌǃȞƠ͒ψʔ‡̶ȬưƧЮȴǨī̀ͮȺȹ̒ϏÚmŎڬRĐǠ«Ĵԛ¶ŞϢȋӨżĢͩȺŽب̜ǤƉͬiߪȊʼğǤƄž»͖Ʋ„Ś֖Ҙˤʷ۾qޚŘˎմϲUҐŝɶƌČ˺܆ǚ܂߆ɝèÀˊ˻ڨĠł˥͚ÆΞǰłƀ֌ǒFĦƶīĆÉيǘȄƞׄМЪˠ٪Ɉ\\ɰƖɭцƪˈƫ؞Ǫˠƫ̂ʾ̘ݨ̞̈ࢂƽưǢʾɼʚ̆Ē–¼”ʆİxzžEÜ}™ǘşöãîSƖ`Ѷ_͘ijèţžħ‚čÔƧ¢Çd‚–NJʒѾ°š࣠€Ǽʗî·ƚ÷ƄƣΔӍ׶Ћ"]],encodeOffsets:[[[-66098,-56029]],[[-70300,-56170]],[[-62550,-24224]]]},properties:{name:"Argentina",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@́{ř̮ǯŔfƖ˟§ʭôķƶɛ½Г˲Իðą̘ŸȦʁ͚՚Ú؞Þdž€ǀťıÑѢȓǫƣÜşєʣßǫʳ¡Ժ͏ɼīŷȀƭƹúʇ"],encodeOffsets:[[47607,39841]]},properties:{name:"Armenia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@āɆœƃë"],encodeOffsets:[[-174823,-14695]]},properties:{name:"American Samoa",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@īƨǜMïƙ"],["@@΂ŜªūȩÃŚÕٸǔȢťƙțȃúͽñȐŵɖ¨ĻƣࠅƦƇƥƫJÌ҈ħĊȜͼŒǗëȃŐy"],["@@ƥÈè þħ"]],encodeOffsets:[[[70946,-50236]],[[70846,-50288]],[[53079,-47554]]]},properties:{name:"Fr. S. Antarctic Lands",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ťowîÐÒĎŏ"],encodeOffsets:[[-63197,17446]]},properties:{name:"Antigua and Barb.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŸēǡÎƮŸÔı"],["@@Ȫb࢈ͥ;ðŀùŢƨϸQƖƂɂyĄþȺÙńଡŇȶʏԑlԟƇñĈ§ĐŸþȏêķǁŻȲ­ΧȻºæijǡ˱˙Ĕщ£ƞǴ¼˫p͕̮ʏאɨɗ¢ŚƹǪą¥FƪЅՊĵΆÔʸ˚ĩ"],["@@£ÝÏÒĴL"],["@@‹éŠżBÑ"],["@@ÞƯ͑êʴĆ"],["@@ʠȓbƿǩõ˵͢ȞĨ"],["@@÷Dzƌ˖Š̻dzƋ"],["@@’Çȏ|ƾŒ"],["@@˪ZǎŁϟȅƩȩüϡ¥ǷŤĈŢגƀɀyXı"],["@@ĥɩRʨĔ}"],["@@ǿɪcɂȤѫ"],["@@čǘ¾̞ǂǀédžĨðþ˫ɭֿ"],["@@þCȷǡȸĨ"],["@@ŅÁĮƶXij"],["@@ĕP–ŊÀř"],["@@jɇǗȞƮj"],["@@„ľàēģi"],["@@̉ƙŒɲʚÔĢĵǃµ"],["@@ųÈÈĮìƵ"],["@@ÕgIżàœ"],["@@ěWÌŖĽ"],["@@ƪdũʉǤģ³ğҷèö̆Țǂ¸Ņ"],["@@īPþŸnƇ"],["@@ƃ×ʤǮşŕ"],["@@Ŭřҿ|żň›ƴŢŠƒ˽"],["@@ͼ–ȶŨɪȹӳЩρʸŅΨȠƹ"],["@@Ñ»ɆΪƳ̭"],["@@ğɠĂÌ^˫"],["@@Í̉ʖ˱ƺڭʟǪԝǤĩјȚƦɕ՞ϙŜ௳ˠЉƂƒǶ؇ÿՙʪɽ¦ΣٌΓɼ^˘͡ࡢѧŀLJŻZĥѪқȾϟɀܥĴ¨ŶƇȰŔŦϸͧxƦĔ…ƞ࢑ʼ˙֬˵ʤЋ˜ǣǔͱɔȗÒ͑ưů¡ਗϬ࢝”εӯཝñܹ͓ԡõͥ˫ȩzá̏ťѩ֯W̃ſáĜq̡ЁÉћԟۏɗාϝȯകƍࡧؕ՝ÁĴƕŊ®Çʱȭɾȉ‰ŧȢͥŌŪŢÇŴƷL˩əȯƈǎGǪɆȓLjеȥɨÕृԡࣩκؗĬŋįƛr΍ʌԷưԗնÔӪŅʔٓڔǬ¶ĤóMȢٕɡ˳|˞ӶkɖͳԀͭࠉڷąŌ˘̈́DĒلςӨã͈ŠĚǫѠNȳ̷̉ǡλڵͳҏՋàˑƩĴŧÝѳ̖ĀĊȞÿȗԸˣ˪ĉʢƵŜʳtŅƼÕȘńdNƶӋ˺ϟpϣȒҗ§࣏ј̣ĝഁ±༱ԕ୷ƒঃӭџŏإݵଗÙ÷İտ¢ಧů͹ͥұģٓэҭģࣃĢѽNJΟ̴ұƞ_ج̬Ŀ˘ϔ`఼Է॔ȃ஖ׇࣀř؞۽঒ڽ„ƎȎБŸ‹ĒĂbƘϩԴ´ĪɘșVʣŊĬŚʵĊÓŀĖAπڟஔÔӈɤϜŽшĥɶ˸َϬfջȢŢ˨Ѥغ˨Ұϰא̈́טÉښ̄ҪĨ̒ɢМ—ஊκ˸ʆи۾ј̬ǕӀĪΎϬ̊ɀ̎Ӿ࣫~ЬȨ÷˜Ǟ͑άŔØeNJĺ€ŊǃƼİɌĻІ]̯ĔXƔƈhÔȲŧďĻǶ¸ɞĺEŌȈ̶ƗTŔƍEÏŲǘƀˊīƫ;ͶȚ¢Ȑއ—ȧƄ¼ÐůŌļ„ѤŊsØƉŨŨƖšǰǤIƖńœҰʍ؈֯ġԱðĖĊÕáɊʹɦМğƂɵ¬ʐ̮ɥFʐDznȳƴþøˍƒ˦Όň΂ΠɪĿƂ„ǀȚɨǾ”JǺȶŃLdžΘʦŬǫՂGDŽĂƂğČƈǞXçöš͖ǗƂͷbȿƢŜĸǎʼnƬô̌ʁɺĈȊʡ؀ŁќȅˀÌʦǫǂwעͪǽ͑ʮdÖȗƮWÌňáŎnjȆɶɱƬc¨ęΉι¶ǿŏȅƕò̯ƓxՋҥە¤ƑلЗðƓΎīäǫǾ`ל̕ҔС٠ƱȨίڌ̽ЎàˎǮϰߜˬ஀đӲÒˊĹ̘ƢҎˆˈǢɃȼVŠƴ̀úßǨजʎȪۓ©ŁȐȭþץʴŏ"],["@@ëµ¹ĸȤÞĥ"]],encodeOffsets:[[[150893,-44438]],[[148525,-41765]],[[151795,-41487]],[[148260,-41478]],[[151887,-41274]],[[151553,-40711]],[[147383,-41078]],[[148803,-39414]],[[140899,-36596]],[[157224,-28094]],[[115900,-26678]],[[156752,-26368]],[[154775,-24054]],[[118217,-21286]],[[152621,-20778]],[[149789,-18668]],[[142807,-17525]],[[142857,-16970]],[[140384,-16156]],[[127588,-15771]],[[128204,-14929]],[[139996,-14135]],[[139508,-14156]],[[139611,-11880]],[[133591,-11959]],[[133754,-11649]],[[139877,-11651]],[[135776,-11574]],[[146616,-12241]],[[145690,-10961]]]},properties:{name:"Australia",childNum:30}},{geometry:{type:"Polygon",coordinates:["@@ñDZʀ͋ãʣթƒɊśȝŕV̡ͥťŕƻࣃÑ˿ǥ܋ĶǭˆśFƵ^׃Čù~·¶½ÚĩČo¦ˆ˜Š„I\\wPͥąȻXā]ǁMġ‘Ñݍ½iÇOĉLÍfϬğPčBuTD†‘ÆÅjǹőҫǦ«ǶĈǒď´ȌªúoŎŸÀvqL±Ŕ{cíƼòˆ¨ˆŔšSƨLêoŌGƚŃ२ȐdxMÀZR¸_ð@Ŝcnj_î}t_aDuvkΉø}žDd~bÒLÚſʲƘNjǼϤǐĜ|òÀ¦ƞXN`TŲAŲNZ†JłXhȠƑբE͂ͰࠬȱФ–ΆǓ"],encodeOffsets:[[17360,49766]]},properties:{name:"Austria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Փň֍ը£¬ɜ¾ĸƵʮóˠ¨eƕǰœŚ̭"],["@@ݒ࢙ˎǻ΀áƸȋϓŒ̯ĻȏӯŽɑǓˋŷĔƃʝ\\͹ɵqԃόʞƒǁȆǾƄ˛ʈ౉ٷùʈƺ‚ǿƮĬŸɻԹ͐ʴ¢àǬѓʤÛŠǬƤѡȔIJÒƿŦǺŐÂvڲɟ̂ěĔXüҊðT”­´ˁƐķǎȸDŽˎßӌѽЈéڂը"]],encodeOffsets:[[[47222,39811]],[[49739,42849]]]},properties:{name:"Azerbaijan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@guûƿcy¤«£ŇR§è—öcʕÐO€ōiƃ͇͟ϟչȕů˃LLJԮZپǭ˪ôľʎdzʶ^ƜàÀ̈́ǀÝʔĔŨñ"],encodeOffsets:[[31287,-2457]]},properties:{name:"Burundi",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʦq̈ʣȋ˥w†…Aá\\ğí£Í}©™•ž͋ʁw՝ɸ£̪ɯljͫVtɴСºÿƞ˓°Ɠȼ̇{ȟ̆ۚɾèōЂ˘ƮڰêƸDžӨŁđͅ"],encodeOffsets:[[5831,51994]]},properties:{name:"Belgium",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@“ÁÁŏEĕŶǽbm…l“’ʻàƋ¿ǃĿQ›ͻɷȍɽ׏ɧ‡Ó֩aл„ɍ€Ù†ÃAƒck_wL˝‡óVŃjån»k¥cÇ{ȍ࣫ŹžàȹזĀJqႬǷʾ±ՔӇ͞ŚԜѴϠҮyΆДo˚τƌڒׁ"],encodeOffsets:[[3682,11977]]},properties:{name:"Benin",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@­ΏȀɃ ɯǂɥӪ̃DZNC˕ӠͿҒÈĸȡŹƁˈ΋΅Гҭzѳϟ΃ҽƊȗ¨˟ȩΑê຋WíͿļƇVֽ^óºĽV«ko¥ƒ¥D·Øs†ŸÜ“Ü­†­€ÃĆ¿žÇYʕ–ǫM͟ŕïÅćÕDķÚĉSą˜ґӂɗ̄ԮȬ˪ϞӶȼɪɘ©ˮɈĸď˚ƬǀǠĄΜǿȎĈ®͆ʢUÞʬʌɸЊ¹Şʎޤ̨ʐȒѲXϠŭ"],encodeOffsets:[[223,15270]]},properties:{name:"Burkina Faso",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@÷r¢dž–Ƿ"],["@@‰ç\\ƪnā"],["@@ęψΒÒ́"],["@@ũšŠĐȟ"],["@@əqƒɚƫѐĀzɮ͇ùͩ"],["@@|JeƊÊAɪ̻ɖnńĊæŶɫD͍oȉZ¬WɆÕв«ாDΚȍéāőžo[Aġğɷ­ijǽǗij|̓ŧǃͱǖӻÞŌİǩÈWŎÖFȠˆÖŰŦQĀ@ô¦LÆ[ǞLòχzˁĒǍx¥Î՗\\ÏPVЇŽƉʧŒŵūŨуɣ͐ljনÇ«ˉӴɛȱɩ›ʑή©ӆ£ƛʉ†˔ǃſѝƲ͓͝ҁƇ¶Ŝɨɉő‰þÈ̎ơЛȱǻïђḍūNjɓŶ™͸ʼn̜iǰ¥ǔàŬǡÌuȦ¿¶ËľŐˠ\\Ê\\ĮNœUšå¨ťjƉĜĥNátÉįÞLŒ`¤ĖǜLú„AºäìȐİ@̚ˆ\\Êõ˜ïƂɡž̗ɲ‘~šȸƶƜĚĦ­Đ‡XfæŰƒȏɐ"]],encodeOffsets:[[[94157,22025]],[[94079,22357]],[[93339,22708]],[[93755,22920]],[[92957,22620]],[[91076,26876]]]},properties:{name:"Bangladesh",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ĵ̓˧Nǡǭ‘νͻɿѼнҏmƱŐ¥\\ȝ…—é‡ɧuÇˍÏŵsySyFyĵxÿckkgÞŵXñg¥Í…ţśfɏŧ‡ŋiБĦƫòwr§î}FγyoµkQ́ÕċAđZ½SōGëÁȫ^ôͺƕɈЯːà^p~àèR’Qnół~ǴˬŦƪǞįđ¢«®dzĎƹ˞Gä„ĜlŽ‚šĄÀŠŠ˸ƩƇʼn¨ħᓞƏ؀˲ܸƈ˶ŭϬ˴Ƿ̨}"],encodeOffsets:[[29272,44793]]},properties:{name:"Bulgaria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÛĝƄHɜĬXl̛"],encodeOffsets:[[51822,26505]]},properties:{name:"Bahrain",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@řǵѡGBņƂôʎ‰ƪƄ€ĵ"],["@@ʚďΏ¬Ķ¤"],["@@Ï{̶̀¡ǀĖ`\\lj̵˙"],["@@ǽWņɀĭ"],["@@͏ɬþĒƻʹЎٱ"],["@@̻źxÌ̄ȅ"],["@@ĹĉrŖĈ‹"],["@@ćïŞ¬®áWͯǓ\\ȓϾ˼|"],["@@Ǐ»Ăńˋ΢ΚЩ"],["@@Ƿ`ʊvѕ"],["@@CȳʣƧďǦȃ¨ËêNJv€ҌȤęȚ̓"],["@@ʰſǾLJ—ЭųƚĚJ¬ʠǫnjɁĴƇIÐŚ¾Ý"],["@@ӐۑDžȯDŽǀěǜǺĖÍ"],["@@ƩĸƀŎPͼɫʈη¶Έ@Ͼ̽xǑŇý·˱"]],encodeOffsets:[[[-74779,21702]],[[-74794,22968]],[[-75987,22747]],[[-75834,23269]],[[-76636,23444]],[[-77480,24013]],[[-76215,24646]],[[-79521,24832]],[[-77115,24781]],[[-79203,25615]],[[-79609,25301]],[[-78488,26100]],[[-80376,27371]],[[-79079,26526]]]},properties:{name:"Bahamas",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˼Xȗѫϸˇ˵ßɂ˓ʩğ{D©OS«^­To_ðƛSáM™®ëNď¿Ù«§ǟœ_›™nLJäŕġå٥˲ç”ÆÌ̓τࠉ֮Ṷ̌ͬȶªΎȬVɞƱȦǨ͚¼ݨǗ܌@ƤǍƞ["],encodeOffsets:[[19464,45947]]},properties:{name:"Bosnia and Herz.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŘñࣸįkŻº¹Î“ŰÊ®fº@ät¶Œ²ZĘQLjR͢ƭʀąKơãÇUoHy±æïh¥@‹ůŕs­[¯PmƼóڟ~oÝőĢĪƉĖăȌíƎ¯†sX}Wŗãy›ÈeƞJǬ_ɀŅɈˇ»OÇaĝ•˝ƭʕ^ƳĂɁI{Uo½ß›™Œw¶³øÑüÁ~jȏOȃpw¤m”•ÊāJqǃNȑEҝȥGŕÿ÷µóåëĿ§ýzÔ»TÃj©ƵåʏǢۃăȳȶ“C¡u‡w§Sßkıě“L•d£ðÉh֡~ƅĩSĂͥrubŅŜËRķMƯbࠥŸண±çýŹġůÕwKñŽÓ\\íHýĭQM¢ѮБȸجОαজØiƦMϨŽž}æwʬòŮIlpŠĶšvƪWÆlʺʂàšwl¥{‘Ú‡NJ’¿Ħïd¹BSjjž¬êÄڒzNvSņŘǜĘxň`è”Úĸ”^ʺQ ØņÌ_jáZƻXrX|¦Ü¢ĊpÜFœϬƎѲӒ̂"],encodeOffsets:[[28824,57491]]},properties:{name:"Belarus",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÝŝĔɜuĽ"],["@@˵CÒྪzƀ˞KʄИȒv­ħȀOœĿƽԭÌÿğݑӥد"]],encodeOffsets:[[[-89961,17841]],[[-91027,16272]]]},properties:{name:"Belize",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŏgǎнõ"],encodeOffsets:[[-66283,33069]]},properties:{name:"Bermuda",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĭއҀޕU฿̇ѥޗAх̽গljȤࣟ¯™ʑѽ•ljc¡ÈÓƨČĪçŤ͗Ĵѵ`ƕ_íTõäǗŠšÛ|Hwy…į“ė•»̅đɻʙǡʽƕƒǽ‹ǷZí´Cˢʯ݀Uˌ̣ͰØɰɗƜ[˾ǖŰDÄgžįĮEhļƊĦńMpkx̭ʐġŀUž¡ƀÅ̾«Ŝ¨Āǁî}nǕξ@B@œUÒĽŠl¢ԔҸWƔDŽŚ̽DŽǡѐȾͼǝɰ^ƘЪՂǟФĂڬʚ͆ݥನ̌G͌±ƜďɾĀ˜ˆä|ƀXĨiʲʘۺЬরǀĈι]ę綕³S·Ħ͕VōÇȅǢх͸ʹؚ̨͋˼ǝɼVʬ˟ծƋnçŴƑÐÁî±ǶBÄaĂ^ʌz¬RӐʥŒՇČ֛ŇIƳI¬›ŴƥŚƋŠΟhȗXŗ൚¹”DÖf¢r~AIǥĵƅO§fǭ–ƛlŹ¢¡̜șðgÔjš»RĉIJɵÚƥúûßÅŵϟµƳÆʼnΏיɪȡu‘Õi»]ÕăÅ["],encodeOffsets:[[-59555,-20648]]},properties:{name:"Bolivia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@˛XȦņƦÑ̯"],["@@åĦłĴ›ș"],["@@LJMŲƘ–Ɖ"],["@@ȗ}İĊĨË"],["@@×§™àĬœFÓ"],["@@ÚǼÊĥţĕ"],["@@ĉćĮːcȇ"],["@@ř¯–ĘĄ§"],["@@ėeɐ̮ŒξʖĞĀĿī̗ҳ΋"],["@@јÆ؊őυࣽǣĽőĐ½ƽɭôçǛǻßɕòχëɅҢ€ĨŸpŏtñƞŴՒͮƀԶĥ"],["@@ɯǑģĐǐƨDŽå"],["@@͕f˜ƬŌçÑĩ"],["@@ƯʓΟÈÈǂ҈Š"],["@@cūƯ¾ɂҌ’˧ÿĵ"],["@@ĝ…iƂȈĺÿȵ"],["@@Ɓy…ǾŰ\\˜ǟ"],["@@ŁIJǡÀ¿Nwʫ̃şݭĘ˝ŒõXŷOƅI½øŻŌŸʰ˕Άƥ†N¶œ„ƢHLżĢ˜`¢’¶ʲɪňĠfà‚ǜH¤nȒȦ–Gðn҂vQ°ÍÌgФtϴċ´^†~PøLÀŸ²µÀ­âÁnP’–––ptzvĖdffHȐĩ̄ˆ”¢¸VĈ¢ØOšRĜvJV¥–§¦ŸżQr犁œArY–iˆ¡èʬñ̦ȠܪťːˊɌպ֦݈Ęɀ˞ǽь࿫Ɍʯтƛ¸йͩ˝ϯԧѷʵוઁȻJλǃ׼…ࢬհǤەʌɇͺƸɾā;ǎ˓ޥƮŸȸӴȂòʀ˼ȺŁĨŎıôfȾˮ΂ҶÌŜąjŞ࿄ؕṇ̌Ɇɂ̘ɣµÅņ®ĨʳǿdzĀĝȒǤ®Ǔś‘ÍƗőՋʈɔǬЊļmñ˅ɔȎВæÚłόõ׀˝̼žͬƛࡌĸєÇనܗΪн΢́˚ķńǗӬƹ࢔ƂķҸ๱Aߑэ੓ΡЅŃ`LƉљՕ̵ƿΑͭơ˭EŶˣ܇ˣЭ͏̿ʏ˾ƉƕôįÑȩǏǽ·ȉĎu¹ίĚ\\įԽƮ৫˓ૃ¤ѳйңŏ્ǽƛͧ۟ͥ˯Ƒ˧ýɣ гףʻɱɩ¿̭ޓiǑȰÍɡ֥ğٚʢ¢ǃĊ٫ŧ‰ŵĔÉً˛śǝяNݩχषڣºŏɯȻbĚǻŽÕƝɋؒĻʔėɝȹöù—ȳŇ÷ǎީÇ݉ƭпЅʝЋЭҭࣁԹۧऱܙoʆ͐²΄ʢĢ̞ƴrdžɄǘwɺŔYdƼϯīɯˬŠˣĿ͗ÛÞŭαϹɹȅуÈʁѱࠃ׿ԕwJÅzË®@РhÀ|’ô¸îêĄĚö쁴ύɸƇ̄ƃĖʥĈ̶̯ϕǦ±‡ç†͑ͺtqMo…]ƒţģŃßU«B[ôhż΅͞Υ˺ʍ‹ÿŝ˳n³Öœ¢ƆĚưɄʊƾࢤ਎ǠWƪԾ˴ɬˈцńШʪƜ۪ȇԶɛŪʏđƟ¦JŤŚǴŒĊžۆ‹Ƭ¨ÀtfǕŪƻơ̈ƉĉoħgûZã\\£wð@Ö_ƹºi áކŇƆMĐăĒţxǕ@±bűƠ«`˝ƹ঱ŸZʼĦڨíʶÁ‚oNJm¦ƒ|ƒ¬ƒ’[²kÖÆ\\ÖĄ¼^Öjv’ƙŮďôΒך]ń©F¶ƴŶϠàÆùüÙƦıɶQĊ™¼ÓiïhǷŴţæ¡¢kź•ƜeǮP¨ĶƆJǦ}B¡qÕe“C൙ºWŘgȘ‰ΠřƌųƦ«œʼTċ֜őՈӏʦ«Qʋyā]ɹ`í²ÏÂųƒmèխƌȿNJ«ŖɹU˽ǞؙŽ̧͌ͷʺǡц²̔ĥ͖T¸–´èŜ^Ěćκযƿ۹ЫʱʗħjſWã{˛˅ɽÿƛĐ͋²ȝPĭGăEƑlķFė«ŻÃÏa©E¥R·„éà¿}ƒ˜୞¶ƶÇs{]ͻ˹׃ȉŗۻ]ǕвۣĊĴŪĶŪGńąĢŏƐĉÆ·Ʀ‹jŵĦƵЄXþŸ|¯^Õ쩚‡ti|jjp|KńǸš|vŘ‡ŒˆȖԸτĉ̲vΠĄƶʢþњ²zŐxú¶ŜĞĮĬÌΊȴܸżĞĶÈ´à^džQłd¾™v«à¯Ģ^ڟ¤L‚vLÆfˆɺ಄ɨఈȟּν̶b׾ӨŶˎÑƅ͢ґRHղචXãŀÀŢɐȧ҈̲ʀ΍ŒѥǦŽѼϥʌf͈ǖƄşƒŽêF̴ΖݲΠǒͶӜȌ˜Ɍցúƥ࣮ϕΦijɜDzŕ͒[ƞǓָ^К̍ŨΦʪŜɐ·˨ĊҔːɸfͰΐËǸ‘x{TøhNJƒ¨nÖUČgŶſƃңϘƱ"]],encodeOffsets:[[[-49649,-28433]],[[-49750,-27035]],[[-46346,-24462]],[[-45188,-23697]],[[-39837,-13796]],[[-39673,-13411]],[[-45567,-3010]],[[-45960,-1349]],[[-53076,-1468]],[[-50819,-234]],[[-51868,-134]],[[-50630,-115]],[[-50931,275]],[[-51636,143]],[[-51356,403]],[[-51506,1986]],[[-61132,4458]]]},properties:{name:"Brazil",childNum:17}},{geometry:{type:"Polygon",coordinates:["@@ıj‡ǜȂųÇÑ"],encodeOffsets:[[-60921,13396]]},properties:{name:"Barbados",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ĩ@ŴҟƷŒãє"],["@@ɽƳĀ˙ƽ̗ӷҰ̢ÌӒ̤€Ĺ"]],encodeOffsets:[[[117788,5018]],[[117788,5018]]]},properties:{name:"Brunei",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ǝŰīĞGČh’Q®í×«ÛyÉSŸLi‚ŒÅL»q‘§gſCƝ§ŻJ½º{@ŝÝҟcͥIJş—éýƯ}ƭmŻdoºɇÎƹě¤ƵĆijǶl˜ĸâTf´Ű҄Ԅ² ĮªĆ|ÊÌæŽêb̰É^w{Ĺh[ľSźPîMʲď´HŰĆ P†]¼•ɲĉSƍ"],encodeOffsets:[[93832,28427]]},properties:{name:"Bhutan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@_ƧגࠁȖԋࡔҿĒͅͰqSһ̂Ыࡘȱbȃǎ½àߦ‰ȡgĭÅÉĭęïՇdzͭΏ›“ֵέȿ֍ǽŽƓƽ¯ɡµĉĵ›ͥޑʯÿݏ\\řĠȉNÙtщʺȫFɩƙɿ֥£Ý“ɇƛŁLJã±ȇ×§ą—…ߣOĉĚŸ۞̧٦ϙ̶EᙶࡄŽIᵦሶˎ͌ϯզξʌ{͆Ț̌z"],encodeOffsets:[[25865,-18220]]},properties:{name:"Botswana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڊअoЛŻȍÎʣԠųŨ̽ҾŻ̈ˡgɁĈʼn࣪ڕ­ƯǦ͗Պ̃ɒԩ˥úȿřટɀϭ́صvݷˣҫ¼ωӵ༩˞˧̰ΛɔʱŽγȣЋқ`ܱŕŨˁĻ֙ǀ݋Ƴţ֣ʇҽĵ՜޹ޘÃϪ˩ˊƗ֬®ӮƻƤʶȮϾުɰˊВaΞƨƖƶȪ˃ܪζޒ¾ҜԢȇƲÐĒୖǂβɺވݒô̔؈̮̔Ý"],encodeOffsets:[[23409,11182]]},properties:{name:"Central African Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˣ\\͠¤»¿"],["@@œ­Ăƪ’Ļ"],["@@ĵÌƚR£Ý"],["@@ƍWʈĸĹğ"],["@@ͥyɰĶǰŦùȡ"],["@@ȬǍɽ˒¢ɸǼɭWκ̖Ôī̤‰nǽۥ̍ԡcƓŤ”ϢҎՂϲǨÜɡƋϻԡ˙"],["@@ŊĀҪŝघAуǿKȍЫøń´ƉĎàüȡſΫÐįƘ̑xsƦɃ”ͨΞÿʉɶʵ"],["@@ŢqȡuìLjѺDzѥ̑"],["@@ĉƒǔȪĉǥ"],["@@ॴΠͰӮࢨҔ܈Ǥذɶࢢ޺ਞֆႺӲૼkԶˋʡɦųēɣއͷ֕Ƙٹƕ̂іųȰȫԘƪʢĹǫ̙ͿɣЦ‘§ȧ˺ӧՂÙì·ȋï̔ƍࡄį¥ýɤuѸȸƮDZʆ€ŤħÌŏƯ×ΰÙቱկʡ’Kǟ͝ƒďƁÇĊı‰Tǹ৥ۇɋ˜űȠȧfÉˤ˚Φɹŏ²Î൤ۨˀ˃–ǎ؎ŮోSҸИƕ{ųŠūʷगΑȍĀêĎ΍ˑε{ɃĒȯHÇΰ̳ľIଘέɜכœħǸljŒٝىʏګӋՓϳhǃʃᥫE›A"],["@@zùƓ‚ڏ"],["@@țûÝâʺZ"],["@@ĦéʯÇPĮƺ„"],["@@ʡĦZĴǂLĆȥ"],["@@ਫŌோ֌̔°੮ȣ࢖Οĸŧė›"],["@@įˈȒNjġĻ"],["@@෺˕նڋۮʱоաĚôâɓɗó˿Âৡ̀ɪɢŒƺĩǕҿã˵ƄƺĀʵÀbźӫImnj΂è͟ ͇ȌǯÜɒċïıĤͫ‰•ˊΚ‘jƮӻíʍȸάĮ؄ȃ"],["@@Ŀůϓ¹Șʛ޳ࡵ÷ͥդтdƥֆ˜ՙ̧ɪ¨ǽǿײŽ€įĪŖĻέ܎ϔ°ǓЬĦ˴ĵžƱӳ̓ʸpħĕɔ§΃ɗࣲȬĝțЉǍ’ijʥËȚIȍȓLjś̌͞ΖĬʭԍȌ”ƌǺňȁϯݥǩÀɡáOю΋ʳƏ”˘ҺŝˈǟĔʝϥ\\Ŧ͏ƋϫЕЇŋŲάŦרшӧGǫǏҩŒɖøRȐޓɇಿƔٽƇǡƔ¤ɒ߈Ѷ۱Š˚ǂÃądž©ˀФΎąĝøĴŸǯzmņǔƀȌ«œǰвڰɈĠijìɚˀ̔˒րȤˮćrĜǪ•"],["@@ȋŸİèĜȟ"],["@@ɓ¸̼Üħœ"],["@@ÑʞNJôķ͑"],["@@વʬNJŖײhͺϩ"],["@@Ĵɯ˳—ѢƫœĻ˦ƍ»ĥƪWßřߍՊlǺͷŚژ¸"],["@@–ΝƙȕÉЊŹõɵʔŤ˄Ͷƕäơ"],["@@ſrðǂÐdz"],["@@֛̈́ÈòюǏdžLJÿÝ"],["@@ůĩˍ¢ɌǔDzŋ"],["@@̒yŘṯ̌ʭ̈„¬̌ϼĚʑۧ͝ĵͳĸ˔xΛƜȟˤ€˒ͤ"],["@@jŸŰcƙœ"],["@@̤Ɍœǯȏ›"],["@@áäВƮͯɑ"],["@@ȩ͋M˞ˁ˳ɧÉȄ˒ϋȣѼծß̟ɞΜ˰˫"],["@@Ěř̽ŎɤL"],["@@ûÓÆƒvý"],["@@Njã¦ƺŦĕ"],["@@‡Íʝàĉłΰœ"],["@@őØɾɮɦřΑǫ"],["@@ŗWΪĐʑ÷"],["@@ԋʆդZ—ʟ"],["@@Œū˳ƒǢe"],["@@ɒƏ‹ȅЯγϗȊJʔ˪ʆ͎f"],["@@̞oYıΡHÞŚ"],["@@έ¤ϡɶٸŝĘƻ"],["@@sȋҕ˝ϕNjֵ£DZʚ҆Ϛୂ¦"],["@@̀ȣ·ijӿʸֈ "],["@@ֿǎȚĀИƭqğ"],["@@ΘǔΖȫႆӗ̾γǯǑࢸØѶ˟سʧ૧ȶõȄ۱Ǽૡۭٓǃ́Ӧ୏īȂˈְȢĹήʦ߾Ѩ͔͈ƟÁȣːȽ"],["@@Οƴ­ɒͤſêʅ"],["@@аåĉëډŠʍ̠ԶƓ¼ƙ"],["@@ʌMśşůŮ"],["@@DžNϤłɝŏ"],["@@§ëǛĤĒȢŲə"],["@@ߝœŏȨ৴ÇòǧǷS"],["@@ʟĎÉɜɐǤɾĹƣϓ"],["@@ԈűĻ׵ӟƧএƒ̡κƮɘѼ˨ޜš"],["@@LJÒȆö}Ƈ"],["@@ѕźϘD¾Ž"],["@@ѥƪĦƌʮ‘Ēʣ"],["@@ϱĄʜŦɾÓħƕ"],["@@͇“~ɖ̊ȁ"],["@@Ǜk˜ŚƄĭ"],["@@Ǣވ˲ϑλγė"],["@@ŋƕƉİʖ¦"],["@@͑ŊLjƔѨ×˝ȅ"],["@@šƮˀĩƝÃ"],["@@ÜǏʗÛǴñǩdɈ̦"],["@@ʳÜˀÆKš"],["@@UěڷĿێȜ"],["@@ĹſгFÎĿۇư̶Ğ࠲S"],["@@फ़ʣҤϑОÓ࣏॑̕Ô܉ʤ͏Ǜň̋ÍȫƐƠࡀǠùȨъĭƅ˺ΈÄ̎ǿ"],["@@̖įٟîΊ‚"],["@@­Gȟ{ͻǕΗʭ̯ȍՑԩٵ@ܥFɗMĿ“˝įöœr­MƟ’õœ‰ÆÓɏƇࣗ͏ٽıЕŧϻǵϷǵɁ@ϝʨ‚ɲӄ̘̾܌ªĆ̅ౚÇɜ̱ƞ֡ʤļƬūĺ̥ũΘˉGȋœǭ̚ǍäӧȬࡩΔ҇Dz҉ǴՓȰࣝʳૻŔȷÀ˿ŕԱȴ˽sÇ@ïƄ˯ŐΟ¼ijWˣùŧæ٥ŖûĸùŜµɌNžʧÆMͅȣBܑ@Ω@ܑ@੻@⿿@、@、@ᅍ@Χ@Ω@੻@ີ@Šćž@čąƓʂ̌Ŝͭ¯ö˰˽ʃлǦŠŐƨűȠĂʕ²¤΂ĵ’ʷʟēсȼɱͰǔϢǗ̝ΕaÁŶďƵϟ€̓øҚİԡsŞƄŭzJLjĩšΧ¡յʄʐϨؒĄիHˣȕƳǐ°Ѥ̜ƒǐѺ˫ЕͬȰʚÉúŸǃ؍̧ʻсɋ̶ːƆĈȒ˧ƵȀҢʽíƇˆұȐùƔˈƞ§ų̃śΈEǢţɻǪϽÒõNJȜĤΫaʣΡʱƕ٫ЈʖΆΖĆϩ£̃Ȭܴ࢔ȟĈɅх†ݦëƄ˅\\ÁĞƟ„ەʘ̑„“ǞȧĔĆɳł¸Æ¢®ÍÞšŌěþϛϘɯɲɫɾ֟̆ģøÁÎʅdžɡöěʒˇƒ˭]ԳĽšĿǁiĥʵȟCˁğŵ«ƉíçZÓʼ؋͔ҧˮˇŚ¢ö¶Ĝ@ÂŽGχUʟũЕĮÕåȥ”ȩ”@Ӭ@݄@௰@݄@௰@݄@௰@݂@݄໒ŕྞҧग़çܨǕ֯ʒ̨¬˭îȀǘͲEŶƈֺT¢ǢѼƥʛɉࡖƴȼǐј|íâ˚ƒࡸǞЄȄ؄‰ɨĐxǏহ̃गį݉ˡԍ̣ɾćǕöْZšȚ޲̒϶Ñɘøþȭܒі਀ȸɑƓĔċǜ¨চђУƄưžٞɷࠎف؎Nj̒ÜƹǖӶ̨ȇŒμľŰ͑ʂÝǵ˙ںrцΞߦLजŽ۔ɽណϻঘÛƹŘڪƒےǏր̅ōō֙F̥řʳȕʨëᕊŗ౜ĞޔǞόɓӾ•ƼɥȨƨՀ˻EƉчEਤ׋ϛ˺]ȴӌđک߀ƈǾାƐ֤͢שÛųƅࡕuĩƁӵgͩŦ;˂ᅰʸДùʸΑ،ƷƔƕ࡚ªॺ͇٠—ૼŪઘĥђæȁɠপϥȼȨҁļϡ¯ϩφζΤÎŋŘўwθȭҠ²ʕɭلǰͯةȒȧΜµō̦{EţࡇŽՔιȽː՘ZŢˀͣЎdžʄ׺¦ઞҢ͹͎dzǹ҇fѢːƝdžՔĔŇLJǺɊاşǎǁÓॣȎӯ΂ɈʨʎOŨ̹©ʓƖĒβ͔ƤмÝƂžϹæग़ΈΪǽҾmڢЗ·஖ٍ֣´LJŋ҈Åމ̵ӜJʹţ׮ĪȧijࡲÍЏǃ́fِͻāͿ̴ǽަ࠼ࢴ˹ΆӍáąϡ’„˳ߢٯڤʰޘ৾ٴÖȩÒȶȖѳƄĵԨ᝜ŻȔ÷̩ęώíêƉ܌¿ӣʫӜƒČljՏǗՙWˤʩǮ¤Š˧ִ̩ơΫ࿃ו्Ԑʵ²ɣĹ͂xўɃ̖ϿΥà˭ëࠍ̢क›pƋؐȯళٻѣT๻ӲşÉಋâ͖ı¶øࢺśߚε࿒ųࣟ࡝ױDž͏ĸÎũПÀǏŲȗƼƹʿn\\ʏցğছȰ̙‡ଝ̠ŘɿʒqĝĜਆɍʷŗԼŤܺɉɬ͇ؿɓދ`ΦȑԫǷǑȨƳ֫ǒʦűΫʁȻRɨƥԍʇԅ݃ɃęwਗƙǗ֞̑ΙǬτߎUظ୿ུ̫ͭˮ࿘Ϳܾ͑ӾϑྡྷЗ˺LJŭɧʰǦॴ|౤ȹƤɉǣӋʄΩųڋ׊ԇȓǫ̤g݆ҋŪɻ΃ɛ̼ƶ̾qٌѩ͝ΤͲϊʢƑŚəƠʠɁɸ҆Фʝ̙ͨࡂĖ̄ȷĆĂÐӅф࿀Զঞބà׊ʅ٠̤̅ଝ֎يז†ʞ̈́ćŕĚǐ˲ʝÈŐ¶ȓʀƬĬʋĈǜƚӻT֖ئэɶĥϚٖʒಲɍxŗϖŐ׬Ǒ[Ą߈ɘࡤ̉íʅɢèɼùƾŵƩý̎ĐȒÓǹƩδɿ०÷ʊDZЪƸĊNj̕΁ð̩࠙¥ޞěªӝ˴ƿηĭ£ŕŔ̷Ǐ̬ÑѦǐӖjˈƉŸɑŅˑַɕՄŰͤθŐǃƧſʶɠàΏĞȈ܈ɸ̠ʨ̢̡“͞˔Ǡ˴ЎźʎĐÁžξç̳ŶsȦ;KťŘ̖΢ˊ¿äą̉ƅРª¶˓ƜæʲʻǏōƜēȤ²ľřұş؈\\ƒǙȚVƪǥ֍˽˞ŚԬNǽɯϗƻٴŜƲƳ̆»SʥѷĻӘ˱ơզȥˡुĶٔɳǝđў¿ʍʼn̊]Âƙů©̢Ň̄ÚƴǷȄ¶ÉœǼƙΥΝܞȾÎĥɂiͱ̥Ӡ͖ɘ¥Ǿʽ͎ÃμĐҶʅʛǣءƃǕƭৃǷ˓ȧȿ¶ʜƕȕȃඬײ׺Ĩ͍płĨٴÅʀ̷͛ƯNJţЬɪ͂tоʙƘɑIӍѫĉӠÏ}ġȟ~ˈɋ੿ֱಅƋୁࠓ໵dzǍňڝÌṽ÷Ϗǽαթއŵୣ࠻૿Ɏॸʃú×ȁ̝ׯԋҿ˿ԣğएБзЅһȣɷ|˺ƻ؟˻"],["@@ʻºȘNJäɃ"],["@@ߎ¸ʈʢҐŠఞɭԿ̛Ȃ±ం̤ϣ̆ոq੆εӊ۝̀ćюɦ޳੊ǬǘಠŹࣈ΁ࡼৱŇљ޲εюĹzŪ଼̓ĪţѨq¼αуƜƏŵ҅ŮΏŅqƕ܁þΔƟÑɣ֤ɬʹWDŽυࢍǙඩ¤҅¢ðƊਿĨ͛ȶٿοޥÉछɑᵽƳЩ̀Ý̚ྣôݩŢֵՊᔔɐ࿢ñࡌìᄿ͎ምĕഅ˜֩ɒIŬ៺ϬᕏďʑÚОNJ۹UͻĬ˜ȆؚɸɣƐ̈ǦᰶتδÙžȏЃБ"],["@@൏ҼʶǺઞÒؘǃ…ɡ֕͡"],["@@ੂVࣤƓࡰտ൹®ఝŝсÎ̥ͰӿĠÓ͘ાÇ"],["@@ߐŢҤAɬĻľԒ՝ÈӓʐӸȸࢎǁҷɜȀÌ׽œʷʨ͚ȚࡌƁ৕ʺࢎ̎Ք‘ªƆຆżҒăैܩߝϩ԰ŜˁҗزʨʢȋžɸĪۦƥOȕ΢ƋɷȄƎɀসơ߽ʖؘɊႤŹո̃ܵёࡨ͐׌ķęŗݛŏш…ʝϧђΰ֤ļ̯͑ТƸ҂ʯćɊ͂Š੖ƋΌƫɟȝϋU׍ɛݞǺ̺ÑҜŒź³õɓे̣ԪÎŹ̻ϘϠࡾɞ௢ȡŎŇ෍ρ੾Ɗȗȋɞֺ͂אʁŤʭڣਗɏئÆ੶įѪůRť෗ÂՑőՀØӪę§ʁ஻ÖञŻɬƭ৒ÇʑōĠɓǎÂÈā€ƨΚÐșϓтȦàů̘žĞʗ]ǢвŸĉȳ͐¬ڎɱƃǿׇFܨïȶĨҨţ։΋تńӪ™ɌŠ٪̛ƥŋԃîҬɩ͕ÁԅĈhƯҖLJՏgȰƵɵNjѓdʑǐŽŧȗ¡˂™u͗ȱʩةȴÜȔʇʅ܅ծߦҬҷȩۑåƚǪ΁Óޡж÷ďȗšèɓփƂךεƕĕБˆՍʆʏ¥Ҁķ~ǩːąÏǫ̰àϞǟǿÿ՜ѿÀƼΞɹɴƐ֐ɉɉŃϤÉśő̯SΊɟЮ@ĵĥ͚ǫɇϯѷѦļсͬ˹ЫV®ʳफИIĭƻŠȫȨ—Ǐ৏֐ƞʽ٫ʬΕk٨ѿϸá»ë๎ڧť˅ᎋ̦ӷƚЀՋIӅŮʯüƈIJ͵¯թ̎ԤƐޅŮĮƒ˗ÍߥӚƸƸ՝IŻŹÅƸ˥ŒȁƼȧÅȌɥࡩx©ōࣵŻݻĺʇŞ¥τؠɐ†Ɍ఼ȍ͕̈́ĂƖχʐՎ[ࡺȂӲeܫֶ୐ҼȶʬӌȊࣃऒ҉LA˖ʝ^ņŷɽMԻɢƪȦ༳̅zʼԔlʲƴۉɎȚnjё÷̇ÀȚŞ؛ÐƵͦёSڃ̀˵ǟҖƅwɝԿ÷ᅗĶؘ̌եDzؓėܙƠ׫ŸೕŲ̇ÙҕĞÙːேǿߍȼ֡ӊഢįפÈᖑϜ³ߘঀ࠮ࠢː๨ńࡈŇࢭ΃տӵςۙ৐ҝೇ˻"],["@@܀ǵదƀрÁƚƃԽƏ̒ī९ϑڈòѐͳҊêŬƃ̗ȕǀЩ߿ǡԉ„šDŽľΉϵśһîଷ٠ԩƐџCࠟϘъ˂޲̙ڎªöǢɤÏ΃ʔײ`ғŪѯëՑDzҠĨϢųχ˼ࠈHUŴ"],["@@ס³ϋêขǶӓȫ"],["@@ߔǁഄiȸŃร࣑ჿHφõǺȹЛͣࠃ_ӿܸھ޼νǾƊƈຬĴ"],["@@ѾîôƵӖȖࡼY၊ԧÂƯᱝىҩ͍֕÷σקܑĭɷ²ଃ̍ދӪએʞңLႢຐݯӤᧈǔ࿈ʿơĵ"],["@@ͧ_ˬĮ¼č"],["@@ҙÞ˺°Ǡō"],["@@٣ĤҔʂנȱЏų"],["@@}̟߱ჃͪըΌࣜƾࠂǩ̮ͧ"],["@@۱ŋÉŌԬŨʐŧ"],["@@̽ƴ̨ÆVȹ"],["@@ЧµӟĄ๘к׏҇"],["@@ӛéՊʬ­ȁ"],["@@ȀÛӑƅء_ɰżߋ^ƺĔωVĝŔ഼ŀтʕ"],["@@ࠆőɓđ࢟Yȑɮіºªé"],["@@ǃץМóÒɅˇôȍùǢʏ̷ÖÙƗᄩsȽƲ˴¸Ӈƈ౤ʖ᭣ƹǭðոɴঠÝχ¢ϩȦ̀ŒӛĪׄĀದсȹnjӒzܻĆξÎ܏DzࡠĞޤƕưȔࡔȑ"],["@@͗t଀ňߧŻ"],["@@ӎ½ʡDžڰðʬDZȤ̂࢜ßĨˁӕҗࢽƋ૑h̙IJᶿկॷŠաɚఐɔ঒šӠȦᔱƿšdž͖ƂңdŷǍ̃ŠÀǁӋģͥŜ˅ūعǠࣵ¾ʶȐল„޺Ƽઃýاº̤ńຼľඡ¾ϤȦலmࢗĈۖȒڰ̶ȵूI൪չᄘMDƂާȘ͒Ǻ۟ȌৼϊՌ×Ʀֱ"],["@@ۣȒΜĒφą}ȝ"],["@@ੱ¨ߌĎ˦ŵ"],["@@ࣆţʯ˓ҐƢෆ¼ٚƻܻ‘ᅌŻĹĥ၁€ᅊΥ̱ȗؖģɬǤόūІÂdžùʂŐલȇkŒ႔ʒאË࣪æ໨ǝۀ̳ܻȍ࠘įҗë͹Îîˋඩģڝ´ډ̺SˇݥÝՕĊÓ÷ʷḙ̂ďᔫIģ˴ࡱɵ࠳¶˝ǤɇƗΑL۷ԜǢӪݿѐᆵ÷ٟȈ͜ĈਕżД¸̙ƦކĀಮŹ"],["@@ٹȍѨǕω‹ʲDžࢫƯȟȿّľĦͲމʕʏ͛пǞ°ˡ͗śзƒσ̜̫Ǘ્ƒ¹ǰʻw͒ȀߪĎᐄܐሺ†ǑłѺè߮ƹ"],["@@ͧ±ٟİs˄রŷLȉ"],["@@ց’ۏҶϖG࢜ͯ_Ǐ"],["@@ᆸ«ȯɯᏋdǩǼ׮ü"],["@@ַ€ÏŸ੊§džāׇ"],["@@ϣƒ׉ǎղƌм˕"],["@@۰y਱ȫ״ѝȧᆣƉڕƔ§̾ᙎǘ"],["@@˦˭ඹÐ̇ģԩúࣻḚ́ƚနɤࢾë"],["@@ઐšΏƑͪűႱɧ֗ʆ״¾कƤʃϖߚRবɁ"],["@@܎νܺǘӚɷ׌fۚȣό؏झqڣ̤ಃ°Ľĺ৹ġۇüūǚ૶YϙĄղĐہœ„ǪرƳŰȀڏLlǮńæ࿰O"],["@@ŹɍथƤHǐݴ€̤ť"],["@@ਰґஂé͈˿ւ¯˙ʴ܌ȹɱߐǡˋˁߪ°ˤſ̠ŐԘ˝ྑʹևʣΡˎ¶ϫّ¢åͯ৷Ξјϓ٫ƘˉƫรƎйŮࠚèୱÆ̱ŤЌtߣźೊ̔਺ø౫ÞणƅƩĤ࠱ĥҹȦ੖Ǭ૳Ù܋ɌƷȂᅄó͒Ŭॣ¹ࠩư܂ª̔ͅှƉೱɼ҆ǰ෎¨޷Ș়`ॲdz"],["@@ᣈ÷႟ɯᦜŪˆĒЖĻܨ†̧ͨ٬Ð࣪ßȉɏᛏχᇃŁჁ˕ᾆǘ♩टঋƀϔʱຓġద}ۍ˥ࢣÉ࿧ưޠıĢɃᅡ÷୩ĈઞɭऺSƇǍ῅טŏൂÄ๨ɋ͡ǥ಍ƒਈƷ֟ˉᅫÃÃΩՍƩ༩w࣯ǰ̜Ƴً¡ʨýቒOѦʫ׆îʲȇʩƹᑝͭƥʠرrڿȔʠɍ൷[˵Ȉ§ˋܭ«િɾȏǩ֣ÒŕŚOǗݯhċ̰¥̏ۗ¬ʼn̒ऐɸ೰æܳɂ˯̊੘âখͷ܌čࡤ®ࡖκĬŤহϫ౓vɏ̲޴ɦͤgֿÂņʎڭΗՍyʢɘ࠱ǻ՛¦شԈະŜผţ౪ǦׁÓဇþzĺڶÅᜁږßΎᙲ{ႊҗ৲ã̐ÂݕpဏՊㄾҖ༓ò໦ДℹٳགྷÝ֌ǎᇏȵ໩̑Ĉ߶ɖጎȊᐯħಣ̫֣L঍ɠᗄĂಊɂያǥጉ¡˗ŞتàϷàნǔݍ྿ƅԂȖఃÃ̗ĨᳮΌ࢜ř͢þ೨Ë೑Ȣ฀Țቜ̹ĆƜᣒͫ᠛Қ٢ľλĠੈ³ŭǨቘċ୿Ȝᒌ_ഞ̣όØಷͲᗮJ์ʕڃƸՊƪۢh࢘ǗŧƲप„Кĉ"]],encodeOffsets:[[[-61222,44995]],[[-68364,45755]],[[-62424,46582]],[[-75463,46680]],[[-75332,46561]],[[-62571,47048]],[[-65342,47584]],[[-63400,48420]],[[-55528,48580]],[[-76501,46084]],[[-129118,50539]],[[-55863,50779]],[[-55391,50939]],[[-129680,50797]],[[-63284,50273]],[[-128188,51300]],[[-130250,51856]],[[-56789,52774]],[[-130994,52710]],[[-81289,53199]],[[-131449,53659]],[[-82669,54014]],[[-134915,54473]],[[-131637,54211]],[[-132267,54393]],[[-132964,54444]],[[-133361,55254]],[[-135839,55427]],[[-134069,55787]],[[-133709,56085]],[[-81897,57557]],[[-80830,57617]],[[-63225,58936]],[[-81629,58896]],[[-70819,60458]],[[-65952,61816]],[[-69871,61687]],[[-80416,62187]],[[-66388,62839]],[[-66591,63365]],[[-81454,63910]],[[-66379,64061]],[[-72025,64050]],[[-83968,64466]],[[-79745,64994]],[[-78517,64916]],[[-86957,66828]],[[-86706,67149]],[[-85735,67376]],[[-110686,68614]],[[-64185,68666]],[[-110489,69020]],[[-75388,69411]],[[-88673,69362]],[[-77492,69963]],[[-80878,69830]],[[-107049,70048]],[[-76678,69990]],[[-104290,70233]],[[-102622,70459]],[[-102394,70670]],[[-81111,70498]],[[-92364,71086]],[[-78843,70804]],[[-103599,71063]],[[-97805,71244]],[[-69544,71210]],[[-79901,71389]],[[-81337,71463]],[[-99778,71315]],[[-88998,71796]],[[-76501,46084]],[[-99105,74688]],[[-117270,74336]],[[-107815,74670]],[[-81446,75423]],[[-88667,72716]],[[-102401,75721]],[[-100628,75642]],[[-95406,75941]],[[-122609,75892]],[[-99692,76315]],[[-97594,76294]],[[-106618,76838]],[[-95787,76829]],[[-98384,77323]],[[-96795,77568]],[[-121168,77394]],[[-80960,77749]],[[-104680,77840]],[[-106519,78422]],[[-100045,78302]],[[-103655,78418]],[[-110891,77883]],[[-91879,78344]],[[-116286,78586]],[[-96558,78759]],[[-118324,79220]],[[-91989,79123]],[[-107067,78994]],[[-97776,79660]],[[-104134,79562]],[[-116564,79621]],[[-113109,79978]],[[-112451,80539]],[[-98513,80417]],[[-105908,81220]],[[-101162,81901]],[[-94090,83081]],[[-71156,85010]]]},properties:{name:"Canada",childNum:110}},{geometry:{type:"Polygon",coordinates:["@@ÅÑ@ĝ«ÏƜŽBAҬǥǺŒÆi’ÅC…ŸʼnOςĩȟзK¥]u­mÁN‡ŠwzµfĿ¡S‘Tďľ¯Ląků§¹B§TďƨyAā^čɵíǡťǕȍǦή̡ƚóǘӓǿųíõȫ֑ēǕÕp‡lÉü³†ĿĪ[ɀƯlűMě‰ñ½‡ŝħãI‡RAÂÆp¼–„ʌɾǂhÞxĮƘ²–nl€ŐĘŌĔvˆnj@bč°ÌºƘŠǨ³ɮƆ۴HĘxX^G\\]NčMVSt‚˜ŘœߜɃĐ³ćǑ@A"],encodeOffsets:[[9757,48405]]},properties:{name:"Switzerland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɫªƎŞĞLJ"],["@@ɓśŽĬә™șȬࢲFƔƧ"],["@@ڪĉό¸ŽǑˤċȠ͙ۋNJoǬʫÎƓŅƬƥȗ€ӋʠĄɞƴ‹"],["@@ƾċ͚¸ĶǣƫÁ߱ʎϐl"],["@@̲áķɗˣŤЍÏɗɈǶƌԚŭ"],["@@”ąʹSɶǿǟǑϱĻĚɘɳ‚“ƑʼnXēɎѿƸͰŖѰÓ"],["@@ؚŭѦʅγ ʥǮ͹`ω˪˞ƣ"],["@@mᇛ۩IȥŬٱą૫ƶąĈņĂ؄SʂĮĆƃ͞—ҩΘIȐ˰ɎŸ̟ȿeĀŋ̮ȱάÖШɁǬŴߋʢƍȄºƔآʲɿè׉—ħʖˀŤȿdžϐËѬˮȸƳ͆úƆÛ"],["@@ʊ˭ƃˁƁPɅМʂƄ"],["@@½ijΩCȯȑŖ̆ΖÒƬÍ"],["@@ğë_ʄʾ{ƽƛ"],["@@ͥŸĺ˦Ϛćƭƽ"],["@@ʃ˕Ɂ‰źĨăȊАn"],["@@ıܝƙIįʈƀʪȣĝėˍН¼ȲʢƉŔ͌öĽĺɖǀ®Ȓ̌…Ð͋"],["@@şƪâЬƲÜȜԑ̏ş"],["@@̙…ʏР\\ƖʬŖˢم"],["@@űÖˮ”ƻĩ"],["@@ŷÅȋĂ͈ЬCѧ"],["@@ƽƜĂĜüɷ"],["@@ȯãƙð¡ŐȦʴβƣǫɫ"],["@@ɣǑɲԕʍűԏהĮƦͼìĒȾʔőķ"],["@@ŧāƿ¦˨œ"],["@@˻Wɭł̎ாђčĖʟ¡ɯˋij̔̏ˁȅoƿ"],["@@ƻ_ĦðÖÏ"],["@@ŻšĒĢÑ"],["@@ƾƯ̇ࢁݧ̝ʽ̗Ƭ́ǩ˟Ƭ؝Ʃˇɮхɯƕɇ[˟٩ЛЩƝ׃ǗȃÊىĬąĥƵǑEſ֋ǯŁÅΝ˦͙ğŁ˼ڧ¿ˉɞç߅ǙÛ˹܅ƋċŞɵVҏճϱŗˍrޙʸ۽җˣř֕Ʊƒ¼͕ƃŽĠǣȉʻjߩƊ̛ͫǣاͪȹŻġȌӧŝϡԜµ¬ijďǟګQnōϐÙȺ̑ͭȹĬ̿ȳǧƨЭȫƯˆ̵χʓƟ͑DŽȝuɋȑğḘ̈͏ơďʉ˛[ýų¬։̊ԧդŌƜ×ÉܝЪϗ࿪eౢ̉ڟŶ͉ɑথʯǙࡓʩĕ݃ɂȧʂЄĮ¦ʑϐ¨ɄϞǘ¾ȈƉ ݝ̱ɫ˟хǼ˘Кɲ©˰ƐԚœ׷ìDZĕɱø·ҍѭȤͼŊİȂĵŕ˻¿έ Ɂ҆βŇŴƀΤãϸǪȌȿęƹżňďʸŔƶɫLj΁Ĵӌ̃ޗȭȟȶύĬɢÀS̐ܿǠɻ͎΄h÷LjŎĠɺŃȐˣ˪ĵŶϐ˕˫ǩ˺Ȣq֭ˈʞȂ̀i̫ǰ„ưϢKɏƲƆ΄ʉЕũČtڲ˨ĶϷVġϸৌūǿŸę˴ȋɯʉ‘ΫɢĸŔʔģĞö̉ƈ˘ȼŽͦşlµıгŨnȔҳƽĢȡɵȔڂҞţʈކĜˆɪƒüՕǏԟ̻ƉΨÂöʴŦˆvɑȫϱĔƒɆ֖śΚϸŒ˨ęѕǸèɔԾȴ¸ŞbƄԏɤ”ɪžŠÔȘáʶˊʆ÷̶ØƐŢGşɄ޶Ȁǁñ΂˗Ôϴɔ˜Ŵȋlj·ƨʏɟ͏Nġ€ĤƊƿÄŽͰʜॾɖƤƺӆʙ׸²ЀǓ˼A̜¼Ÿ͖nĊДѾޮ‰ƤͲЪȆ޲˴њßҶʒμɋႀʢɨǀìвǟ؊DzɈȄܞƈȎɼ੒ÇҞɤԤŅѺƴ࣠Ǜʼ~ǖȚǪɄరįՎࡨɕଢаŜľǺ¥ʌƖ®ĊÞÚÈǖν~mǂí§ÿ¬śÆ̽¢ſVŽĢĿȦǟ֛²“lwPoħŃĻƉFgİĭhCÃǕů\\˽ɘƛ×ɯ̤ͯVˋʰܿDˡʦÍǾŒƖ„"]],encodeOffsets:[[[-68903,-57115]],[[-68689,-56477]],[[-71375,-56237]],[[-72695,-56184]],[[-73103,-55329]],[[-74673,-54765]],[[-76170,-54192]],[[-70277,-53916]],[[-76618,-52869]],[[-76348,-52507]],[[-77109,-51896]],[[-76856,-51503]],[[-76909,-50008]],[[-76263,-50327]],[[-77322,-49933]],[[-76356,-49758]],[[-76914,-48985]],[[-76096,-46788]],[[-75399,-45897]],[[-74737,-45854]],[[-75504,-45460]],[[-75582,-44879]],[[-75543,-44386]],[[-80695,-34453]],[[-111902,-27791]],[[-68807,-23369]]]},properties:{name:"Chile",childNum:26}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŀ˯̻̩ǃҙ͓ʥҡȕۉˊ‰٦ԤϨċNðĪބƠΖßÂƌȦū"],["@@ŘScĭȉ†Ėü"],["@@ijaļòGÏ"],["@@QƜægÓų"],["@@ý§\\Ěâ±"],["@@ĵolǦĮ¡cœ"],["@@ĵoØŢžı"],["@@ɭ¦¯ŊˆÙXĕ"],["@@˽´ʷɌնʿ"],["@@ɽǬKŮ˽ĚǙҧ͑…̿݅͟§ȴ͉şȁ߿ŦȍȦDZ™هۏऋϏѷϣɋƍϣ’ڻɽܝҡʯ¥wśУŏ³ǂӖǂ«ĤLjƔҗAQƆɀĂ@ǦʆĘЊӺυζėŅү°׏֛ࣳГΏӏ֯īɍƈƥ‰Ƚ˳·ȑǬˁȼŇަşŲ˻ŗ̳ˮNjЈbҪϾ¯´аżݠ̻ΖÌԢŁȃ˭Öķƭĩ΃ń݇̇ȱjîǁƹ}ÕʃȵÛÅƤŧsõëdžőܗַɛϝˆčࣈЋԔ੏c̕ШȣÀǿϞ͝VħƻRˡŬ͇VϟȤПƛְ¢ÔƏܼпǾͷϭŅԅι̹„ɉūʦ¾ŜƛՀƞΜ˙ͼĝӛ͕κĸoЃǙĸȗÁNJȫśiĺåƿǭŔ̉˳ÏŁĖƿʑǯuîijȵʻjƗˡ˅ljΧǡ»·ȢħįĹ²ʘϙΗɻ˗ÈNJơʌ°á΋êǙω¸ĘǽʷmËɽɫÿhǵӍLåũƏOǶȓΫ΅ƋHĉɃÝłǩŕƟÌ¥ǍșĉÎÛƇĉËȝǿˆͱƯDZªšőʫĈ˻ǙǝŜćȏʍXɁyͩ̌BɠčsǃDžȈˉG̳ͳų»ŐœʥũŒȅƗȏǜ¯ȣ̣Ğ˹ʓӯ¡ϙʟſľɍͥDzě«ƓǖŹƕȉϱÎðìʱЀfǸɀ̌ȳšķƔkŹͩĥŸƒˣ’ƭɪħHnɫƫ¼ßŕɱ¥dzŬ΃͉ˆʵ°ħѮȖɸȧŊə§ŋĦʯ¡Ӊ΢Ήǫƫ˃˅ıȓĆǛɓˑȮŅNjƓƴ́˓ѕʬ×ƛȭ»©£‡ʇRçĒkJQ‰qs³uß©©—mDzΩN£HƟqʓÞđaO±¡oMƋìɕ¥…\\ovY®RěÆlεž¹ǀЋʃϧRǧɸoɨ؋Ĉ˄۬õĠүĺθŽɾƄǼԻUխǙŦˌƩɚªʄżĂè͎dž”Őɺdž`˔ɸûǬĸĮ®ԆóڌǕìŻęȣՖϳ˦½MęſÙċ…‹gʼn–ėʛȅë»٫˼ϧÜԽ̳࢓ƇϫɝʱҍӁ¢׍”r”KºÄ’MlVžzʬ܍دî‘RćgğHůΌǠTƎɻĎ÷°ŸOůą³GʱĐíNŹOĽTg\\|ĺ]xцįrĻRéaåÉËą{ĭ©±Ÿӷس· ÉÊaüæȶhЛŜȏðŵçŵ•ői_B¿Ƚ`ȧÑ˧Nűbķøï’û€ûn¤yrÛP»c‹Ĺĝ‡ã€ġÀåþ·]ůÍq“d¾åŪåîå¶ɣCǕb÷p…´„ĤŽôAjVµNǵ³·NӉ̐­ŀ¡ĶuÂá„ïv̑ăΫή޹ϜƫɚǁŠdzrȋ¥Ƌȳß­LJǔĥ®ֵɺbĬʃǤɓÜɵĊɿ˶̧áXȐ½dž‚ȲȗȚ‘îƔy®̈Žb·ƒšɄŞqш—¨‚Ķm®ƏĶëîå͆³ǢȲǸ…ľÑŽҍǺƗ˺éǂƒ̂ȱ`̑gŷ‚ǡšǯ¾ĥ¢bą¨ËšWĪ£Qĭ“œuÕA}fÝżƃȾ˪mÜeÂýņ˜ĕ ÿdħ…‰Z¡Ū}~ʕÖėe¹_ǓêûB·]]R{vķäGjƾâĢ~¶pXIz‰Öq¨NȒźȋǺçܠ҅ǘɃĵȋÊėȺĠĪǕɖ|ƘIªLj’ìøPzĜ—¤GŒjzz¦°Ď¬Ä۶ʈ{Ȇ°~VŜ™ĚHŊvɾنCĺˍǎE͘ņ¼áގìºĈņœîdäjŒ¢ŽĬƐì–â`ԂŸŚ€Ą€ŢIƖtȈǦbøäžʦŤҨȈЈĮØĆÎhʴdfVXb‹ŊMҜ˰ŜůƜͪIJα޼ń԰ԡƚǀļ൐˾Ɇǁ˒¸Ɍÿøʤʟƞ׸೺ࠤǹմDĴšטȞƠdžŋ֊ȊЂڦŦɒѪўŠĀQȞȸ˜ªE¸ƋŇijô÷ǒ±‚yãŷˤéĔËĔg¦ÇRćĚ¥ƀËâYŊñδvèqǼƫ®Eâj¢–ÎQÚōô™ĺsdkĂųÒȁŬƹÔąìeÐ}”ÑÚœ×БŠÿ¤ÓJÍ˷ѕǺˡƢl҆ş۶ÉžDǬrؔù৒ӿ՚Õqȧǚïˬ֫ѴұېÎቚȅѠĠĒMζ­ӖÅͺYê]æo˂ʅƸ·ΘÅмï՜ɉʊžʶ¤nj€@ǿ̦]ĸ£ÌjÆ¢æØİ„ҮȈݸʜ୶ƆѠոlĔdߨˌԜӊܸ˶®ŔѽҬиגŔdäeʤIôŸĈÿĠ…˾ÕɄeǨ{âaÆdȌŐŸ ¨z˶ȚŠǀƮ|Ʋ“ȲXѦÌѢʀ˜´W¦_”̌͸ʞĊЌup|AžŠĎ\\„‚`ĞDǎÏˤŰðXŸĄ[ƨWÌTØSĸÌĨsǢąƜqŤZŬmðD”l͜~ƼƽʖՉшÁ€ř’ĵ‚ÍÄĻĸ͔ؗHΕ˯Å^ǹŞı~§bşbĝIśsœJ½`ïCſËåßăqɿǀûɌβŬÀVĈIĠ|ĺܦਸ৆ʻӠ˦ڸȈðDzƵńݺ৐ֶжÿЄӳÈvżݢкᔺɘৢ΋ɚÎӘƉ׊ֱӪ੗͐ͣ~̛Ɇş‘΁Ϙȝע€̤ȍθ^הй̜AɑɄɕÑ˓Ȕʹ౞LȚȜξƄ˘Qۚɶ̺ĵċȗƾʵӭ΍ʱࢯΧգȿġÓ̩ƫč࣫ʠͽ˽Ϸŝɰ٭D׋ǁЏէƥĒLJ"],["@@ƅ€ǦüŸĻ"],["@@ɂzDȵ˥ÎàŮ"],[],["@@těřlĦð"],["@@Ɨ׏ԛژƇδºцބ୊ҬȰ˰ʧѿຩ͝ҩ"]],encodeOffsets:[[[113551,20472]],[[113035,21600]],[[115348,22160]],[[115498,22121]],[[121020,25085]],[[122697,26068]],[[124162,28761]],[[125232,30683]],[[124788,32249]],[[133660,43557]],[[116734,22744]],[[116752,23053]],[],[[121250,25111]],[[123913,23164]]]},properties:{name:"China",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@ҒӁƗĊTĸÙÖCŶŖ͠ŖǬNʖ•ÈZÀÄą®°…òŷt…¸×¨C¤„lpT£gå“ʱ´i”ˤſĀӻ‹ÕoOwfY‰¯qķ÷ƛБɣףȔࢍǤģŽƗ»ɻ̑¦ŶŭȉٯưЧ×ӒKܥû͏Ôí¹ʲi܏ij്և{ȆÙƼՒ¯ʔƳÈÿXÑĴŽmցîÿ¨ʱ„ʧƠɜΰëЮkdžàW̓v„øƞUĚĮǰúýXێ†ZżN¢ʄnŊUîû˜@oɤșŦZnjŠŒľÂk†‘ŒáŒnȐȭäcВƐDŽˢɞɶñ̲ǓÈǘɐNp˜mĶLÆT´nnƞăȜƂºˋC}£ùFcĺ¹èMńĦX¢ª†ŴšŚNƤŁĶL"],encodeOffsets:[[-5388,10568]]},properties:{name:"Côte d'Ivoire",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ɯˉϽީʵȭƼƣ­ӭƘ֫˪ˉÄϩ޺ޗĶ՛ĽӿˉȨ۵Ĉ˗ƾઇ‹ÕĂඉžǯEgōț@ʱ@ڻ@ġžƒ|K„IlsNlȢńҐɵϬĀðĽWïƾƸ°ċĦ¤úǣT·ťΥƚçϴɏİIŽĭ²ƨЌʂܸатʒ˼”p®hƐIJĖÚr‹dŸjkô]ĶBNJƼ̊ʉàáÖȫ gìZƒêŲƎzNJàÀǢƒāž–ÖǨȴǼ׌ƞˀƮ|ΘŊŴrÌÎΖ®ļɨŚÒЈŨŔĸθƐɦNJɢöÒ܄ðHºh̜ȌºքčŮȷ¸óøķՎƲAǼ±͖ѧȠց©ؙĒϷŦʕ͈̋உwɡʍ̘Чڄիθ٧Íɛ"],encodeOffsets:[[15852,7705]]},properties:{name:"Cameroon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@͔ϵͼʛȢuʦƴмħȴȂǪsѤԕ˂ūàǯƞ@æőÌçŷ̯üǍį͡ϔƻÜȍહ਍Qˏǻͳşణ͉˧ÅЋɉǣdȡĶíǮ˩YٽLjԭBŸß˵CÁfëǚѡªŵZÓU«ėǃU¹vŭ†š¦ãĴȇöÙƎģŨĥĚĹĎƓĀɍ̂؝༓ʕyʥϿσǠϡ”ܷɗࡡČȵӦҋΠÍndžʌÔiઁȃDŽ̑űƿ|ʅόƭöśˌ۵ʔΑծ˭͕ڡÚ֩ɢ»ΊމǣWʌͱɒÅģÉ̳œ͙ijɗPɇrÙ}ýÕߏ‰J«ÔmʖĔŜğմ͓Ӓþٴċବ¯pҽjɻFʫH¥„m¾B¾ÀƾQ^ĝJʕlj{ĹU̇Ɓ™ŕGljĝƵC©{ɓǓ‡Ǖ@͍ÆүƟ̫dÁQԁۼÅ˖ęƊÏżϢƇǖėÈĭ†ዱRՍMƋPؙŧȩȰɬƒծ¨ˆÒ’nfȞȮIJ”Ġœ``^„¤CɺȝȶĮ¶ɢȊ}ΖƼüųëŕœȷʠ¥ંबȒآCܒ˚˴˶Ԫܼ֪ˎᓀΚފĴҮ_ܲЌҜδȤʲΜɓ˨̯༪˝ϊӶҬ»ݸˤضuϮ̂ઠȿɀŚ˦ù"],encodeOffsets:[[28061,5232]]},properties:{name:"Dem. Rep. Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ijҭΙމˍᒿܻ֩˵ԩ˙˳Dܑȑءઁफʟ¦›ȸìŖûŴΕƻȉ~µɡȵĭɹȞ£D]ƒq`ÝÊ÷Ĝƒ`̅ƃНΕȫςխղĖȎɨƞƴƋnjb°̆ǿޜǎȇŬÊдϬÏ͐ê]ʹƄĒǠėǖ͋ЊçɦɎź˝ĚsǦ؋ŘȆ˞øૈԩ̶øҶ̾ɪĚɸȽЀˣ¢Փƛ™Ғĸ̼ઈŒ˘ƽ۶ćˊȧľԀʈҾŤ֤݌ƴ֚ƿ˂ļŖŧ"],encodeOffsets:[[19057,3562]]},properties:{name:"Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@՛ǏʑЁχ̣Ư˿ŗם̟ԃʶÆɘųŌЙɴ˹çٙɞŹǜ˳݆͢ĔԜŗמۣߤ„ԨŐ̈́ğPȿ̍և}ٙnjե̎ϕҡԹȬ@΄͹ˬকǥ‹ѦɿΎ̱҇ɏȨ¿šäĿඟWGձҒQƆ͡ˍÒӧŵa׽ξ̵Ƞֻɧఇɹಃe‡ǛƼÕƘµŽ“~ͩ‚՜़Ëfㄥ°ɿŒÓZµÂǫľ­X·gñgéÉǙkƋĢNjÒ¥[Žû©ȟ×؇N£°Ƒ¾•ϔʥŚƗώǕªÃÒ¹xÉÎрÅx‹–§Þéɪ¡À£¢“’½¼Ù†ÁŒs®iœ˱Ųū³Яǒг̌ȉǟݵƄÑȰȡǜГŌ֭ЦƓƘȞȎǺÙ]ӪƦń̌tɆǨئ৔ƽi]ƒãħ§ʬĥ‡ƘƼÈ˘ñԐƉǴʈȲȁͮĎͰҁպŜЂȊŏ˾΀ʁѶĔƈѮӋÓįŚ•^͊ůɚզΒɀ͚̈́î“ɼŢЎƛ¿ɚϾԐоќħƻőĬćɐҲۤsࢎԀŞʦΞȚϞíŀʏƵƹ"],encodeOffsets:[[-73031,12147]]},properties:{name:"Colombia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@нǏtĆƂ»"],["@@|ɳʇƼɌø"],["@@ȧŲÔ̈́Ā…ÔЯ"]],encodeOffsets:[[[44840,-12602]],[[45544,-12371]],[[44509,-12186]]]},properties:{name:"Comoros",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŏk±ŪƖlƍ"],["@@yƾú±¿ŋ"],["@@»ûǛœ—̰ʰˏ"],["@@ȌÉcŁȽD–Lj"],["@@°§ǭxãęÙłʼH"],["@@ý–¢ŠœƵ"],["@@ǥ^Ƃø¤ĕ"],["@@śU{žʬî°åǃů"]],encodeOffsets:[[[-24891,15213]],[[-23738,15501]],[[-24006,15369]],[[-23467,16627]],[[-24665,17022]],[[-23437,17059]],[[-25484,17222]],[[-25773,17354]]]},properties:{name:"Cape Verde",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ʜԑӌթǸýIecgµƒƁð—i_¹{}‰W]i@͛¸GĊŖZ‡ǃƧ¾ėVũa‰ƓĭŰɡȳʂȢʵIJƮʧɃ’DžƚĶDŽĻ̄܁Θő˦ѩ˾Aœ̎ʉDžǿȧǬʹüȍ͞ƶϞȫźƎƐƈń֦ȳɴĎ׸ʻǦ¨ÒŎ"],encodeOffsets:[[-85649,11180]]},properties:{name:"Costa Rica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ͭŋȋŸǰAğǘúŶɸ«Ÿˋ"],["@@ȽŘʈ…‰đ"],["@@ƋؖĆĶƝ"],["@@ӚKİďж¢ʈƅҜ³ҚЕӸ“ࢤӍŞQïĎðc̔ȑȅĨŇźĘȚɑ२ȁńĭŅɽۼÁ̴ɡ̄û\\Ľ߳ɡ‡ĚśīܱĆಳœԤҬŁȤݗIJ̽ʖȥҎՉMܻʌɉɂҥ¥űǎċƃӃĔȓƤ̰ĠŅƨݱbաϹѫ«ʼnȑЅƕBż͕ÕҼǾ…ʮˆʎڎʨஜǐ"]],encodeOffsets:[[[-84543,22090]],[[-79533,22479]],[[-79748,22659]],[[-83801,23719]]]},properties:{name:"Cuba",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ȳèƍȨ΂ˏ"],encodeOffsets:[[-70401,12350]]},properties:{name:"Curaçao",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɚ™ʡuˆÐ"],["@@çSƎ°å›"]],encodeOffsets:[[[-83322,19814]],[[-81739,20186]]]},properties:{name:"Cayman Is.",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ѹÃýƌϵÙǧìƖRÀǮ֔‰ߖʶԩ̳Àȑ"],encodeOffsets:[[34821,35907]]},properties:{name:"N. Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ǩë϶ÚþƋѺĞÛ̍eׇͳҹƆōȌ_ňΊö"],encodeOffsets:[[33498,36016]]},properties:{name:"Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@òFòrVņ࡜ͷɲšŚçǫųήˑ̎Ŕğdž҈ơʌ¬ÙDžȺŧźÂ҆ſɪ̱֟ɇÙlj˝ƩԻŸƵȯ΅ǔУ•ࠫȲ́ͯաFȟƒ›¤í¼řêęG‘nП̒ȡìʓ˚ĺŚ΍θŠ@m´™žÁzrȴǀϼĈƒhী͜£ŜȎ™^ˆ‰zGS·šoÆc˜F€rXb"],encodeOffsets:[[15165,52080]]},properties:{name:"Czech Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɭ‘ćȼ̶ǩ"],["@@CďѣœŬ̸˒řªƩ"],["@@ʂŵŹǝܨſʀÂIǕǓęĚáМ§װȊϸʤϠ³ΚɧɶXŢʥͦϐƣĮɭCÉCc•ýÙáŻÿU¯ŀăɖŗĘį¥ć_Ñh–‰ÄyÔƗųȽŘǣyé^iƲ»~yx˷ñēŗIYWaq—EÅd™pT¸yH‡Š]ȍš¤śি͛ƑgϻćȳƿyqÂ±š‘n‰@SQ@…ǤōǾɑĹřʔ˙ȢëР̑’mĚHŚé£WgIŁY…ʣK]SYM¥Ɲñ¿ě{ϣǏnjǻ±ƗƀÉKÙaÑc}Cõ~ϊulCv`bs‚í~Џ¤YQN¿cw॥ȏ½JñÔo~DhŋHépƧK—T‰ő‡©ƻñdîœ|A~Itur¿‚ō ùpȋ©ߛɄŗ›—TsŽUĎN^MH[W[åWqa۳GBӄѦۈֹƮ׷R͡ʖŤ̄ʁİǸy¼NðȌ˦̇ʤ°żDžŀɮİÌʬȿ̒ܐƒÛĨʾʦʋìź˔„ƒՎĻǐǰǠ؊TČȉŘmôƊƌDZļИӲeӠʩЅʰ͡Ě[ʞɿþ˜Ĩɿξ࣎ß"],["@@ŦɦÓŽɀOˑė"]],encodeOffsets:[[[14539,55214]],[[14039,55688]],[[9974,56142]],[[8508,56102]]]},properties:{name:"Germany",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@˕п̩æٓčKצӰپ~z”v|OȌŏ–¸Ŭ’®dAĺ”ĤžȤ˻xɳثѿıX¾ÙϬüǠõ"],encodeOffsets:[[44284,11776]]},properties:{name:"Djibouti",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÿké΀ƴęIɹ"],encodeOffsets:[[-62752,15615]]},properties:{name:"Dominica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͆ívŅʷ§ΟŨpƘʬ£"],["@@α§žŲɴĉ"],["@@ɉhsƎɾƵ"],["@@ĥĎˢʰǻͽ"],["@@͹äæǎ̰ŵ›Ļ"],["@@ŠЏ˽íϡĬŅ̐چĂ"],["@@ĩ‘¢ľÈë"],["@@̓ˋǖƯ˕ĉ‘̻ǁ•ǩΐ̯dʵѢ̀€ʰǢNJɑ ɪ̒Ŵ̠¯Sɻ"],["@@ƭTʨ¼ĹÏ"],["@@࣍à¯ўНƴ€ࡎѐģǼȪƮ¸Ŋû¶ʼɗHȃʓʭ»ƹǀˮɒۄÂѼ΀ծƀ˝भզƫơǛι{ŕ̇ɻkĶçεɣäȑǽȏɺÑPţ"]],encodeOffsets:[[[11635,56210]],[[12851,56285]],[[10303,56204]],[[10992,56065]],[[15450,56343]],[[10901,56945]],[[12970,56931]],[[12871,57124]],[[11318,58627]],[[9974,56142]]]},properties:{name:"Denmark",childNum:10,cp:[10.2768332,56.1773879]}},{geometry:{type:"Polygon",coordinates:["@@ċøˆǜǜk~ĤŊ״ÆٖɳȦ„Ǽ̹юw̻Åcõ߂dz̄ʗ̇ͫȻNJ˷‚зH׫ȏƑĴ͏ÁΉՙljŜŗɠHƐxÊsÐġÚÉĄ»ð\\XĶHļĴbÐM¬ÕŌƈǬ"],encodeOffsets:[[-73366,19657]]},properties:{name:"Dominican Rep.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ţŵ׳CɃšē†ăçij‡ėȵؙչj̥˾ҝȢįȄїװЃĮϛÂȻʜ१ǫĩж޿ĢୡƗϣŖי͡ʟ™ɡҬ؟ɊحŠėʒÆےȥϰڝ␣ᕧ൩୧ഝ˯ܹſȣĮŖʶĿτ௏Ѻ×ƪϏɚiʆ᣽ၮ᜿༸ἡኒ@̸@Ȳpیত֤¸„ʈǎʊcĎeĶ]ŒTÞæ”ƊЎVҲŀžĒĨĜDzʤDŽòɀÖǦÖƤĢѮLjǧǔG˄ÎƬÊTĄYƒd΢Ŋ|’´Ƙʂ೶^ĦʺªźÝ´ĝȱzćæ»þ‘ǒŇȶĭஶ˯Ȃ¹¸yØҞâ਺֮͆{̢ˤֆʀഺƂ͊ƸڲĤࠖ@ҌȻৈπφƓʾ¤…ľצȣ֔ærēͥ˃"],encodeOffsets:[[8405,37396]]},properties:{name:"Algeria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@šm¤ȰŦîƠ³ȇȻ"],["@@ā”–à¬ij"],["@@Džn˒ǖŋȃ"],["@@ǩĄVĂɚĆÜƣšħ"],["@@ƹb‰Ɔƾ|†ǣ"],["@@ʙÂòĢǨƣ"],["@@ЈٷęǁȍáʍpÛŖ̀ʪȽɬ¹ɞƗtȢļøč"],["@@ç”üÈSě"],["@@˻_K‡Ò•УÈƇƒƳṬĉ]vw`YųӍѥԏӷί঳Ι͉ЫĕÚʫ܏ˁƧđ¥e³X¡I±_i…½—kġ‚åB¿|Ëô³ØĄ]Ō½»žÕYïQ¡~ı²čÀـ·]ăė÷Ÿ“D¯€SŠœ¸úńčF‡’Iža¦jº¬€ŒuŠ´ŠrŒf¥ˢåǂ̤ȘȞӢĥіéЗĕQpǠɹ̑խπƠˬţܚ̊ȘĊɚƢ‡ǗɄμѲ•ՈূΠ’Ⱦ֮ХДŋȢǛÒȯݶƃȊǠд̋аǑ"]],encodeOffsets:[[[-82054,-3044]],[[-92594,-1372]],[[-91564,-932]],[[-92502,-790]],[[-93620,-471]],[[-92747,-342]],[[-93462,26]],[[-80803,1283]],[[-77091,-109]]]},properties:{name:"Ecuador",childNum:9}},{geometry:{type:"Polygon",coordinates:["@@քนƕǥ˱੉ƯɃϭʄљѪֳ஀ǥ˿Ҏࣅղ֕DʓʦΟĢ҉ਠᆣӸҋȱc‰šnj۩҂ˉբՍ⮿AªŸï°ŝǙƗOᢱBᢳ@@᳾@ᴀɵࡦɐВĝրʢːȚšіĜଖȱʖƑࠎƋҴȁܞͬʖ€ƢǘѺĠ̡ųςžæŠψŧ̬êȺǙȳŢķDž˦ǗưĜÅþ͘ȋࣂ¾ҀNJ¢ĩ"],encodeOffsets:[[35068,31958]]},properties:{name:"Egypt",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɐĭΣ„wêļgŋÌbŨƺNj"],["@@„ąħ´ä’"],["@@ijňԉˎ׃Ę˫µ¿Ē½ ¥@y•ƷĕʵµÕHǭȆǿò·Ö¹–ÁťĥɁ¹œßƣqIZȿʠțƳdz˜ŏOŗ£eCʎkNJoǠkNJŞȖ̈޺sˠúƨEÈhż\\ŽªDĞgȮj– ¶ưŒˆȢŔЄł\\‚nj¶žv†¤ĚǀƴΦޛɞএФڟà̄˺ϥࠆͥКՙӲͩż̿ľRɰ̙Ƣ³~üêنĭģĹ“cB‘«·ūÁ—ȋŐ{P“u}yõĔÃüùĠƵĤûŦāƄͷˆΣО"]],encodeOffsets:[[[41105,16073]],[[41039,16469]],[[41922,14319]]]},properties:{name:"Eritrea",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ąƏƧĬɮ¤"],["@@‰˯ɯwĉǰłƆʂM"],["@@ŝĄÈðżýåõ"],["@@ëȓȩŧȻ˨ڂȤǯǏ"],["@@ŕħƅœɔĬȔЬŬ€ÑПɥë"],["@@ƓɞÒðǞĵěȗ"],["@@ť—ŠŨ̢Ȋ]ȗȧā"],["@@ǁA~ĆƄă"],["@@ȅ]ŀƪǺ’ºçƭĵ"],["@@ˈý͛ͫɭìċƂǛÃʼnĀڐͰ[Ư"],["@@ΩĮ[Ė̼}ÊDž"],["@@͒Ɨ¥ƿƈ¤׶ʩ৾ğÆžؚȽ[¡†ģîJƠ¾żÌĖÕমàŠХȱƩޟЕࢥȍˋȩƪčʛěޡँĺϧ΀ʭ؇ωʙҟĀśԙÏˁƣЃԡ቉·ʵDZйéǃʍɝğΑƌ˿ϘƖɶƭçϽϔҕċҤФϮůMȥɶ̄ԊҍԘΘjŤĮâȊŗŪȈƨı֔׺ѮˣŠÛɨѹɍŭؽkħ˚ѕǑġƐǒƚĿXðłçȔȃĘǢʵƮ´ǔްɞOŠɄĬтœϊƻ৸ú૖ȕޘĔҺŭƜêҎŃҘä"]],encodeOffsets:[[[-18317,28478]],[[-15770,28823]],[[-17597,28695]],[[-16726,29062]],[[-14537,28846]],[[-18262,29178]],[[-14045,29606]],[[1633,39601]],[[1480,39853]],[[3221,40746]],[[4397,40799]],[[-1837,44450]]]},properties:{name:"Spain",childNum:12,cp:[-2.9366964,40.3438963]}},{geometry:{type:"MultiPolygon",coordinates:[["@@צƝӿȁ̝[̿ʉLjȊʱĜgȢيľ"],["@@ȟĠȊUVĉ"],["@@͋ŗōƤ̕äӾŦɖą\\Ə"],["@@Ŝğ׻ӱÌӇɶ̍ȣÑţŏ¡ś͕æηßȟÐ՛ˎ͗öƋ®շŽă•‘JǦОΏó̅ĂɑʢƠňȽŐÀɴӶĄʠƲࣂ¤ÆIJ௺ǁࢌ„"]],encodeOffsets:[[[23161,60029]],[[23904,59956]],[[23474,60239]],[[28685,60912]]]},properties:{name:"Estonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ÖGʶ¶ƸĖz–¦@¾ŸÀđˬ¶ׄėԊˍĴŇΤН͸˅ĂƃüťƶģúğÄûöēӯٽLץٔĎ̪åɟͱƺͭ˸˓ʪст̵ᠴ࡙ࡀ@ᢋᣭߝͽăϩǯɥˏ۩ƻĝę­ūBɋ_ğcŵCǙĨɋǺޡΟ©ąŏƩƍķݗŦſJȏ\\ś~޳ԘȽƂݑ´ɑ˸MŤnžl¨±ǀΙj½ @žHˆʅ̬ɯڬիӆƉʄݻ͠ʂҌ֢NĴĐJޔȞؖ„ϾȒȆǘőƈIJƲߞҸڴϤŒͰాfDؤŐPǴ—ȜƴɀʟYrJÞƤ¼ŔĤɂÄŦº•¸ÕȀñǮȅ"],encodeOffsets:[[39354,14775]]},properties:{name:"Ethiopia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȬɯřʃĸĈì"],["@@ų¥ÙŠȎù"],["@@ǖ™ƋƛłŒ‰"],["@@ɫªͦZĹÃ"],["@@ҩı̞Áʩ̏ǶʣֆŅզͥޟٵࢌও͗ďĝ́ȀēȇƩЀǟ˓ЈȱSƭљʉৄѵ̒˕̅ͻహ޹ལࡓਖ਼ĽˆDzljǙΟ¦äŏɷ×ďÈ৯ʿࠛ‡ωƛƬǦʋǀƋŷʋyĺ̐९ǺƜ࠶̋ͰĥـюʦėƒٲĘǴ˴ࣈؘٖͤ߬¸ºԴ֡LjŸǂЇ­ϣϔʎҸ̇ˌþʚɻŒƺдڇΎܙźିѠόJ@ƢѸºۊҭގÑѾƂࣴdzڴͬ˘מϠȊԐQԶƄ୨ͥLjǕХʝĶŽ"]],encodeOffsets:[[[22708,61820]],[[21966,61983]],[[21727,64760]],[[25445,66551]],[[29662,70679]]]},properties:{name:"Finland",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@ѻŭ͂ǀź‘"],["@@ăÒ¬ò˜ƃ"],["@@ʾɽÜέױƷՑƾµǶȬ˘˂Ŷϲb"],["@@đAĒƮ@ƫ"],["@@s@²@ê@ŞĈĩȥ"],["@@ϋĊĞyÑ"],["@@λϿHġ̦ȔCȍё½ǻĀǏƿʧÛǫǂðƔȆSغ͎ϔĆ@_"]],encodeOffsets:[[[182772,-19429]],[[183654,-18536]],[[182559,-17788]],[[184320,-17370]],[[-184294,-17331]],[[-184247,-16898]],[[184320,-16556]]]},properties:{name:"Fiji",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŤQÑŷǓĜł®"],["@@ݲĒĴÉչҕ˙cęŹ˩¡ɳŌ؈ʈ˿º˲Ö˕ʀʂĕ"],["@@ƍĬǤw•ó"],["@@Τ¯éƅȦùZƂʄ„ƘőŷÅƚ«ݡʥ~ƍҗæņŽɯm¯ĥɅƤàǬјȬ‹njȸȆ"]],encodeOffsets:[[[-62483,-53028]],[[-61733,-52697]],[[-61554,-52629]],[[-60262,-52500]]]},properties:{name:"Falkland Is.",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ιÆʼnǺàż̎EƬș•Ǜ"],["@@ġænȲŌċ—ȋ"],["@@֥݇ɋչˏˉܩŦ̥ȟʫò率¢•jqZXRŠN„B¦ÖìœŪɄ¼ĖtƨƒŨ`”ŀƤ®ĄsƲˇΦŇڂҼ޶ࡪ˿ԞН…ƝĖüƌũ²̫ƦʄƦӗ"],["@@ȥw¬ŔǝȸʊýĎɕ"],["@@ãJ¼Ĥhĭ"],["@@ƛ°Xʘǐë‹ɛ"],["@@ǍC¨ɺʤȿŽu"],["@@Ð֧̩س͇ǠäĦɟȘâƐœɚȾɀмʦʮİDZ"],["@@‡ñƥȞǮū"],["@@†ƒÞ_zY~mªQÀRž~¾\\Ǝ͢ʕ׸QֺƭѥۇAӃɭƅǧ´Ɨ‰É¹Č¯@akiw‡ŋēŏėk•mƗ±cƣʹǩWijkƗŁÅBÁˆQäJĨžˆŞò¾ĜŠŲNưk\\ȿŀĩ´…¦·dƒȗƹ̘̟ÉšϋƟ̜ȫýЯΚǓˌvŧͭޡӋϡŁ׫ž̅Ǽ̇ÑکDŽյ̵ǧɷƆПভßĕÖË€ŻžHĎš€ÇP՟ؙȾÅŽ৽Ġ׵ʪƇ£¦ǀ͑ƘʺƀȪ࠸ƚŊÛØýćƒܮ҂ҁȯϾͽȸƐvĩӐ՟Ǣɭʜ’ȒƫŀƚĤʈµțĂѹBÜƆ˽˜cĤ౱ǔ̯Ǽ̌ŌȹĴˮ\\Бº—ôȚƚદȆҐʯȸĤϊÅĈĪѼ™ǃŸcͮɭКԈGĶʕࠌûӤŸʋº¶ǎࢸʞ̆ɈäՐܒDzȠ̅̈|ƔȻ˔¯ĀƝТ¹sɳͬUɰNJ¤̩՞ɷʂx"]],encodeOffsets:[[[57137,-21851]],[[46265,-13288]],[[-52892,4159]],[[-62286,14843]],[[-62700,16272]],[[-63067,16392]],[[-62799,16620]],[[9708,43833]],[[-1206,47006]],[[5929,50728]]]},properties:{name:"France",childNum:10,cp:[2.8719426,46.8222422]}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÐýəzNJÄ"],["@@qœƹvĬƗϓˬҔµ"],["@@ś«SŴŰć"]],encodeOffsets:[[[-7359,63631]],[[-6790,63722]],[[-6559,63753]]]},properties:{name:"Faeroe Is.",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōY£ŦƈLjŗ"],["@@ÛåĴƤ—ý"]],encodeOffsets:[[[162115,6978]],[[141459,9729]]]},properties:{name:"Micronesia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ķ̻šґՔƜˤ¡ȾϿęɷ̽ɩ÷ҵԪ̵÷ેȅ˝ŒŗǥŗętŹ˞ɥɍЉèǕ͌ǟĘƃđ^ͳ͏éϫÐÉгȈū›ǍȀš¯̅NjaƳƌɧƝĕȍڃݺԿҞ˸éοƸ˙϶ƸPǽÐȓѠʂ˕ƶÞǥ’¨džţµśì̥רȴć̌˴¸׎ĨƷˠīǤŴϣĐȅɌƞĦĺówϤž^’zzJ²Iz£`wĒமEѼG՜hŎǰFඊÖā"],encodeOffsets:[[13613,2214]]},properties:{name:"Gabon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƻďʽàɀĜȺë"],["@@Ů_˗ƟǍɄɆ€IJă"],["@@γ{̛̈ˉɯʁVїɪ̪ƲſĔ̢Î˨˘زŰτăˌ˝ƉƩʞnĦƍǛ¤Äɵ΋ȅǗŒ"],["@@ȏ‚\\ȔǴɕ"],["@@ÖȡȿófƔǣÙ|Ģˬĺ"],["@@ďà̆Ȏȵʭ"],["@@҇§ƤǔŭĸƸ†˼Žaū"],["@@ƉɠŦSdɋ"],["@@TLJϴ½ɵǧïƀʍBρȪϤȘƊƕ"],["@@pű˩Ìʺæ"],["@@̗ɩňÓҵɫčÄȐĠȓɒ̠N§ĦҐǜś"],["@@đǍٷ̣ěƮƒɷȭؚŌૢKʘȓڽދ׽ǕΦ†ǰŧֿȍΩÊجťϘÚϞĽЮ˧Τܯ८ӯķă˒΍͕ņ͝Y̮ӄ̙îƧʻɇȠąɼƄиOԐǥøʅŽ̝̋ů™ƗνÕŜƃϻęࠬđaƱοɋ։ų࣭UՋŎèÛƵÕћmIĹߵĨͽëɳͣѝź҃đ͟ɃчX஺ड़ࢪ`נҊܡ̍ԇǜ˿mŦúʛæџĩɡĪ]ǬߺˠȦɜķ̾ӧğΒ˴ۺǒˤã‚Ɩˆį˅ǠȀԺˍMͻ˶ĘʲάưћI΁ƕܡÆÿſķÒŝȌиѠǏ̺ʌÆɓĦšĜΫɭŦʾ˛ǝũԙƥ¯ȐϾėɆΠנϷȏЗƦ͸Ŭŋ¦ʦˤțŪǴƘƍĺŘǴϜ@ɍǂÚƚˤpQʰӬ­তŘǦ]³ĵ"],["@@ɜĻҍÄlƆɆč"],["@@ɌýȹӇRɴ̻ňʐ¦ǓƌǪĬ²Ó"]],encodeOffsets:[[[-1091,51907]],[[-4297,54602]],[[-6367,55387]],[[-5227,56780]],[[-6275,57273]],[[-6113,57155]],[[-5916,57697]],[[-7423,58487]],[[-6292,58886]],[[-7378,59068]],[[-6347,59765]],[[-3184,59920]],[[-3130,60447]],[[-1339,61991]]]},properties:{name:"United Kingdom",childNum:14,cp:[-2.5830348,54.4598409]}},{geometry:{type:"Polygon",coordinates:["@@˂Ə®³S“‰ïûÑēẂĜڱɠÁuǹŏsYƑe؝Ýէuȑ˜«ŽWz~nmhûžųĪít…Òƒ^ÓNÙMaOoWčijғ²ďÁ™Rß~ĿvÇhLjǂ¾ɞɱׄշͺ̽êПɰžÆ¼Ìӂgʚīޙɲ“ǵͳর¥ȚßR•ö»Ѐŧĉƈ½`eEs›U“lmÆmŎI zĊlȐòƨœɠōâŊjTÔuň‰öeƶũȂLŤ‹loýȫH}ӘǷǾĉȷǃĸǍ"],encodeOffsets:[[47417,42504]]},properties:{name:"Georgia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àāă̇ϼ͍ĭիà“ğşʘËҡĭû˂ͻƽڷŔljĝхǰͯϚ̧ȥɻׅ«ቕ࠵थ˜ʢļɼƘǣĤȓࢎɤפƜВĸø°rZŠeŽPxÖp‚ŒÿӼ£ƀ“̳j”ʲTŊU¬¹ľ]ôU־Ļƈî΀ຌXΒéˠȪȘ§"],encodeOffsets:[[-70,11383]]},properties:{name:"Ghana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ħǥǔƷ̺džȊʳκ˂ѪƵͬȎ‹Ǭ̐¿ȎЕGȽ΢ʳɣ̛ˢeÐщɔƏbƅƏǃdБȮãmȏ⋐‹n…ĽÁ‰‹YNjȚťpɣŅüʼnVʃmO¡Wݐ…܍þWŽùĭǯVě÷ƛuƒǕœ³™ơŊȗΧȑ̃ǘĀʎůդɛLjʁěéøï§GÛV…]đij½ŇLs\\ˆÆƪʌī̸ģng\\Ex¾ŜJzÙĄʏͶőŜq¬Ëf՗GșįʉnʼnNjǕ˥ǝġijNjǷiť̸ɉĬBͤʼn“ȍɈ͍ĜƵʪbǼëßĉȰģŒóƑۀPƚª°äƒˬºÜŒvàFŸœŀÖÀ~ŤOƚZȄÒDȊM¦ßœŏľ¾Ìń`òǺ¹ĬHæլ“lťŊ˜҂ljࡔÄ"],encodeOffsets:[[-11662,12703]]},properties:{name:"Guinea",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@½ɸžŒɌǣࠤǖשiǻĕǭȴࢬAèŠˎîמʷή’ŴŕΛƟݻːŕƇѷÑiƗۃEĩ÷"],encodeOffsets:[[-17165,13378]]},properties:{name:"Gambia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ËovŒ–ġ"],["@@ŰƜê¡ř"],["@@ķX¸ĸÀŏ"],["@@©ĻĩİƔL"],["@@Ń_½ËǰƙN¥CȉȃÑʽI¿}ĿÕŷ›ßE‹u·ÛƓ˫­á›«§Ò’ŌƗģLŀƩ¾ŽƮĽ^΀ǀƁöƵÓõĠ†Ĵ͜łܧƵlŶǽiǃŒêƼljɱŴ°TŖaĖhƦÚĈ^ʰgɞ¬͈DŽ܆GʆA˰AGåºīñǹ"]],encodeOffsets:[[[-16277,11349]],[[-16501,11325]],[[-16283,11741]],[[-16370,12168]],[[-14090,12557]]]},properties:{name:"Guinea-Bissau",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@Fѻ஭đŽ_xy¤±JyI‘y›]Pnõ¼ĽrΞڎwŠlȤtMT¯†{Ġڼ@ʲ@Ȝ@H՛"],["@@Ƥ@Šŋȯ͹ȓ”UƼɬʶ"]],encodeOffsets:[[[11605,1566]],[[8946,3849]]]},properties:{name:"Eq. Guinea",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@˄ºµċȶŕୂW¾ȍѺNJŻʝଫíûžȵÒܷĆmɸĒiÄŢĬĵ"],["@@ėŐŸȈŸ̗"],["@@ť€’ƎĔǍ"],["@@ŅzBǶѠɚŧ̳ȳŕ"],["@@ĥ…ŽĬØå"],["@@DžČúú«"],["@@ɠƠŘ}ͷš"],["@@īA˒Ĩǥĥ"],["@@ċ]ŤŎŅ"],["@@ơ…ňΚã"],["@@õāŢƎłjȕ"],["@@ĉN¸à’í"],["@@÷ÐŴe»©"],["@@´Ęɞˑŧ"],["@@ċ¯ƇŎɔÝ"],["@@É£úžoę"],["@@ȘďǭÃɛâȲò"],["@@Ęąƥ™ǗdžÔØǒĽ"],["@@{ÇəɦɎ³ˆũ"],["@@ŰʿȥŠÓńĉ­Ǯʜ¦û"],["@@ǝtČĠũȄ˄ƒÇ˓"],["@@ŏuŞɘMȡ"],["@@ői¯LjǂƝ"],["@@ĠũԒƏŰέˀą©ť˗ŚƟɮ͝¬̞͍ͯÎ͚ƊƂÕ"],["@@ƺɿęviď̡ĜƒİǙđȓĖ˒Ƥȶ™"],["@@NjzȧʲɾNãėȚȡ"],["@@åƥěðƿ•GŮ͊a"],["@@ɑ‚ĞŪŴƫ"],["@@޷ɤʽŗˇøͧȉˍpĔˡ̄ùŌƯίǰƻ{ȪǷiűʁɒȧ’ǜ˷ؗЎtLjʗă‹ϫآܣơ×Nƀȫ¤‡ŕƲŏлƛֺǥβʹʄݶœIϳѥ̜ϷſϠρ˟ęνǬμँϋ̆ʏˋ̇ҬĿÁɅʹ̀ĆʴүъɼʰɊkƔŸ࡬̡˲Ɣٗʲďç̕²бùšƒwħDžV˿Ь˾lNŒͽL΋ʔġȀûĄćÌlBŒWҋÚOƨŰA’ÏĞ@zxXœvr‚¢bǞªȊ̎ŲżÙŸRÚԤfªxŸ°ǶƲdžxʺ‘Ģlĸޏź̺SìÂŐH¼TĒYČB͂ÖlRp¶ˤEЀ~EɌǑȂRŞ£IJÓ֠ÌŦÌ†h¦Uò·ƶllĀdĶwɖī˜ǗʙƍBʅʗȑ"]],encodeOffsets:[[[24425,36389]],[[27829,36317]],[[23608,37059]],[[28512,36792]],[[26095,37267]],[[27096,37464]],[[27597,37609]],[[26480,37674]],[[27669,37847]],[[25886,37959]],[[26159,37855]],[[25113,38017]],[[26013,38318]],[[26655,38431]],[[25863,38503]],[[24941,38479]],[[27469,38719]],[[21390,38713]],[[25592,38666]],[[21108,39305]],[[26721,39136]],[[21184,39536]],[[25267,39741]],[[23978,39894]],[[27045,40274]],[[20560,40380]],[[26049,40943]],[[25369,41590]],[[26664,41705]]]},properties:{name:"Greece",childNum:29}},{geometry:{type:"Polygon",coordinates:["@@@ƢЎĝǯ"],encodeOffsets:[[-63196,12301]]},properties:{name:"Grenada",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĩķ΁ĈӪƼ½Ƌ"],["@@ǧàLjĦ`Dž"],["@@ǁwŗǨȴNJΒÛ˫ʝ"],["@@ּřŪǝත̉ԕŮѲ¾ƓÚँƢŎȤϸOяLjϬƸࣚģӆɕ"],["@@ύ`ZĈδħ"],["@@~ɥۇǗ͗ČறÇΘΪ࠸ڬƘ͘Ĺ"],["@@Οò̼Ɯ¤ɍ"],["@@ҥȑխž৔Ô"],["@@Ԟ̷੹‡ƻˊܘö"],["@@х͚Ǡɰʦ։"],["@@ۓĘࢴ‹ȟË"],["@@ࢣėЏŎॾǠјušǟ"],["@@བྷɞѩʸܼˆచǯ¬ͭ"],["@@ↂʭ㇓Ƨ‘ď㞆ƨպʁ᝚ȱಇʹ㏱ƍʵę̀ī෢Ġᗆ¡ܘʧৄʾ๠´ĜϽབྷەᰦܦᆦȯ૮͈཈Œຶōࡈȍෑ̳૛ā§ȕቍǃۖūҩƧ೧áଝî؃ȷ঄۩ᅡѧԅߙܰǠ଺ljpŹ׍ľѧÑϘȿ޴ūܜŒÉЙဏŤॅțӏĚΣ÷ؚŋ͞ʩ୒«ԂϱcӝߩŒএʓӫĆҎŽ׬Ģľρώ˶ζ@זέçəݙAͫũ઩ĜX˒͇ɛƾʽ๤ţš̗໳ȉݕňޥ̮ѧƋۿɀؖ˹੩ɏ৩ƶؔƿࡩġǶÏኔˠަ\\ᄄЭɍڣ๳͈ҽҐၷ˓༂ƾƎˍϽȡϜøᗨ׉ѩ̣ÀœIJƸҠžȖߝܣÁ«ͮɇΡ՗\\եǘӹӖ૕̊ঢ়°gÿਫ਼«Čʟࠍțද–΀ćßǑࡃɇᏚfœęࠟțƪŏ̚Ǯ఼Ŷ༦ǵ୐[Cûعŏ_ĝۇ±łůҳEBūݥƭĆāԗɳڇǵᙡͅԳ\\ϗijͷ¸Ġő̱³ଉ͂Ǝϑ࠯̩࢕ࠅࠫͻ֭džȦʧؽʹŭƪśǻͭæ̅Ƿқo֨֞݅æͼĽ̛͙͉ĘˈʡခŽԄǹ̟ǕˇýۥªIJțʼ ЊλԋɏڣÜҦƫΎVÊͿȋLJɯg˷ϝϥPˣŜҒȣɱȡࢃaڐŵƙΓDzʝЍŝȨċ̵܍˝ȱ݅Ò׬ǡúˣǓŏՓĈʠƕȽ—ǭ`¨Ā̅Eǂ̐͛ɍ١ƼXƜͤîȀǨԽȁ֓ƞăƊɬψࡇ͵ળ¡ΊȔԭN•ƶгṷ́ˀûʦҪDŽڛåÐȠٟȬjȾъ˔ԅȇ࣡ېß̪ઌǪȏK¦Ė७ǭĻĐʮɒތȖМȷĥɎͩÀϋκȪ͹нƙ‡Ŋ֕ґ˱޾ɹƤޘ͔ѸÀՋ«۟ɗǭňοHþ͐ʉÒᆖ۪ົ֯х¿Ķє͊Ƭն°ࢳ˜υǰðʄॎ˦ႬȅҵƔǞĨڝÍӣĊଢ଼ʋӪք଺ų˖¸ȸʮࠧǕহǛ˂κĈࠚƣ֬ŰŚŒχ݃͜ڌ–ٻڈڰ࿳œ٥Ȳ࠭Ĵѡɺ̬ĶନÍྰ͕Ǭ¬օƞÈɞѣƂيQ̛İോ¾ĬɸऺǶඛýʜȔэҲɳ™ϘϿҕlj´Ǘ؍ùݽƼɺҶЎȶحƩ¯ĸ˺®ʳČ֪IJǀʨ˭Ťǹç͉Ú͊ˌۅȚɠǜ̶͗ࡋGѲĀUǮϲĈኻۜˈźɡƶᖟЀᄓǎҩœϵČࢿƽыĞӷċѷØˊȣఉø૭˨଴ɄಷîiɈޙƗѹǨɺŬཔj۾Ƹุĉʩʹ࠹Ɓ޷àؕœহȜΞŢঁyಝ͌̄ʎےŢᖂȞԮƲᒪŖࢄ۞ԨĊᖏmǧʶᒈԬژ¶׌Ɨŀˢ௾íӾ؆ಾ|ᖖѫᕭզ◴݆̂ƿĬѕ֚҄ᅈΩ଒p୧ϸݲö⪴׉ЮӴૉ͈ᶰÇюÎ♣ĠǤي፾ȸ෬ƍߌȚᇚ˫ӽ̺ࡶń㹪Ê"]],encodeOffsets:[[[-47377,62241]],[[-37920,67105]],[[-52237,71222]],[[-53996,71624]],[[-52915,72556]],[[-26042,72624]],[[-54820,72746]],[[-56337,74539]],[[-18432,77218]],[[-19028,77868]],[[-73387,79182]],[[-18035,81742]],[[-45941,84054]],[[-30671,85571]]]},properties:{name:"Greenland",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˶DʔŁRƾ̮ȅ—…ÿáˍɉɷǩƳãáǧºǑQ¿īÝÛĩǯsvůс˳ŸƕїNJ٩¼ܛҲÜΘ^Žœtr ĥȺĖƦŀǪȄ̮ʬBϢ@ɶ@ƴ@ÚDYøTĊ‚ø@’­¤ĕz·–@°sȧÞɟƆη͚ǶAǠCHӂໞAÑྩ"],encodeOffsets:[[-91374,16270]]},properties:{name:"Guatemala",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ýƚȐƾƛǗʻ"],encodeOffsets:[[148216,13578]]},properties:{name:"Guam",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĽdzĠŝķƧ͋{ǥƛÒŷǩӇ΂ש̀aĘѱвۇȆāУsËh¯ÎuRǗ§ā¯óœ›¡£mǛG߁ğg©Ņʱʑµ_¡ġ—KŻơG›ƒµ…M΅Ʀʯ˖ŋ CĄÓ‚_vB̼œöĕ˞Šݮʬ̄Mx¿ÀıǢłϗƲƄҤŵƀċhÿ·ĽWlj„÷gՓפ]‚ôĢà䯜€’oƞB¾}ÈmÚ¶ĚάÖ̮Ƞ~øG–g`ĵbµm»X¥²í˘ǤɸИȬ–Ğt~Į´d¶ƻȲۈЋׄ֩~̟ljխɒϮδÅϊϡˀŹ„Չ"],encodeOffsets:[[-58567,5682]]},properties:{name:"Guyana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ȯŸǵǪӰŗʼnq"],encodeOffsets:[[75477,-54412]]},properties:{name:"Heard I. and McDonald Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ݷȱĝxǷŲĽµ×ƛűɩѳϟgMƒOǓĸ³îʓɽ]țhĽWsaW¡PÁ„ȓhÿeyÁIå[›—ùǹ¥_ɹYŵ̾˙ž‚ĺÈʖazϤ÷Jĉ_ƇĞʡŗ…F]¨MºO^ԝ͢ȯœLjLjRÀ¹ǒâǨƴäɸǪˎɊĀ☆ĆyɎƮ౤ąΞƞ¥ÐфĽєøΐƿʤjиΕǩĪřw`ûƘMƖƣɚDůŬɶŇâƉĉ̥ɍ`Ĺĉč"],encodeOffsets:[[-85642,15234]]},properties:{name:"Honduras",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŘËͳøɜk"],["@@Ҍá˱mǙĐ"],["@@٦˱æŃ׋̪ٹǾԺı"],["@@ʛ`•ĎϊÓė™"],["@@Æ×ƕĤЋ"],["@@ƧȬhɞƀщ"],["@@̟ĒĶŪȪȻ"],["@@ÇąȌˏ¹īͪƿ˱Ù±ɣƝ\\ƣǎ܋@ݧǘ͙»ȥǧɝƲȫU©΍̮ȵǔͫࠊ֭̈́σÅËֵϢёŶ΃oڥոÁì̊`Ы˦ŁВʯǼȥ’ϝп˿ը̤­Ю®¶pŢŶpK¶áŦÿƊlƀ£ŌSĈvYˆ‡OŽÐäÝÖ̀ňpĺQÄͼI€b‚кǮǸŸĚUöq®]ƮËļÝτ˽иǥҨ‹ƨ˜€bĎĂȬr"]],encodeOffsets:[[[18031,43796]],[[17051,44029]],[[18092,43927]],[[17189,44310]],[[15741,45030]],[[14836,45732]],[[15166,46057]],[[19360,47035]]]},properties:{name:"Croatia",childNum:8}},{geometry:{type:"MultiPolygon",coordinates:[["@@cÏɋêǗƎЈƧ"],["@@ƇǫÖŋN«aÏĻijĵG[W¼ïÊăĢÙtÏșíâýÊĩ˜ۇÝёČ̥½řůӽ΄úƦƆŽூȑΎŞ|ĎϵͬĜ̴؟ʀȂƊӦdΖſ͖¡²ll}žǛ‡ǛČ÷"]],encodeOffsets:[[[-74551,19229]],[[-73366,19657]]]},properties:{name:"Haiti",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĺDˢɯƾqĜƍ݃χ݅ਇ̣‰ūħė„ȑƒqd£`ȑh÷_ȗpljėًſčāaƧ—ҧŒзǦσ˾ĽÞƫÌ­^ț̜DžL̢ŦUͦȞŖɉŜժ„äʤԬȣ߲dÊǴ۬Ȉ˚Û͐ŰƀȚ߲tˆǵ̪Ê"],encodeOffsets:[[22663,49568]]},properties:{name:"Hungary",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĹVhŘѴʌ ƧЁɑ"],["@@ƭ†ʚĠīť"],["@@ùŽŐľ•Ƌ"],["@@ٮө¢ãœƙɑóʙĂҙΨџÊŃǀ˲ŶլÈÐÕ"],["@@՟՗֯ǕţÞĤLjŃĤĶ̒˞ɰȸñƌȨВȺ^ġDzV£ŭŝoĜʣ"],["@@Ұ䞤č"],["@@õ•ĺŜŤwƧÍ"],["@@áJ¾ʴĢ÷ýȅ"],["@@ʗ“NJƈĴƒeï"],["@@ŃǧÔÅ̅u͏ŀȂ˜_ʶ˺Ȝˊōßɷ"],["@@ŝǝǿêʾȶ Ł"],["@@̹ʙ˕ŠȸǪí–͔úŲé"],["@@˧âȞŖĊǷ"],["@@ÅƺƤˆĝȁ"],["@@Ќæŭفõ¦ȜŪ–"],["@@ʞÑăíǟÆFú"],["@@्ʋȣìïďʗeСŐ՟±ďƈÈɺآƮۮ˱Ѭĺ̚ơѸ˘ÎèƉŠƄäøȇȉʃ"],["@@ñȶɒƀ˃ǁ"],["@@̴ŒĐőǴİǠ̷͑Éòć̓mċƴǃƓेɑɭþ Њˢƒ͸·ȪʇƎaɠŖΛɀ¹NJ̦xŀǏ"],["@@ɎɃҹω÷ɶωǎũDzЄiǺĸʚõ"],["@@ĿïĕȦǢatœ"],["@@ˡʃγÄȯĉƪ˒Ȩ—ͬŔLjă"],["@@£ĢĖc±ý"],["@@ȩŋիfδېǶńЌ¤Ȁʱϟӟ"],["@@DZDrˀъӔþëûÏg̟ʣ̻"],["@@șîƠZºć"],["@@ş¤ĈƘĩ"],["@@őFOĈŢč"],["@@׽ijͳŶŢƢǚhނNĊñȕŧ"],["@@Ɓfjüʲßƙ"],["@@ŋtŜúOĭ"],["@@ǵ΁ț`b̦ôXãɦΠɁ"],["@@ʘǩ֐Ï̈щ฼Ɓ΄ѰŚWǬɁ̠ҠȵϞƒĠʛŪé@ȻȀėРÇӖú˶ƅmԥǒ̫ૣОӗĹঙĔݹƀ૙ώғŒʏʼn҅ÖՏɄۡĔĈ˓ŀ߉þĬƞĨįƞˀŎZè˸ǦǞـƷȆǎ˞ē"],["@@“ƓSׄ¨ѯ"],["@@ŏPĔÞ|í"],["@@ٽ§ʲƪȳ"],["@@ӵɯʉɬŮ®”ƪřŀŖIȖʈƨɻ"],["@@åïʘ֜eɏNj˛"],["@@ɍƀɖ™Gĥ"],["@@™ă‘ĆìA"],["@@ȟƴĘƺņñBɻ"],["@@åıɿÊĨɀwʬ˪۸˅ūǡ€ŋ"],["@@`ɫşØé͝ǸǍǿÕſɟƕP·ƦưɺòӼȆȚĘƏ"],["@@¨­ʧǂɀœ"],["@@ƕĩęǔȲ‚~ī"],["@@Ɲ«ºļĤÏ"],["@@ʡą«ÒͺƸ«ƃ"],["@@‰Ɵ½ĈĈØ"],["@@ȳŝJҦǦǦ„ԭ"],["@@̮ʭFȯҙDžЅȀƃƸ‚ˆٮf"],["@@ťÔƘAqÑ"],["@@ՀĽdžšʒσ¯ʋ߯Ҁ˧C›ĿԕȀ̅ǵ͑ʔȗ˵qɲ˒̚ږŒƸĕʺŮɪã"],["@@’ũɕ˼KǜɌǹ{Ƴ"],["@@ŷȕǓŠȱϧʐĒ̖ƞŠ͆ƕÚŏéƗ"],["@@ǁáwʜǺǹ"],["@@ȣð‡Țɬˉ"],["@@lj̀ºĐŐЏ"],["@@ʶƒܑįûĆ՘®"],["@@ÆɽƛÛѕƲԬƨ"],["@@ȀMłƑݫŅóŬôǘҪ"],["@@சǧ֑āهʪ"],["@@ī•ƒĀŰ©"],["@@ːڛϠğǧˑ²Ʃ֙ȺdzզշŜ˜Ͼł¢ĬǡhǔDŽzŖƏ"],["@@ĩpžƮÌǝ"],["@@ӹÉƕŜɄɎь˟"],["@@tǽǔŸĦč‡ġȥVďƭmʾɕʃážĆɀʰV"],["@@ȹąZʖɤ­ƒš"],["@@ēD…Ŕƚ¯ç"],["@@˯ƘȍΌØȒɎbˬ֣ēų"],["@@ǿ¼ğʞ̠–ͯ"],["@@є×М̱ǯĵȽŠƙ̘č¹əȘ"],["@@ťh¬ŢúƉ"],["@@Ɖ–ŴÎVģ"],["@@băȏoǮĴ"],["@@@NjDᲗħͥĨƓBᇳࠉޢĪɮƳƫҥóŗǨ̝ɋǖմ˹˰ΰ¼˥°ȵǚɜàΧўţͨàĘƥŠŞŎɃ…uȴٿѨ։ń՛ʎڅäѡ̺xľưbԵOijŲơkʝ˴ƎΦş¡ɷœŸįХŷƍ˫JƇ̔ĬŸıɎٽьɔĞдğϺ̐ђƽ®ƤŶºħĈŊLj߫Ɲս~ʅɄýβ՗ƖʡǐɒÈʺҠŸӸ̈ϴ½ԬʷфeŚđ‘Żǀ̣Ź̝öӳɞѯpɀŨžØͫŢršʧ̪ƅȢp̺̌Ҁ؈ִƘČâ¡ƺֶ̞သܫ۪ćŀƉȎE"],["@@ĮōȑljėǐǼň"],["@@ĬűÝšɴǗij×řİƉ‘LƎƗŤrƒŌÑĤô"],["@@ʼnqNȮƐK“ǯ"],["@@ɳSôŌǀķ"],["@@϶ũÀş˫Ï͏ɲɶɏůċ½ŮśÏˁƂłŘϚÌ"],["@@űAİʲĕȎȆɍíɯ"],["@@ȐęҷĀĄǨȤǍ"],["@@ũP¢ŴĈƃ"],["@@ҋĢ`Țиȕtĥ"],["@@ĝpľší"],["@@ϷƶpĘɲùƖǓ"],["@@Ĭ]×ƧőèþĞ"],["@@ÞƕñǽŗȀƿ‡ĢƔȊˆ"],["@@ŭðo˒ƾƍ_ȳ"],["@@ϚЭģ·ŗ‚ãȦǕĨ˛ДɶĪł×"],["@@PŇЍɸϾů"],["@@ϱѳ֣ƑЧlɥƖဝ©ιð͗ɓƭϵ¦̟ƬˁɶƝŴˣК~ΪіͦĕʼƨԠD¹Ć˼ôǪß°Ň³ȏЋĔշջ͡řǩǝʝb޾ࡻĜʗūΛπϵƄhr˝ŷªԗǙÝʕϗÖďƮŌШ؍Ӓƌ̔CΔơĘȍkͣʁƨُaއšѹŶϏГ\\ȟĭƇêǓʠȠڔ|ШſѬЇqŃŞë֪ʸȨȖҬYѬǘфǠȎŐƱĹٰŦň³ǖĖǦ̚Ѷ˨įɠͰǶÚ˔ëǀƧ܄¥ͶơȔĆܪûԒ͌ΎψƐ\\ļƷ́э"],["@@Vʏǿ³ùʐʤ´"],["@@Ű_ðǮnjĬ¾ȲϺƠ^ϻ͹ȕţ̎Ʒʐ˫ޕɌăƣúҟϔէ͇ǀ̕϶bѼƝ˖ÐȦƯʖǠנ;̘ṷ̋ľŋ@̵̝ˉäƓ"],["@@ȏŢƸa˜Ŀ"],["@@ƃcÝɚ͒ʦòĻÅȿƛƟ"],["@@սʞùƜƮÂѬ̽žŽ"],["@@čiČĨBý"],["@@ËǘŨïÛħ"],["@@CËéĮî¡"],["@@ġŶŐqmŃ"],["@@ūt•ɬǂʟ"],["@@ōƽ¥óƒȢb"],["@@ǹ^ŦĘȭƢȸȠŨșÝʝ"],["@@ğāʾ͗؃ÇʒǑLțɒʼn•œň•·½άяɷʓ৐࢛ϙƗ˵¼ʅȌ¬ǭȁƅȇг·ҹĊϓկϝƣƮ\\ʃБϧŰ@xśřǻɂƅ‰ǯDZ•\\̋ƏƒúLJʧϿਖ਼ӗƗژãėďŒ@Ǯ죯èͅƩāɔɡ§ʹ˂¿ɇdzœƃá˅äΩș‡жŅƘٝƳčÚÎòǑĥŇŊˉÙƇ߸ŗŜpӴǏɜѹǢĨƚɁȺŖΠʿ˚yҴ–ȆƢĴķ[ÆɌʬΪɂĘùōĬɿܐمԄǂתɨŎĜʞʒĶϼPÂŏԮǕɾǖԠdˌѺ™ɪͤɮĉĤŒɖňŌǪRȌ঄ƴžռnӰƒЊƕ"],["@@ĥŒĠǀûðˆǢƐɏĕɍ"],["@@ࢰoלړ¸ˑ஦އږ࠳̪ȭ¹ʜǾ^βӃҘɁ̶ԋբɛqƍϧǗڐʢ˪ȍĪȭ̝ȩoƛĖēÏġʂʻ՞ŷžٿˢɯǍуːȌΨSծ؍Ǜяòǿĉˣ²܅śڷͱɦɣǑωȎœ̻éW٧ۚઙެ·Ҭңδ׃ޚ…˄ҟज՛ܺѕʴӁౚݧдġЦǗňΟԌѱȮܭ܄̹ԺlʀͶšш˃̠Å"]],encodeOffsets:[[[125900,-11171]],[[124809,-10844]],[[126379,-10549]],[[122893,-9599]],[[128070,-9740]],[[118385,-8980]],[[125929,-8750]],[[122332,-8950]],[[126278,-8555]],[[119441,-8820]],[[127270,-8529]],[[126900,-8471]],[[142229,-8589]],[[120378,-8568]],[[127566,-8336]],[[130892,-8293]],[[125730,-8818]],[[134003,-8518]],[[121081,-8517]],[[118219,-8350]],[[132955,-8145]],[[129845,-7851]],[[130478,-7806]],[[141861,-8472]],[[134478,-8191]],[[135150,-7374]],[[131759,-7355]],[[123674,-7289]],[[116577,-7275]],[[118147,-7138]],[[107779,-6799]],[[137766,-6596]],[[109951,-6151]],[[123421,-6449]],[[115425,-5950]],[[135995,-5991]],[[137981,-5843]],[[136117,-6043]],[[104825,-5610]],[[126594,-5398]],[[124972,-5568]],[[125589,-5395]],[[126137,-4660]],[[136777,-4347]],[[126201,-4211]],[[131649,-3671]],[[131355,-3762]],[[119219,-3547]],[[119095,-3960]],[[129906,-3161]],[[109452,-3077]],[[132869,-2934]],[[102836,-3259]],[[110805,-3069]],[[102609,-2806]],[[102240,-2399]],[[129081,-2510]],[[129049,-1832]],[[133482,-1731]],[[127969,-1746]],[[138726,-1630]],[[111568,-1658]],[[108591,-1709]],[[126564,-1745]],[[131229,-1700]],[[126170,-1199]],[[112344,-1209]],[[138205,-1142]],[[101544,-1820]],[[134146,-1347]],[[138633,-667]],[[130356,-799]],[[133762,-541]],[[124790,-416]],[[144357,-2672]],[[106982,-342]],[[130629,-326]],[[130304,-507]],[[106227,-356]],[[133953,-4]],[[100823,-543]],[[107294,-180]],[[105764,555]],[[105501,765]],[[105907,1074]],[[105643,892]],[[106522,1209]],[[107096,1246]],[[104886,1014]],[[99822,1501]],[[104952,1495]],[[127887,1020]],[[104150,2129]],[[130799,869]],[[99671,2126]],[[131537,2102]],[[98779,2417]],[[111501,2976]],[[108299,2932]],[[108837,3233]],[[120483,3360]],[[128674,3519]],[[120714,4287]],[[110916,3779]],[[120397,4271]],[[129861,4131]],[[98809,5355]]]},properties:{name:"Indonesia",childNum:107}},{geometry:{type:"Polygon",coordinates:["@@̽ĥ̤ˬZȅ"],encodeOffsets:[[-4517,55486]]},properties:{name:"Isle of Man",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʬ@ĤмӼþʜόώeլԟ͚ƺ̃͠đUz­ŽƓ’íȘșKąuū¾DžWǫ̑âʀ˵ɶĉɔÛʄǣaīֶɹĦ­rә`·O¹yiŕĿœāŭƛíƃ½ůBėoĻÁϏqėƒĽh‘ƀěĈ³Ā¯¼Mb€n|Î_Ө˃ָϿšP¢r˜^¤YډƨĝƐíƬ`¢[„ÛpßҲůä’^†ÀjĖQǐ»èeɚĪŜÁɂãň¥€£\\Aĥ€¥юɳĐsɴČâWªŸŽš´‰Ǵœ׎ǵ˄ĶɬǏłÂμ\\Ŭ¯€Zzˆ´ƀ¦ŜGèŸĸįƄS¢ƎԬFĀ‘xAÀ‚`ŒjŶ–ŶèȐï±СbûÊɸŸSeķák—Ĵǵʒũƺ„ɈÏp¹ĐI¬YƮnư~êþИͦıҠdŞÞ|@À¹źIƞ¨ĐP°K¨hֶ“Ӡ£ʨҎϬɢࢎƈՎ̰Ϧ×٢˿áƷfÙǞɵC¡ůdſƎԙ‡ࠩԵšƕRʃ’ċjiF{şɫ˗ʽĩȱŴįǭϯĭƍëŷǿϙ͡ŔȗeŁÜ޳aŸũ£Ŀˋê̝ùųęǥ¯]±léĂçv·ĵ±ƒ[ÐÍ՘w¦đǎy˂ñφǝIÅ\\¥K@óRÿƷǻEȟǕ½įǪÝŋǕӼDŽͲ̈́ŨĴ{Ǿǘ®ĴĠɸBĢp\\ŒêĂΙȎ஽Cб¬ɅÖ«XY€pȊC͎ŵɬĉåmŃɕ‚ɩ̼ÉBfƉ{IɏžƑȐůžeåˆW®ďęĥƵƛ™ȷ’}̘ɱɢðƁö—[É̙‡į@ëȏ¹ãƒBùŽKĕǛ]£M‹²ÝÈÃâsĦMƊěŦiæ§V™M›[ĭ[Éō˟ÊĽÀµvȥƢ›€oy˿jǯŊ̛m˳ßBĐʅNjúħƇGΞĉĮµϱś›ƃŦ…ŕǑÒŜϐɇȢǾɅ˯ͧԻƵȷƭĥɓŐͿȋ͗̽ʳŋ †őףȏßHPLjɋŋÉƋɖ€֝с֕۩ำ৑č҉йȗЏPʳӡ˧Ř̓ƹȫ՗łԃÉɟǎؑųȔÿěɾȳħ̵֟כƓ֧Ět¦šUܽѯÇׅ̿äț͢şγÜҷƏȓǵŏэҕʱϝȦљӲȓҤçЎŐ͙êEĥ͖ųƐЅੴٹৠӁྰεӤů˔Ō@Ƈƨ¼òŷ¤ǡ̄ԍᓶĆіřƫĔRȂƦkǗîĵϾȐۼãϐDžɈĤČķSоʐӍ­ƂɴƭH€ƸɌÖՁŒļåċȥɡƢāšǓȩ̿ࠫΕʱDӻ̔ঁ৒æŬȎŵݴʌˀѢųű֥Ʊέöԁ˼ȉ͎̠ɾҕɉÍɔİÒĊnĜbĈAŚCHʨXxh^lNhIz›ˆDŒvìgÈ\\ÌcĬAǬPĬEȸěʘĺLjÌɎÀfQ¯p«äƒ´O¨PŽbææ–h°C¾B~ÙŢL vˆž†wÎÏŔÕƞȍ̢EȲáÁiµGƷtƑǠ¤π…ǜէɌĈ̶ˠʦżȄĂż¤ž¨ƆúîCŠïÀƗĚ¹ÜJʼİ̞Ž˞þfî¸ŊƲƚƐ̎¦°ҾɸВݾάƆÞÌ ¼Qº•ÐbêĢîˤ̼”@ŊÈļÚO†]šýÖbÚºǢY¸ÑDŽ`ª|®æÒĔ¸˨ŠÊ`ĬˆâŜWN"]],encodeOffsets:[[[77130,33061]]]},properties:{name:"India",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¿µáƠĆŏAƨžƁ"],encodeOffsets:[[74232,-7554]]},properties:{name:"Br. Indian Ocean Ter.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˋÄɨt¤÷"],["@@Ňŭˎ࡛λӧŜĉӅñÙøࣽΣ̏¼űϵŽޣġDzǨԃãѬɰدÙδ˖ЗZ„ÒӮšőźɰŦ܊ŎǧÜƹĵحÅϜɆƔɲ̴Ģӫ~ӝƦsŖͬ²Ƴļ˖à@Ø˯_¸Țȣ¼ŠĒౖaßĘЬʚՋ’͘ǪĒɎԜĢRʇ̌ͨ̈Ņɍũ˧˗̡Íƀē̩ƱјɩʂUˊɰ̜̇δ|"]],encodeOffsets:[[[-10186,55208]],[[-6367,55387]]]},properties:{name:"Ireland",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȝȃեĝϜȂIŖѮHû}"],["@@͂|ొٸ˜ʇǽƃǂȅʝƑԄϋɶrüқǰʑ߬Nj͸ͣӰɫ࣒ķೠʸŮ@ȣÝʔ‡±ѴڈńǚʶКɰݠ|ƚƚنƒƈȱނʵҰdТơźɏԞʑɺ˙ٺLþϝ¹ǵČğTȻhÇEƒ‘³Ƌõ‘iΓŇǝ‰gĥã¿S[uTuvańŽȷYƁDZ@͑ôĻ˾é̙̯bťŒͧĴ̍CçƱCğHǻ|Ƒ„YɎȢ{˄Ăą¸dzEƅwçȋțȑȡЧщLjǏİķب࠷ܺ́j͵}҇ΐY|Q¼‰œ±HwÁŸRǕQ]±wcƟܙƥÓőĩXʃţ»{ƛuŷamÍ©McT·ĝqʡyë¯MĵÿؽƲŹżġĿߍƜ΅ÃȽŘ௳Ȧʣࡒʵ˞ԡ`ଝՙїLjҕ|࡛ԈǹʘϏǪχʻɤǻԂǏŨRNJǙìsɰЗтćɸѡƛѷʰǒŜȅ†é͕̻ƃ˔™†ēȼ˅ưIѲ˥Z@ͰØǚÜnjīŢĻŸáÀƵʰ™fƏOҩ̰ljĄálƻNgfYª@¸¼ôJ²ŁƼԻҲŪȴéɊ”ĤŘO”ȌȲȘĶªü lΗŀşǞÈŲŦŽæ„Vzė¢͡BΏnjķ˺…”©V•D¹¾ʍ֞|ŰȃŨbɴ͇ǔȨΪŵªuϚȽҔ̮œǖ̆Ȗı֎էՔŇ"]],encodeOffsets:[[[57537,27568]],[[47222,39811]]]},properties:{name:"Iran",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŗP“ģêɉũȳԼұłƻI±»ó@·Z©heɞyNJăҪ̯ƎPœeƶʯâ¿ļŷĬšÛNj×Ǚ@ͯ˦YJѱˆƯǺ˕ûqċfdzìƅ{Gy˭ĪзąȯϳŗDžÙóƋƍƧ൝Ŋ߉վ෗ਚഃۀğž˻²˗¢ҷèŮĴ›Ĝǥɣ࣊ᇴࢴǪ˸ƆܸµزĶŌ̺êӐјĆhưĸĘĦ†TĀ‹ÌSž˜ӪşƊGƪúĐW”gŠƒbŸMųäך‚Ü¢ǢIJÂE¾O†oʎ֝º½–CªU†“ĸ˹ΐNj͢AĘ¡U{åťÇűŠǝ˜ĿkÍûŸķ©ȯȗ“ȋ"],encodeOffsets:[[46733,35404]]},properties:{name:"Iraq",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ߔźѫɋΜėŇɋκpåDZʴÈҤĻƿƏǦˍϏʙ˹H÷ɃϝƣݽťڵʻধŷŋƫקŇಙŲʝŌäIJȥÉуǨఽį¥ɌLjû˔¢،˸ӷÅĒǜ̢Ĥџỵ̈ɚଏ³ǧŀਦƶݬDĦŞؕR֒ɂࢷŐ࠹ơӛİȒø͢ÛȡȨАćˤÐҟČʶ€ɅŘ̀NeƂθǗ̠ššƃƤ”GƊуŤϴ®ՍÔƠúѦBࡨͻ‚ʅʅeѼϧ˚̶̌ÅȺѼ׾˧ĚʶҌĞעϙŽΤ͠]̚ƭͮȨ˄Ý̔бɂʔÜɜQϊʉ"],encodeOffsets:[[-15916,67818]]},properties:{name:"Iceland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǷÿGkcȋÉNå¤a–çjģlŅ×¯Ĺ¯ƫ†ȹWŸqsPclMÐlØkÜÉɅŭÏȟӐĤБྣÍßփบĒìDÐƨƎ£¸NPǎʮβীʬOϨ̚œЛŁǷ"],encodeOffsets:[[36647,33521]]},properties:{name:"Israel",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Бٗǒ͹Ƶ̯ԣĢ̝ʲȥEء͆ѽĬǣȎʤ̨ƚů͜Ƃкǯ૤Ơ͊ŚàÏ"],["@@µċ¯ŮĦ¡"],["@@ã•Īľ…ç"],["@@Ƣ͏ƋșåएыÔ÷ɳˉ‹ȗɼňՒŝàẦɿ̠†ɘ̈Áր΂͚ȫbœ"],["@@rŧʍzɜĮ"],["@@ǰ‡Fgeq˙½¥M}PmlYúLÂǁƘģģýûƸΟ@޵˙¡ǡʢɯɳȷŮлঘշϒݍѾϏՆʻ࠸ɛ͑ႮܛьηįͱɟĬdz˾Ͽ¼ǹƌɃ™ͿׯӾ̯º͍ҵǕÑ͡Чϻ˩EߥȜӢˌŪ\\ƴѣࢤدȾEȘƳǘΧÍĶŊΓêʻΤթPϩȎ࠱یзĒvŪϫʹNj€˝࠘டЌٕҝљğŨͮˋuΙǔþа̛ȬόƠÊŢ̗̠ȘƺˆkÖoǖ‚֒ĔöȬŴîÈÀԔôǗ̢ƙP_£ÃƨƕÐ`ư̾ĎɶĂ]zBĐƧ¨SºAۨĆl°KĒĽS¢Teŀy¶‰xMˆnÂv®¦^¸LȠÏi¸W´PΠŊvSĎAĠOЫÎeĊKÈP€j¾ÐÞĢ’ǂNĂ^ȼWͦĆxOJ[‰ƒ‡—p¥Īċ¾Ù¸µú}ׄċƶ]ŜEǮ‡gµ—[׃ƍćlė"]],encodeOffsets:[[[15951,39138]],[[8683,40006]],[[8485,42025]],[[9864,41864]],[[10645,43887]],[[13744,47322]]]},properties:{name:"Italy",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ފʱŞȧ˃¡˟ĞùĿƧ€íƑƁIJͿšɵʞʛĪļƈ˾ØԦÃ"],encodeOffsets:[[-79115,18901]]},properties:{name:"Jamaica",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǻ¯`øǜ‡"],encodeOffsets:[[-2067,50413]]},properties:{name:"Jersey",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ůį…YӱŭɛÇԱŽɹÍɍÃ࡬࠯į³NjāgcacãƗ¿őka׵Ň©…ĥƑīƟNjŝǵŻऱŸnǞВྤĸْiƂdȌHlǸĀӬ̇ϒÏ࿦ࢲɤࣉǦžœěŭij"],encodeOffsets:[[40085,32896]]},properties:{name:"Jordan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǩŽúĆƐ«Ÿç"],["@@Ɓƙ©öǾŶQÑ"],["@@ƥS^ŜƈŇ"],["@@͡ǭÁʑų·ɊԌDŽuƂǸHȕ"],["@@ĉNPƜúƩ"],["@@ïåǝĺѴɤȥʷ"],["@@ƩDµļĠÞŪÛiŁ"],["@@õ DŽ͔čγ"],["@@ŝȂ®ãý"],["@@Ĺ\\¤ɺƄh‚Ǜįġ"],["@@ȔōǛŸwƮ"],["@@áĤĦƲÔŝėŷ"],["@@ķŸǘƺßř"],["@@ķQ˜IJàğ"],["@@Ѯ@ƅˡ̠g£ŗżȡ˻Ε˕ࢻɡ‚xƱ΋ȭø׈ķXĉŽ‚͓͙Ĩ­İٖxŴőƘN˒ϐѼţŒ¦Ʀʹ̄ģÓ¤ɇŶD\\ŵʉÎʉǙ¸żŭˮˀǫΉ͔|ĜȠkeĬҐǔĴǚȚĀȦ³Ȇɥ"],["@@Ʈȣ“¶Ô"],["@@ÿlzƨƉ"],["@@ɼ{ĐͿ̣dzǏ̡ȉǜ˛À̅ŵʷѣơ÷ƋTÊŠǷ\\çќ͉÷Ԣ̌ʖ;ɐƋ͜ìlȐ̄ĖΆû"],["@@č»ÍĄƜ‡"],["@@ĝïƁü˲ɀÑɋ"],["@@ıbƸˈÅ˩"],["@@ōqĪö Úŗ"],["@@ijPrȾɈȦ¥ȫĸSȗȳ"],["@@Ȑ‚sֳ̰γưܥÛˋ̇̕á̟̝ÅūǃࢅΫݑʦыΓǷđˡѕɡc͎ɪʐəÔƹȽtɓǛŲȋiƍρȽȁ‡̘ЦƹČѽѹթÌЙçǴdžʽ¾ûďtʬý^ɫ̹̈ȳuġѱū΍ԫȃÙȱÈ˙Ϣwʀˆˢ֧Ůб§ɹƿۛȋС±˿àƕУͽǶۓÛ{ʊĬŌ̌j೎ईࢶGৌȬŸȅ̔mȈĔNJƊẘՊՀŪՠЖŞΡͻİɽȖëɤǖڲɢӆՂДɊςڂɚزÏȘɅÆɨ˸ó˴̜ȼÂ̜ʄOĸ̫ǀĢƶ·ł˖ύÇDĪŔɄʖŏ"],["@@¥ĴńˆÝŻ"],["@@ų†¤ĀĐŅ"],["@@Á¿ǒĐŏ"],["@@ݠǁռͲȕ֑ǚ̡аìމ͕ߝijґϳljΗ୕ӠύΝǣɵǴȓHŻɟۘЧŵÉ˷àɱʟʥí÷ŤĦ˰ɭ̬rʮӔ̼‘̊ظĻȤČ͘ৠƫ֢ìȶɪĞߒ۵߆ҭ"]],encodeOffsets:[[[126862,24863]],[[127277,25105]],[[128455,25337]],[[131337,27293]],[[132095,28387]],[[132560,28886]],[[133758,30990]],[[134103,31127]],[[133511,33202]],[[133205,33004]],[[131754,33571]],[[132175,33629]],[[132600,34021]],[[132911,34559]],[[134323,34410]],[[135441,34760]],[[132383,34943]],[[137583,35079]],[[137577,35312]],[[138172,35112]],[[132491,35179]],[[136572,37073]],[[141665,38730]],[[144619,42366]],[[142829,43091]],[[144687,46203]],[[144459,46421]],[[147277,45176]]]},properties:{name:"Japan",childNum:28}},{geometry:{type:"Polygon",coordinates:["@@ķȤ›øÍŖøĤ£Dz»Ǣ™ŸƒłEŶRÚ^́Njɉŋĵ½"],encodeOffsets:[[78898,35953]]},properties:{name:"Siachen Glacier",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǁèĪŨÑŏŪÿ"],["@@ѝ‰ɑѩڥťȉЁŌ։ƟDžחȝijŢճCࠣǺ׷೹ʠƝ÷ʣɋĀˑ·Ʌǂ൏˽ƿĻԢƙŃԯβ޻ͩıŰƛ˯śNқśĨűĢ㚽vȍƴĀbᅛǔ˹™řUӝTûR§GěđՓØ۳˰˕ĝˣʼnęʥyğÒƹåVă¢ƒŒΫ´ďÞǭ’ɣâџÄȷ¯û`Ɠ£̧ͥ®ûທەӍңWɇɿ„ȳźÆȂƩƘਏcǯۆЩVúࠢʟħʳζӹͼϳƍਡÞ৻ŗࠛݸᏟঊᓡһBᶡҗsӣ֚؝̶ࣃƿҿ̯ĒࠖוĠʁʐˏ`LʶЃװнŐáŖƂƌ॒ý҅͠΀ξຈuΩȮ̤ԴÅ֐ӱŔ́Ƌ߭ʀકѝҏÛīƳׅɦbŶͶdڕ޸ֻĄǃÁȑаͻư–ͤˢ̂ȕǼòˤҒ֊ɶjՊѩΤÐőֺזȪƦȚؼǦҠτ̶çƲƟ݀Ƞ̐ȑ٤@ڪχΒщòЎ࢚έڲξѨžβƧͮǞѨwѲ̳ӎ×ÐŅʐöȸɦ̮ƝѤbϔƒƔ϶ࣹ˜ιʂ߸ͺȃ˶ɰʠ࢈„ΡȈϯº~ƄʲÞұĊɄͮזÓᒂπՄ™͜ʄᖮ̔¨Ƹ٪Ȕ৤ȏҲŤϖץý͗ފMƴĶɖ͑ƨNJԜƩМîͿ˭ĎɓϞƠвōČƆ٦ȺǼǐ୴̒ƵʟȝNÂŇୀهᅂᐳπƞrȦʌĢͤđ±ȇˈWàǻࡸWɤƒԄĐӴȁ͆҉֖ƫȲϏߖĭдɸ£ǵגБ"]],encodeOffsets:[[[51389,45932]],[[89419,50264]]]},properties:{name:"Kazakhstan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Κi²ƿk§mŽNţɒ˷ݒ³ȾƁڒяŢćŜ}Ȑ[ƀIݘťƎĸŐƪªĆޢΠɌǹǚħŶDĠdɌ`ŬAɩ͙ɭ͛̓͗^ᶻɪ̋ƬȕĂĻVĹɟȿ̓áPȷɇɧΟůęҿɉ˛̵ݵɥǷഩ৐ŠϞḭ႘’নǾδɀɚÒƦˈǞƬЌBŤYǚå̘nÀϩָ“ǎO°˜njGœ›”Ł”ďäj´­hſ˦ǜǘǠǜɔɊȨȠǦǞƸƲ¶Ņ"],encodeOffsets:[[36174,5494]]},properties:{name:"Kenya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@·ƭ鬿¨•”ɛןŪȓ²\\Ú[zƒl֝ǫʡNJৡ¿«ʪ†úz¨¸kȋšTIÒE~мƴՐȓ͢ɾ˂‚͜œςʌɐWZŴǞ©ѺʬЉ”ʛƤÍGåsuXKþa°£\\ÁmÿnãPiĮÅLJ^³t‰ôwO‡}Hŕ»¹AáˆWǥ_Yʁ|ȿÔŃƨҫƞ֨ϬƦ ǒîHpgjç˜āˆ³ec­ų̈ͦƔ¤ü_ȸ°Ͷ½ĪEɤãǬĒÝά³„‹Ą¡æUÑƺzĠĚʦˤŊ˖Ğ۴˯Ք×ĜǍHüQӞSŘV˼šᅜǓÜġþ»Ôµ¼ÁвÏŲġŜħŒʼnWaeUʳcÍg׹࡯˵Ǘčč•ãa÷ȇǥƕsšJăřԁ á_ë•īƏ¡i‹cã›íćŅë¹Ý»â͗ŅǍFĹˎ…DɽŭʼnuęGśšÃÅ|ċΙLJƙ›Ɓcÿ«Ã¯ďy£iyH‹˜£‚ěOy…›¥›ěuë[ƉXéc§}YϿr","@@ćXÍ`]@LgÐÓ¬Gø‹|","@@nƀů€³ÎeF›ÁìăAaå¬SüC¨R"],encodeOffsets:[[74384,40332],[72361,40812],[72916,40850]]},properties:{name:"Kyrgyzstan",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ұȲʃđŸĮƴȆǃɎƭȍǛOwҠƩ˂]ÉǓ͐f˲ɋȴƍݞǮt̨ҪʒǐೢĄʜǛ¬®˜²\\TFwl¹Ž·ĖùƴžǪÏüĝÖ«ƌE¶ņyàûŖsä|\\Ƃ`t`†ô˜SòWü¼°Â|{„™ˆuȍԫž«ŠiĀ^rC°ÂŒ†‚S BƸƨô‹†PĖŢƿӟɰׁʼn΁€֓ħĕƱšљ˙ʉ}]ɗͣÒŽĻJ˹ʰɍFȱʻÎćł̋ùęɧÈBǭǑƕΣĻ"],encodeOffsets:[[106933,10662]]},properties:{name:"Cambodia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƔĭͷƌŤ¯ÒĊÝâͳiĥ"],["@@ÄŃőÞΦ"]],encodeOffsets:[[[-161118,1901]],[[-163163,4018]]]},properties:{name:"Kiribati",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƉöƠŰӂ°yƣҝı"],["@@ģÖȆĎġƣ"],["@@ƑŘÒ ĀƷ"],["@@UćƳv“ŞȞË"],["@@ÿ½ƁňƮŤÔǭ"],["@@IōýfWǘĠï"],["@@࢚ೃ]ࡍƚCŹҫ˽̿ӅkÉȗ΁Ŷ˓ÉBȝʽĐÚǓŻƋŵêÖǬ̋ˇţÖȇǕɣ̠ɖrÌńơAŇˤ˔ΖĿÜɞȌdzʜ«ѸʳCiä˜Ȣʢ·òĽĘĪȗɊĥӴϦфߖr˰ˆ"]],encodeOffsets:[[[129359,34021]],[[129264,35196]],[[129201,35565]],[[131140,35642]],[[131831,35634]],[[129558,38643]],[[131456,39551]]]},properties:{name:"Korea",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@āYĉǀĔưƎǑÕƃ"],["@@٫SȧϨݵĚƌƎÚôŘdžȰϴиĆĠiȎÿvŭŚəƣšȹȉˢ͢ڿ"]],encodeOffsets:[[[49434,30336]],[[49606,29228]]]},properties:{name:"Kuwait",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ϤЋâȓÞD‚€xödRŒŁĉΑ‚ÁȄʻĚ©Ɇ»ƠéϺȾżýȠƣ§û­sљ‘™rcĖU収J‘`ÁlgŲE”ƒ’ñAÃħĩYÉ·çŽŕ•OʉØǓMEe{ŽçXå‡¿ă¯‰sI‡੊ջA…µĵxù̀Ɂ¼ÝÎÿĒȷˆ˓ɚǕÄÕþšÜ£pÝP±ZƛĢƃꑪŽ”ˆfU–ıŽ™ϸʹGû}Ɵéo‰ĪƷ¸·Ȏƙ¶å€¯gřх½ÙÝrÃj™U­Jĥ­“§ď…OóŒƷƧŸAT…­ÁqDÿ]‰j¬Ó¬Çއvƒš{|ɵđ…ós_Ɓ_{[tãþŕxßµŅƋFÕ¬ûĞǩÐƳĕú¸mºCx¼lĊ¤ä°®¸l¼tɆpöYĠ—ð@ňŀȚpĈDÒe˜ȉŊNƄÙ¦Ƴ²ďÊȓʲËƴMȤ`NJ´ȊÛƊʽȦėİŃƢŭȒĉǧoęlƍÆšŠķJß]‹‡E…€…auÁg§‹µë‘ğȳé÷­•‘JygK™`eĀŽÿhę¾ǡƂŸNǓñóӇ³f™óŧĻËQQšÿȷȁ¿eǑĔȢҺMŦñĶEˆȪ҈õ̎pƆQ¾חJīǠĺΠǝǪċŸßÿsXPºN²°ǼÆŠÜÆèzƂB¶ˆIhËJwŽ^ÐƔɒ͆Ǽ¸Č¶kĩœÅQÃZ­pu†[ƌ ĊFƌëpN²¢bPÝĒrʔGƠM¤DZژnªªªŔŠr€RlIæđƸ¨ÈuŠƒ"],encodeOffsets:[[104579,22917]]},properties:{name:"Lao PDR",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ϧ̙ʫPҐ঒ˠ͌΄z¯ƃƦÉäǯʳʝòï͇ñ¤ƕƓŹ"],encodeOffsets:[[36730,34235]]},properties:{name:"Lebanon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àūìЭɛίʨƟʲƒĀ§òǑÒijĀWƴǰʓƻՑV˿|ȅ׵Ȫܻ϶१ࡰ࡝ԢǹȀȪ˜͞ʲȘȄÞʾ®°ƂÀÜʠ¨Hð€ê÷ʂĜɜLJŰգÿʍ̄ǗȒžȘΨƢʼn"],encodeOffsets:[[-8690,7740]]},properties:{name:"Liberia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʡˏĞտɏБɶࡥ@᳿@᳽Aေ࠽M@нủཤ↏Ⴒࡉϕٛ̓؟Ҽౙ˴ϯڞۑȦʑÅşĘɉخҫؠšɢ͢ʠŕךƘϤġୢе߀ǬĪ͂ƄŒŽņżƀǠďֲƈȆǜ¨ŐnjǾŶƮüƎìDŽöŮÌ~ºCªãİ@ŞLĬP̌ǼŸÁƀsϼȟЊµѾĨཤѯѼ߷ᅀн۶їϢűӸȈͰЌƻܖǐʹо̦ࡠ̚Ҩeݺʥ`ʋƲı۾ǡؾsɮˡ"],encodeOffsets:[[25755,32415]]},properties:{name:"Libya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@³ĕķŰƒȒZɫ"],encodeOffsets:[[-62356,14154]]},properties:{name:"Saint Lucia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@|ÙſŊń¯"],["@@ɪaϬίѠܣŪצʃϞܟY͙ȋЍލϑϧ~ƟŦȣ֪ũ଒ŠĦ†ɵŪ݌ƜʾY̰˼ą͏ƚÁƎ"]],encodeOffsets:[[[81792,9268]],[[81902,10049]]]},properties:{name:"Sri Lanka",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ɉkɛ̓Ñęʭ€͝˒ƛ˴ŗˆȦĚψӢȊÈŀĀŰàȪðĤl–Z֨ёîȕ‹Ĺ±Ŀŵő™ǿϛǧ"],encodeOffsets:[[29335,-30849]]},properties:{name:"Lesotho",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@µPǸˤƁ˳"],["@@و~’m¦™xʁßɹÅkƩX™u‰ĵkoϙçåx~Ս×jǠë¶ñ’ĥ”éd›JwšfépÏLµïŖHЊʸɏǀгJ۱ǚDdžƧ̞OǮO ɦIJ˶ńβüڔUþ_Ú³ÜN܊ަđڂŒƖǓԀăްοC›qÛ¡ĉ¥ÛW{ŽqƼWâY`iƥţʹR“]Ùķç“Ň_ėwŗǛTŅMu‘yÃÙ«éiTiŪeÀĥlj‘"]],encodeOffsets:[[[21461,56606]],[[26187,55440]]]},properties:{name:"Lithuania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ţ̃ƍž½[}¿Q©R}nyZÝ`…„YЃɼš–|¨¦ÐĠîĨYjNEMïz»È·ÊyǸõ"],encodeOffsets:[[6643,50994]]},properties:{name:"Luxembourg",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӑ́ѱ‚ϫƍޯπӿĄƕǔځőʵÆԯŒÛ‰ÝMƕÔړV̓åÝU˵Ńɥırوքغۚź؞Փ̢ıؠɼ¹Զ’IĄ–ոžƌ­͘õ՜ˍȠÏθàȄÏŞYŤCÎÿɐħ‚oTO«LJ̋Ɩl–[šĥĬşĄ¯P‡¸ĻnÑT±­į"],encodeOffsets:[[28824,57491]]},properties:{name:"Latvia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řŰƒ࢖Ɨ˲ϩ̦Տۄ̥Ęl†Ǩþ®_˞@˒Ěڔ˫êFמƵTЋːǓĮ˟ŮåƄ¯ÆĕOċUïǨī±Ǔc“S͇ĔŹZå÷gFGł]f‘FƿË…F¿\\ÕÀĥ…£qÝĉÑġ•Sí½·ėµÏÏNŭǁg›]«ƒ"],encodeOffsets:[[28890,46542]]},properties:{name:"Moldova",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥƷǘ͠ñǧ"],["@@ʼnkkŀIJÀ„Ɠ"],["@@Ͱ՝ʢඇȼչɱәǁƄŃ̂ȓÃƦ߷Ó˟ˉΧzփīο஭₵́గ͋ލϗ̥Ӎãճ˩ʫOছӚ̫אª٪ϧ६tϜǰӜʤƪԖ੎šдǭ̔KˬNjϞ»ݬϊׄ°Тζ˜˄ȊĴïɌšĐƮϪÜȰƽËǰŦǚϼʚƂǷMʆɔ͒Ħ¬\\ʝʞ̺dž‡LJʬȈΆĥź¶ŨĊÈǺĻҔϞļάŏ̲Ū‚ɲ̠˨̑"]],encodeOffsets:[[[51135,-17308]],[[49503,-13684]],[[50728,-12730]]]},properties:{name:"Madagascar",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōAɼìŭé"],["@@ƾǸöƩɳ"],["@@ĕ¥ŘŘñ"],["@@zĥƉdžŐß"],["@@ȩȴŘи‡ύŚʝ"],["@@Ŀƻ–Ǥêg"],["@@Ƶ†ĴɞÂʣ"],["@@Ûȣȡàú̚ŜŒèȡ"],["@@˹Ɋùɠ͖ɩžȿ"],["@@ѫ೑ƥཉâͻϖҕÿʓtʚ̵Ϯӊહؘ܇Ɣѵјҍţ^ʚŇÿÞҎÉ͒ƽ˶̇ނɜ֘ŽόǨϼ”¼ƿ͊ÓɒƘËɶÿUזϲž͆ǜǼŜࣀ҄ɠଔʜϬ†َƁÀČƱxˬfǰƝªɩŻ̩еұi̳ȷȋ˜éȄ|ȟșFÿż|ɕۻĵƟƣɂr˄ɛ̯ȑuʃЗ˝LyſໝBGӁǟDǵBθ͙ɠƅ¨ÝtÇ@¯¸•Ėy®£@‘÷SĉZ÷ÙCƳ@ɵ@ϡ@ʫAȃ̭ĿǩĕƥĦȹqŸ›s]ÛΗඳ౐ϩȚ©·ΦǧևƶØĪǟyËŎƋšȆË˭࣡Пԁ„̓ƸӍ¶ٟ˴ȯȖޭƺঁКْ࣏ٿĔدɚЃцࡵИҗ֖ƿΆΆnjÇƦƹ²ɲʼz̸ȇņǽ̴H˶ūʨ॥ੈۣӺȨĥ^ňρłˣϼȖ]թˈùżȭ³ŤɆʻšǁŔ‘ʲȎɮê«ƅʀǧƪɫOǃ̈́ηźǷʾÀˎӻĔ࢑ࢪݫൎXѺӝƖŕDzǁÒǛĹڅͦŦɇýЫ˨॓ڜջɌχʚŅĦʉȈóŘԉͼʩϼ܃ƎćăʤȎƟɺޗԖޟxѵʖȭÂȪʀƑ̆љɌƳÙˏѕɟ̙װ૏ߜij[ɩʢF؜ʵբե̴œ̦ĭޞÍȱȶԓɄāǴϡʰ—Ěϼ·ɨöCąȜčõȴě^Ǿаݛިإͼ͙ࢢȟƔ‹Ȝˡ̦¹ƜĐĮȑŬɽҊ፺ƴġǧẘষᛠJFϚ๠WʢˉচگЌ߿ͦʓߊ͙ɶǾɸҊ̄ĴۢāּԁϪܕڔٻ¤Э̊ԡผәȖø"]],encodeOffsets:[[[-93884,19126]],[[-89026,20791]],[[-109058,22130]],[[-113220,25604]],[[-114746,25135]],[[-113766,26646]],[[-117934,28744]],[[-114895,29702]],[[-115871,29750]],[[-99477,26585]]]},properties:{name:"Mexico",childNum:10}},{geometry:{type:"Polygon",coordinates:["@@аˏƖɇó͹ōI·Źķġkʹ’DžwǵƱŷ¯©wԣeɉàȃ̂ÞԎƆ@¬ǔʂĎȐÑĒĶƠxB@Ɇ²ѼV"],encodeOffsets:[[22881,43330]]},properties:{name:"Macedonia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Nᅫħ՛ɹտ˕ǿ_ŃύÒ·ïෛÍ̑ʑؗÏϟŮѱWʏȑޣ̧ŝʍЉºʋɷÝʫʡV­ͅȍćΛȀǟăƫƿĐ˙ɇķª˭ɩɗӵȻŽϝȫ˩ƒԭ\\řMų™©…W¡ŃĥéNķºEd¤úD~¹ˌțƁçtõÐmoS±KÅnĵo—ɏMÇǗ̱ǔɵòˡɝaƆɓƐÏъˡfɤ̜ΡʴHȾȍЖ̏ÀŒǫͫȍѩƶιˁȉʴ̹DžǓƸĨǦAҌȵάǑ­ȇˊĀȰ·˦ǫɄ«̎ƨÁpjºɘԶìòƤŀ WюЋɄɬي£жîAĮl¢Ú°`ŵ–oẀKŸڊűƆijńyȬyȾyȾyȼíظǙฮ̵᨜íظ³к{ȾuȒʴ@ˠ@ˌBی@ᝀ༷᣾ၭjʅϐəØƩௐѹŀσŕʵȤĭܺƀ"],encodeOffsets:[[4330,19603]]},properties:{name:"Mali",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʼníƀǸĿ"],encodeOffsets:[[14916,36714]]},properties:{name:"Malta",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ñƤƤğı"],["@@¾dzDžŬňÈ"],["@@sǥÿz·ȌƬŸ"],["@@¥ưŦŅÿ©"],["@@ÁģÁÊńš"],["@@žĽũřC˼Đã"],["@@KƏ™ɤ¦ē"],["@@ÑHĀĢmĩ"],["@@ÅćoŪǴDzĽɓ"],["@@⬾ǘ„Ƀ"],["@@ǟƸɎC­Ƴ"],["@@Țʼn™ąũKĥƚÐÂ"],["@@lřčǒâ·"],["@@ZăĝɐĄƋ"],["@@·ċͅǻõljŸi}]ÏxÌIJgµ‡ƁAçyÛÅÅş¯ǻM±ijÀ£ŠÃRƛĉɗŒxdzΉ§ƃ˛қë̙¼ǕʏÑܹ̹ÏɒȑØб؜ۑȆթƦò¬ÅÏƝȍŋ‡ֵ̭ƏVȑ̲ԭӊե[ֻʀЛǮ٣Υ֧εύ¯ЃŝŽćբǮʼÈԖŔňȫf¼ФąjàĒđۂ̿ی§˧ÆUϖDžЮĠ@ǧǦďࡢŁŨŢҤ̍ƧӔ̉ʲ¶̵ťˏ˫ǣȯɚŖ˕ҽɳ̽ϑó„ž˺ƛɫȟO¥̬șɹ–ԜɗΗǽß̬ಬΙ঎ÚRƧŸqͨĭ͙ȉńdz˾˨ŋƤǞ͗ˮĄŘϩƂĵDZŅǼÆʬȧǙÀƎŽȈYɣͱиŧфŶŬʨőƊUЈOŽĪź‚B¦wnjďĚǦúŴé̞ŀˌŪ¤b ޴łÛȘf͢œȀϚìŸĮƎǮϰųİĪȲ˘ʾpŤàؐ°E|kjČQʄŢƖࠪԶԚˆƀƍŰcD¢ǝɶeÚâƸò¾ʚȆ“ĖjŎ„ŠÚČĚƀ¾Nϴ˥ȤՕżĚǖëôڋ­ԅķĭüǫ˓ɷDž_ŏɹDž“ç͍Żā©ʃƪəťˋծǚԼVƃǻžɽ€ηҰĹöğ˃۫،ćpɧǨɷϨQЌʄºƿ"]],encodeOffsets:[[[100539,10172]],[[100567,11216]],[[100920,12027]],[[100881,12191]],[[100420,12688]],[[100776,12901]],[[100675,13414]],[[97081,16199]],[[96745,16329]],[[99917,16644]],[[95940,19133]],[[95964,20028]],[[95736,20370]],[[95243,20403]],[[103567,22086]]]},properties:{name:"Myanmar",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@Ϡʉ֢˯ʑÉTdzɳÑőŸ̽ϥ¾ʭݿ׈ĠæáŖmLjb|z^Ŕ`CƬĚÚ¬ĐÀìMš­¢NTÄąŞV~p`®Sª]„TªP|Crë"],encodeOffsets:[[19680,44493]]},properties:{name:"Montenegro",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ܷ˵ԛӉߧˋēcշkџ€୵ƅݷʛҭȇįƒå×Å¡ËiНÂ@ȀNjʵ£ʉ՛ɊлðΗÆƷ¸ˁʆåpé^͹ZӕÆε®đNџğ቙ȆۏÍѳҲ˫֬ǙðrȨՙÖ৑ԀؓúǫqŽCɁvţ„ϏP҅Šơkǹˢ˸іIÎ£Ô‰ĀØВÙŔ“ÒÏ~ëfǿʀÑȂßþa¶clĹtóšÙŎÍR¡•ái­FǻƬçrγuÛ¢­áZſÌę¦QĈ¥ÈēhēÌˣêäŸȓìõøŊĴ³äRŠUžĸD¬n”„òŠÞǐφ†ǖ‹‚âŠXžroŽUĐzÐ~n”‚Ÿ_â¤ĖØdSƼΆdžԐňºŒž ɘĠDzŒÈV’NØC‚®̜ƠʦCôRƎƎÒ»ǚī°I¶x’ÌÞVîWƌƣ॰¡Ĕ˫ɔǕ¼H˜`Dz@ƴĝΊoҘòȾć֞eȈŵŶVȖƜΐĒȺʎ|ȚœˆÇˆ£”ǡ˸ɸоҌˊɆˈࡺ̥ĨeǐMȪGÊY܂ɕDŽ^ɀʔ˚H«c›Tĝ˜µjȃĐģyŏࡠ͓ˢ¿ø`ânɶmરːۮƛŴ\\ǦVŘ_ȖĭČġĒ­ø—ĪEʆGʈ‡¤ʙψɏĬ¯üeԼXǼÚu֞ċȔ¦ʀÝIJp̈́ŚŎªþ[մèΒĞǠsĞbĞœŠ¢ŒÜÔĖżÞńÊņÆ؊ɢϐ‘ɖăɬǃø‹Ä_ƆSňKàtŌžǪºèCŔǚµŎąܥ਷{ĹJğUćū¿ĩ±üɋʀƿĄræàƀÌðD¾_ŔIŜtĞJŠa¨aIJ}ǺŝÆ]Ζ˰ؘGΓļķÎÃĶŘ‘ÄՊчƾʕƻij›“kïCūnţYƛrǡĆħt­[ɯ×TËSƧXă\\ŷïWˣůǍÐĝC_[ƒ‰čBo{Ћvʝĉ̋ͷ`“X¥—³ѡɿѥËȱWƱ”ƭ{şƿɃŷñáǟÙȋŏÅcҍÄ˽Öğ†ćĀó ʣJãfœcзבѾҫ­œ"],encodeOffsets:[[114564,44729]]},properties:{name:"Mongolia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@èЦÏō"],encodeOffsets:[[149250,15497]]},properties:{name:"N. Mariana Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@MˎÃȨfɜĥ¼Ž఺ƽӌɇΈɏࣤŢĒࡂࡄÛƊŜАр֦ǷԄÔʈųƎʘӦĭఐÒƞࡏʄס;ڡz•̒Əո᠂ࠒκүبŤŌơˆחʛҁʂЩ;χƮśŸƯº£ÞGÒZdlSʐ§ƚ©ÆU\\ÚƺĮǸȬˆĠ| ŽŠČĐࣈuzgNJƁǦǛɞħŢŅƌȝɈͷǤÇȆEĜƹߎȼЌ®ĐƖZŐEȈHȤQðkºFÊhżŊłCƞéþÑ`½Ī‰֤ŞͦťƚˆƸĂǐʊӒijиȸۢɊƠüЌ̚ŰǓĿēĢÅǍуň֟›ЧĀţť̇ŎCvख़ĶûÍ˗ňİÎʟȏͭ„ũ֕ߵNjÍ®šٓҋ߃ɧݳйʱɇ҇ٵş¨wţ͍ōݿۍʣĤĚĵ§յɸ˩ʊ܁¢طʵÖ˶Öŏž׷ǣۭƞu©ȭлӭၽ۷̷ћɒɛĘƺkƙ™ӟEe҃YŹzñK"],encodeOffsets:[[32884,-27483]]},properties:{name:"Mozambique",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÃćĐŒƀ}Ƈ"],["@@ŷډṿL³Ʀ‡S“™k£Bĭгíً¤ɃɫэЌʯǙËƱ™ȽűDž¹oiʭŦ˛Ȱ̵φʯЦ̅ĨĥqγζׅĆٷljЃ ǝ˝ěmƯƒá@ϖÔ˄ζઌƵबʧ̞ǬŴŝȠيȁΦljeɇϞş¥ȝ_þČβพD६BϪBȖ@Ȗ@Ŷ@QŐOĘQŢSޗՠ·˚ĸưŖöƀĔĴà¾hƾx̌ŲNц@΄@Ҝ@Ŗ@ɮ@΄@Ɍ൞@޴@̼@ƾ@Ǡ@@Ī@Ǝ@ȌAȎ@ǖ@̪ἢኑۋ@ˋA˟@ʳ@ǔก̶ᨛǚอîطzȻzȽ´ЩĴŃŲƅ"]],encodeOffsets:[[[-16766,20180]],[[-5488,16674]]]},properties:{name:"Mauritania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ӓ~Ė–Á"],encodeOffsets:[[-63640,17143]]},properties:{name:"Montserrat",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@˩¶ĈȲȮǎŔȇşɭ"],encodeOffsets:[[59035,-20976]]},properties:{name:"Mauritius",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŏFƕY“YÍȻЋƺߍFěÈȅ͸ǣȞɇņƋĨšǜɝƂǥžȃďࣇ‰ċŸğ{ȫ‡ĭǷÙƹV[ªÅ¨ƙTʏckÑYÝH¹¤ ưƭŜͽψʁЪʜ҂‡טŋƢاţЧՄƕËƷːŃĊʠ̬PѰҌ̔Ɵ’óǐªΠÑɰˆ\\Ĥȸñʲ̴ʤĝƌ_’QĮǻǔtì\\üďĒďžŷeÙǸࠀəĚƦ˚ȣȾёĈҩ¹ʍƔɕĮ« Ínī"],encodeOffsets:[[35799,-11856]]},properties:{name:"Malawi",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ßnnˤ²̑"],["@@ûˆ²ĖŠŝ"],["@@ȡa¸þƪÛ"],["@@ćW°ƺþµ¥ī"],["@@ÐęƥăćžǞ "],["@@ȪÏǎʹӀϡˌҷpྕ̼̑΀ܛ‚˭ŕrŏǰTƙʟIǷĵĻǼՉʺளࡼJ̲ӭ״ä´Ʊ̎ɫഢȋϪŤȮìŏΆ÷ĴǷưEÑЅŎőϊɪĺŇǐ ȒΖ"],["@@ЉƖӯ„ջmƳŽȋঃǩQŇŋ‹ɕĊģͣɭšɩˋѹԟcɽǕԭǖÁŐϻOʑĵěʝɧōשԃǁ܏نīʀúŎȢɛР›ܾ˕ǍƌȪӨ¹ȪȢDÌ̤ఎΚ޾ࣨŞ̊Ӹүƾ̘ÿ˚ɾƴäѓƸ‹ųҠȠ„ưƈœːƺDŽŘÏŘæܺନĎų¿ȃ˺̨Đ{ÄəˆƑìƋ¥̉ţįфƚĦDžƱَå͊ČȰǵՆƯ˜ĕŸůʳŗշ…ÙƇ̈́˛[ĻґŇʽþĹơ"],["@@½«aŨǚüFŋĿ«"]],encodeOffsets:[[[114063,2474]],[[106723,2798]],[[120714,4287]],[[102696,5422]],[[102245,6621]],[[104552,6393]],[[120397,4271]],[[119954,7341]]]},properties:{name:"Malaysia",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ݨƈϪ‹ɦ§Ɏȋ̋yͅșʋ|եν͋ϰስˍJᵥࡃFᙵ@ᲃ@šυĻȏƃÉƙë‹܍¬ܧǂċǒVȜƝŘōĐĻµ·…ù›mŋµŇ‡ŝ폛ؓնͅӤǝ݆Ɵdžʼnઆ˯ۨๆࡗಂʁؚ׭੐ֵި•ɀRфƈnĤ¸ǘ•ĘE’PDŽMՌȬʠËҔ̱ᅌfሼSҺ͹ਨ»Ҫſೠƶࢴǒ"],encodeOffsets:[[23942,-18064]]},properties:{name:"Namibia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@č_@ĈĎç"],["@@ņ]eƝŹsŷȼƤ²ný"],["@@˟Ǝ‘ÚƂĴőêȰYĒΫ"],["@@Ȟ‰ٌХЄл੾ەxțǑ­ʱĶಓ߼ُںğ˶Ťĕ"]],encodeOffsets:[[[171566,-23166]],[[172044,-21944]],[[171419,-21668]],[[168144,-20731]]]},properties:{name:"New Caledonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ǠఉΦӋgȅ͂͗ȓωɕᠵङঃޛଵ¶ȷĎίƭEēϝȅǻĹLJȝ౉ɺЛ“ȷ¥›UӍϫΏVϛðʛŸ̡Țŝ€ƕ^ؙ˱ɅĜщҨīJ̃Đ̅ĜÛ[­mĵáӝqѡɳǙֵʧȵ©۫ڑׂσƋp˙ˇΌźƂķȢґÇӟ΀D˖DzMө̄ǁɦŸɰǿɄ®ΐؘÐ̒ʒොθðώÑ`ń˖ȀɺրĨ՜Mᅬഞ˰൪୨␤ᕨౚ˳ؠһٜ̈́"],encodeOffsets:[[15339,23549]]},properties:{name:"Niger",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƇoòŎÖĝ"],["@@Ɇěؚ˲Ɩ]Şվ͑ϜïΐUӎϬœVȸ¦М”ొɹLjȞٮ̀ƮF˜ϑŎƯĄϹtƓô÷ȸ·Ďŭ¹փ̛ȋ¹gïGك÷ÑljɡƏɥķηŧœÑЇɧř­ĻÍΕqËʼnųȻÓýƧßŗǻ׋ǧȳ•ÕĂŽǡƑÝ¿{ljͭɑ¡hÕȬßẩʊljƻĵAó^ilc oŒėÙƏı­g“o¯ġÅıƛħЯсʁܷǙˑɿƶº̋ձƒħŊȷěǩƚàǝșĻŽˬþ̏ȑƒ­ŖsœʓPļćŻǟ¼͏ʸŝʤÃƸþrę”CŤƴŘƍÓƽŎɎàŇĄǷÇɃ͔ί˔ࠗâɢƞʋÕāŅՇw|ȎdÈl¦k¼kæUńˆôK˞`xdlB„çݨÔ֪ɨˆɾאɸȎœͼŀRÀDŽßƌ‘ʼk”±´ŵǾFĖÂՔÄÎÆc٤ʨȶǚֶѢɴӞrĶâ®nÜ\\ڶǵъҧ"]],encodeOffsets:[[[7476,4525]],[[6968,13423]]]},properties:{name:"Nigeria",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ñōǥ§׷ʼɳč֥ȴƇŃྦྷེîàƊĹò¶ɺZ¦`úǺœ˜æ\\ÂJfz«˔OÂX¢tbľXȜgž^ĀŊòĂ¾˜¤Z´íǔķ„PhNLdE²¤¨ЊˢŲɪǖȒǸűĞwݸȲĊĎĸ€ɐ_w‰qÁijÃöÍÛĪÝĤ΃ȋ˿Ż֩²ރĭ¢†ɈƉDZØБñˆ½Ǖľ‰¬Ƶǹ˻Ȏ͏"],encodeOffsets:[[-85649,11180]]},properties:{name:"Nicaragua",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ũVĪ̀į"],encodeOffsets:[[-173878,-19541]]},properties:{name:"Niue",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@£ħīɪƐƁ"],["@@˗ƭЁŽçŎ݂R"],["@@łù́¼ɀ~"],["@@Ʃ‡ƪŮ@ĥ"],["@@ٷżʜ²ѾĿɧŀƮ\\ȣǚҊоʊՎʖhЄʸѾŚو†͎ƃƑՍ˓ƒŽŹʌëʽʥÜħ܏Ƒɀ̑ËʫɭįdžĿ¯ŻʥrĒ͆ӧłƷdžگé"],["@@ŕLͤžɍ©"]],encodeOffsets:[[[-69842,12437]],[[4328,52620]],[[4044,52982]],[[5004,54345]],[[4328,52620]],[[5454,54668]]]},properties:{name:"Netherlands",childNum:6,cp:[5.0752777,52.358465]}},{geometry:{type:"MultiPolygon",coordinates:[["@@Hıōɒņş"],["@@ƅCÀĤĆğ"],["@@ʣÜɨ¶|ő"],["@@ƷhВİlč˅‰"],["@@ЭJʀĞǮħ"],["@@ů­ȴɂăǓ"],["@@ȌŸܱȇÒƒӔĖ"],["@@^˛ۉ Ր˲Ɯµ"],["@@ӌˆdžȱҙȗ෽DZॾΦÐάӆɒʍح"],["@@тù­ʵϳAͽƷɭ¶Ljʔ̠hŤǸ"],["@@Dž{ÎŜĸğ"],["@@˃Yzńʘ`Mʼn"],["@@̒¡ɯǗҥȭջiȀǮ˚\\Ϫϴļƫ"],["@@Ȫŝ΁DŽƘ¥"],["@@ϥɡǿƌԘƠÎÉ"],["@@ʩIÀƼȪƱ"],["@@ԥɱЁu̩Ţ௒Ɔ"],["@@QȵֱĈýǟחœΟɵĵžЦʞLJǖ୧ͦԵƃԏRϟȉ˗םڳͫࣳǴѽƁލÒۉҮѷ¹@ơϋIы_ȚƟͅбඕǘ͗ӷӻŜғǫտϿɶ̷ࠗӅ¼Ʒ߅ƩÁۣ۟؁άįÂʓƱƅٍ¼ΉÙԯ͹ƧʯʮࡋŭӃ،̳ƣʕ΋µʚҩđ˿گѝİʫŽ̧ƟaéńҭŮȩӤΓى˱§ʇżČšఫۛঋķŃńʋ­ÎƔߟɖŵϜҚĕɞŊɝ£ǭŬÀǜ϶ȼਯ͓ÌͶȘŲʦ«ώƂУœԴЬȌPŸǩЀ̠۽ƓࡍקºϘОˆ͹èůȬіȰͻıŅÈě͸๨ĔɖǃDŜӄĴɑøĆŔɧɧӕľǻŽ޳́ðĕȶ˰¬·ȌDƘࣰù׸è௵ÈĽȊ٠ɎƦÉк¸Ħ¼ҳ»ǼǠદŸĩĞюĊ઻¥ǦǬՌƚѼOѮȵϹˆВƲɱƀǺĒҺOhőҔƒ˘ȝتЇƎժƲǏĀʂĖųžͣŅjŵ݉ɏЧǎ࠾ײߪ˜ĠÎ˱¹njȆ֜Ǡ̊ã΂ȬлŽʃĂҰԼ̀°ȽŦੂǔޓÇþΈؼźʵĦϨǴ઴êࠉÌѪʮՎȏĈƢϋæ²Ǝϗď±ŪˮƐЦqʱĶ׊ƈʮ̇ĝμଌĠ࢏ĚೲԾƄ˂րœʧžӪɎѲ†åָ̛ѪɩԥζǮɆkįͤҔqɨľҖƭԳͰߺ€̨Ģ֚͟sȊࣼдƁŀͨƦԜƃцT؋سലۦÛѽͼĐǎȜ̦¼ʽȚ̌Ũڜĭгʟ̾SáΛ՜Ԭހǻ˞²݈έֱű௫ڠīLjȽʞUŲŨdžŝψ¾"],["@@Ңūҩ‡ɣÖɬĞ"],["@@ߞ˴Aŕߛǝ"],["@@̝ļ˔HŠŃ"],["@@μeɌ̉ॸß˭ƃຈȡጇЩŌʊํÿ،϶஥Ұ୊İ"],["@@ܮͅ࠵ȘӁτ׊ʕ"],["@@ղMີ«ԺĬҊ±"],["@@ࢢęƓΏؔȀʀ˽৺ǥ׼¨ٺ̭෱ŋ᠏ၽይվ̵ɰטbȎƐᄨĞijĎᛗŃ·ɎՄmఐ˒ਂ˜үŒˬƈଫDžƒʢ̱ş˝ú§ʳѷť߯ƒ຅״ߪ‰ȩ̒щb̷ŻЃ͠Èɺ̄åҬĔӮěOĒஎœîũਇũٺJגȗӂϢเۓѷצΰ̰Ҕţ"],["@@࢙UᅮĠओĉ"],["@@ୢǙƊ̒ҶÔĚʋশƤᓂǛ˴Ʌವч෋ǫ࢙ŒƲ၉[؛üϡĐठƂႷXЁƚԎĜ߃Ěபṳ͞঒ȓ"]],encodeOffsets:[[[5208,61755]],[[5078,62551]],[[8298,64858]],[[8675,65196]],[[11501,66423]],[[13284,69504]],[[14206,69904]],[[15573,70598]],[[16139,70207]],[[17924,71267]],[[30676,71472]],[[21278,71772]],[[19718,71749]],[[20242,71902]],[[24183,72243]],[[24595,72261]],[[24004,72516]],[[31611,71459]],[[26201,72850]],[[-9168,72540]],[[19681,76177]],[[22127,80482]],[[11521,80498]],[[29745,80806]],[[17190,81825]],[[33307,82042]],[[21400,82176]]]},properties:{name:"Norway",childNum:27}},{geometry:{type:"Polygon",coordinates:["@@R¡IJƃžķJç¥ś³ſy‡Yקmɫǐ˃ĵ׍Ƕdz›µŠõǂáVɵĉčtэɲ¨BĦ[ž¤Ň¦ɁäśÂəĩçfǏ¼ĕR¿i]…ã‘ҳŰmރޡ\\ƫ_ƏîƧĞي£Z—]¡q™OֹЀӥ˄Í`m{a»Nÿ°ĉ´ŽĜg’„ľžĘrÂÐpļCĘÀŰîƄŮƜɪȂzjº‚¸Pǰşà®ƌȴȌ¦Ǵqǂ‰ƪə޼ϛάί̒ĆðuâƒvÁ¢ĵ®Ŀӊ̏¸MǶ´¶M‚UBióƒģ†³øoǖaɤDæµæíæũ‚½”cÎr^۸€æýĢ¿äЈŒĺ¼dÜOzq€£Ƹ­ð‘ĸ÷Ųa˨MȨÒȾ_Łأ"],encodeOffsets:[[90096,27786]]},properties:{name:"Nepal",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@§ÓėØƀC"],["@@lë̓ŒDzɨƔiǝ"],["@@ďÑǔŗ׿ǁɼ̐cǨƠJDŽƕ"],["@@šijʼn¸ð¼"],["@@ǡŁuĘĝoƶȫƳûĩäØƺʗzʂĚ͜o"],["@@őµƸǪ¥ų"],["@@ۦ̖ů̇ǜɺʬsɛȇ˨Śʧ˙\\ȭǘÏࢽਡԇʝĤéǩğƖjĨƩɢ±OǕӁ€mĮƷşɕƔŨǍ߃̱āկūBĪŅ΍էÚƽ̙Ï؛ԡ́Í߭`NjȲ̅GʫǼƝý՗šƺȬɡëÌŸȍÙIŐѠĴǥÈnjĪɍWRÚƪ¼¥ĆʊċØĶǡƖȞ”ÃĴǺŖ²ŋfǀʪƨĺÍ©ƐԎЂ؆İSŘ֐Ȭ΀̼ƀeýØʸ`óêŢ¢ÎËȢʾ–ƕ`DŽʈȢƢ֔ϲɌLjӺтΰʮAǯqyĽʆƱńα"],["@@Ǔ¾˜ŞżǛ"],["@@ƮútđՌǑƁƬ®ɔҏƹW΀їãҁӞŷðdzƂJç؎ʾɑ˰އঔ̉آςѸŗɥܟʕƝÉѣ͕Ɣϑůř˩ƞıɣПܟࢱ֡ͭŧnjʅM_ǜȗÇѸ֘ü˨ĉƦūƎࣙϊƝdžæưҮƪǘƬǢݜńü˽צŰįǐŌŭŠʱDʋϘǴğQ̦ĿÜ]ïǻńĹǶFğȾʹĥաۊǶȊȿƳ¿¶ǓȦØDŽСҼ˴vãęʲͱ"]],encodeOffsets:[[[173239,-53757]],[[170211,-51979]],[[172181,-47986]],[[170987,-46264]],[[-180405,-44790]],[[178089,-41844]],[[177271,-42269]],[[179757,-37149]],[[177428,-35773]]]},properties:{name:"New Zealand",childNum:9}},{geometry:{type:"MultiPolygon",coordinates:[["@@åO@ńȲ˾ÈƏȓʡ"],["@@ɄёОЩ൲ϵրܙͦŵmʏέ؅Ѝ͕ΟץɝdˆƦÙSʵ́ŭӇĈ։ࠣɛωٟݻŧȉɏhɝǯʁ࠷ƒϩȵѱĥछጊᠾ࠾֐၌ϣמ\\˦˨چÁĺѢĺ³Ÿƕx†ՀǤðÂǷ˘Ȭ"],["@@Ź’n̚ñ`˨ʎĩי"]],encodeOffsets:[[[60132,20704]],[[57742,25579]],[[57650,26267]]]},properties:{name:"Oman",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@MΥ٫֕ۖߕÄ޽ںՓe˂ȕDƳ¦“Ȟ_šd€[iű˜ĩljǖJ̆Ʒáśī‡É_˧şĕ·ãÑ{­_©ÒǃZ·¹ǡaÙüÕ`™N…ĻÙŇǓ@ˣ̻ġíaé–ÏR¹Ÿ»ÝËΫƅГݽһɷ§¯ƍ̍Ʊƙ·ʼneí˟ý̛ʻįÛIęº¿Ƙȍôƅù§¥āŻŹȅ˟ʣć̵ըɋ†Ǜ£οƐǟ¼iľI´HÄjàHȱȎ̡ÖƟÐőv͛…u‡KŸÚšA}½¯D•gååa§O³Pã„o¬R°e‚ɏ¿DžËʗĹõNç¬Ù¢īDǫMīBËdÇ[ëh‹u‡C¡¦kMg_WuGʧȡFěaĉmıÑ£ēɋŲLJų̟̂řӨϿĖG̬̿͂ljĝ˰£ළřıĻԋȀх¥Ãţྥqjbzêrʤ€ĜSºNdΪbnvŸ|Ɯ‚¼ʄŤĪWÔŒܚƦdƠ²xR^Qǖ Gx›²»Š{RΏZ~҈iͶܹ̂ا࠸ıĸDžǐ͌ğٶǿЎĹࣼöҀėʜŸל^ॖʴĮ߀МϮԼyʈĠƅƌӨʠξ@ɬƙΈʬ‹иɔӲٔɦ̹؀ٞ¯ͮÚːʼnƊվո£̨͗и¢âࡢԨ۸Ŋ"],encodeOffsets:[[74844,37750]]},properties:{name:"Pakistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ƚĸ’Ŝê|łʏ"],["@@¿ƌÞr]ƽ"],["@@ēƇʂѵ˽ͿȉŐśЁѩۨŒ~Ūʜ͎Ʌ˵̨ĽċƧĞUųĕɰӓ̴ΝwƯijŇDZƙ׫͍Bŗϔӛսɱȟ¨ƍԼǡɱȣĄȉΔγ¶ÛĮϋVƽÙ[ƧůɢƔĮbŠUŪ½ĘˆÄżĤ¯ØĉÆ·H@͜^jŠX|~`º˜lƂïäЭŊā€ǿŶc³ƇƖąʢnĩƶҐ̟ѢĚװ˔Ҧ͜శ̥תӝ"]],encodeOffsets:[[[-83561,7509]],[[-80791,8473]],[[-79231,8867]]]},properties:{name:"Panama",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@Էσ‡ȕˆ‹ŽŗȳÏLŃo{iij{ˆsª™Öë°] {WýƶЃŶħŒgR‡I«°ñĊÅŐƏĆġHŃĵũijũۤĉǖбۼ^ȊŘØ„ͼ˺|^Èty©m­Mݗଢ଼ž„À~ê߸…¦OªFÐbżÄʬĸEƒkĄFݦಧʙͅāګǠУЩՁ]ƗǞɯȽͻǢя̾ǃǃřXƓԓҷk¡ľşVÑ@›@AÙÉĉÛƕ­¦ʋĽǹЯśޙ֎Ǐ͚޹Ӱ੕юୁڒίњͳɠω٪ݺˆδԝ࡮ˏʐÉͬ΍͂đϜϙغӛఈԫڀԯࣈ७ײmƴȞ†¤Ǧϡߺ¬̆پۜƮĞæǁ¦ˡ‹e‰q‰³őv«i¹b¥Jˆ‘ĎEùћ·T‰°”Cø ĄĘ¸^ÚĎ¿IJ±¢}ðRÖZ¼¾^ŋžă²×ÎóÀ{æÁ˜l޾j†²^Môf´ž¤ƨĔŽ˂ʬܐĖÙ͊Ь঴ΚӸΰѦԐŴӎZŽƄwS̤ƑƴÇƈϤіLˆʊgǞü˰űl›t­Â‹Ú…¾»”‘¤¡¢¿êɩ¨ÝŒ•NJ·ÊͺwÄÑǖ©Ƙύʦř–ϓƒ½¤¯؈MȠتŽÄ¼Ä¾¨\\njÑƌġǚlêÊòh¸hɚŕ¶ÁÔYʀő¦¯äƒÌe՛ऻǤíšEÄh–€’J”}¶ÖƗŴģ¨×KŁu£KÙ ġ]ß°u¬½šŁcDžRß]ƥƩܷŻΉȳą‹ĭīśĝùµŏw±yýљƵʡŸăuÍĊ̱"],encodeOffsets:[[-74892,-6621]]},properties:{name:"Peru",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@έƽ̀ɚîÛ"],["@@ɂŕĭÏΗêʄļ"],["@@őYŃȼȎÞɠśȗƣ"],["@@ōýbĦĬg"],["@@©Û·ôržêfFƻ"],["@@ËoKľØč"],["@@šUWĀźé"],["@@éœķöǢž"],["@@ƾ™Ĥ˙Ƒ̙Ȑģþɿo̵ŔŽXίͧ͝Eҗ̩ࡰŕÏʷӕǪȋâУˑ͉ĩЄʯǍ׷̜œƠýӶȆ͸ғΠơSďͳʛʘɅƝ©NJƧ”Љہƫf‘Țˎض֘DzŜɸ͒ɨΒɩ¥͑ͰƲǨ̶˜‹ŚΆɮēÌƄʐWwخ҈λ"],["@@ÉÔèȄĊɑħ…"],["@@Ѕǁƽrijnj̚ˌƌrȮŏdȩ"],["@@ǏǢƠ˒pѳ"],["@@Ļ}¸ƺƀÏûë"],["@@ģ¡AƶƐŐ©ɣ"],["@@ŗIŅɖʯƎƋ˸ÒŜ͔ŀΖƔ͐ɰĜɈ϶ţͿޓWɑƞ˩ǃǫ"],["@@`Ѥո઴ƒܽʯɫˣ֭"],["@@¸ŏáBjŎ"],["@@ýÓŎ̄༾๜èиȺ˺u̡ƈϟˉơƫɡ·ŧ̅ևऽۇ"],["@@űč´Ŏþ"],["@@̘|ĆƉ[ΧɊБŁıŻƬ˭ȷŖLԨĽƲǻīԦȴlj"],["@@ĿMĻưŴlĈǍ"],["@@˼g´ŻɜÏȽˇʟƒƓۇ͇Ų৖ƿǰĨ”Ͼɽ"],["@@ÿYëɚƦ‰Fǵ"],["@@ņ¬òǩʯGĿʖǸŏ"],["@@șŪƲŒ¨Ƶ"],["@@äǥǺʼn™ԇè̙ƌǁхĄǕǒįǼÞǨң͚ŵΖߐ•"],["@@˘ˑJǵӑ϶ˇʓâքЖʝ"],["@@ãȽùȎàɢŦ°§ʡ"],["@@HñƁʸźȅ"],["@@ðŷ·΀˘ɇ"],["@@мŸːʧdбū˳Ɓå˃ʖɫքʿȲÀĖʮ"],["@@ǚÝġɑƥľîDz"],["@@ƭčŗŎƾΐNJǧÁȧ"],["@@č̋ÿ͐ǎƒ"],["@@شˏnj‚ĞƆIJyħڙ̰ґ͑߃ґɃXɛǷ́ʮӳËŽŜ΍ϐȧÜÈóŶάƜʴʼnƘοǐðnȎиȋSīɍÛɨ̓ƒƃ̜ÙéϿƵļÒȐՙņŭͮӋϺŃkǘЭÉǛȉ˞ԉΖɵăƁNjȽ~ɉǤǟãi͒ʲʰfŸ̛ȤJͯű{ǁ˸Ɨ¶ʹ୼¶ÒˢɻǬÀU౺ȰܶтĜ"],["@@ă«IJƘmī"],["@@TùſîŬL"]],encodeOffsets:[[[123137,5383]],[[124068,6222]],[[125024,6583]],[[125888,7587]],[[119890,8073]],[[120172,8412]],[[127803,9363]],[[126667,9460]],[[129031,9545]],[[129085,10001]],[[127585,10023]],[[128707,10153]],[[122795,10738]],[[125594,10725]],[[126087,9282]],[[126332,9677]],[[126728,11555]],[[120127,8643]],[[122739,11802]],[[127565,11616]],[[127600,11769]],[[125437,11894]],[[122920,11985]],[[122983,12460]],[[125599,12605]],[[128246,12829]],[[126686,12583]],[[125025,12652]],[[126746,12753]],[[126241,13162]],[[123602,13803]],[[124841,13866]],[[127339,13960]],[[124963,15366]],[[124008,19063]],[[124848,19349]],[[124438,19827]]]},properties:{name:"Philippines",childNum:37}},{geometry:{type:"Polygon",coordinates:["@@áŦŔƾ±ˣ"],encodeOffsets:[[137826,7560]]},properties:{name:"Palau",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ȍġǧ™ɡĨénj˨ŷ"],["@@ƅÁćÞɎ["],["@@]ßĉ’ĨŽ"],["@@ǺÂÅȧɫĒƷ͐ʰʻ"],["@@ɔÑĘȿϩ˜ÔöÑƨü\\"],["@@ȡŎĊžĤµtȕ"],["@@˒ġ^ŝϝǘĮ¨"],["@@dÑijʀĦĘU˅"],["@@ɝĪɔoJù"],["@@ȵǘ\\Ŕɖij{Ƿ"],["@@ȧƧ̿ŢšΎϋ̈́}Ф̬Ƨ̼ѱ̘ȡŔʳ"],["@@ƝŀłĮœȭ"],["@@ę˔üĆĂǡãǷ"],["@@ŕ¸Ħņpƽ"],["@@ǜìʐҝЙ̯ɅƆʁÇďǯę̍Zʉً̯˿ۏwɩDzʃٗϔĂǔުĥЈ¼ŌÜņμä·ćȧĢǷ׼ÞΪФ̂Þßֶ˔ă"],["@@qó𳥬€ù"],["@@AᇴħƔĨͦCᲘ@njྴׯԖġҶ̽ΊiԠѯȺ‰ζοkӣ໒ջȢɏ˜̇؏·ƑħȤҙ޾؍ĶϙǢşŐ̙ԬhÄϹؼDžȿıĨǧࠌȇ͹Ñǜǯ˝ŗʫÞəȌအʄكִ­ˢ˩Ğԇܾࢷɲġƞ̓Ä̯DžЧʠʌНĝí˅zĄǙࣷķƩżşyɦƣ˖r˂ŇɠʍUǗ؁̭ΕƄअ©ƁĒ"],["@@ÕÛŷǒÑш͛Ҧ৳وˑøäƔ২֭ࠠܕĬȷƕͻ"],["@@ɫBǡƾɠøǞïPLJ"],["@@̶ĉșĻևuĠȠΌ\\"],["@@ȁèˆIJƺǙ"]],encodeOffsets:[[[157221,-11751]],[[157984,-11634]],[[154521,-10818]],[[154707,-10260]],[[154142,-9570]],[[153954,-9721]],[[156295,-9174]],[[154734,-8943]],[[147033,-8685]],[[151579,-5966]],[[159701,-6847]],[[150709,-5562]],[[158359,-5563]],[[149524,-4839]],[[155562,-4399]],[[156335,-3208]],[[144360,-9337]],[[156637,-4870]],[[154048,-2725]],[[150598,-2007]],[[153360,-1590]]]},properties:{name:"Papua New Guinea",childNum:21}},{geometry:{type:"Polygon",coordinates:["@@βছثНВȷ¡ѭºǩδοċÁĀɹıķɕ֥ГˣʗµÉX¯ºʼnX·uĽŢ÷ʷQÅRϟņ͋ǞҹNǯēыÐʱǡʧpdƘ˧ȎʗǕˇĤɩ̲҅ƀŹÁȹŨÚdžʋ«҇ƢĠDž̍œέ˒ǬŴřèɱ™࡛͸UŅñqñEJZĔ؞òy˸{zƱ¼]jzêŗǤŴȾÓƘÃz•Šgž`Ò¦ĈėİɕŘĿĄV°żĀÚâ–þDdDÊŽϒ˘ùsƸ̅ņဌ˸̾ɜ๜ʆμŻ˕¼ʹ̿٤øԖ࿮»ӂS†N¶ÐKêoŽex™œIêcĦ“ò‘ìµ€ǟ"],encodeOffsets:[[24049,55235]]},properties:{name:"Poland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ū€ɸGŋw"],["@@тÁPś̍ɥ਍jÉ̶ĘŔࡼ¯"]],encodeOffsets:[[[-66995,18541]],[[-67716,18888]]]},properties:{name:"Puerto Rico",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ƈȝϛijЕЃ¡ܗ̯ŋۣԃߋ̉ơӗ͢ĻӴϯ˯˅ߕqϥуɝĆɅŕ̇ȲΉɕŸIJ˓ôǾŴџ¢̈́άФň͕ĴȮО£ȨӯȚŗťɵ͞ѸϤऌϐوېDzšȎȥࠀťŠȂȳ݆͊῭͒͠†ǚҨ˾ęLŭɾǫ"],encodeOffsets:[[133660,43557]]},properties:{name:"Dem. Rep. Korea",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@мġ˙ăǩˈĐ"],["@@ϼGQÕҙAģŌǔ«"],["@@è‘͝GÿĢͶÇ"],["@@ǛÖŨ’´ħ"],["@@ʻļɒpªū"],["@@ũYlĒľ÷"],["@@έƣٙĮͳõƸͰÉࡠǴmŋĀΏÏ‹ǬȖøȖ˨́˯ȃ›ĻĎĘҒҌٸŸ՘ÏߒōÆĢƪіǒĨ˙ؾlɎŮѺÜɧˤş׹ѭIJ֓ȇƧŘũáȉţĭΗiҎԗ̃ԉȦɵŰNУϭŽң"]],encodeOffsets:[[[-17603,33658]],[[-26264,38750]],[[-28822,39376]],[[-29328,39450]],[[-27725,39571]],[[-31884,40353]],[[-7583,38072]]]},properties:{name:"Portugal",childNum:7,cp:[-8.7440694,39.9251454]}},{geometry:{type:"Polygon",coordinates:["@@lÕ\\±„‘„«‚{p¥pljîʵĥڧYʻলŷ˞ƺ¬_˜ïĚñ²_ǖ@ŤwĄđNđňƃâޅjŸº¹`ė@Õx羅ä[üYĨhĊp̜ƊƼõÎÍňۏɑŽۅ‹ĉřdzIţaߝʭɋͥǝȓʑßq¹ŸË…µFåËåµÙCƋúdzHɭțนɾν‘‹IJpÂͬМ”˾ȨɈ͊Ӣɑ˴ଫӘףЀߕȢȳǜ׵ЌΓӎƃƤƙöíºB|sx̾ঘBцѦޘเ̈ޖVވѿj̅"],encodeOffsets:[[-59555,-20648]]},properties:{name:"Paraguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@đëƒì]~ɼɘ —D_ƫȝ"],["@@ÐȠɆŮÛÊ×lÏkkNOdŠÔ…Ⱥ°Ƭ°ĺņØĤkêi`•æ£ÊKjƃķّӏģ"]],encodeOffsets:[[[35173,32044]],[[35718,32121]]]},properties:{name:"Palestine",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŨŸIĿƅŊȥE³ƞɌ–¶Ɨ"],["@@°£Ə¢ĠB"],["@@ǒŸʳóĢŔ"],["@@ËÈրIć"],["@@ŧemŎƴG]ğ"]],encodeOffsets:[[[-152905,-18114]],[[-146883,-17018]],[[-142360,-9927]],[[-143437,-9652]],[[-143434,-9124]]]},properties:{name:"Fr. Polynesia",childNum:5}},{geometry:{type:"Polygon",coordinates:["@@÷iíkÏ@³RlÓì©Ģ€¼XŽýіȾӨɒƠʀȿ·ͅľЅƱ͓Ƈ½"],encodeOffsets:[[52499,25198]]},properties:{name:"Qatar",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĘēŒ¯˲©MÎĦiˢĨƲbƐ£ŚġůΕёï Ǿǡ³ʱধ̧~˳Ǹϫ‚˵ŮܷƇ׿˱ᓝƐ§ĨƈŊ˗ƈaVNjƾºĘÆlæM„^YŠáœŧ²ū}ųīěgƷŀɯšħäƍŠCˆvP¶HàNZjƧøĞƲ…l՗ɴgʀ]R[SeUeE³œÑøȇĘįŒrȒ„ĘƒŬĨ̤Š݆ਈ݄ψƮºìæÂEǤāȄLߚÃʹǧТƾȌlȂˆɈtÖҔ¤zúŘvƪ~̦ėՐۃϪ̥Ƙ˱Ƒ࢕Śů"],encodeOffsets:[[28890,46542]]},properties:{name:"Romania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ýÎɚbƛï"],["@@̢µջ˯˝ɑ}ƱāǦظՄ"],["@@ֻ˝ɋ[ٓӕ̊Ϟ՜̶ƂŎķɤjШȒtŭȧ›"],["@@ȭ£ѠήӺƾܫӇ"],["@@ɻËӆ˂ʉȵ"],["@@ǗcǶ̒]˭"],["@@ѱɕݬqǢϲĒΖ̸ƧЁ"],["@@ȥØǬŊĤeéƻ"],["@@ӂறƙ݉ŦϛѢଋݮൣ֑ԠˇÀՃħѿृa˫ֈߋɦ•Ă͡ů˧űѾףŢсڃȷ҄Ǫׄ×ϔǾΨ˅ئɴیÛࢾŠӼПќ½ҌǐѪҞˌƀ͒¡ưϖ̷͔ΪĨ"],["@@Ļƣ˹~϶Ŧ"],["@@ɠ·С̵ɑǮȕé̂΀̨ĕ"],["@@۲ǙдIɐƿşʷGÏðŕԇFࡹ‚ಉÊ̶ϲҞÖ͊ʖ¶O̥ʟʹánj‚ ˢ"],["@@IũݥԎѲdyū͸˛"],["@@ĵˆǒĚÛš"],["@@ƏÿʒьھǦ˜˯ࠗʁ"],["@@‹ǣȿƤʌ€"],["@@̳ÀűƾӘ±±Nj"],["@@ަƻƲǩԄŔƅɔÖӝȒ܆ɫ¿Ïሴҝ{ˑ̺äŸóÙ؍ΠïĠNjʺňhȱʔǤϩǔŪʼϵŮܶ°ѮÛƓĩÄĩÈź֢“ХĦ৲ŏઊӵāāʬž¶ĿϺu­ŧ׫ŏŁȳىǂˆʣڧ_݃ƼҨȍÛƯ̑w͂—ÔƁܹșʆuċƋоǷ˱AƏĨµǕ˅©ɀͷƥ۹̒ۗîϫǬȩϮ߳ŤεġޣOѵҌNJeȂ͚˹Ƿɳǂƹdz̗lęʃπ͑կϙ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶBȶǜ™"],["@@՛˛׹įЅÀij϶ѴȎ͊b࢒˙"],["@@͓ъ΢Ȟا"],["@@ܑìНȤвĬࡢőƣʩ"],["@@UǫګIœŪҥvεΦѺŤ୸ѳ"],["@@ʐűƛȹٯˈռä"],["@@ƫɼ૆δ@қख़Ɠ"],["@@ȻëխĚن¸Ťå"],["@@ذģԢʣཡȹӫÖ@Ҝ़"],["@@ٗt݆˄Ԯů؛LJ"],["@@ܱňҀȲ˲̹"],["@@ЕĐdŒٚŸʧǁ"],["@@Ͽ™ŷâԸ‡"],["@@ठěʵͧ׿ɍėԩং۟ঞͅЕŝٕŨĪƕڿŀ࣯W৽njʌǶТŽطǸDDŽఉ¯ΩƢÒ΢֜¸ΆǨɊ˨˱ļڒŀıɢಬǢѠá"],["@@Ցµ›˒ߎž־˷ߝá"],["@@঄˝Ğ˳༕ä޹Š݃ąતіऎ~"],["@@ؙh˨¼Ͳã"],["@@ԍßǹˆ܂Lyȱ"],["@@ԕʱ੻ɐ͂VǤƼબů"],["@@ͲDĿŷ֙Àͨô"],["@@ǍƟ˕”¶ƎϠÂNă"],["@@൘˜ƄƩሜãƩDZࢣƟધxᅭͰ͐͜ɐǯ"],["@@йiȺϦЂȩȁǑ"],["@@٤Ǖ֜юসɯࡢ@ඤ˩૷У܋ÔχȄǴ͂ՑkğʣޮΡջűСƞกŧӱİӧʵࡍŠ१Ѻ˼niͶπTūǒծƆײèै̱"],["@@țſࠩþÎØॸU"],["@@®ƝҿƪђK"],["@@فWࡐŒɍĹ"],["@@㎅ޡ࣡ʵȌđ۝ʛιêǗǧыZêɫ܍dzUȵϋÎȖƯӟʕ҅Í஡ƀקđҋΒ݊njזϮڞÞүŌޔˤׁƖȎÎ҈ăɰɆٚSϜ˒ۖNJ୮Ȯ֎qɔǮ๨›రŢᧂՐ۬ÝϦȏ঩Ё"],["@@࡟O੒ƾȱƭ"],["@@̹ŽЊìďĹ"],["@@ƇȞđLjըƦǂАC׌ɯٮϸŞ;˾࣬ʟƬĎÔ̪ɀĢΨդʲࢰӮΎƽʶČȘ̹Ķۙɵ˗RνƃșțౝKȓʺÒ˔ɃɖBɒ̛€דкη]̣ȎסϗȞ’΂ɅŠ}̜͏ͤө੘׉ֲӗƊəÍৡΌᔹɗݡйuŻӴÇĀЃֵеݹ৏ƶŃïDZڷȇӟ˥৅ʼōĆǙ¶ő€éDǩ·ŋŸÝsʼnLƅTÃ`÷ŒɫDŽɕĄϏ”؉ɣŅÅŃÉŻÝÓĕ‹Ûş¡ĝ›ĝaǟtΑĝճçý\\ō©̓řıoɿÞęGŝ֝ČÙvǻŽԻWùfĭ°χɐ£ʚʇˆʅHĩF÷˜đ®ċĢȕĮŗ`ǥUų[ۭƜયˏϏ_ŗvÙnį\\࡟͔zŐďĤiȄ—¶SĞdœG¬™ŏ|ƃȿžǃ]܁ɖÉZȩHǏNħfǝĮۛȸɅˇҋˉɷнńʼnÞǭ¤“ȇÚWºo{șȷʍէɭŵUȇŸ֝dȽĈҗñΉpƳĞijJýI—_»G¥ÄǭŒēˬ९¢ƋƤëXÝU“˵w¯J¡ŒŷàѼ¹[ēű͙M̛Ɵ­×D‘MÇUDZ‹ƷûßcŸ¹‹ԍŇ·DžTƻ×cĕá£ŷ`“mÁÏ}ďyVqp‚‰WáǕŒυ…µÏgĿñ‰“ƒ«mķC©Fȷ—ċÿRבВ¤ǶгɷߕĮȱϐ֕ƬͅҊӳȂԃďɣƑࡷXßǼˇX²ȈͣĒʋġqȥοƝᅁᐴିوÁňȞMƶʠ୳̑ǻǏ٥ȹċƅбŎϝƟčɔ΀ˮЛíԛƪƧljɕ͒ƳĵމNþ͘ϕצұţৣȐ٩ȓ§Ʒᖭ̓͛ʃՃšᒁοוÔɃͭҲĉʱÝ}ƃϰ¹΢ȇࢇƒɯʟȄ˵߷͹κʁࣺ˛ƓϵϓƑѣa̭ƞȷɥʏõÏņӍØѱ̴ѧxͭǝαƨѧڱν࢙ήñЍΑъکψ٣@̏ȒܿȟƱƠ̵èҟσػǥƥșוȩŒֹΣÏՉѪɵiґ։ñˣȖǻˡ́•ͣͼƯȒЯDŽÂּăږ޷͵caŵ׆ɥҡɁžǃȱŽܓ̍ƛĄÈųƭʿե׵ԌͳžҡƺˢƷ܋ठ৅ځէЇêӋѾˍàǽĊӗǺG|þȬkpţŒȁKƵŪõfҊÓviSáʼnáþ¡tř\\Ʃ›ȏñĉkŸyōJÅnknV”žœYšƅ¾ÅŠϿŨõ¼Q–șàয¦ĵ´đ¶ɱ”ššş¾Ź®Ӂh»ËųWॿۆ҉Ōˣɼ̗GʓɸӝƮ˂ŜȃèŪ²̈ŽθʅǀːξæžÆĥĔƈʺIӡˈŭȖؠx½ŲܖʘćƎƟFăą́sǮĤҡƛżѦҀȶ݈‚Ʈ͎ĹɰDž¤ŮǼǰ\\ˉƾ΢Ȳy˚ʥIԗʆɍևȒDZōԽЮګǝхǘѳ‘ɻ֦Ȼƈ܋ªýΤɶĐ֍ӄથʿɍ̟¨IrÉӖ¡nqxPȄiȐ}ûÂ÷Òµ´‹xĚĺpž|Vζ÷ʖ]˞ƮĞ–Èb¼Pɇˈȿņǩ`ƟIÇfÒŀXÆW~…tƍ°ȋîĕĄĩƊġäĴE^}př ƻôOn\\°t®ŰŖ@Œg¦åðÁ²GzVpäÈLƢɿĆ͡ƮLJQėR±Yµ‹ãsħeůÉ͔¹ºlżࣷİŗò®İS²mÒ·ļOˆǯǐUê|—\\ƕkLǰP¬SžpɏĨwà“`ıH¢ŜŤŐȤÒɵ̎Ëӈ׼ӲśĠžʢɶõƸƀΰiǘƞࠎ٦ìϛȦշEΧƸʼnʪ׹şཤࡔ఺޺̆ͼ̑˖ৃѶњʊTƮЇȲ€˔ϿǠȈƪǿĔĞ͂͘Đࢋঔޠٶեͦօņǵʤʪ̝̐ÂҪIJΠɶטŔþǠֲćRȶ֬ñϚĨYŦ࡮șýĵإÔǚǏԺQiđЎ¼ˁ̟ҘȮᆤı༼пט˯ड़ʅɊ[]þӒˍӰıͤчƛ͏࣯ѵௗșᥟ˞ׁǸ˻»Ď઩njȁȰࢇÚ๖׿ʛħلĕӢɯîƷ̵̹Ոߥ٢ĕӀ˩ࣞǃѶŖĀŤĝȔ٧öҹ˼÷ǂ̈Ȟᝂԃʦǎ͘PիӒfȼආѴؠͬ࡮ĕΜƑģŃʪfɖő˚ްիˈΠ࠾ܷΜ׸ĿༀËڤՋঋûՃ˿ֈȑ˖ʛԜù঎ƨȀԞ߬ĆáǸͶsᛶ֘͸ƽ˚Ŏͅľ௪͚ׄE׍íŒЇ֝Ɨ৺x͖ýҴ̮Հæ࣪āࢠ˰ݒĮ˂ɣɫʛՄûƜ̖ӾnώɐٙԖبɌ᪂ʿפʋᄚ̽଴ҹ٦՘ԇbҋњ͋ĖҹĠƗŝ͚঺šĊυeÁɚൊԐ૾તłą๚zાȇȧ֭ץү۲гŅဵ࡞УϝʧÓΏਁٓЙƤɹۃƏ˽êʸŦ΁¹ͿƆևaǡ‘Ʋǭ४ȣࡦdҸħ;ðĄȔୀκʂΚ׎̐ͅռǂ˦౺Ȍ̐DټёÃׅԈǫॴh૫ƌÜςˤÎ˿զ൳˨ӣHԗůࠓ¬ɑֈ٠ٴ੍ܮӮʹૐʦǣ֖̮”ӶҳϽ˳¸ԯആǵֈ’ؚȥԸHŢÌзQ̿ɮ๻ʊͳ̞۶ĺހǑϤĮǻŞѯikĶوƼ৔F૸ʓݲ̻आ¢Ўăމ΃ƅ֋¶ǝծҸƊ̧̽̇ͰĽMƸ֌ɨӭҶ͒Ӥ˫džұ¨ҩ˸੡Ȉ^ϰΕʂƆ˴┰Ÿ්Ɣऍϗݔ˥ا̌঴ƄϚǒ࠿ζӍÔͨŒфĽ˨Ž௃ʀΊƞϚő͞ĆΨȠѹ°ÊĐ֒‘ᑜϲ὞˒হE̴DŽዎŽк±ΟǃܖĨWĩᆒ̐ञǵȕȗʼŎsǦࡧ̂ႌšيï֛IJ¾θശѤ୼Ȇႜ˷༙ʍᘪÉШĝࡡΏસTϮǺ᧮§מǧŵċ֪FŠˣ԰ǖʔ̟ʘ|ʏ̑फɘцɑʌ’ОƉڧλᣭ׋}ŷഡЍޭÕӻʑЫm࢛ѿӄº٨ʬ੮†೤˄Ѳ_࡚ɒউZҰɰڜßÚĪΚq˓»ƢşظijհŒ”Ǽǒ£͒ɟɓǁˬħ̧џҌǑϗƠ֞Ғ́ƆໞǔᲄƑΏÕuǽૐɣᑔĉаvřĸҞÕϲȨōЊࢨîࢴʭրĎʢǵЖǴ׬Åଢ̳уǽΘmȞƕۧƛܨćňɫЍñ्̖ŽŁ࣐ҫʤƊɀƩԯÛޚҙٴȑȂÐɞǻ࡜мԲֶ࢈Я࡜ŸܚȈҀT༌УăĀЂĊͩ¸ˆDzҞ„ΰƹٲ ɕ̩ͦÈۢȪࡗw‡ƔϮƔఔúɫʰ੆ƛ⇈ɻcû௫‚ԙĻŀÇᒌĒ׽̍ĮNJЅöCʇ׉]ŀȗݒĦৄѨሪƍѠɥ߿čãĕൎƝхʙܶżԬÿєɛˣ‘غů↨ɒଐ­ૄȽվЗɷσ঴ɝŀяɲĭϡϋ׮̮{ЌՈȜࢊĒᴴǷࢊȔϒϥࡐljʤʙެ’ϪȂ΍ҎϘ˜КᚔʅƊļᐜ©ᬐՕؐɳ@ᾕకϵ٫Īܱ̪ҏ…ג¡ƼřŻÙࡏƤ౗ɵ౎ȄʜǗǭĵઊƬLˋɈŝ̜ïƺŪŸē̎ӿʓ½ʬǯ¤ŪԄͥŇśʾˑϙ̭ໟɺ ƶ˅IŖǹᕩإݟěЯʹɱÀ¨ƁїŧEėງՃɍЁ̱ĐًѼࣷmއƕߡҧŗļǺь੣͗ŋɉέǾΉƍlð͡š͇ȷûЕ्ܕƱ̷β̟ɚȚӔƃϑεXЛŌŷˬ‡âϣʍǁǧlDZƔΈʒ̯ťȕϋƝ̡ӽ͎سЙȣ܏tו̑șͽƴջρĞ۹ˡɯľŘƅĭЫ͛ӕ੍ڭċ‹ȏΊſैɇ̚ЫှÅОάଆܮԄņƨŭ˂ԸhǺȄԞU޼є՘Ԟྀࡲ˄˄ൢϚſĠϞˌǛİͺۦ͠ƬԢąǬÖ࠽ɐࣱŹˁևȪLJƟŇȕŒϳ—ൃރӽīǦ͚ӵÍѦ߀ٍƥ̧ǮळƧԍž͓Ľ଱࠱صʱ֫җťʯےáDŽɓםvϓşˇŲ˫UҗʍлĖțĵٕ‡ǣǨड़Šދ˴ܩÇƸ¾ࡳǶӝŝŞţ΁œ­ƅȄIȥġЁƀرūࠏǂЧʉеȲጥ™ԣʼnຑ޽˿Щ຅܉ࠃۛᎯ৑IǯԀůߒŒßۇξd]̢ѴĐ˝ƷжŹӥͳה¶Ӟ̘”şˍʛǜZȾ˪—ή֎ė͚ìֱּ࠘ʭljɷ˻ÔΔȹĻͻ̒ɏıɏηʧ΋ۍĔ׽ƋƝ°˅࣓̅೫௻Ƚћշ؋ಗૣɣīر܇षӟ܍ɁϙƮͽPJβωǿÔǨٽ֧ϗ~ŀőŭȃ"],["@@ǵÕࣇè੾Q"],["@@ЅΙ୚˂նɥ׎½ƖˍӑƇ࿏ŵ೽Hෟǹჸା֊ÿźƪЖƭ"],["@@ૺű߃O͵Ƃ"],["@@ળŴŭǐᓘŁवȁ"],["@@ોŒ܂ĨЊų"],["@@٧|ՀŒŨƍ"],["@@mͯߎʖ௸ɳ͉ϟ՝}ݚ˧ౣƣᝋʼѕک̌७ĀྔԐʜÇ፤ņ"],["@@зì˞ÒƚŽ"],["@@ûɻথ`ǴɈࢮT"],["@@ফzіDŽ࠼œ˥é"],["@@Խ†ɏ˰ᆲųܛqχǏ"],["@@ԓFÆňҎō"],["@@ࡈ¡ȨơࠓŎೃˋƟļࣃ”ᒌȲ"],["@@ûǽࡱǕٯÜՅÁµ͖ᓚd"],["@@நȩᝣ˫ƖLJਭåƀƂݷ±̅İ੄ȔৈYƂʲࢄĘ"],["@@ޭ‰ĴŰࣀUɅď"],["@@ࢿ¤ୈˎŹ"],["@@ๆįञȱීŃ৷ĢԻŐ֤ȴ"],["@@ʶǭէÇࣙɄ۶ĐӖÝ"],["@@ٿźᇮ̀ՔɟჁș"],["@@˿Ý૓Ěඔ{"],["@@૾ʿ܁ȑɰəᵥɛᅋ̌ศζ֛UIJüᏘͰՠTؐǣ"],["@@وŅף§õǕႭfȿļጀȢ"],["@@ಛÐഔP·ß"],["@@ƉĦॆvĂāࢽ™"]],encodeOffsets:[[[150236,44794]],[[149717,45566]],[[152166,46406]],[[153281,46738]],[[155651,48023]],[[158526,50496]],[[159664,51510]],[[160159,51874]],[[146188,55700]],[[140471,56423]],[[141252,56415]],[[21746,56591]],[[170650,56156]],[[154205,60436]],[[167563,60010]],[[36676,66747]],[[71702,68099]],[[-184113,70595]],[[51472,70847]],[[165343,70555]],[[173262,71251]],[[61902,71614]],[[54174,73078]],[[183155,72527]],[[141271,73224]],[[-183169,73295]],[[79496,74027]],[[81410,74468]],[[76453,74623]],[[123148,74844]],[[56648,75068]],[[72371,74850]],[[145598,75670]],[[85555,75850]],[[144395,75776]],[[116109,76187]],[[88733,76781]],[[84145,77230]],[[150319,77180]],[[139212,77220]],[[143410,77649]],[[98850,78109]],[[115178,78460]],[[152730,78500]],[[69392,78068]],[[98597,78876]],[[91663,79042]],[[133824,43318]],[[110281,80007]],[[105354,81157]],[[78079,81563]],[[94908,81598]],[[52644,81863]],[[61122,81875]],[[100019,82083]],[[51254,81997]],[[58449,82280]],[[54806,82110]],[[59348,82047]],[[55722,82405]],[[48581,82795]],[[63660,82775]],[[51485,82870]],[[81948,82789]],[[62609,82894]],[[56033,83063]],[[60030,82987]],[[64895,82637]],[[93765,83089]],[[98844,83022]],[[59198,83504]],[[65179,83568]],[[59695,83677]]]},properties:{name:"Russia",childNum:73}},{geometry:{type:"Polygon",coordinates:["@@ƒaM¡ŽÝľƅà{ª½¨ĕÂӣkĹuÕǃ¡PµSÁo‘EŧòʓēƿÞ¿̓ƛßʵ]ʍǴóĽĵîcȢɊǤÆЌ͊˨Ⱦ¬Ėœΰͪ¬X¶E’A"],encodeOffsets:[[31243,-1092]]},properties:{name:"Rwanda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÔôĈț̙ǪºȊńʋ"],["@@ݶęȨϧ٬T̮իWƟφș¿¯Ȗɍضѥš`Ǧ̵·ǩĽVѶࡱĞϏÿâãľǍŽk´QÐ@îløjЗÖNďȗɒ­pǩߴ३ᒤʽèèϤם֏။ᠽ࠽ុΑܵΥӽשř˱ʣƑƕNȻʾ৉Œ͙ŀਙđлLjȑƁu֛̫ˉыࣂҙϚѧژЃ֭ࣞі̑ľϝӬƵ˰®Ǭƅ̦ØװԇऴқЊ́Ě̥ѺîŠį˦࿿ᘲϩĄćŘ઎लŷǶżnjŞĮƠĤƒª†׶ňlbÀŒäƘbdhdnjĂİ´сѐ̽̈ūŘɎÄɺÎԲžɜÈӲنZŰİȊƒ˰£˖¡˼±ĠഄڿෘਙߊսൠʼnƦ‚"]],encodeOffsets:[[[42996,17117]],[[47649,29795]]]},properties:{name:"Saudi Arabia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@²·˦БAÍęÄSĹªܣɺધड़ۃƿƳs›WwW…u…µmi[ЃŃȡő‹‡µƯ•ŸƋIá_ĝh©C[gŻFÇùƧt˟̇޹ŝȕlljpǟ¬ЗͯఽϣőҷڳƱߝƇıǗŒȑȅƒϽȝؕǥœü̘³ˎٵӄ³ܢłԤБL^ǵ֑EɢʝèԷ৏ઑЁËكҠͯdzōʝбƥŕɥڛFƙɰڳXΑʼnةּ½ȦիÝŧ‰ɿѥɇݙ͓ȅԟŴÍʤżȎpМډआÀΨ˥ȠUΈĝàĵӾΣdđĦ͸ҐĹЂζ̦Ɓ͜ʐƠɘτD̸ƞƜܮfRṴ@о࠾NBဲᢴ@ᢲAƘPŞǚð¯©ŷ⯀B"],encodeOffsets:[[37757,22525]]},properties:{name:"Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Iޓijď֡Mʁҋݼ͟ƊʃլӅɰګʆ̫ƷƱǥǝȧȟɓɉǟǛǛǗȟȡơơá³Яŀ֋ƣǗƽ˳ʂɁĿͩĞˁʛåŒƝ@ßǰˁŬѣԖǩtȳȁлĨʥƳȡvͻʜ͓϶ɑԪՉ̄ǥ͘®ưࣩږćŊhɂ̇ˢҽżŧ͔̾ȆɈݚʀѦŨŠլÞ¾ȥتֻΒŊڴWƚɯڜEŖɦвƦŎʞͰǴلҟЂÌ৐઒çԸɡʞ֒F]ǶВKŁԣ´ܡٶӃ´ˍû̗Ǧ›"],encodeOffsets:[[34896,9689]]},properties:{name:"S. Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¬̍ǬɃ¸˥ÿȯȈˉǒ®ȶΫBҋࡓÃҁNJʼn—kŦի”˯BʅB܅HƵùǑĉɝ«ʯhć]ƥÙĕgŕb¯S£ƞˊìŽĘũʼngДĪøۄFjƘѸÒŖƈݼˏΜƠųŖέ‘םʸˍíçşࢫBǣˊŲŖƣ‰̓ՖƫöĉÝùĔ͜Ɩʮ̺ɮφˆĔ„ânưĜǞ˞ЄŸٸNJ׆ąδεĦr̆ħʰХ̶υ˜ȯņã"],encodeOffsets:[[-12575,15165]]},properties:{name:"Senegal",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ˍKƘĸŶī"],encodeOffsets:[[106465,1364]]},properties:{name:"Singapore",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ͳ•´ŻːVѺїʋēڧѸصƠZŀͯ†ސµ"],encodeOffsets:[[-37993,-55363]]},properties:{name:"S. Geo. and S. Sandw. Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ùMÚĊ`û"],encodeOffsets:[[-5828,-16381]]},properties:{name:"Saint Helena",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@őaϧːӺʭ"],["@@ȕÿĥÈȜļĠă"],["@@͞Çɦ̳ӱĘȽŶ§ǢljˆVĺΈƵ"],["@@NŧŧôˢƸɭ"],["@@ȂƇ͔X϶χƛÅ܅ƒDžʘ\\ƆŀŽ"],["@@ȪŧʫºÂî"],["@@ŷ¤þèĊ‹ÿ"],["@@ƛ«yƞǐ|Fŭ"],["@@ƩŰƖŨTʗ"],["@@ȼʡ«ƿǶƋǬձԃծµΤĽƖƆ¸"],["@@ŔɝßėșƔ}ƨɋÁíÐɰʢɮɵ"],["@@dzĀÆŬƌÕ]ƕ"],["@@ƩǺ¦ŒȼűķǙ"],["@@޻дУиɶ¹הΥΌʡŠǩ"],["@@ƋP¾ĮĎĽ"],["@@ā˷ĐկּӠɇƌɥʚƛ"]],encodeOffsets:[[[164431,-12081]],[[170121,-11015]],[[165597,-10636]],[[165425,-9856]],[[163585,-9495]],[[164013,-9211]],[[163010,-9342]],[[161903,-8892]],[[161167,-8922]],[[164608,-8513]],[[161550,-8439]],[[160944,-8302]],[[160449,-8113]],[[163717,-8739]],[[159580,-7267]],[[161267,-7506]]]},properties:{name:"Solomon Is.",childNum:16}},{geometry:{type:"MultiPolygon",coordinates:[["@@ΧŔ˲Èǝ[ū"],["@@ÚăIy½śFwh[ĤmĬ̷Ʃʋ‡Åt[†R¤UžG¾žĒĴ†^ÞUE{ţ›ĻǯįÝʽȗȃ͝ʱȩ˛ࠓЖL̰ǽ‹ŹĒė˜ljÎĽǺǀKLjǤʍ«qɢَȝƘǸjĴnjǠĢǔ˦ŊnjʊmȚİ՘HÌer«Œśʐ͵"]],encodeOffsets:[[[-12826,7615]],[[-11016,9611]]]},properties:{name:"Sierra Leone",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ȱ›Ԟ͡P]N¹^§†E’rŐÊŀœƈĝĊ`øIУbyÇʕű˹ىĐƤćક͂ʓƪ Ɩт˴uŰǰt"],encodeOffsets:[[-91507,14762]]},properties:{name:"El Salvador",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@įehɼĈɕ"],encodeOffsets:[[-57617,47963]]},properties:{name:"St. Pierre and Miquelon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŝ¯©ƊȀƬÀƉ÷Ļ"],["@@ýˆìĄRŋ"]],encodeOffsets:[[[6820,124]],[[7602,1606]]]},properties:{name:"São Tomé and Principe",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@tƱ­ăĿƣ_“„ŧcijO³»ĕũɃőıƒA‰MWQ›B‰‚qèŻR¥ •¨U¤uGś—Q×Pć¡·U“¡̃‡ȏΉmuĕsy•o••Q‘Äm®á¶¿ ±K¿O÷ù›ϳČȅĂбۈėѲ˿b΁תǪӈÑŸǦƜ͌|ĸƨğŞľǴȌώؠě˴ƻWnjɘþۄFټƱuʱͱ֓ňځˈΥ"],encodeOffsets:[[-55331,3717]]},properties:{name:"Suriname",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@]“œƃÿƿŷįWƍ̩É˅Ƕ߱sſș͏ů˙Ü۫ȇÉdz߱cԫȤɿ͌òDzƶȰԼ ˞ƪÚNJ֠Ɉˈģʘǖ˨ȍcƗʨoʲǢьÏǰĔҺM͌ǝϠŅÆQ"],encodeOffsets:[[23080,50251]]},properties:{name:"Slovakia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@õręVǷŷйǭaJàĿoĹ̿ŇÞÕÏãPˆZ‡ćuŋTſ¤ƉkťĀ·âmLiy“ãíµqЭ«ʧöɢÜYòƗĤÁǂùKkZOnN~¾¦ÌšfrEhǯˆkĘƎĈ؄–\\j¶܌ĵ̀ǦࣄÒŖƼdžKȜ̛"],encodeOffsets:[[16913,47616]]},properties:{name:"Slovenia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ćŸe˚Ԧٶзࢯ"],["@@əŇĀʷٗБŞƎűЊͶɰ̨îƨã"],["@@ϵ¤Įǒeƥ‘"],["@@ࢭÍכłūɝׁǃ˜ūǕ´Ǝljλˇٍ͎̃ԃᅿ׃ʙƳŴčʗęɛĈŌʋǟćΣLȈɳɑ̭úƵɥ’ÇůĸܿΆƑʜ®ݮӁİɥࡋͯԄˆɱʇવϣٛc׬ťɫ·@޷ʫړѭӭ࢛ŒwŇ̑±ƽŧłʯƗŋઋ^ô˲хҖˤuŧƪǜXtƒϱʐࠅ৲eȆƵzďԶ¤øNJ•êŃƠbž̨įʬڰўḔʙҪΌ¶Ƥʖ؋̴Ůӄʭࡌƨʰ԰ͺΊÚَ»ƲƆÁʔΫİۤ؂Â۠߆ƪ»Ƹ࠘ӆɵ̸րЀҔǬӼś͘ӸඖǗ͆вșƠь`ୀџܚŹڈ΍ƹгɼ‹ýʙ̈ˋʍҷϤϓ"]],encodeOffsets:[[[16926,57642]],[[19535,59224]],[[19617,59313]],[[24736,67385]]]},properties:{name:"Sweden",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ħ»eɛÄȧNˍóz}MwţkdzZŏǹGɯ^Ǐ´ǯłĿǔ¯ļÛNYlR̎ʈζĴŚņô Z„GьȇvX"],encodeOffsets:[[32715,-26580]]},properties:{name:"Swaziland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@DýƅƪÔ¦îő"],encodeOffsets:[[56874,-4805]]},properties:{name:"Seychelles",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӏї̹éĵŋ¶رƅܷǩ˷ᇳࢳ࿥ࢱϑÐӫ̈łǸ›МƔź£Ɩ͈òñðʴʞãǰƥʰƄ΃yÕڔśŶÚɸ®ÊØMƈßvDnjƜzƘɖÀJ|ēǎR¤¨ǐ€Ü~rIJSƒ…˜±æ¥̶SôˆǒÆƾ¨ʈĜӘǫŠDǜ]ȾBŨlƺŠˤòׄɮ঴¸Ƣ¤ĜêˆRœ_jIœŸžķ"],encodeOffsets:[[43376,38e3]]},properties:{name:"Syria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǂ·LJ…Fþ"],encodeOffsets:[[-74068,22376]]},properties:{name:"Turks and Caicos Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@QṳܭeƝƛC̷ɗσʏƟƂ͛ε̥ĺЁͷҏĒĥΤcĶӽĞßV·˦ȟ¿Χ̭Þ؇̓ó̓އݑαɹ୕ǁÏđȈƱқԡޑ½ܩεȩ˄ƕƵΝƧБbÎɜη٨ڃլ̗Шɢʎஊx͇̌ťʖđϸªؚȟւ͕Ѩǻ²ƱBōư˛ϒčΰµȸޜଶच঄ɖᠶȔΐ͘hȆΥӌǟఊࡊϖ←ႱỨལ"],encodeOffsets:[[24556,19965]]},properties:{name:"Chad",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řԛӈ͝²ՓǸʽrႫÿIȺוŽßλŃϙ̨ǯͰĞцœNJƾڸˁͼĮüŒҢʗÄĠŠß”Įլϻ͎Ą̈ßĂҾƉ΄"],encodeOffsets:[[923,11258]]},properties:{name:"Togo",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥŁt͠ĨåuƷ"],["@@ĝƑmŜŌv"],["@@ĿOqƞŲƍ"],["@@O¹tWƬŠǞǩĹΟĬǟזIT½oƅö̍ȩ҇F‡òĵNťȡҹ •Ų½ÀfȸȂŢĀRRļÌôŨš€´eԈòôȔ MǢƁĚ½ĀgÄōš_hL̸Ǥ’Ġ¶ì¨ŒÂhbv†F†Œˆà^ĸIމƎÅĚk¨pĊđŮȑńơĘįʾȥÜƉ³ȉ_ljNȣÎƳȒʱĐÉƴ±Ú¥MƃȊʼnf—CÏoćĿț@ҘïZğoõsɅk»­·ã¯ĉ£»k[S—±«­ʛǜೡăʑǏ̧ҩǭsƎݝɌȳe˱ǔ͏˷и­ÿףҀ޿\\Äٺ̟Ŗ̯éȵȭČǕŁ̗rѧە།öࢯӦpżחŞƉ†äĮȫɠ࢓ę®·ɖąTwȊăƧɚΉԂ˝ЖJԔԻȑΕǏŸĹňωɩōŒÒІƯFijǸ΅øëŐţȭΡκrȖƕĨšŘȧbăȸƻČuƜəƠíǒĽôƃƓĭ¢ÁҖϰ஠°ЄζώΦ֨ǭ٤ɿМ\\ּӉզ̱ԮUȒ̮ƐˆֶȎŌÐƞ«Æƥñȅժ؛ے×вɑȒ̺ÐÒܺǖʐ̚»ҜìƄ˜Ί¨wǴɘ‹ƜĊÄQ¤‰Ĵ¿"]],encodeOffsets:[[[100771,8092]],[[102473,9817]],[[104886,12277]],[[102526,20805]]]},properties:{name:"Thailand",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĕÃÏÔMh^@Î_ĈW"],["@@̟ɝՏȔлƳF}ånj·ly§…ù¬ʩৢÀʢlj֞Ǭ„k\\yW‹CȔ± ũɜؖ“À§ê«ΈƮЀqłZЎ¨~êdƊWJ©{ƗǖɕğĩĘȹȌÉɄĶ҆ǗèܟȌǹȑŹ_T›šċÒьʻr÷E±—‰—ΗćăPuløÌbž[˜ÁX©`ĽtćQƟ­˅šȧȧ࠯˧œŰćʂŲڂ}pÃAćsÏI“b®ɄÝŘѧĬˋ̅ǟŵ]²ķGč¿ç͏œnƏšǏ_ő“ÑÇkó~ĝ]黵¥ƒQí¨ȁƔ£RuK}Ua[]•Y·T­Sʁķó£]©oo£RŧÓġnĻüÙАÔ`ȰҊ،əɘœϢοʟŘʑîÌȾʘƀشíƨʪȖÎÁŤƖ’˻Þը~Ë̴Ŵǚ̚ġׂ͆̌ʿ͉˳ʀƷʲŽ"]],encodeOffsets:[[[72361,40812]],[[72662,41205]]]},properties:{name:"Tajikistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@¥GקȌǭˉɃIǵQř™ŕ½ƒÕƯщ‹Ń¯ñ˝LJˑŗ؛ƓƗĥțÝ‰Ĺ¹ƛā͉íǿǬϿ¬ɵǔçSSȼċĠºǶýϞٹKɹ˚ԝʒŹɐСƢүcށʶƇȲم„ƙƙݟ{ЙɯǙʵڇѝചƏɔ̱ŎƯÛầ̰½ŋĸ^Ȯнà¢ǵșɾÏ̂Ǯ՞ǜǵЄKɈƛѐšµŢ̬ŽfǖԝϖʓԊ՝oǍıŽɝˆѕ̙ӤӀ̰ࣄǀ؞̵Ӥ֙Ҙt࢔·ĎòŻю˜ɢѰÈǸʢϐǁ˓ˢ˚†ĦĮٞϣՌĥ—ȧɒƛĿ™\\̟̬ƭڎɈò΀ƵӤय઀ۅҞƷબا̞LՔɏãǛ]ƽAşXġ"],encodeOffsets:[[68119,38245]]},properties:{name:"Turkmenistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@΄ŶƋȧȷò"],["@@ěʤŞp¤ŮDZU]ĢɌʜǠÔਨĮ̆Ŧˤĝ͋ʓ౏һ˷ȣ"],["@@ÇƟӌŜŔ"]],encodeOffsets:[[[127014,-9565]],[[128070,-9740]],[[128662,-8335]]]},properties:{name:"Timor-Leste",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ê’ßőǥƀǜ¿"],["@@īAĎÚ^×"]],encodeOffsets:[[[-179365,-21677]],[[-178128,-19086]]]},properties:{name:"Tonga",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ݥÅ΀ǘlˮơĬ؞ĺĭƝl҇"],encodeOffsets:[[-62476,10378]]},properties:{name:"Trinidad and Tobago",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȡbpŴɮÅ»ď"],["@@ŻÑŎŜnÉ"],["@@ƇȅĐ֯ſǟŅŽ‹́ƃʛ२ÁȼĭϜׯЄȃјȡİ˽Ҟiؚ̦պ€ȶˆĘèĴÛϜ€״šŶͦ˄qĔतͺŴOƣœĴ˒£ĆΣĴ¥բ˺ÔǕձחĪʍΎɅĮͥίҿӓͯÍȉɌ˟΄TƥȢĦʤˉ¯¹ʪÉCu‡DžOËKɇäıD©}¹ŭËǃõƍëƭû¯¹ƍûŏNjǛ§"]],encodeOffsets:[[[11221,34532]],[[11549,35588]],[[10522,32446]]]},properties:{name:"Tunisia",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʩ@ɀĐªď"],["@@N£ʂ͙ŷȥĆ̗ԼïД˱¤«ȕIJṶ̈̄̅›ȾғvϙŶ©ȧΩ͈ǓaɳȄŧ{ů…p½PÁFǡıÛ¡™‰J™ÎNŴa ‰„“hďXƩùƇHӫŠŽ—Ƌ …SėĥƯķągĸ› iL›^‡Qěéơ£঳·ɉõιƷˣñƹ‰ŧkȽAǛ^şCӗǬʇěƽ§ǑÅó‡ğHŝRķE㦙²Ƒ†ıT}qÛ§ǏQ£Ċȉɕ¿yƗũÅ¡ĕuCƇà×Nçͦ͆̊ŝɄտ˯׃ȰࡑՓݳūΕŰ̗֛̐ɠשÄǕԃٍħϹƘɇ֑͠ĆʇƫÆİՋҪĴȦǔࠕ©ŒŲȠŒϻдƀÊRɈ߉ʢŴ̪ȞʱЂĮȥ~ťȒɂƬǗؐżƟƪǼɎډçWĐäΞҴΈҠ²džŕɆRͬĭĎŤ€Ĭowĵ࢜jȁŦƞĆݠŊءƬ†ʄᄚħǠDz܊Έࣚʎ଴½ɌĚۇŗƦƋɖāв¢̖΁̺öʎƯ૆ɓ࢜ƶ۶ũیʦ˦ƌĄĀLjà}šQĒÂҒ±ĎĴpXbPÚNÔM„]†ÑîsŴĩüng}mXy¬Ȓ—"],["@@ҐnƸΑܠ˗čȅڅÔ֡ěȭʉУǃӍΟ¨ȪҐʾֽ_ÉĮʘȒAʆʚƎ—ǘɕĬîŶtŽÐ~¨Šdɨvꈘ‚ƶd¨b¨[ưŏ"]],encodeOffsets:[[[26594,41100]],[[44476,42144]],[[28135,42954]]]},properties:{name:"Turkey",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĝ”ʮʌǏ˟"],["@@ÜdzûÇʣʀńϚǀϝ"],["@@īҍđÚvψLjl"],["@@Ḯ႗‰ϝപ৏ΕୃÎɗ֠׉ɏгCɧŢsZǕŗεŮнDŽȿìڵبϵЋ̙ƟûۡɉзȷӑĴǏʉƷāƙ‡ͥŦ֡ŝīŠ_¾ýÒƝêŁDŻʼnÉgũfȡRȉGmĬŸÎĭ¬ƓɖºʎćҪȽђ˙Ȥęƥ߿ɚƏîہɦqĦhËjŧMįĔěŶć ɱIĝ¼ÛÞ½öğʀ˃զÿɎčƔęĺŧĦƍĤõÚijȈ¥ä…ŢuŮVºĘDŽV¬YÔ©ŶǙѢeìDÂà˶A ˆKȔŰϠպ͈͠jƄ}ŎÑPė–õd¹rmfQ¨¤ň£¬dzüǀhv’FÂp¸T OȄvÖlĺWĊÞKͼ§Ė©¾ß|ĽƆÞN¢„bTHŸXΚÊZ^GlG౶@ಀ@"]],encodeOffsets:[[[40665,-8168]],[[40445,-6322]],[[40822,-5023]],[[34717,-1026]]]},properties:{name:"Tanzania",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@‘BµF«WίͩĕŔȽ«ŠతǼʹRː઺਎ÛȎϓƼİ͢ûǎŸ̰Ëè˂ʜͪĝɂŀ˴ʁǘƾ֌ƤаĿâ´ƢƢȠȢƀ˥®gk³Ēãł“œ“H›—NjP¯”ǍϪַm¿æ̗ZǙAţƫЋˇǝÑƥȿəǽγ‘ধ౿@౷@iF]JÉY͙ÕeáNSG"],encodeOffsets:[[31243,-1092]]},properties:{name:"Uganda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ś£ӯǝĮцƛ"],["@@֝aؽ̡ȡ¤؛śڿѥɠƤ¥Ɗ͉ɁƢЩκ͓״Řͼ¹Ƴ˟ѭ¹ͯþ͓ʝԯåһ˫ϫƔĖҜ࢟ʲঀҘÏŲƏȑİ؍ûթǖƪŰϟľڲáǼŠ҃vʇӐĨҿ˹^€ĦƇůԙÛӝֻӹŧÞϱřĢƏ¤Ʊaˡħĥj]ol˱ªő°ėĔ¬„œ^DŽh^°mþÐÐʶ¾¸TîĢ–ĊÒrކ¤¿Ħ[ÖEÀ€†ǀ̒E^eHŁhEȠÞ͈ē”Tǔd²žǧĬVðPČq¸“žʱŖĭˠˏǔSЌםƶéEړˬˏę˟@­`ǧýk…Ʃ}ɻȥɇsȁ‡ȋkСƽͳǨߙÄȁKǥĂÁFəŝěƌƽrˡɰķCVƎŸİĀǀŔƄ^”ʸRšø³̰¶Êˤʘ֦Дɖ‚IJĸHðćNJČÂγπ§ǸþĮîGÖ[ðxLŰÖźĢèþத²ࠨŷƮaĸNÌQżŽͦqTāƆĪ֢}Êg¤ï–c”KIJĜàl¨Tˆx¢v”DȴȵۄĄʐǡƶæiªSē¼yĨþìŀôæú¶ŔĀȦHņ°ȒFDŽM̠§ˀɎદŽ֎ӃɵďþΣ܌©ȼƇɼ֥Ѵ’цǗڬǞԾЭDzŎֈȑɎ€ԘʅʦJz˙Ρȱˊƽǯ[ŭǻdž£ĺɯƭ͍݇ѿȵŻѥ"]],encodeOffsets:[[[32781,47313]],[[39132,48222]]]},properties:{name:"Ukraine",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@½ɤ”ĄĴĤ¾öJ̌´Õ˴mxfÈĸʎŒΦ˹Ά͝gŻ\\óŌTȸDzrNžs͒͹腲ˆϖǥ̵̰Ϫǝƈ̃А˫õëăęíéó·{‘g¿@ПƊñ£‰«Ï¿Ɨǩț—ŋ͏ʑ؝ə٫ƂӛĿޝϖօqӏӄŠؘʀʎŸŘƒdžĂàŴH֛ÂYÈjÊGÄyÀlªŀĔˆìŸdžjàŠȄrücƖÚà"],encodeOffsets:[[-59198,-31599]]},properties:{name:"Uruguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʥ¸ƕ֮ȔɞWɘՐɿͨЁٷљ"],["@@Ľ_ÝžƜO€ō"],["@@ǬhʎǍΙŷÑǒǽŮĦðĊđ"],["@@т»ŭĉα´ÞĒ"],["@@ƐűЋXƍɢʼĮƎȵ"],["@@ȣmƱŎǮƴȒGiʋ"],["@@ýMǨ¤ĩ•"],["@@Ǖƿ˖ͤĿǣ"],["@@ș֊`͂Ǻࢋ"],["@@b×ɡժɀӑ"],["@@dzĠŌ€èş"],["@@ǫU͊ČƝõ"],["@@ıkƂʏë"],["@@¨ÕůJĽŮȆá"],["@@ǩĄưZzĝ"],["@@˪©ɓ»ÕĦ"],["@@ũeź¶„Ьˏãǫ"],["@@įŵŦǼuÅ"],["@@ÏÃ֬Şઓ΁ۑÓŖǮʲņߖÔ̐Ɗȣƕ"],["@@ɉlLjĢÂō"],["@@ˍcǶĊĘå"],["@@ĕmĪƺSƋ"],["@@ȋĦƌĦĽ"],["@@ĭ‹pŌþÿ"],["@@DŽȝ̝ʪĨƆð÷ŻÅľÓ"],["@@úśüķ٦ŕŨåˤúĴXΠ»˰ŏðƃÈ@˾tԲȳ̀ŖǠN˜ÍૼœࣞʴՔȯҊdz҈DZࡪΓӨȫǎãǮ̙Ȍ›ˊHŪΗ̦‚ŬĹĻƫ֢ʣ̲ƝÈɛ̆ౙ©ą̗܋Ӄ̽ɱϞʧɂ@ϸǶϼǶЖŨپIJࣘ͐ɐƈÅԛŠ‘öę̢Ɯ¼Ƃ´ŀ”ɘNܦEٶ@ՒԪ̰ȎΘʮͼǖȠ|ĊJᥬFDŽʄϴgӌՔʐڬٞيNJ‹ĨǷלŔήɛJଗ̴ĽÈίȰGŚ˻ǡŷկĉǽljāIJʣJçȽɻæ¦Țϵӫʛ÷‰ðÇđ{ĨŽȅƁêǵõҭבăȳǺǝηʕʶđˀЅΦÎȩɞŎYŌį|ʅשţ™ưϽȋhɌĹÃijĪŏΓ୵ÿࢿ҅Ĭʮĉǎ˜˭˱͕ʖŇěԣ^Ǣؕ࠭Ƈ©¶ǐՃ̂Đʦ̊ǎ˝ŷƽDžǐҡʮ˅ĉƽŰƑݩੱ“ȸˆҲLJdO͠ljçǵƀBƐȺtǑŐŅ£ƢŦƉČǎŊčĠêļɸ¼ŅˆŌĎïØˋə­æ÷ƭųšŦţŋ½ƐבʃȲR×˞ϙѵʬmćģŸș‹ǞКȕʏYȻȐJڂϵãǽůNԱОҾзȴć–Ƿř|«ĥʭȚЊϟį»ȗȘԳĜӠſƺɵШ`Ϻࣿ΍۸ƹƢ̣˟ƔCŏ횚×˧čƥǶPɫրZ[ɻȖɨĂį]Ǒͱʗˇ˜óŖƏďʡĆѶɏɟɻʓƐĂʼnȘëʎ¤Ă­ßýܙȫĭņ„ǡ̷ȯƫ́sȖ¹ɏͣLλNj̑Еƈ¥ɧѻ̇ŅnOţΟƕɫXƈ÷ėœȇƈĞțΙ˱ ùNjȽìMǥƭþõŹÃ×ͭɢࡑ؎વ½ǵň̷ŹɶF̄ñƫJȞűƮǿזೕÛࠋ̝ԓՁûsƠǐơĔɁ϶̍ŶȱюŊǔǯœvΆȕĥǕǰɯτʸ̨ɧĎÄƽōÉčŘLj࢔ࢗ࢐̋ƬɟÕƁ޻ȑāò@ÚĊëİ˓ȸÔƒŵĵחȜ˦NőòߍŹǺüWŜơġǗǏ›xČƣŇ͑…Ǻ¼ȃ͸Ľ˝٧¤ΓÏɣƯҋǠǥùåřȦģπŦÖ±ųğƸēȘŤ ȏ̯ǙפΕŝƻãÄşčÇǴ׹̀ĘǛƅșƕdž̹ƏҏƂŞ|ćȸɟQ͇ʀȯŗ¨ęƩ‰ޏȆյ­]Ɋ£ʓܳʯȞƐɃAŠǞɿŸŔ˧͕Ϳ߯ЍȊŦοLJĪȀɁɉĭćäÅȏˉ§`é̄ĝ̝ůŤƕų˻ˡňÚƛǪ¥ÍɩĴЙʐѱȕ÷ปӚ̉Ԣ£ЮړټϩܖֻԂۡẴijɷ҉ɵǽ߉͚ͥʔЋࠀঙڰʡˊ๟XEϙᛟIẗসĢǨ፹Ƴ˵٘ԧΪˣlăɰՙĂϱʴܿ¬ƏĞ[ҘǕò—Ǻ͑ɂӿռÐѪӳ̚ĕˮ®Ɍ̀ˏ˃МÒ ڐ¤ܱöŅˋΉȔÇÇúǪڗװōܲѱԂʈࣶϽଔ݈͠Ȃཔ»դ٨ÅȵİԛRz˚Ċơ´ȒȉǠɨĎɥÔwåȥעʉˆ¡΀ؠDZࡄāǐÂĺɋĹţ—°ˉ΁ǼlŧOfâѠφţʳĈˍDžÙ»IJǗǓ˜ÿɖ¡ΎƈȐɳŰĞŒɕƠƢ’aƐ£ĞĽb‰¸ÇŞ୎@෤@Ϊ@Ψ@ܒ@੼@。@。@ @੼@ܒ@Ϊ@ܒ@ȤAN͆ʨÅM¶ɋ"],["@@Á¹ÁĜń¡"],["@@ƯnÔüƳŜѲÛȡƩ"],["@@ѭ_ҼȔdz"],["@@Šŋёōɚ͎Ęij"],["@@ȉØļ¨ĎĿ"],["@@ƑjΚǚɇȃ"],["@@Ѿ³ڿƁÚτZ"],["@@ŽBŲĬƀ·ųµ"],["@@ԱYࠪǎŇĎɢĔļ«Ùțҳč"],["@@ˏœ̼ú«ŕ"],["@@ԾƉсċυƼˊÚ"],["@@िћͲͪʺ´þǼϮPŗƍ"],["@@ȲĈŢÅ˃ǧdž«зȃޯŷըȐĶƠǨ«ÊÊ̩ČÌň̪Ķė"],["@@ǹa}ĬǎŒǚęů{"],["@@VŰŤóŹ»"],["@@ŕìƜ¬…ŗ"],["@@ĆƑʞūɱÈ௹ˇÁǂ΄ʤ֠Ť˦Ë"],["@@đāÔƚ~×"],["@@TLJəŚvȨȐƹ"],["@@̕ǥ°ǚʈŴ^ŧ"],["@@ȴCóǩ؉Զ˨ùȢˍ"],["@@[ßƣØǀH"],["@@ŎÆÆǏʵ‘Òɔ÷"],["@@́ɱñȒδ "],["@@ƟRŦĂzē"],["@@ǫʁɓǞ˃ȱëɂȆΒ̘ľɬȑfȩ"],["@@̨gĚȕоǏΦΏ˵ĨĵķǶTǰɑȘ_õеࢭԪƈÌÙnjիǐςŖʼnĬ̷ÑDzƴ‡nj"],["@@ɉĀŐĦɮ•ųƏ"],["@@iƓŻ[̹ŲɾΜˀɇŕ"],["@@ħ²ǰ‚ćó"],["@@ʀ“ƃ£Ļø"],["@@Ǜ”ĘȒɲǿƭ¥"],["@@ɂǍǯѯȫ§Ę͊ʏ͎ȘĀźñ"],["@@̶ՌɅÙ³ʙǬƞ˫˛™еҶԦK"],["@@̯ÓöŐ̈́ĉy"],["@@̌Տ½уʣʬĈƈϓŤŌǤɉȈ̛ȫUɬ̾ɈДƷ"],["@@ЀD­ĹɢŃǑĹѹšɘŹԁijϫƣøû͓ƵȠDzϙźăȇ˫ѴҶǤά̃ŹҶ̔ōɪÄ´ƪʼÙ¡Õ"],["@@İɅɢŐ͢ğ_Ǖ̱¡̠›¢ȱՏƼŅȷǿvփѴȺȺƬķ¦Č̪ "],["@@φcΖџЁΔ͌׉ԕʹ|τνܼȲNj"],["@@ϊ¥āōǗ֓įʏzˣƙϟĀ;ǮǢeÍŚΦ³"],["@@ų´Ȭà÷œ"],["@@DZüΔńǡǿ"],["@@ȿWNJĊ¶ñ"],["@@ŌӲΐƊs׹ѧ"],["@@;ÍŚͳҳűࠫȴʟǖԌV̢ƒ˺B"],["@@ʖѡřëŔʸ”"],["@@ŇɭēĸȜŶ"],["@@іƃͻ|ΉȪʰġ"],["@@ή¯آĂضʳ۴¿›ćԓ•ʽǷţƔࡻ˔ڃÿī̐ʄ¿"],["@@@݁@௯@݃@௯@݃@௯@݃@ӫȪ“Ȧ“ÖæЖĭʠŪψVžH@Áµě¡õˈřҨ˭،͓ÔʻèYƊîŶ¬˂ĠȠDĦʶǂj™ŀԴľˮ^ˈƑĜʑɢõʆDžÂÍĤ÷֠̅ɬɽɰɱϜϗĜýŢŋÎÝ¡­·ÅƴŀkՓąȨÔǝ̒ƒۖʗƠƒÂĝˆ[ìƃǙޥ̣ɋɱŽǓ̌ʤƈ͇դĂņفDZǗ˻ơÄ©ż̨΀ʘ ˱ˆʙƮգՖաĮƵЂ҂ÛΙɢ˺œ̩ ƍãʷȒżϒ˧ʇӉȄӳߺśǻΌߧЙƔ˛WũΠǼÜDžqŏƦÛʃٙɨÏƉϐÃŊLJɒ_Ɛűҟǫ޽˴ࠃӬ੏̤ɔƞBɌȎ˽ÆǬȞ`ϋƪࠧʩࠩNJ@Ǹɗŭੳń৛åŔ׹ƺǮˬҵʏճĈȊƢݩàƮèȷðƀ˄ºങȇĩàɈɂӹƅCǥDZwʦŵ͑ƻѪîž÷ϻзۯTŅĜǟ˯ĭŲñƳǡ ljǽ΅G˝ˁȽ¨үģDZÜÆĸРŊ̔Ɍ͹Ĺ͹ŎϨв’ϖޒʨମŭࠓʜԶˢҗȃՕl࠙ˑߓ׷П~̬ʡҩŽIJŏҹ¿ѳЭٔǑgǣ܍ϙ–ŧٕť٩ϕփǩNj̋ງӗřĻɶįȓőñĺǕǓ؝ƩŗƹģǺؓʭݏƓ½ŢȰ~˅ÚҳЕʿñȳǎ™ȿDž•ɉĢWůǡÝ´ʂ̺Ø৬װМĪˈwęęǞŏĆĮΒÅȻǜȦʶ୒ӌȲó^ȶ˸ɒЌȖ͒kȟƢð̺ΖŤʛº‡ƘҤ˄ƔͰ˩ɍࢣɛʿȤàŲ̂m˻ĦɋƇŋœj҃Ƌ‰؁ьȿùωȚݑɃĩʼnڅsΞŴäˆ˱ŠŸϊӽאϬΌ؇ΩĪɻटǁϳĄݑԔ˝”Ҥ̎Фķ­ƭ̼ƤɨƧʸƖСĆː¤ƍÈȵĕवÌȸƮΉ¶LĘʕơʡȞfǜʵT_Ė̠œɧĜϺÈāȘњ̼ξpƚǴǟïMʜΒĦqƺϺ‚˜ĹķğȞøǼ¹֔Ȃ˶ɚʸÛܾĘ˒ɖǫζхƶҸŨÜƪɱƜՇğࢡχͫɸºȓӍƒ੟œএň˳ŪÆǖљȘ٬ňਹŘֹȢහФ٦Yũǀ૆ɨ۔[ɋBŝ̡˴ō๘“ДȪΞýïŪڝÞՃͦƴŤ٪ЧଠŇNJх¶҅ıϫŰŘːຽèӿшᖉن΀ÆƞϮঔEনżဤજljƛࣞŤ݊ʌɂʿ¨Ȁάx׍ĢʹŶ̮üÂʼnૼĤ௄Ң@ĭݠƝӉljƤïڴɎࠆʡ߲Ōذ§ɐÑƓǃՊ»Ƨĝᖨ¤ೂʃཐµՀŵဖĞіéદ͉;E@݃"]],encodeOffsets:[[[-159315,19469]],[[-160613,21272]],[[-160242,21435]],[[-160986,21725]],[[-161586,21972]],[[-163197,22459]],[[-82989,25311]],[[-82311,25746]],[[-99502,26788]],[[-82111,27934]],[[-93996,30209]],[[-86945,30355]],[[-91365,30807]],[[-121188,34187]],[[-122924,34733]],[[-122759,34898]],[[-77357,36086]],[[-75912,40634]],[[-74250,41970]],[[-71657,42256]],[[-72202,42370]],[[-72951,42488]],[[-69823,45397]],[[-125331,48533]],[[-125514,49313]],[[-97078,50179]],[[-180517,53036]],[[-182148,52890]],[[-181399,52958]],[[-180831,53112]],[[184042,53152]],[[181674,53128]],[[-177718,53388]],[[-176603,53527]],[[-178869,53284]],[[177893,53617]],[[176960,54286]],[[-171995,54626]],[[-170614,55195]],[[-169821,55369]],[[-169534,55436]],[[-166193,56164]],[[-167399,56301]],[[-163343,56476]],[[-134491,56402]],[[-163709,56452]],[[-136050,56212]],[[-164177,56666]],[[-164541,56643]],[[-136504,56877]],[[-159299,57161]],[[-134122,56821]],[[-136771,57692]],[[-135966,57598]],[[-135283,57456]],[[-157909,57872]],[[-173829,57995]],[[-135932,57883]],[[-137205,58210]],[[-136567,58372]],[[-156679,58496]],[[-138209,58728]],[[-156567,59212]],[[-138987,59643]],[[-137912,59558]],[[-156074,59761]],[[-156145,59889]],[[-164781,59983]],[[-151574,61507]],[[-151281,61249]],[[-170122,61833]],[[-149907,61901]],[[-151202,61902]],[[-176888,61909]],[[-175578,65168]],[[-144386,70425]]]},properties:{name:"United States",childNum:76}},{geometry:{type:"MultiPolygon",coordinates:[["@@§QûD«T‚æBb로ÂfE´ÍŰmſ"],["@@‚d´fÇè—hiGo࢟ӹҬƝńƧɀÓǂ@Ā{`ZZǦƺt¸ƤŠó´sˆ]ÆđjĭäOĀmÂn¤[b¯LývWŴ|ʜƣЊ“ѹʫǝªYųɏXρʋ͛Ŕˁ_ʱɿƸ͊˴̋ˀׁ̙ͅĢųǙÌ̳է}˼Ýƕ‘ÂţȕÍƧʩسîʗſËȽʒí ŗπɛϡɚɗ҉؋_ȯÓMx«xýI÷œÙQĹ£ĽtŃČȭŒʱoWĢBŠ^ƾäǜՓɐ̝KફبҝƸ੿ۆӣरͿƶɇñڍ‚̫Ʈ[̠ŀšɑƜ˜ȨՋĦٝϤĥĭ˙…˔ˡϏǂǷʡѯDzɡżэčñ࢓¸AᶢᓢҼᏠউࠜݷৼŘਢÝϴƎӺͻʴεʠĨùࠡЪUǰۅਐdƪƗÅȁȴŹʀƒXɈӎҤຘۖ"]],encodeOffsets:[[[72916,40850]],[[72650,43263]]]},properties:{name:"Uzbekistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ÿŊň҇Ǜ"],encodeOffsets:[[-62642,13474]]},properties:{name:"St. Vin. and Gren.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ñäźļ®ķŕç"],["@@ķǦĈíÅ"],["@@ËȳСĂDŽĖƺíưŊ"],["@@|S’wÌǷͯΏɷeғˏ˧ĉɏ¸ʩśŧΥЙַ̎]Ɲǔ͑\\DZŖĴɛϖΥƦ࣭ւù—ɋӛȋǑ͵ݱΟ̳ΕéE„žƃŠ͇ǕʋeѻϦ˫খ΃ͺȫ@ҢԺ̍ϖNjզ~ٚ̎ֈOɀ̓ĠԧŏߣƒםۤԛŘ͡ē݅žǛ˴ɝźèٚɳ˺ŋКɗŴʵÅ̠ԄŘמừψ̤ʒЂ՜ǐ՗ʕĸ͉njƩõeŘ˱ѥۻв٣͆Ħƀǀ„̜ω۞tδਤ΄ŖŮʖWǖ́¡ÿɘìDzǖä̼וڮ¡ήɫĒЅƀǑཤŞͪ̿؈ƿɼz֌̠Ϧžџ§þ᎚ĘсǍ҃]Ȓȯ¯ȝdžŨȖΗČČÊ»CƂâG˺˿}ƶƬäڞ҃ȗǥȋү̷E˄ƽцƴՒrŴÉƼȱcµĭ³s}•ĝЗȫǣɷĤǷu𦱼W¶nÖC ]h_H•}÷—³˕ƫΫÕµęnÙ~ÇA½pƝ‘Å›ßãóġ^ǬțǶȥDzȡ"]],encodeOffsets:[[[-62461,9081]],[[-62280,9358]],[[-65381,11399]],[[-62199,5327]]]},properties:{name:"Venezuela",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ƽ™ʷ£ļþ"],encodeOffsets:[[-66320,18222]]},properties:{name:"U.S. Virgin Is.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@̥ƙ˼Ǹj"],["@@ĹmŸŊ}ě"],["@@ǗĽÔƨń©"],["@@ҿȉ±ȕǃęЙªÐɟǟǩnœӵϟ̥ࠇɢϵԢұgȑĝx௴ணǒRڔߟМ౫ӝŸ˗j̗ğŶĭėðɉĉrOׅƅŏ«ɋݡσÿƩث˓ɉɚ·ɕȃŖķÏŖi`űʗF˒ƳDžɍϫ̦άэãſչψˠͿTǓ֗ʭ͕ϵ́łŲݲvڮȪ͞ʁǨśȥȮΤļǒƖAǮɨÇúĚ̌ŽĈŁʼÍEȲʯɎI˺žļͤÑ^ɘʊ~њ˚Ʋ™ĨĖ֔Ŋ΂ɯׂǀӠIĨV®išqÄÚކ¾šÒhưµæĕØķĂ·¸ĩƸpŠƠê€~HüϹʺ‹š•IJeV“‡©é’ġƄYƜO²oÞțɜɛǖ˃˔ēȸϹÜ˿Ʉwú¶ĶD†੉ռHˆŠtĄ°ˆÀWæêfz€FǔNʊזPžŖ¶è\\ÊĨĪBđò“„űFkh_ÂI’žĹĕVqb’œÒš®t¨üȟƤŻþÿ‚ϹȽƟêɅ¼ęªȁʼƒÂĊΒĕ®{ÔcQwõÝCáȔϣЌ¤ˆ¼ªƜȮĘіʫ̂˔ƔƳņnj˒ȭǜɔȔąˆIJƬ˄ΊǬӊΡʰ¢Ōĥɚ¨ȨʼnȕɷĨѭʶ¯͊˅΄žǴū"]],encodeOffsets:[[[106562,10641]],[[110102,21429]],[[110186,21727]],[[110564,22025]]]},properties:{name:"Vietnam",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŧéʼnŮ~ŌȴǏ"],["@@̇Ì|ȒņZdžʷ"],["@@ŞŹ»đ̭ôĪƄƢT"],["@@ɟsƖʾš"],["@@̯ĜȠŮŐɉ"],["@@Τ̓͗ėčʹǓØ¢ǐŖÞƯ"],["@@ȥ_ˠƚùŹ"],["@@Ä˥ɠȆŀэęř˯§ŃȎÁٜƬƹ"],["@@Ż…gĈĄ²àij"],["@@ąIJöâPǓ"]],encodeOffsets:[[[173560,-20009]],[[173399,-19394]],[[172489,-17963]],[[172490,-17181]],[[172336,-16728]],[[171431,-16482]],[[171942,-15806]],[[170748,-15182]],[[171607,-14603]],[[171509,-14240]]]},properties:{name:"Vanuatu",childNum:10}},{geometry:{type:"MultiPolygon",coordinates:[["@@ϧœœŨϊmŲƕ"],["@@ƀȁ¡ijʻZȱɲϐª"]],encodeOffsets:[[[-175569,-14383]],[[-176469,-13788]]]},properties:{name:"Samoa",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@Τv˘ġ͍lj·•͹ǶȀƶȔß"],["@@ÇĖþ½"],["@@ÿŒÌºtą"],["@@ُ̕Ź˱˜ʧݧίဇӳֳӳ֭Cӧ͗ԳǑोŃԳѭΝBԥǫ̷Řūɋӌ¨ΨNjˌŹެãǎǕČŢĀçˠĺ̈́‘˸̬ˊv֜ȒƂмLJਚĒ͚Ŀ৊‹ȼʽƖMʤƒŚ˲ӾתܶΦូΒजጉ"]],encodeOffsets:[[[55054,12941]],[[43783,14034]],[[43815,14307]],[[54360,17048]]]},properties:{name:"Yemen",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɡŠǘÐÊę"],["@@ƾӋÃ౑ӯǶŅóijřʇεH̹ÜM°ĻŀǓǰŁǐ³ɰ]ǺHYŐlǴxŤ~NôyòLźyΤVĠD̏଍ȽΟߙٍ଩࿋౫ફହݫկȧԻnșʣӑ¾ƩǏșIݭƴίõ׵Òʷ·ϧʭੑùё˓؇ƞ‚ĺțŤɡ[áʀɃuȧğƄæІӧݞĪĴƆ“ǜȴīٚܧઢͭ࢔ǭͨʕ͢ʶƒ‚¶nŌ€œ†ü¶¶ļŎďƞŗöέܨǁ܎«ìŒÊƚȐƄφļ@Ţ@ᲄϜ̵̦٥ŷ۝ĊęߤP˜†¨ĆȈØä²łLjɈƜޔ¦žɾ֦ɪƚȬEъʹÚsȊMŚğݐ[ʰĀͦޒĶœČ€ɠ¶°€͒˼ɀ֎ֶޜ”ͮΐՊǴĘðÊĮİÆȠhZBʈ Ȭʎěɨ‹ɂ€̦Uļ‹ú³ɐࣣɈ·","@@Ɯ˳͞ˑʮÒĚɜ̈́ɊlϜǨšȀŶŒ²ŀŒĺíȖ֧ђ•YģkȩïůßĿÿȉÇχӡȥęŘ˅"]],encodeOffsets:[[[38766,-48070]],[[32563,-24465],[27847,-30659]]]},properties:{name:"South Africa",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĐŽĐđ[ûuëǾǓRį`ĞƋ̳ʣòʱģȷ‡[Mįàſ©ΟôǏƠ‘ҋ̓Oѯʟ̫ńĉƸˏƖÌ®Ó᠁ࠑƐշޅ­ӗʓŷҙ̩۟މࢿȭéϑĦ˳“إƪɍȌɥ¨ϩŒݧƇঽ࡚ǵ֢A౞@˒@˒@ڠȘ@൒@ĶZåDŽH²pĜØފcܔͲɑXʋފǤ¼Ή֪ɡڢÙˮ͖Βխ۶ʓŜˋƮõʆϋǀ{̒ŲȄǃjંʋÓmDžΟÎӥҌċȶɘࡢ“ܸǟϢЀτzʦ༔ʖâLJ¾õÜÝĞ»ɰJĊŸð¹lûİēȶƒFÝl‡ۂɥƎíÜǷŸf"],encodeOffsets:[[33944,-9834]]},properties:{name:"Zambia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǵḀ̄TɁ}ɩŒʍĜȩŽʇŸYA¥ŠßàǍ¾aȄࡗȲ́ЬTҼͯrđ͆ࡓӀȕԌבࠂ`ƨئƩ˴”ϒĥȮêފࣀ̪۠ŸҚӘʔކ®–̑ڢyעͽࡐʃÑƝĮఏʗӥŴƍÓʇǸԃп֥śЏÜƉࡁࡃšđ"],encodeOffsets:[[32039,-22939]]},properties:{name:"Zimbabwe",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڽը¿ުەߖ٬֖NΦxHޠ—цǒŴ\\ǔéº`Ęfú[ǜ¹~}¢ũŠYĨ†ĀcĖŸÌ›œ£¢áfÁnÛ½˩ƄÇÞŻ~eÖBŒvİ”¤RXĩ̙Ą§’až÷Îŕœ÷ĸȣ¡ıǽûsmQ}«»ď§řjʅõōDđ³Û«ŷ³அɘŅ™ĭ“āuƕɳ`«Ī¢§NÙéžõʠ{ɩɥƤǵšɇ"],encodeOffsets:[[75785,34052]]},properties:{name:"",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͙̄͟ƹիԠύfʛϋӻýģлʫ@˭ƪǕIđŠmɜ\\™cȝ`¥”CƴˁȖƈʊƣǶɪɦʟ|öÜêOž¡¨ĩŽ_¬ƖɴĂxĮ’ņšஆɗŸ´Ü¬Ĕ´ŌCʆöŚiШ®¼P~tnǾü~Ðd¢̀NJŰÜŀÄǬȲ_„́êǁƘ˹Ҏǹҍ†ĽȱǷ´ǡæͅìíƐĵn­ĵ˜§rчɃŝƑŢa¸ȵw"]],encodeOffsets:[[[80376,33312]]]},properties:{name:"",childNum:1}}],UTF8Encoding:!0}):i("ECharts Map is not loaded"):i("ECharts is not Loaded")}))},c553:function(e,t,i){},c611:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailList",attrs:{data:e.list,stripe:""},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionId",label:e.$t("trials:reviewTrack:table:criterionName"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TrialCriterionName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:e.$t("trials:emailManageCfg:title:businessScenario"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ToUserTypeList",label:e.$t("trials:emailManageCfg:title:toUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ToUserTypeNameList.length>0?t.row.ToUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CopyUserTypeList",label:e.$t("trials:emailManageCfg:title:copyUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CopyUserTypeNameList.length>0?t.row.CopyUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:subject:title:report"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",disabled:!t.row.fileInfo,circle:"",title:e.$t("trials:uploadedDicoms:action:preview")},on:{click:function(i){return e.handlePreview(t.row.fileInfo.RelativePath)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-pie-chart",circle:"",title:"生成报告"},on:{click:function(i){return e.handleGenerate(t.row)}}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"80px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-message",disabled:!t.row.fileInfo,circle:"",title:e.$t("trials:subject:title:send")},on:{click:function(i){return e.sendEmail(t.row)}}})]}}])})],1)],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("a481"),i("3e42")),s=i("958c"),l=i("6071"),c=function(){return{BusinessScenarioEnum:null,CriterionTypeEnum:null,TrialReadingCriterionId:null}},u={name:"Message",components:{BaseContainer:l["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:c(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1,trialId:"",trialCriterionList:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.emailList.doLayout()}))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{sendEmail:function(e){var t=this,i=this.$t("trials:subject:message:sendReport").replace("xxx",this.data.Code);this.$confirm(i).then((function(){t.loading=!0,Object(o["re"])({VisitTaskId:e.fileInfo.VisitTaskId,SendFileRelativePath:e.fileInfo.RelativePath}).then((function(e){t.loading=!1,t.$message.success(t.$t("trials:subject:message:sendSuccessfully"))})).catch((function(){t.loading=!1}))}))},handleGenerate:function(e){var t=this;this.loading=!0,Object(o["qe"])({SubjectId:this.data.Id,TrialReadingCriterionId:e.TrialReadingCriterionId,BusinessScenarioEnum:e.BusinessScenarioEnum}).then((function(i){t.loading=!1,t.$set(e,"fileInfo",i.Result)})).catch((function(){t.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.IsDistinguishCriteria=!0,Object(o["Jd"])(this.searchData).then((function(t){e.loading=!1,t.Result.forEach((function(t){t.ToUserTypeNameList=e.getUserTypeName(t.ToUserTypeList),t.CopyUserTypeNameList=e.getUserTypeName(t.CopyUserTypeList)})),e.list=t.Result})).catch((function(){e.loading=!1}))},getUserTypeName:function(e){var t=this,i=e.map((function(e){return t.$fd("UserType",e)}));return i},getUserList:function(e,t){return e.filter((function(e){return e.EmailUserType===t}))},getUsersByType:function(e,t){var i=e.filter((function(e){return e.EmailUserType===t})),n=i.map((function(e){return e.RealName}));return n.join("、")},handleAdd:function(){this.editDialog.title=this.$t("common:button:new"),this.currentRow={CriterionTypeEnum:this.criterionType},this.editDialog.visible=!0},handleEdit:function(e){this.editDialog.title=this.$t("common:button:edit"),this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handlePreview:function(e){e&&window.open(e,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},c62c:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function c(e,t){return t.type||(t.data?"category":"value")}n.merge(s.prototype,o),r("single",s,c,l);var u=s;e.exports=u},c637:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"personnel-container"},[i("Staff",{ref:"staffList",staticStyle:{width:"100%"}})],1)},a=[],r=i("b02f"),o=i("a082"),s={name:"PersonnelManage",components:{Staff:r["default"],Site:o["default"]},data:function(){return{activeNames:["Staff","Sites"]}},methods:{refreshPage:function(){this.$refs["staffList"].handleReset(),this.$refs["siteList"].handleReset()}}},l=s,c=(i("de66"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c662:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Global1")])]),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.Global1VisitRS,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.SubjectNote1,callback:function(t){e.SubjectNote1=t},expression:"SubjectNote1"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.PreviousGlobalReadsList1,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Global2")])]),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.Global2VisitRS,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.SubjectNote2,callback:function(t){e.SubjectNote2=t},expression:"SubjectNote2"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.PreviousGlobalReadsList2,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1)],1)],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"basicInfoForm",attrs:{size:"small"}},[i("el-row",[i("el-col",{attrs:{span:12,offset:6}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Which one do you prefer?","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.adReport.SelectGlobalId,callback:function(t){e.$set(e.adReport,"SelectGlobalId",t)},expression:"adReport.SelectGlobalId"}},[i("el-radio",{attrs:{label:e.dbAdInfo.Global1Id}},[e._v("Global1")]),e._v(" "),i("el-radio",{attrs:{label:e.dbAdInfo.Global2Id}},[e._v("Global2")])],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:8,offset:6}},[i("el-form-item",{attrs:{label:"Note: ",prop:"Note"}},[i("el-input",{attrs:{type:"textarea",rows:8,placeholder:"Please input Note"},model:{value:e.adReport.AdNote,callback:function(t){e.$set(e.adReport,"AdNote",t)},expression:"adReport.AdNote"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{staticStyle:{"margin-left":"120px"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.AddADReport}},[e._v("Save")])],1)],1)],1)],1)],1),e._v(" "),e.dialogVisible?i("div",[i("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"90%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[1==e.rowVisitNum?i("baseline-task"):e._e(),e._v(" "),1!=e.rowVisitNum?i("visit-task",{attrs:{"global-row-visit-num":e.rowVisitNum,"visit-tp-code":e.rowTpCode}}):e._e()],1)],1):e._e()])},a=[],r=i("0a05"),o=i("414c"),s=i("54b7"),l={name:"GlobalTask",components:{VisitTask:s["default"],BaselineTask:o["default"]},data:function(){return{token:zzSessionStorage.getItem("TokenKey"),pageAdInfo:"",dbAdInfo:"",isReportSaved:!1,activeNames:["TimepointEfficacy","CommentsForSubject","PreviousGlobalReads"],PreviousGlobalReadsList1:[],PreviousGlobalReadsList2:[],SubjectNote1:"",SubjectNote2:"",Global1VisitRS:[],Global2VisitRS:[],dialogVisible:!1,rowVisitNum:0,rowTpCode:"",dialogTitle:"",adReport:{AdID:"",SelectGlobalId:"",AdNote:""},timepointEfficacyList:[],previousGlobalReadsList:[]}},created:function(){this.pageAdInfo=this.$route.query},mounted:function(){this.GetAdReport(this.pageAdInfo.Id)},methods:{GetAdReport:function(e){var t=this;Object(r["c"])(e).then((function(e){t.PreviousGlobalReadsList1=e.Result.Global1.PreviousGlobalReadsList,t.SubjectNote1=e.Result.Global1.SubjectNote,t.Global1VisitRS=e.Result.Global1VisitRS,t.PreviousGlobalReadsList2=e.Result.Global2.PreviousGlobalReadsList,t.SubjectNote2=e.Result.Global2.SubjectNote,t.Global2VisitRS=e.Result.Global2VisitRS,t.dbAdInfo=e.Result.ADInfo,t.adReport.SelectGlobalId=t.dbAdInfo.SelectGlobalId,t.adReport.AdNote=t.dbAdInfo.AdNote}))},AddADReport:function(){var e=this;this.adReport.AdID=this.pageAdInfo.Id,Object(r["a"])(this.adReport).then((function(t){e.$message.success("Report saved successfully"),e.GetAdReport(e.pageAdInfo.Id)}))},goVisitImage:function(e){var t=this.$router.resolve({path:"/showdicom",query:{tpCode:e.TpCode,visitNum:e.VisitNum,token:zzSessionStorage.getItem("TokenKey")}});window.setTimeout((function(){window.open(t.href,"_blank")}),1e3)},goCRF:function(e){this.rowVisitNum=e.VisitNum,this.dialogVisible=!0,this.rowTpCode=e.TpCode,this.dialogTitle=this.globalInfo.TrialCode+"/"+this.globalInfo.SubjectCode+"/"+e.VisitName}}},c=l,u=(i("5678"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},c686:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[-1!==e.fileType.indexOf("jpg")||-1!==e.fileType.indexOf("png")?i("iframe",{attrs:{frameborder:"0",src:e.filePath,width:"100%",height:"100%"}}):-1!==e.fileType.indexOf("pdf")?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.filePath+"?userName="+e.currentUser+"%26email=932230508@qq.com",width:"100%",height:"100%",frameborder:"0"}}):i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:e.downLoadFile}},[e._v(e._s(e.$t("common:button:download")))])],1)])},a=[],r=i("db72"),o=i("2f62"),s={name:"PreviewFile",computed:Object(r["a"])({},Object(o["b"])(["name"])),props:{filePath:{type:String,required:!0},fileType:{type:String,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName")}},mounted:function(){},methods:{downLoadFile:function(){this.filePath&&window.open(this.filePath,"_blank")}}},l=s,c=(i("90ce"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c6bd:function(e,t,i){},c6ce:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.typeOptions,(function(e){return i("el-option",{key:e.FileTypeId,attrs:{label:e.FileType,value:e.FileTypeId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:fileName")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:user")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.UserId,callback:function(t){e.$set(e.searchData,"UserId",t)},expression:"searchData.UserId"}},e._l(e.userOptions,(function(t){return i("el-option",{key:t.UserId,attrs:{label:t.RealName,value:t.UserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.RealName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"5px"}},[e._v("\n "+e._s(t.UserName)+"\n ")])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:userType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.UserTypeId,callback:function(t){e.$set(e.searchData,"UserTypeId",t)},expression:"searchData.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",type:"primary"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"AttachmentsManagement",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:signRecords:table:fileType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:signRecords:table:fileName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSystemDoc",label:e.$t("trials:signRecords:table:fileLevel"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSystemDoc?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("IsSystemDoc",t.row.IsSystemDoc)))]):i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("IsSystemDoc",t.row.IsSystemDoc)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:signRecords:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:signRecords:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:signRecords:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RealName",label:e.$t("trials:signRecords:table:user"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:signRecords:table:userName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserTypeShortName",label:e.$t("trials:signRecords:table:userType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:signRecords:table:confirmTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:signRecords:action:preview"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.$t("trials:signRecords:action:preview"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e()],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("c686"),d=(i("4360"),function(){return{FileTypeId:"",Name:"",UserId:"",UserTypeId:"",PageIndex:1,PageSize:20}}),f={name:"AttachmentsManagement",components:{BaseContainer:l["default"],Pagination:c["default"],PreviewFile:u["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,currentRow:{},currentPath:"",currentType:"",previewVisible:!1,userOptions:[],userTypeOptions:[],currentUser:zzSessionStorage.getItem("userName"),typeOptions:[],trialId:this.$route.query.trialId}},mounted:function(){this.getTypeOptions(),this.getUserSelect(),this.getUserType(),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["dc"])(this.searchData).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount,console.log(e.total);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getTypeOptions:function(){var e=this;Object(s["Fd"])(this.trialId).then((function(t){e.typeOptions=t.Result}))},getUserSelect:function(){var e=this;Object(s["ce"])(this.trialId).then((function(t){e.userOptions=t.Result}))},getUserType:function(){var e=this;Object(s["de"])().then((function(t){e.userTypeOptions=t.Result}))},handlePreview:function(e){this.currentRow=Object(r["a"])({},e);var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.AttachmentsManagement.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},c6f7:function(e,t,i){},c6fb:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",overflow:"auto"}},[i("router-view",{key:e.$route.path+e.$route.query.trialId+(new Date).getTime()})],1)},a=[],r={created:function(){}},o=r,s=(i("4b35"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},c746:function(e,t,i){"use strict";i("71ed")},c765:function(e,t,i){},c775:function(e,t,i){var n=i("2b17"),a=n.retrieveRawValue;function r(e,t){var i=e.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return a(e,t,i[0]);if(n){for(var r=[],o=0;o0&&e.setChild(t.Childrens)})),this.isRender=!0},methods:{handleSave:function(){var e=this;this.$refs.assessmentForm.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:for(r in n=e.$loading({fullscreen:!0}),a=[],e.form)a.push({questionId:r,answer:e.form[r]});o={visitTaskId:e.visitTaskId,answerList:a},Object(s["submitTaskAdditionalQuestion"])(o).then((function(t){e.$emit("sign"),n.close()})).catch((function(){n.close()}));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleCancel:function(){this.$emit("close")},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.form,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.form[e]=null},setFormItemData:function(e){this.form[e.key]=e.val}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},c877:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reset-wrapper"},[i("el-page-header",{attrs:{content:e.$t("passwordReset:title:reset")},on:{back:e.goBack}}),e._v(" "),i("div",{staticClass:"box-wrapper"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"resetForm",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"150px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("passwordReset:form:email"),prop:"EmailOrPhone"}},[i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{autocomplete:"off"},on:{change:e.handleEmailChange},model:{value:e.form.EmailOrPhone,callback:function(t){e.$set(e.form,"EmailOrPhone",t)},expression:"form.EmailOrPhone"}})],1),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[i("el-button",{staticStyle:{width:"80%"},attrs:{size:"small",type:"primary",disabled:e.sendDisabled},on:{click:e.handleSendCode}},[e._v(e._s(e.sendTitle))])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"验证码",required:""}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"VerificationCode"}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.VerificationCode,callback:function(t){e.$set(e.form,"VerificationCode",t)},expression:"form.VerificationCode"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:4}},[i("el-button",{staticStyle:{width:"80%"},attrs:{size:"small",type:"primary",disabled:""===e.form.VerificationCode||""===e.form.EmailOrPhone},on:{click:e.verifyCode}},[e._v("\n "+e._s(e.$t("passwordReset:button:verify"))+"\n ")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("passwordReset:form:userName"),prop:"UserId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:""},on:{change:e.handleUserChange},model:{value:e.form.UserId,callback:function(t){e.$set(e.form,"UserId",t)},expression:"form.UserId"}},e._l(e.users,(function(t){return i("el-option",{key:t.UserId,attrs:{label:t.UserName,value:t.UserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.UserName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),e.form.UserId?i("el-form-item",{attrs:{label:e.$t("passwordReset:form:userType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.UserType,callback:function(t){e.$set(e.form,"UserType",t)},expression:"form.UserType"}})],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:e.$t("passwordReset:form:password"),prop:"NewPwd"}},[i("el-input",{attrs:{"show-password":"",autocomplete:"off"},model:{value:e.form.NewPwd,callback:function(t){e.$set(e.form,"NewPwd",t)},expression:"form.NewPwd"}}),e._v(" "),i("span",{staticStyle:{position:"absolute",right:"-30px"}},[i("el-tooltip",{attrs:{content:e.$t("passwordReset:form:passwordCentent"),placement:"top"}},[i("i",{staticClass:"el-icon-question",staticStyle:{color:"#00d1b2"}})])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("passwordReset:form:confirmPassword"),prop:"CheckPass"}},[i("el-input",{attrs:{"show-password":"",autocomplete:"off"},model:{value:e.form.CheckPass,callback:function(t){e.$set(e.form,"CheckPass",t)},expression:"form.CheckPass"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.onCancel}},[e._v("\n "+e._s(e.$t("passwordReset:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("passwordReset:button:submit"))+"\n ")])],1)],1)],1)],1)},a=[],r=(i("20d6"),i("c24f")),o=i("8237"),s=i.n(o),l="",c=60,u={data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("passwordReset:formRule:email")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.EmailOrPhone&&a.test(e.form.EmailOrPhone)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("passwordReset:formRule:passwordinvalid"))),e.sendDisabled=!0)}},i=function(t,i,n){""===i||void 0===i?n(new Error(e.$t("passwordReset:formRule:confirmPassword"))):void 0!==i&&i!==e.form.NewPwd?n(new Error(e.$t("passwordReset:formRule:passwordsDiffer"))):n()};return{form:{EmailOrPhone:"",VerificationCode:"",NewPwd:"",UserId:"",UserType:""},users:[],CheckPass:"",rules:{EmailOrPhone:[{required:!0,validator:t,trigger:["blur","change"]}],VerificationCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],NewPwd:[{required:!0,validator:this.$validatePassword,trigger:["blur","change"]}],CheckPass:[{required:!0,validator:i,trigger:["blur","change"]}],UserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},sendDisabled:!0,sendTitle:"发送验证码",formLoading:!1}},methods:{onSubmit:function(){var e=this;this.$refs["resetForm"].validate((function(t){t&&(e.formLoading=!0,Object(r["b"])(e.form.UserId,s()(e.form.NewPwd)).then((function(t){t.IsSuccess?(e.$message.success(e.$t("passwordReset:message:updatedSuccessfully")),e.formLoading=!1,e.goBack()):e.$message.error(t.ErrorMessage)})).catch((function(){e.formLoading=!1})))}))},handleSendCode:function(){var e=this,t=this;this.sendDisabled=!0,Object(r["a"])(this.form.EmailOrPhone).then((function(e){e.IsSuccess?t.settime(t):t.$message.error(e.ErrorMessage)})).catch((function(){e.sendDisabled=!1}))},verifyCode:function(){var e=this;this.formLoading=!0,Object(r["i"])(this.form.EmailOrPhone,this.form.VerificationCode).then((function(t){e.formLoading=!1,e.users=t.Result})).catch((function(){e.formLoading=!1}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&e.test(this.form.EmailOrPhone)&&(this.sendDisabled=!1)},handleUserChange:function(e){var t=this.users.findIndex((function(t){return t.UserId===e}));t>-1&&(this.form.UserType=this.users[t].UserType)},settime:function(e){if(0===c)return e.sendDisabled=!1,e.sendTitle="发送验证码",c=60,void clearTimeout(l);e.sendDisabled=!0,e.sendTitle="".concat(this.$t("passwordReset:button:wait"),"(").concat(c,"s)"),c--,c=c,l=setTimeout((function(){e.settime(e)}),1e3)},onCancel:function(){this.$refs["resetForm"].resetFields()},goBack:function(){this.$router.push("/login")}}},d=u,f=(i("9746"),i("404e"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"1401f65e",null);t["default"]=h.exports},c8a7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("58c1"),u=2,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},c8ef:function(e,t,i){var n=i("6d8b"),a=i("a15a"),r=a.createSymbol,o=i("2306"),s=o.Group,l=i("3842"),c=l.parsePercent,u=i("1418"),d=3;function f(e){return n.isArray(e)||(e=[+e,+e]),e}function h(e,t){var i=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?i:null,fill:"fill"===t.brushType?i:null}})}))}function p(e,t){s.call(this);var i=new u(e,t),n=new s;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(e,t)}var m=p.prototype;m.stopEffectAnimation=function(){this.childAt(1).removeAll()},m.startEffectAnimation=function(e){for(var t=e.symbolType,i=e.color,n=this.childAt(1),a=0;a=0;s--){var l=2*s,c=n[l]-r/2,u=n[l+1]-o/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+o)return s}return-1}});function c(){this.group=new n.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e,t){this.group.removeAll();var i=new l({rectHover:!0,cursor:"default"});i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!1,t),this.group.add(i),this._incremental=null},u.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var i=2*(e.endIndex-e.startIndex),n=4*e.startIndex*2;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t)}))}},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t,i){var n;this._incremental?(n=new l,this._incremental.addDisplayable(n,!0)):(n=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),n.incremental=!0,this.group.add(n)),n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!!this._incremental,i)},u._setCommon=function(e,t,i,n){var a=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=r(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var l=e.shape.size[0]=0&&(e.dataIndex=i+(e.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var d=c;e.exports=d},c993:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"logincal-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"logicalConfigForm",staticStyle:{width:"800px"},attrs:{model:e.form,"label-width":"220px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNumberRule"),prop:"IsNoticeSubjectCodeRule"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},on:{change:e.subjectCodeRuleChange},model:{value:e.form.IsNoticeSubjectCodeRule,callback:function(t){e.$set(e.form,"IsNoticeSubjectCodeRule",t)},expression:"form.IsNoticeSubjectCodeRule"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsNoticeSubjectCodeRule"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.form.IsNoticeSubjectCodeRule?i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNumFormat"),prop:"SubjectCodeRule"}},[i("el-input",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,type:"textarea",autosize:{minRows:2,maxRows:4},maxlength:"50","show-word-limit":""},model:{value:e.form.SubjectCodeRule,callback:function(t){e.$set(e.form,"SubjectCodeRule",t)},expression:"form.SubjectCodeRule"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNum2"),prop:"IsSubjectSecondCodeView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectSecondCodeView,callback:function(t){e.$set(e.form,"IsSubjectSecondCodeView",t)},expression:"form.IsSubjectSecondCodeView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsSubjectSecondCodeView"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:scanDateVerify"),prop:"IsVerifyVisitImageDate"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsVerifyVisitImageDate,callback:function(t){e.$set(e.form,"IsVerifyVisitImageDate",t)},expression:"form.IsVerifyVisitImageDate"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsVerifyVisitImageDate"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:visitBaseDate"),prop:"IsHaveFirstGiveMedicineDate"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsHaveFirstGiveMedicineDate,callback:function(t){e.$set(e.form,"IsHaveFirstGiveMedicineDate",t)},expression:"form.IsHaveFirstGiveMedicineDate"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsHaveFirstGiveMedicineDate"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectAge"),prop:"IsHaveSubjectAge"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsHaveSubjectAge,callback:function(t){e.$set(e.form,"IsHaveSubjectAge",t)},expression:"form.IsHaveSubjectAge"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsHaveSubjectAge"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectGender"),prop:"IsSubjectSexView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectSexView,callback:function(t){e.$set(e.form,"IsSubjectSexView",t)},expression:"form.IsSubjectSexView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsSubjectSexView"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:lastVisitName"),prop:"OutEnrollmentVisitName"}},[i("el-input",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,maxlength:"50","show-word-limit":""},model:{value:e.form.OutEnrollmentVisitName,callback:function(t){e.$set(e.form,"OutEnrollmentVisitName",t)},expression:"form.OutEnrollmentVisitName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:imageCopy"),prop:"IsImageReplicationAcrossTrial"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsImageReplicationAcrossTrial,callback:function(t){e.$set(e.form,"IsImageReplicationAcrossTrial",t)},expression:"form.IsImageReplicationAcrossTrial"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsImageReplicationAcrossTrial"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:bodypart"),prop:"BodyPartTypes"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:8},disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,maxlength:"500","show-word-limit":""},model:{value:e.form.BodyPartTypes,callback:function(t){e.$set(e.form,"BodyPartTypes",t)},expression:"form.BodyPartTypes"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:modality"),prop:"ModalityListStr"}},[i("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},disabled:""},model:{value:e.form.ModalityListStr,callback:function(t){e.$set(e.form,"ModalityListStr",t)},expression:"form.ModalityListStr"}}),e._v(" "),i("el-button",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,icon:"el-icon-plus",circle:""},on:{click:e.handleSetModality}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:exceededDays"),prop:"ChangeDefalutDays"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.ChangeDefalutDays,callback:function(t){e.$set(e.form,"ChangeDefalutDays",t)},expression:"form.ChangeDefalutDays"}})],1),e._v(" "),i("el-form-item",[!1===e.form.IsTrialBasicLogicConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),!1===e.form.IsTrialBasicLogicConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&!e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleUpdate}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:updateAndConfirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e()],1)],1),e._v(" "),e.confirmVisible?i("el-dialog",{attrs:{visible:e.confirmVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.confirmVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal"),"show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleConfirmConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.updateVisible?i("el-dialog",{attrs:{visible:e.updateVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.updateVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OldVal",label:e.$t("trials:trialCfg:table:cfgVal")+" ("+e.$t("trials:trialCfg:table:beforeChange")+")","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal")+" ("+e.$t("trials:trialCfg:table:updated")+")","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{fontColor:t.row.NewVal!==t.row.OldVal}},[e._v(e._s(t.row.NewVal))])]}}],null,!1,1329206807)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleUpdateConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{visible:e.clinicalDataVisible,"close-on-click-modal":!1,title:"临床数据配置",width:"1200px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"base-dialog-body"},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddClinicalData}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("el-table",{ref:"clinicalData",attrs:{data:e.clinicalDataList,stripe:"",height:"400","row-key":"Id"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0,selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:"临床数据名称",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadRole",label:"上传人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalDataUploadRole",t.row.UploadRole))+"\n ")]}}],null,!1,1127071785)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:"数据级别",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}],null,!1,3396559462)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:"传输方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}],null,!1,2625700950)}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}],null,!1,3732858332)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.row.FileName},on:{click:function(i){return e.handleDownloadTpl(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:t.row.IsUsed},on:{click:function(i){return e.handleEditClinicalData(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini",disabled:t.row.IsUsed||e.form.ClinicalDataSetNames.indexOf(t.row.ClinicalDataSetName)>-1},on:{click:function(i){return e.handleDeleteClinicalData(t.row)}}},[e._v("\n 删除\n ")])]}}],null,!1,972516598)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.clinicalDataVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmClinicalData}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e(),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{"trial-id":e.form.TrialId,data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getClinicalDataList}})],1):e._e(),e._v(" "),e.modalityListVisible?i("el-dialog",{attrs:{visible:e.modalityListVisible,"close-on-click-modal":!1,title:"检查技术","custom-class":"base-dialog-wrapper",width:"400px"},on:{"update:visible":function(t){e.modalityListVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{ref:"multipleTable",staticClass:"criterion-table",attrs:{data:e.$d.Modality,stripe:"",height:"450","row-key":"Id"},on:{select:e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"value",label:"检查技术"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.modalityListVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmModality}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("7514"),i("ac6a"),i("6b54"),i("3e42")),l=i("0662"),c=i("179b"),u=i("f0e0"),d=i("7a9e"),f={name:"LogicalConfig",components:{SignForm:c["default"],ClinicalDataForm:u["default"]},data:function(){return{form:{TrialId:"",IsNoticeSubjectCodeRule:!1,SubjectCodeRule:"",IsSubjectSecondCodeView:!1,IsVerifyVisitImageDate:!1,IsHaveFirstGiveMedicineDate:!0,IsHaveSubjectAge:!1,IsSubjectSexView:!1,OutEnrollmentVisitName:"EOT",IsImageReplicationAcrossTrial:!1,BodyPartTypes:"",Modalitys:"",ModalityList:[],ModalityListStr:"",ChangeDefalutDays:5,IsTrialBasicLogicConfirmed:!1},rules:{IsNoticeSubjectCodeRule:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],SubjectCodeRule:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],IsSubjectSecondCodeView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsVerifyVisitImageDate:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsHaveFirstGiveMedicineDate:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],OutEnrollmentVisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],BodyPartTypes:[{required:!0,message:this.$t("trials:trialCfg:formRule:bodyPart"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],ModalityListStr:[{required:!0,message:this.$t("trials:trialCfg:formRule:modality"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signText:"",signCode:"",currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1,clinicalDataList:[],clinicalDataVisible:!1,addOrEditCD:{visible:!1,title:""},currentRow:{},selectClinicalDataArr:[],selectedCD:[],listLoading:!1,modalityListVisible:!1,selectedList:[]}},methods:{handleConfirmModality:function(){this.form.ModalityList=Object.assign([],this.selectedList.map((function(e){return e.value}))),this.form.ModalityListStr=this.form.ModalityList.toString().replaceAll(",","|"),this.modalityListVisible=!1},handleSelectionChange:function(e){this.selectedList=e},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSetModality:function(){var e=this;this.modalityListVisible=!0,this.$nextTick((function(){var t=e.$d.Modality.filter((function(t){return!!e.form.ModalityList.find((function(e){return e===t.value}))}));e.toggleSelection(t)}))},handleSave:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.loading=!0,Object(s["Z"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.initialForm=Object(o["a"])({},e.form))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=d["default"].processSignature.LogicalConfigConfirmation;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=d["default"].processSignature.LogicalConfigUpdates;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.btnLoading=!0,Object(s["Z"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1})))}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(l["a"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialBasicLogicConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.updateVisible=!1,t.confirmVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:logincCfg:form:subjectNumberRule"),NewVal:this.$fd("YesOrNo",this.form.IsNoticeSubjectCodeRule),OldVal:this.$fd("YesOrNo",this.initialForm.IsNoticeSubjectCodeRule)},{Name:this.$t("trials:logincCfg:form:subjectNumFormat"),NewVal:this.form.SubjectCodeRule,OldVal:this.initialForm.SubjectCodeRule},{Name:this.$t("trials:logincCfg:form:subjectNum2"),NewVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSecondCodeView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSecondCodeView)},{Name:this.$t("trials:logincCfg:form:scanDateVerify"),NewVal:this.$fd("YesOrNo",this.form.IsVerifyVisitImageDate),OldVal:this.$fd("YesOrNo",this.initialForm.IsVerifyVisitImageDate)},{Name:this.$t("trials:logincCfg:form:visitBaseDate"),NewVal:this.$fd("YesOrNo",this.form.IsHaveFirstGiveMedicineDate),OldVal:this.$fd("YesOrNo",this.initialForm.IsHaveFirstGiveMedicineDate)},{Name:this.$t("trials:logincCfg:form:subjectAge"),NewVal:this.$fd("YesOrNo",this.form.IsHaveSubjectAge),OldVal:this.$fd("YesOrNo",this.initialForm.IsHaveSubjectAge)},{Name:this.$t("trials:logincCfg:form:subjectGender"),NewVal:this.$fd("YesOrNo",this.form.IsSubjectSexView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSexView)},{Name:this.$t("trials:logincCfg:form:lastVisitName"),NewVal:this.form.OutEnrollmentVisitName,OldVal:this.initialForm.OutEnrollmentVisitName},{Name:this.$t("trials:logincCfg:form:imageCopy"),NewVal:this.$fd("YesOrNo",this.form.IsImageReplicationAcrossTrial),OldVal:this.$fd("YesOrNo",this.initialForm.IsImageReplicationAcrossTrial)},{Name:this.$t("trials:logincCfg:form:bodypart"),NewVal:this.form.BodyPartTypes,OldVal:this.initialForm.BodyPartTypes},{Name:this.$t("trials:logincCfg:form:modality"),NewVal:this.form.ModalityListStr,OldVal:this.initialForm.ModalityListStr},{Name:this.$t("trials:logincCfg:form:exceededDays"),NewVal:this.form.ChangeDefalutDays,OldVal:this.initialForm.ChangeDefalutDays}]},subjectCodeRuleChange:function(e){e||(this.form.SubjectCodeRule="")},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in this.form.TrialId=t.TrialId,this.loading=!0,this.form)t.hasOwnProperty(i)&&(this.form[i]=t[i]);this.form.ModalityListStr=this.form.ModalityList.toString().replaceAll(",","|"),console.log(this.form.ModalityListStr),this.initialForm=Object(o["a"])({},this.form),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getClinicalDataList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){e.listLoading=!0,Object(s["yd"])({trialId:e.form.TrialId}).then((function(n){e.clinicalDataList=n.Result,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.clinicalDataList.findIndex((function(i){return i.Id===e.form.ClinicalDataTrialSetIds[t]})),n>-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i-1&&t.selectedCD.splice(n,1);var a=t.selectClinicalDataArr.indexOf(e.Id);a>-1&&t.selectClinicalDataArr.splice(a,1);var r=t.form.ClinicalDataTrialSetIds.indexOf(e.Id);r>-1&&t.form.ClinicalDataTrialSetIds.splice(r,1);var o=t.form.ClinicalDataSetNames.indexOf(e.ClinicalDataSetName);o>-1&&(t.form.ClinicalDataSetNames.splice(o,1),t.form.ClinicalDataSetNamesStr=t.form.ClinicalDataSetNames.join(", ")),t.getClinicalDataList(!0),t.$message.success("删除成功!")}})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.listLoading=!0,Object(s["a"])(e.Id).then((function(e){t.listLoading=!1})).catch((function(){t.listLoading=!1}))},handleSelectable:function(e){return!e.IsUsed}}},h=f,p=(i("0811"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"2dd21b30",null);t["default"]=m.exports},c9935:function(e,t,i){"use strict";i("1fcb")},c9e1:function(e,t,i){},ca17:function(e,t,i){ /*! * vue-treeselect v0.4.0 | (c) 2017-2019 Riophae Lee * Released under the MIT License. * https://vue-treeselect.js.org/ */ e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=16)}([function(e,t){e.exports=i("278c")},function(e,t){e.exports=i("448a")},function(e,t){e.exports=i("9523")},function(e,t){e.exports=i("2e39")},function(e,t){e.exports=i("bcdf")},function(e,t){e.exports=i("b047")},function(e,t){e.exports=i("df0f")},function(e,t){e.exports=i("2655")},function(e,t){e.exports=i("1d92")},function(e,t){e.exports=i("cd9d")},function(e,t){e.exports=i("72f0a")},function(e,t){e.exports=i("7037")},function(e,t){e.exports=i("4416")},function(e,t){e.exports=i("92fa")},function(e,t){e.exports=i("2b0e")},function(e,t,i){},function(e,t,i){"use strict";i.r(t);var n=i(0),a=i.n(n),r=i(1),o=i.n(r),s=i(2),l=i.n(s),c=i(3),u=i.n(c),d=i(4),f=i.n(d),h=f.a;function p(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;ai.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight):n.top-a0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(i){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(i)||t.push(i.id),i.isBranch&&!e.shouldExpand(i))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"===typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){var i=Z(e,t);i&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue(),t=Z(e,this.internalValue);t&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){var t=["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"];t.forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=q(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(X,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),i=this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),n={id:e,label:i,ancestors:[],parentNode:X,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,i={id:e};if("id"===this.valueFormat)return i;var n=this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],a=K(n,(function(i){return i&&t.enhancedNormalizer(i).id===e}));return a||i},fixSelectedNodeIds:function(e){var t=this,i=[];if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===ce)i=e;else if(this.valueConsistsOf===ue)e.forEach((function(e){i.push(e);var n=t.getNode(e);n.isBranch&&t.traverseDescendantsBFS(n,(function(e){i.push(e.id)}))}));else if(this.valueConsistsOf===de){var n=q(),a=e.slice();while(a.length){var r=a.shift(),o=this.getNode(r);i.push(r),o.isRootNode||(o.parentNode.id in n||(n[o.parentNode.id]=o.parentNode.children.length),0===--n[o.parentNode.id]&&a.push(o.parentNode.id))}}else if(this.valueConsistsOf===fe){var s=q(),l=e.filter((function(e){var i=t.getNode(e);return i.isLeaf||0===i.children.length}));while(l.length){var c=l.shift(),u=this.getNode(c);i.push(c),u.isRootNode||(u.parentNode.id in s||(s[u.parentNode.id]=u.parentNode.children.length),0===--s[u.parentNode.id]&&l.push(u.parentNode.id))}}var d=Z(this.forest.selectedNodeIds,i);d&&(this.forest.selectedNodeIds=i),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(i){if(e[i]){var n=_e({},e[i],{isFallbackNode:!0});t.$set(t.forest.nodeMap,i,n)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch){var i=e.children.slice();while(i.length){var n=i[0];n.isBranch&&i.push.apply(i,o()(n.children)),t(n),i.shift()}}},traverseDescendantsDFS:function(e,t){var i=this;e.isBranch&&e.children.forEach((function(e){i.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(i){t.traverseDescendantsDFS(i,e),e(i)}))},traverseAllNodesByIndex:function(e){var t=function t(i){i.children.forEach((function(i){!1!==e(i)&&i.isBranch&&t(i)}))};t({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs.control.$refs["value-container"]},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){if(e.preventDefault(),e.stopPropagation(),!this.disabled){var t=this.getValueContainer().$el.contains(e.target);t&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags()}})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,i=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,i();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){var i;t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,(i={},l()(i,ie,0),l()(i,ne,0),l()(i,ae,0),l()(i,re,0),i)))}));var n=t.trim().toLocaleLowerCase(),a=n.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&a.length>1?t.isMatched=a.every((function(e){return Ce(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(i){return Ce(!e.disableFuzzyMatching,n,t.lowerCased[i])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id][ne]++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id][re]++})),t.parentNode!==X&&(e.localSearch.countMap[t.parentNode.id][ie]+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id][ae]+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&t.parentNode!==X&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),i()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,i=this.getRemoteSearchEntry(),n=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&i.isLoaded)return n();this.callLoadOptionsProp({action:le,args:{searchQuery:t},isPending:function(){return i.isLoading},start:function(){i.isLoading=!0,i.isLoaded=!1,i.loadingError=""},succeed:function(a){i.isLoaded=!0,i.options=a,e.trigger.searchQuery===t&&n()},fail:function(e){i.loadingError=ke(e)},end:function(){i.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,i=this.remoteSearch[t]||_e({},Se(),{options:[]});if(this.$watch((function(){return i.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return i.options=this.defaultOptions,i.isLoaded=!0,i;if(!0!==this.defaultOptions)return i.isLoaded=!0,i}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,i),i},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=this.appendToBody?this.$refs.portal.portalTarget:this,t=e.$refs.menu.$refs.menu;return t&&"#comment"!==t.nodeName?t:null},setCurrentHighlightedOption:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.menu.current;if(null!=n&&n in this.forest.nodeMap&&(this.forest.nodeMap[n].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&i){var a=function(){var i=t.getMenu(),n=i.querySelector('.vue-treeselect__option[data-id="'.concat(e.id,'"]'));n&&m(i,n)};this.getMenu()?a():this.$nextTick(a)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=W()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch,t&&(e.showAllChildrenOnSearch=!0)):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=q();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var i=q();this.multiple&&(this.traverseAllNodesByIndex((function(e){i[e.id]=J})),this.selectedNodes.forEach((function(t){i[t.id]=te,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(i[t.id]=ee)}))}))),this.forest.checkedStateMap=i},enhancedNormalizer:function(e){return _e({},e,{},this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,i){var n=this,r=t.map((function(e){return[n.enhancedNormalizer(e),e]})).map((function(t,r){var o=a()(t,2),s=o[0],c=o[1];n.checkDuplication(s),n.verifyNodeShape(s);var u=s.id,d=s.label,f=s.children,p=s.isDefaultExpanded,m=e===X,g=m?0:e.level+1,v=Array.isArray(f)||null===f,b=!v,y=!!s.isDisabled||!n.flat&&!m&&e.isDisabled,w=!!s.isNew,_=n.matchKeys.reduce((function(e,t){return _e({},e,l()({},t,Te(s[t]).toLocaleLowerCase()))}),{}),I=m?_.label:e.nestedSearchLabel+" "+_.label,x=n.$set(n.forest.nodeMap,u,q());if(n.$set(x,"id",u),n.$set(x,"label",d),n.$set(x,"level",g),n.$set(x,"ancestors",m?[]:[e].concat(e.ancestors)),n.$set(x,"index",(m?[]:e.index).concat(r)),n.$set(x,"parentNode",e),n.$set(x,"lowerCased",_),n.$set(x,"nestedSearchLabel",I),n.$set(x,"isDisabled",y),n.$set(x,"isNew",w),n.$set(x,"isMatched",!1),n.$set(x,"isHighlighted",!1),n.$set(x,"isBranch",v),n.$set(x,"isLeaf",b),n.$set(x,"isRootNode",m),n.$set(x,"raw",c),v){var S,T=Array.isArray(f);n.$set(x,"childrenStates",_e({},Se(),{isLoaded:T})),n.$set(x,"isExpanded","boolean"===typeof p?p:g=0&&a.top<=o||a.top<0&&a.bottom>0,u=l>r+ye,d=s>r+ye;c?"auto"!==e.openDirection?e.menu.placement=Jt[e.openDirection]:e.menu.placement=u||!d?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance,t=e.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:R(t,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance,t=e.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:O(t,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},ti=ei,ii=Pe(ti,Kt,Zt,!1,null,null,null);ii.options.__file="src/components/Menu.vue";var ni=ii.exports,ai=i(14),ri=i.n(ai);function oi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function si(e){for(var t=1;tb.getLayout().x&&(b=e),e.depth>y.depth&&(y=e)}));var w=v===b?1:p(v,b)/2,_=w-v.getLayout().x,I=0,x=0,S=0,T=0;if("radial"===n)I=o/(b.getLayout().x+w+_),x=h/(y.depth-1||1),r(g,(function(e){S=(e.getLayout().x+_)*I,T=(e.depth-1)*x;var t=d(S,T);e.setLayout({x:t.x,y:t.y,rawX:S,rawY:T},!0)}));else{var C=e.getOrient();"RL"===C||"LR"===C?(x=h/(b.getLayout().x+w+_),I=o/(y.depth-1||1),r(g,(function(e){T=(e.getLayout().x+_)*x,S="LR"===C?(e.depth-1)*I:o-(e.depth-1)*I,e.setLayout({x:S,y:T},!0)}))):"TB"!==C&&"BT"!==C||(I=o/(b.getLayout().x+w+_),x=h/(y.depth-1||1),r(g,(function(e){S=(e.getLayout().x+_)*I,T="TB"===C?(e.depth-1)*x:h-(e.depth-1)*x,e.setLayout({x:S,y:T},!0)})))}}}e.exports=h},ca2f:function(e,t,i){"use strict";i("45b7")},ca4e:function(e,t,i){"use strict";i("c387")},ca86:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"check-container form-container"},[i("el-form",{ref:"checkForm",attrs:{model:e.checkForm,"label-width":"200px",size:"small",rules:e.rules}},[i("div",{staticClass:"title-wrapper"},[i("p",[e._v("盲化信息")])]),e._v(" "),i("div",{staticClass:"check-content"},[i("el-form-item",{attrs:{label:"Blind Name",prop:"BlindName"}},[i("el-input",{staticStyle:{width:"300px"},model:{value:e.checkForm.BlindName,callback:function(t){e.$set(e.checkForm,"BlindName",t)},expression:"checkForm.BlindName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Blind NameCN",prop:"BlindNameCN"}},[i("el-input",{staticStyle:{width:"300px"},model:{value:e.checkForm.BlindNameCN,callback:function(t){e.$set(e.checkForm,"BlindNameCN",t)},expression:"checkForm.BlindNameCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Blind Publications",prop:"BlindPublications"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{type:"textarea",rows:"8",size:"small"},model:{value:e.checkForm.BlindPublications,callback:function(t){e.$set(e.checkForm,"BlindPublications",t)},expression:"checkForm.BlindPublications"}})],1)],1),e._v(" "),i("div",{staticClass:"title-wrapper"},[i("p",[e._v("Setting")])]),e._v(" "),i("div",{staticClass:"check-content"},[i("el-form-item",{attrs:{label:"Information Confirmed?"}},[i("el-radio-group",{on:{change:e.handleChange},model:{value:e.checkForm.ReviewStatus,callback:function(t){e.$set(e.checkForm,"ReviewStatus",t)},expression:"checkForm.ReviewStatus"}},[i("el-radio",{attrs:{label:1}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Contractor Status?"}},[i("el-radio-group",{on:{change:e.handleChange},model:{value:e.checkForm.CooperateStatus,callback:function(t){e.$set(e.checkForm,"CooperateStatus",t)},expression:"checkForm.CooperateStatus"}},[i("el-radio",{attrs:{label:1}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Accepting New Trials?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.AcceptingNewTrial,callback:function(t){e.$set(e.checkForm,"AcceptingNewTrial",t)},expression:"checkForm.AcceptingNewTrial"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Actively Reading?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.ActivelyReading,callback:function(t){e.$set(e.checkForm,"ActivelyReading",t)},expression:"checkForm.ActivelyReading"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Virtual?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.IsVirtual,callback:function(t){e.$set(e.checkForm,"IsVirtual",t)},expression:"checkForm.IsVirtual"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"On Vacation: "}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.checkForm.InHoliday))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleView}},[e._v("Planned Vacation")])],1),e._v(" "),i("el-form-item",{attrs:{label:"Comment: ",prop:"AdminComment"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{type:"textarea",rows:"8"},model:{value:e.checkForm.AdminComment,callback:function(t){e.$set(e.checkForm,"AdminComment",t)},expression:"checkForm.AdminComment"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-top":"20px"}},[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)]),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"50%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[i("div",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"daterange","range-separator":"to","start-placeholder":"Beginning Date","end-placeholder":"End Date",size:"small"},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:e.handleAddHoliday}},[e._v("Add")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading2,expression:"loading2"}],attrs:{data:e.gridData,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",fixed:"right","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.totalItems,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=(i("20d6"),i("33ba")),o=i("7878"),s={name:"Setting",props:{id:{type:String,default:function(){return""}}},data:function(){return{loading:!1,checkForm:{Id:"",CooperateStatus:2,ResumeStatus:2,ReviewStatus:2,AcceptingNewTrial:!1,ActivelyReading:!1,IsVirtual:!1,BlindName:"",AdminComment:"",InHoliday:"",BlindNameCN:"",BlindPublications:""},rules:{AdminComment:[{max:500,message:"The maximum length is 500"}],BlindName:[{required:!0,message:"Please specify",trigger:"blur"}],BlindNameCN:[{required:!0,message:"Please specify",trigger:"blur"}]},doctorId:this.$route.query.Id,isDisabled:!1,radioDisabled:!1,dialogVisible:!1,gridData:[],daterange:"",pageIndex:1,pageSize:5,totalItems:0,loading2:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;Object(r["o"])(this.doctorId).then((function(t){t.Result&&(e.checkForm=t.Result,e.checkForm.InHoliday=t.Result.InHoliday?"Yes":"No")}))},handleSave:function(){var e=this;this.$refs.checkForm.validate((function(t){if(t){e.isDisabled=!0;var i={};Object.assign(i,e.checkForm),i.InHoliday="Yes"===e.checkForm.InHoliday,i.ResumeStatus=i.ReviewStatus,Object(r["B"])(i).then((function(t){t.IsSuccess&&(t.Result&&(e.checkForm.Id=t.Result),e.isDisabled=!1,e.$message.success("Saved successfully"))})).catch((function(){e.isDisabled=!1}))}}))},handleView:function(){this.dialogVisible=!0,this.initHolidayList()},initHolidayList:function(){var e=this;this.loading2=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.gridData=t.Result.CurrentPageData,e.totalItems=t.Result.TotalCount),e.loading2=!1})).catch((function(){e.loading2=!1}))},handleAddHoliday:function(){var e=this;if(this.daterange){var t={DoctorId:this.doctorId,StartDate:this.daterange[0],EndDate:this.daterange[1]};this.loading2=!0,Object(r["g"])(t).then((function(i){i.IsSuccess?(t.Id=i.Result,e.gridData.push(t),e.totalItems=e.totalItems+1,e.daterange=""):e.$message.error(i.ErrorMessage),e.loading2=!1})).catch((function(){e.daterange="",e.loading2=!1}))}},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading2=!0,Object(r["l"])(e.Id).then((function(i){if(i.IsSuccess){var n=t.gridData.findIndex((function(t){return t.Id===e.Id}));-1!==n&&(t.gridData.splice(n,1),t.totalItems=t.totalItems-1),t.$message.success("Deleted successfully!")}t.loading2=!1})).catch((function(){t.loading2=!1}))})).catch((function(e){}))},closeDialog:function(){this.initForm()},handleChange:function(){2===this.checkForm.ReviewStatus||2===this.checkForm.cooperateStatus?(this.checkForm.ActivelyReading=!1,this.checkForm.AcceptingNewTrial=!1,this.radioDisabled=!0):this.radioDisabled=!1},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},statusFormatter:function(e){return e.Status?"on vacation":""},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},ca98:function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=n.each,s=n.clone,l=n.map,c=n.merge,u=/^(min|max)?(.+)$/;function d(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function f(e,t,i){var a,r,s=[],l=[],c=e.timeline;if(e.baseOption&&(r=e.baseOption),(c||e.options)&&(r=r||{},s=(e.options||[]).slice()),e.media){r=r||{};var u=e.media;o(u,(function(e){e&&e.option&&(e.query?l.push(e):a||(a=e))}))}return r||(r=e),r.timeline||(r.timeline=c),o([r].concat(s).concat(n.map(l,(function(e){return e.option}))),(function(e){o(t,(function(t){t(e,i)}))})),{baseOption:r,timelineOptions:s,mediaDefault:a,mediaList:l}}function h(e,t,i){var a={width:t,height:i,aspectratio:t/i},r=!0;return n.each(e,(function(e,t){var i=t.match(u);if(i&&i[1]&&i[2]){var n=i[1],o=i[2].toLowerCase();p(a[o],e,n)||(r=!1)}})),r}function p(e,t,i){return"min"===i?e>=t:"max"===i?e<=t:e===t}function m(e,t){return e.join(",")===t.join(",")}function g(e,t){t=t||{},o(t,(function(t,i){if(null!=t){var n=e[i];if(r.hasClass(i)){t=a.normalizeToArray(t),n=a.normalizeToArray(n);var o=a.mappingToExists(n,t);e[i]=l(o,(function(e){return e.option&&e.exist?c(e.exist,e.option,!0):e.exist||e.option}))}else e[i]=c(n,t,!0)}}))}d.prototype={constructor:d,setOption:function(e,t){e&&n.each(a.normalizeToArray(e.series),(function(e){e&&e.data&&n.isTypedArray(e.data)&&n.setAsPrimitive(e.data)})),e=s(e);var i=this._optionBackup,r=f.call(this,e,t,!i);this._newBaseOption=r.baseOption,i?(g(i.baseOption,r.baseOption),r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=s(i[n.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],o=[];if(!n.length&&!a)return o;for(var c=0,u=n.length;c0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(o["G"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.AssignMedicalReviewTaskVisible=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},getSite:function(){var e=this;Object(o["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getMIMUserList:function(){var e=this;Object(o["F"])(this.trialId).then((function(t){e.MIMOptions=t.Result}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,")的核查计划吗?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["s"])(e.Id).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openFilter()})).catch((function(){t.loading=!1}))}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},v=g,b=(i("6ee8"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"9149eee8",null);t["default"]=y.exports},caf7:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(s);t["default"]=s},cb11:function(e,t,i){var n=i("cbe5"),a=i("9cf9"),r=a.subPixelOptimizeLine,o={},s=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i,n,a,s;this.subPixelOptimize?(r(o,t,this.style),i=o.x1,n=o.y1,a=o.x2,s=o.y2):(i=t.x1,n=t.y1,a=t.x2,s=t.y2);var l=t.percent;0!==l&&(e.moveTo(i,n),l<1&&(a=i*(1-l)+a*l,s=n*(1-l)+s*l),e.lineTo(a,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=s},cb69:function(e,t,i){var n=i("3301"),a=i("4f85"),r=a.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=r},cb6d:function(e,t){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(e,t){return{target:e,topTarget:t&&t.topTarget}}i.prototype={constructor:i,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(n(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,r=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(r,o,e),this.dispatchToElement(n(t,e),"drag",e.event);var s=this.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(n(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(n(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(n(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var a=i;e.exports=a},cb73:function(e,t,i){var n=i("3842"),a=n.parsePercent,r=i("6d8b"),o=Math.PI/180;function s(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");r.isArray(n)||(n=[0,n]),r.isArray(t)||(t=[t,t]);var s=i.getWidth(),c=i.getHeight(),u=Math.min(s,c),d=a(t[0],s),f=a(t[1],c),h=a(n[0],u/2),p=a(n[1],u/2),m=-e.get("startAngle")*o,g=e.get("minAngle")*o,v=e.getData().tree.root,b=e.getViewRoot(),y=b.depth,w=e.get("sort");null!=w&&l(b,w);var _=0;r.each(b.children,(function(e){!isNaN(e.getValue())&&_++}));var I=b.getValue(),x=Math.PI/(I||_)*2,S=b.depth>0,T=b.height-(S?-1:1),C=(p-h)/(T||1),k=e.get("clockwise"),R=e.get("stillShowZeroSum"),D=k?1:-1,L=function(e,t){if(e){var i=t;if(e!==v){var n=e.getValue(),o=0===I&&R?x:n*x;o0?i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0):i("div",{staticClass:"chat-content"},[i("h3",[e._v(e._s(e.$t("trials:consistencyCheck:label:noData")))])]),e._v(" "),3!==e.checkChallengeState&&11!==e.checkState?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:apply-fallback"],expression:"['trials:trials-panel:visit:consistency-check:apply-fallback']"}],attrs:{type:"primary",disabled:!(10===e.checkState&&(0===e.requestBackState||3===e.requestBackState))},on:{click:e.handleApplyBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:action:applyFallback"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"primary",disabled:!(1===e.requestBackState)},on:{click:e.handleRejectBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:rejectBack"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"primary",disabled:!(1===e.requestBackState)},on:{click:e.handleBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:action:fallback"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["role:pm"],expression:"['role:pm']"}],attrs:{disabled:!(10===e.checkState&&3!==e.checkChallengeState)||""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:function(t){return e.handleReply()}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:sendMessage"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["role:crc"],expression:"['role:crc']"}],attrs:{disabled:!(10===e.checkState&&3!==e.checkChallengeState)||!!(e.recordContent&&e.recordContent.length>0)&&1*e.recordContent[e.recordContent.length-1].UserTypeEnum===2,type:"primary",loading:e.btnLoading},on:{click:e.handleCRCReply}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.sendMessageCRCVisible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.sendMessageCRCVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:consistencyCheck:title:replyConsistency")},on:{"update:visible":function(t){e.sendMessageCRCVisible=t}}},[i("crcSendMessage",{attrs:{"crc-message-info":e.crcMessageInfo},on:{sendMessage:e.handleReply}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("d38e"),s=i("268e"),l=i.n(s),c=i("19c3"),u=i.n(c),d=i("011b"),f=i.n(d),h={name:"ConsistencyCheckForm",components:{crcSendMessage:o["default"]},props:{data:{type:Object,default:function(){return{}}},dialogList:{type:Array,default:function(){return[]}},isReply:{type:Boolean,default:!1}},data:function(){return{recordContent:[],sendMessageCRCVisible:!1,newMessage:"",loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:l.a,pmAvatar:u.a,crcAvatar:f.a,requestBackState:null,checkState:null,checkChallengeState:null,crcMessageInfo:{arrayOnelist:[],arrayTwolist:[]}}},watch:{data:{handler:function(e){this.requestBackState=e.RequestBackState,this.checkState=e.CheckState,this.checkChallengeState=e.CheckChallengeState},immediate:!0,deep:!0}},mounted:function(){this.getMessageList(this.dialogList),console.log(this.dialogList)},methods:{close:function(){this.$emit("close")},getMessageList:function(e){var t=[];e.forEach((function(e){t.push(e)})),this.recordContent=t,this.setScrollHeight()},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},addMessage:function(e){this.recordContent.push(e),this.setScrollHeight(),this.loading=!1},handleApplyBack:function(){this.$emit("handleApplyBack")},handleBack:function(){this.$emit("handleBack")},handleRejectBack:function(){var e=this,t=this.$route.query.trialId;this.loading=!0,Object(r["ue"])(t,this.data.Id).then((function(t){t.IsSuccess&&e.$emit("getDialogList")})).catch((function(){e.loading=!1}))},handleCRCReply:function(){this.sendMessageCRCVisible=!0;var e=Object.assign([],this.recordContent);e=e.filter((function(e){return!0===e.IsCRCNeedReply}));var t=e[e.length-1];console.log(t),t.TalkContent&&(this.crcMessageInfo=t)},handleReply:function(e,t){var i=this;if(console.log(e),this.newMessage=e||this.newMessage,this.newMessage){var n=this.$route.query.trialId,a={TalkContent:this.newMessage,SubjectVisitId:this.data.Id};this.loading=!0,Object(r["i"])(n,a).then((function(e){e.IsSuccess&&(i.newMessage="",t&&t(),i.sendMessageCRCVisible=!1,i.$emit("getDialogList"))})).catch((function(){i.loading=!1}))}}}},p=h,m=(i("69323"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},cb8f:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("cd33"),o=i("eb6b");i("48ac"),i("d4b1"),i("4a9d"),n.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!a.isArray(t)&&(e.axisPointer.link=[t])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=r.collect(e,t)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},cbb0:function(e,t,i){var n=i("6d8b"),a=i("f934"),r=a.getLayoutRect;function o(e,t,i){var n=e.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var o={width:t.getWidth(),height:t.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[s],u=[0,null,10],d={},f=0;f<3;f++)d[l[1-s][f]]=u[f],d[c[f]]=2===f?i[0]:n[c[f]];var h=[["x","width",3],["y","height",0]][s],p=r(d,o,n.padding);return c[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function s(e,t){return n.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=o,t.makeHighDownBatch=s},cbb3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"170px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:visitNum"),prop:"PlanVisitCount"}},[i("el-input-number",{attrs:{disabled:e.isDisable,min:0,"controls-position":"right"},model:{value:e.form.PlanVisitCount,callback:function(t){e.$set(e.form,"PlanVisitCount",t)},expression:"form.PlanVisitCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:isReadingPeriod"),prop:"IsHaveReadingPeriod"}},[i("el-radio-group",{attrs:{disabled:e.isDisable},on:{change:function(t){e.form.IsGenerateGlobalTask=e.form.IsHaveReadingPeriod}},model:{value:e.form.IsHaveReadingPeriod,callback:function(t){e.$set(e.form,"IsHaveReadingPeriod",t)},expression:"form.IsHaveReadingPeriod"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsHaveReadingPeriod"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),e.isSelfAnalysis?i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:intervalPeriod"),prop:"IntervalWeeks"}},[i("el-input-number",{attrs:{min:0,disabled:e.isDisable,"controls-position":"right"},model:{value:e.form.IntervalWeeks,callback:function(t){e.$set(e.form,"IntervalWeeks",t)},expression:"form.IntervalWeeks"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:plannedNum"),prop:"PlanSubjectCount"}},[i("el-input-number",{attrs:{min:0,disabled:e.isDisable,"controls-position":"right"},model:{value:e.form.PlanSubjectCount,callback:function(t){e.$set(e.form,"PlanSubjectCount",t)},expression:"form.PlanSubjectCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:siteCode"),prop:"BlindTrialSiteCode"}},[i("el-input",{staticStyle:{width:"140px"},attrs:{disabled:e.isDisable},model:{value:e.form.BlindTrialSiteCode,callback:function(t){e.$set(e.form,"BlindTrialSiteCode",t)},expression:"form.BlindTrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:subjectNum"),prop:"BlindSubjectNumberOfPlaces"}},[i("el-input-number",{attrs:{min:1,disabled:e.isDisable,max:5,"controls-position":"right"},model:{value:e.form.BlindSubjectNumberOfPlaces,callback:function(t){e.$set(e.form,"BlindSubjectNumberOfPlaces",t)},expression:"form.BlindSubjectNumberOfPlaces"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:isGenerateGlobalTask"),prop:"IsGenerateGlobalTask"}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.form.IsGenerateGlobalTask,callback:function(t){e.$set(e.form,"IsGenerateGlobalTask",t)},expression:"form.IsGenerateGlobalTask"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsGenerateGlobalTask"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading,disabled:e.isDisable},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o={name:"AddOrUpdateTaskAllocationRuleData",props:{TrialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},isDisable:{type:Boolean,default:function(){return!0}},isSelfAnalysis:{type:Boolean,default:function(){return!0}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:this.$route.query.trialId,PlanSubjectCount:0,PlanVisitCount:0,IntervalWeeks:0,IsHaveReadingPeriod:null,IsGenerateGlobalTask:null,BlindTrialSiteCode:"",BlindSubjectNumberOfPlaces:0,IsEnable:!0,Note:""},rules:{IsHaveReadingPeriod:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsGenerateGlobalTask:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanSubjectCount:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],IntervalWeeks:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],PlanVisitCount:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindTrialSiteCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindSubjectNumberOfPlaces:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.getFrom()},methods:{getFrom:function(){var e=this;Object(r["v"])({TrialId:this.$route.query.trialId,IsSelfAnalysis:this.isSelfAnalysis,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(t){t.Result&&(e.form=t.Result)}))},save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){t&&(e.btnLoading=!0,e.loading=!0,e.form.IsSelfAnalysis=e.isSelfAnalysis,e.form.TrialReadingCriterionId=e.TrialReadingCriterionId,Object(r["c"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"f9fcfbd0",null);t["default"]=c.exports},cbe5:function(e,t,i){var n=i("19eb"),a=i("6d8b"),r=i("20c8"),o=i("d833"),s=i("dc2f"),l=s.prototype.getCanvasPattern,c=Math.abs,u=new r(!0);function d(e){n.call(this,e),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var i,n=this.style,a=this.path||u,r=n.hasStroke(),o=n.hasFill(),s=n.fill,c=n.stroke,d=o&&!!s.colorStops,f=r&&!!c.colorStops,h=o&&!!s.image,p=r&&!!c.image;(n.bind(e,this,t),this.setTransform(e),this.__dirty)&&(d&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(e,s,i)),f&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,c,i)));d?e.fillStyle=this._fillGradient:h&&(e.fillStyle=l.call(s,e)),f?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=l.call(c,e));var m=n.lineDash,g=n.lineDashOffset,v=!!e.setLineDash,b=this.getGlobalScale();if(a.setScale(b[0],b[1],this.segmentIgnoreThreshold),this.__dirtyPath||m&&!v&&r?(a.beginPath(e),m&&!v&&(a.setLineDash(m),a.setLineDashOffset(g)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),o)if(null!=n.fillOpacity){var y=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,a.fill(e),e.globalAlpha=y}else a.fill(e);if(m&&v&&(e.setLineDash(m),e.lineDashOffset=g),r)if(null!=n.strokeOpacity){y=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,a.stroke(e),e.globalAlpha=y}else a.stroke(e);m&&v&&e.setLineDash([]),null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,i){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var e=this._rect,t=this.style,i=!e;if(i){var n=this.path;n||(n=this.path=new r),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),e=n.getBoundingRect()}if(this._rect=e,t.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||i){a.copy(e);var o=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return e},contain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),a=this.style;if(e=i[0],t=i[1],n.contain(e,t)){var r=this.path.data;if(a.hasStroke()){var s=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(r,s/l,e,t)))return!0}if(a.hasFill())return o.contain(r,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var i=this.shape;if(i){if(a.isObject(e))for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);else i[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},d.extend=function(e){var t=function(t){d.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var i=e.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}e.init&&e.init.call(this,t)};for(var i in a.inherits(t,d),e)"style"!==i&&"shape"!==i&&(t.prototype[i]=e[i]);return t},a.inherits(d,n);var f=d;e.exports=f},cbe9:function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("cf7e");function o(e){r.call(this,e)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,i){var n=this.getAxis("x"),a=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(e[0])),i[1]=a.toGlobalCoord(a.dataToCoord(e[1])),i},clampData:function(e,t){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,a=i.getExtent(),r=n.getExtent(),o=i.parse(e[0]),s=n.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(a[0],a[1]),o),Math.max(a[0],a[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},pointToData:function(e,t){var i=this.getAxis("x"),n=this.getAxis("y");return t=t||[],t[0]=i.coordToData(i.toLocalCoord(e[0])),t[1]=n.coordToData(n.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),n=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-i,o=Math.max(t[0],t[1])-n,s=new a(i,n,r,o);return s}},n.inherits(o,r);var s=o;e.exports=s},cc27:function(e,t,i){e.exports=i.p+"static/img/IR.5a471057.png"},cc2e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"是否需要回执:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsReturnRequired,callback:function(t){e.$set(e.searchData,"IsReturnRequired",t)},expression:"searchData.IsReturnRequired"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReturnRequired",label:"是否需要回执","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReturnRequired?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReturnRequired)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReturnRequired)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:"是否加急","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsAutoSend",label:"是否自动发送","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAutoSend?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAutoSend)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAutoSend)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDistinguishCriteria",label:"是否区分标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDistinguishCriteria?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDistinguishCriteria)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDistinguishCriteria)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("\n 附件\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EmailForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.attachmentVisible?i("el-dialog",{attrs:{visible:e.attachmentVisible,"close-on-click-modal":!1,title:"附件",width:"80%","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.attachmentVisible=t}}},[i("AttachmentList",{attrs:{"business-scenario-enum":e.rowData.BusinessScenarioEnum,"is-distinguish-criteria":e.rowData.IsDistinguishCriteria},on:{getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("3fdc"),u=i("5651"),d=function(){return{IsReturnRequired:"",IsUrgent:"",IsEnable:"",PageIndex:1,PageSize:20}},f={name:"EmailList",components:{BoxContent:s["default"],Pagination:l["default"],EmailForm:c["default"],AttachmentList:u["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,attachmentVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="新增",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="编辑",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(o["D"])(e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))}))}))},handleDetail:function(e){this.rowData=Object(r["a"])({},e),this.attachmentVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},cc39:function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("50e5"),o=i("ef6a"),s=n.each,l=a.asc,c=function(e,t,i,n){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function u(e,t,i){var n=[1/0,-1/0];return s(i,(function(e){var i=e.getData();i&&s(i.mapDimension(t,!0),(function(e){var t=i.getApproximateExtent(e);t[0]n[1]&&(n[1]=t[1])}))})),n[1]0?0:NaN);var o=i.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?t[1]=o:a&&(t[1]=r>0?r-1:NaN),i.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function f(e,t){var i=e.getAxisModel(),n=e._percentWindow,r=e._valueWindow;if(n){var o=a.getPixelPrecision(r,[0,500]);o=Math.min(o,20);var s=t||0===n[0]&&100===n[1];i.setRange(s?null:+r[0].toFixed(o),s?null:+r[1].toFixed(o))}}function h(e){var t=e._minMaxSpan={},i=e._dataZoomModel,n=e._dataExtent;s(["min","max"],(function(r){var o=i.get(r+"Span"),s=i.get(r+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?o=a.linearMap(n[0]+s,n,[0,100],!0):null!=o&&(s=a.linearMap(o,[0,100],n,!0)-n[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=s}))}c.prototype={constructor:c,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(i){if(r.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=t.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&e.push(i)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,i,n=this._dimName,a=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;return o?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle"),a.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(r.get(t)||0)&&(i=e)})),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,i=this._dataExtent,n=this.getAxisModel(),r=n.axis.scale,c=this._dataZoomModel.getRangePropMode(),u=[0,100],d=[],f=[];s(["start","end"],(function(n,o){var s=e[n],l=e[n+"Value"];"percent"===c[o]?(null==s&&(s=u[o]),l=r.parse(a.linearMap(s,u,i))):(t=!0,l=null==l?i[o]:r.parse(l),s=a.linearMap(l,i,u)),f[o]=l,d[o]=s})),l(f),l(d);var h=this._minMaxSpan;function p(e,t,i,n,s){var l=s?"Span":"ValueSpan";o(0,e,i,"all",h["min"+l],h["max"+l]);for(var c=0;c<2;c++)t[c]=a.linearMap(e[c],i,n,!0),s&&(t[c]=r.parse(t[c]))}return t?p(f,d,i,u,!1):p(d,f,u,i,!0),{valueWindow:f,percentWindow:d}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,t),h(this);var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,f(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,f(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),r=this._valueWindow;"none"!==a&&s(n,(function(e){var t=e.getData(),n=t.mapDimension(i,!0);n.length&&("weakFilter"===a?t.filterSelf((function(e){for(var i,a,o,s=0;sr[1];if(c&&!u&&!d)return!0;c&&(o=!0),u&&(i=!0),d&&(a=!0)}return o&&i&&a})):s(n,(function(i){if("empty"===a)e.setData(t=t.map(i,(function(e){return o(e)?e:NaN})));else{var n={};n[i]=r,t.selectRange(n)}})),s(n,(function(e){t.setApproximateExtent(r,e)})))}))}function o(e){return e>=r[0]&&e<=r[1]}}};var p=c;e.exports=p},cc5f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container my_menu"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"操作名"}},[i("el-input",{attrs:{placeholder:"请输入操作名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.menuName,callback:function(t){e.$set(e.queryParams,"menuName",t)},expression:"queryParams.menuName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模块"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},model:{value:e.queryParams.visible,callback:function(t){e.$set(e.queryParams,"visible",t)},expression:"queryParams.visible"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1),e._v(" "),e.refreshTable?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.menuList,"default-expand-all":e.isExpandAll,"row-key":"Id","tree-props":{children:"Children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"ModuleTypeValueCN",label:"模块",align:"left","min-width":"230px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTypeValueCN",label:"操作类型","min-width":"120px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildrenTypeValueCN",label:"操作子类","min-width":"120px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"操作名称","show-overflow-tooltip":!0,"min-width":"200px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字段名","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"字段英文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"字段中文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"是否使用父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsShowParent?i("el-tag",{attrs:{size:"success"}},[e._v("父数据")]):i("el-tag",{attrs:{size:"danger"}},[e._v("子数据")])]}}],null,!1,2599008903)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),"M"===t.row.ConfigType?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,963390274)})],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open,width:"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"选择操作"}},[i("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级操作"},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"模块",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ModuleTypeId,callback:function(t){e.$set(e.form,"ModuleTypeId",t)},expression:"form.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.OptTypeId,callback:function(t){e.$set(e.form,"OptTypeId",t)},expression:"form.OptTypeId"}},e._l(e.dict.type.OptType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作子类",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作子类",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ChildrenTypeId,callback:function(t){e.$set(e.form,"ChildrenTypeId",t)},expression:"form.ChildrenTypeId"}},e._l(e.dict.type.ChildrenType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType,expression:"form.ConfigType == 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"名称",prop:"Description"}},[i("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"显示排序",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Sort,callback:function(t){e.$set(e.form,"Sort",t)},expression:"form.Sort"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否启用\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 继承父数据\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsShowParent,callback:function(t){e.$set(e.form,"IsShowParent",t)},expression:"form.IsShowParent"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字段key"}},[i("el-input",{attrs:{placeholder:"请输入字段key"},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段英文"}},[i("el-input",{attrs:{placeholder:"请输入字段英文"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段中文"}},[i("el-input",{attrs:{placeholder:"请输入字段中文"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"枚举类型"}},[i("el-radio-group",{model:{value:e.form.EnumType,callback:function(t){e.$set(e.form,"EnumType",t)},expression:"form.EnumType"}},[i("el-radio",{attrs:{label:null}},[e._v("无")]),e._v(" "),i("el-radio",{attrs:{label:"E"}},[e._v("枚举")]),e._v(" "),i("el-radio",{attrs:{label:"D"}},[e._v("字典")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"E"===e.form.EnumType,expression:"form.ConfigType === 'C' && form.EnumType === 'E'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"枚举"}},[i("el-input",{attrs:{placeholder:"请输入枚举"},model:{value:e.form.EnumList,callback:function(t){e.$set(e.form,"EnumList",t)},expression:"form.EnumList"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"D"===e.form.EnumType,expression:"form.ConfigType === 'C' && form.EnumType === 'D'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字典code"}},[i("el-input",{attrs:{placeholder:"请输入字典code"},model:{value:e.form.dictionaryKey,callback:function(t){e.$set(e.form,"dictionaryKey",t)},expression:"form.dictionaryKey"}})],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],r=(i("7514"),i("2938")),o=i("ca17"),s=i.n(o),l=(i("542c"),i("5aee")),c={name:"checkConfig",dicts:["OptType","ModuleType","ChildrenType"],components:{Treeselect:s.a,IconSelect:l["default"]},data:function(){return{loading:!0,menuList:[],menuOptions:[],title:"",open:!1,visibleOptions:[],queryParams:{menuName:void 0,visible:void 0},isExpandAll:!1,refreshTable:!0,form:{},rules:{MenuName:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],ShowOrder:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},normalizer:function(e){return e.Children&&!e.Children.length&&delete e.Children,{id:e.Id,label:e.Description,children:e.Children}},toTree:function(e,t){function i(t){for(var n=[],a=0;a=1,expression:"layoutRow>=1"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=1,expression:"layoutRow>=1&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas0"==e.activeItem},attrs:{"data-index":"0"},on:{click:function(t){return e.activateDicomCanvas(0)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas0",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=2,expression:"layoutRow>=1&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas1"==e.activeItem},attrs:{"data-index":"1"},on:{click:function(t){return e.activateDicomCanvas(1)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas1",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=3,expression:"layoutRow>=1&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas2"==e.activeItem},attrs:{"data-index":"2"},on:{click:function(t){return e.activateDicomCanvas(2)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas2",staticStyle:{width:"100%",height:"100%"}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2,expression:"layoutRow>=2"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=1,expression:"layoutRow>=2&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas3"==e.activeItem},attrs:{"data-index":"3"},on:{click:function(t){return e.activateDicomCanvas(3)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas3",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=2,expression:"layoutRow>=2&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas4"==e.activeItem},attrs:{"data-index":"4"},on:{click:function(t){return e.activateDicomCanvas(4)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas4",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=3,expression:"layoutRow>=2&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas5"==e.activeItem},attrs:{"data-index":"5"},on:{click:function(t){return e.activateDicomCanvas(5)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas5",staticStyle:{width:"100%",height:"100%"}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow,expression:"layoutRow==3"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=1,expression:"layoutRow==3&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas6"==e.activeItem},attrs:{"data-index":"6"},on:{click:function(t){return e.activateDicomCanvas(6)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas6",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=2,expression:"layoutRow==3&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas7"==e.activeItem},attrs:{"data-index":"7"},on:{click:function(t){return e.activateDicomCanvas(7)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas7",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=3,expression:"layoutRow==3&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas8"==e.activeItem},attrs:{"data-index":"8"},on:{click:function(t){return e.activateDicomCanvas(8)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas8",staticStyle:{width:"100%",height:"100%"}})],1)])]),e._v(" "),i("div",{ref:"dicomTools",staticClass:"dicom-tools"},[i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("布局")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("布局:")]),e._v(" "),i("select",{staticClass:"sidetool-select",staticStyle:{width:"90px"},on:{change:function(t){return e.changeLayout(t)}}},[i("option",{attrs:{value:"1x1",selected:""}},[e._v("1x1")]),e._v(" "),i("option",{attrs:{value:"1x2"}},[e._v("1x2")]),e._v(" "),i("option",{attrs:{value:"2x1"}},[e._v("2x1")]),e._v(" "),i("option",{attrs:{value:"2x2"}},[e._v("2x2")]),e._v(" "),i("option",{attrs:{value:"1x3"}},[e._v("1x3")]),e._v(" "),i("option",{attrs:{value:"3x1"}},[e._v("3x1")]),e._v(" "),i("option",{attrs:{value:"2x3"}},[e._v("2x3")]),e._v(" "),i("option",{attrs:{value:"3x2"}},[e._v("3x2")]),e._v(" "),i("option",{attrs:{value:"3x3"}},[e._v("3x3")])])])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("图像变换")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"调窗","data-tool":"Wwwc"},on:{click:function(t){return e.setToolActive(t,"Wwwc")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"reverse"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"反色"},on:{click:e.toggleInvert}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"reversecolor"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"缩放","data-tool":"Zoom"},on:{click:function(t){return e.setToolActive(t,"Zoom")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"magnifier"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"透镜","data-tool":"Magnify"},on:{click:function(t){return e.setToolActive(t,"Magnify")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"zoom"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"适应窗口","data-tool":"fitToWindow"},on:{click:function(t){return e.fitToType(t,"fitToWindow")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"fitToWindow"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"适应图像","data-tool":"fitToImage"},on:{click:function(t){return e.fitToType(t,"fitToImage")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"fitToImage"}})],1),e._v(" "),i("button",{staticClass:"btn-link dropdown",attrs:{title:"旋转","data-tool":"Rotate"}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"rotate"}}),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(1)}}},[e._v("默认值")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(2)}}},[e._v("水平翻转")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(3)}}},[e._v("垂直翻转")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(4)}}},[e._v("左转90度")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(5)}}},[e._v("右转90度")])])],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"移动","data-tool":"Pan"},on:{click:function(t){return e.setToolActive(t,"Pan")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"move"}})],1)])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("测量标注")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"探针","data-tool":"Probe"},on:{click:function(t){return e.setToolActive(t,"Probe")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"pixel"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"长度测量","data-tool":"Length"},on:{click:function(t){return e.setToolActive(t,"Length")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"length"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"角度测量","data-tool":"Angle"},on:{click:function(t){return e.setToolActive(t,"Angle")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"angle"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"Cobb测量","data-tool":"CobbAngle"},on:{click:function(t){return e.setToolActive(t,"CobbAngle")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"cobb"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"椭圆测量","data-tool":"EllipticalRoi"},on:{click:function(t){return e.setToolActive(t,"EllipticalRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"oval"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"矩形测量","data-tool":"RectangleRoi"},on:{click:function(t){return e.setToolActive(t,"RectangleRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"rectangle"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"多边形标记","data-tool":"FreehandRoi"},on:{click:function(t){return e.setToolActive(t,"FreehandRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"polygon"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"十字线","data-tool":"Bidirectional"},on:{click:function(t){return e.setToolActive(t,"Bidirectional")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"bidirection"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"文字标注","data-tool":"ArrowAnnotate"},on:{click:function(t){return e.setToolActive(t,"ArrowAnnotate")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"label"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"清除测量和标记","data-tool":"Eraser"},on:{click:function(t){return e.setToolActive(t,"Eraser")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"clear"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"截屏"},on:{click:function(t){return e.currentDicomCanvas.saveImage()}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"image"}})],1)])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("播放")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"第一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(-9999)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"firstframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"显示上一张影像"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(-1)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"previousframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"播放"},on:{click:function(t){return e.currentDicomCanvas.toggleClipPlay()}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":e.currentDicomCanvas.toolState.clipPlaying?"stop":"play"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"下一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(1)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"nextframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"最后一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(9999)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"lastframe"}})],1),e._v(" "),i("select",{staticClass:"sidetool-select",staticStyle:{width:"60px"},on:{change:function(t){return e.setDicomCanvasfps(t)}}},[i("option",{domProps:{value:10}},[e._v("默认值")]),e._v(" "),i("option",{domProps:{value:15}},[e._v("15")]),e._v(" "),i("option",{domProps:{value:20}},[e._v("20")]),e._v(" "),i("option",{domProps:{value:30}},[e._v("30")])])])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("颜色")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("预设窗位值:")]),e._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:e.wwwcList[e.currentDicomCanvasIndex],expression:"wwwcList[currentDicomCanvasIndex]"}],staticClass:"sidetool-select",staticStyle:{width:"100px"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.wwwcList,e.currentDicomCanvasIndex,t.target.multiple?i:i[0])},function(t){return e.setDicomCanvasWwwc(t)}]}},[i("option",{domProps:{value:-1}},[e._v("默认值")]),e._v(" "),i("option",{domProps:{value:0}},[e._v("自定义")]),e._v(" "),i("option",{staticStyle:{"border-bottom":"1px solid #fff"},domProps:{value:1}},[e._v("区域窗宽")]),e._v(" "),i("option",{domProps:{value:2}},[e._v("\n CT Abdomen\n ")]),e._v(" "),i("option",{domProps:{value:3}},[e._v("\n CT Angio\n ")]),e._v(" "),i("option",{domProps:{value:4}},[e._v("\n CT Bone\n ")]),e._v(" "),i("option",{domProps:{value:5}},[e._v("\n CT Brain\n ")]),e._v(" "),i("option",{domProps:{value:6}},[e._v("\n CT Chest\n ")]),e._v(" "),i("option",{domProps:{value:7}},[e._v("\n CT Lungs\n ")])])]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("伪彩色:")]),e._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:e.colorList[e.currentDicomCanvasIndex],expression:"colorList[currentDicomCanvasIndex]"}],staticClass:"sidetool-select",staticStyle:{width:"90px"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.colorList,e.currentDicomCanvasIndex,t.target.multiple?i:i[0])},function(t){return e.setColormap(t)}]}},[i("option",{attrs:{value:""}},[e._v("默认值")]),e._v(" "),e._l(e.colormapsList,(function(t,n){return i("option",{key:n,domProps:{value:t.id}},[e._v(e._s(t.name))])}))],2)])])]),e._v(" "),e.customWwc.visible?i("el-dialog",{attrs:{visible:e.customWwc.visible,"close-on-click-modal":!1,title:e.customWwc.title,width:"400px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.customWwc,"visible",t)}}},[i("CustomWwwcForm",{on:{close:function(t){e.customWwc.visible=!1},setWwwc:e.setWwwc}})],1):e._e()],1)},a=[],r=(i("28a5"),i("5df3"),i("1c4c"),i("ac6a"),i("06cf")),o=i("137a"),s=i("81d9"),l=i("6e43"),c=i("e6ad"),u=i("c8b5"),d=i.n(u),f=(i("a481"),i("6762"),i("2fdb"),i("2b0e"));f["default"].directive("dialogDrag",{bind:function(e,t,i,n){var a=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");a.style.cssText+=";cursor:move;",r.style.cssText+=";top:0px;";var o=function(){return window.document.currentStyle?function(e,t){return e.currentStyle[t]}:function(e,t){return getComputedStyle(e,!1)[t]}}();a.onmousedown=function(e){var t=e.clientX-a.offsetLeft,i=e.clientY-a.offsetTop,n=document.body.clientWidth,s=document.documentElement.clientHeight,l=r.offsetWidth,c=r.offsetHeight,u=r.offsetLeft,d=n-r.offsetLeft-l,f=r.offsetTop,h=s-r.offsetTop-c,p=o(r,"left"),m=o(r,"top");return p.includes("%")?(p=+document.body.clientWidth*(+p.replace(/\%/g,"")/100),m=+document.body.clientHeight*(+m.replace(/\%/g,"")/100)):(p=+p.replace(/\px/g,""),m=+m.replace(/\px/g,"")),document.onmousemove=function(e){var n=e.clientX-t,a=e.clientY-i;-n>u?n=-u:n>d&&(n=d),-a>f?a=-f:a>h&&(a=h),r.style.cssText+=";left:".concat(n+p,"px;top:").concat(a+m,"px;")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},!1}}}),c["external"].cornerstone=s,c["external"].Hammer=d.a,c["external"].cornerstoneMath=l;var h={name:"DicomsViewer",components:{DicomCanvas:r["default"],CustomWwwcForm:o["default"]},data:function(){return{activeTool:"",activeItem:"dicomCanvas0",layoutRow:1,layoutCol:1,currentDicomCanvasIndex:0,currentDicomCanvas:{toolState:{clipPlaying:!1}},rowHeight:"100%",sync:{Wwwc:null},colormapsList:[],rotateList:[],colorList:[],wwwcList:[],layout:null,seriesList:[],customWwc:{visible:!1,title:null}}},mounted:function(){this.customWwc={visible:!1,title:this.$t("DicomViewer:data:customWwc")},this.rotateList[0]="1",this.colorList[0]="",this.wwwcList[0]="1",this.colormapsList=s["colors"].getColormapsList(),this.currentDicomCanvas=this.$refs["dicomCanvas0"]},methods:{loadImageStack:function(e){var t=this;this.$nextTick((function(){t.currentDicomCanvas.loadImageStack(e)}))},loadOtherImageStack:function(e){var t=this;this.$nextTick((function(){t.seriesList=e;var i=document.querySelectorAll(".dicom-item");Array.from(i).forEach((function(i,n){var a=i.getAttribute("data-index");n0&&(this.$refs["dicomCanvas".concat(e)].removeTarget(this.sync["ReferenceLines"]),this.sync["ReferenceLines"].addTarget(t[0]),this.sync["ReferenceLines"].removeSource(t[0]),this.$refs["dicomCanvas".concat(e)].addSourceElement(this.sync["ReferenceLines"]))}this.rotateList[this.currentDicomCanvasIndex]||(this.rotateList[this.currentDicomCanvasIndex]="1"),this.colorList[this.currentDicomCanvasIndex]||(this.colorList[this.currentDicomCanvasIndex]=""),this.wwwcList[this.currentDicomCanvasIndex]||(this.wwwcList[this.currentDicomCanvasIndex]="1")}},changeLayout:function(e){var t=e.target.value.split("x");this.layoutRow=parseInt(t[0]),this.layoutCol=parseInt(t[1]),this.rowHeight=100/this.layoutRow+"%",this.$forceUpdate(),this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)}))}))},setFullScreen:function(e){if(1!==this.layoutRow||1!==this.layoutCol)if(this.layout){e.currentTarget.classList.remove("dicom-item-fullscreen");var t=this.layout.split("x");this.layoutRow=parseInt(t[0]),this.layoutCol=parseInt(t[1]),this.rowHeight=100/this.layoutRow+"%",this.$forceUpdate(),this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)}))})),this.layout=null}else this.layout="".concat(this.layoutRow,"x").concat(this.layoutCol),e.currentTarget.classList.add("dicom-item-fullscreen"),s["enable"](e.currentTarget.children[0]),s["resize"](e.currentTarget.children[0])},setToolActive:function(e,t){var i=document.querySelectorAll(".dicom-item");if(e.currentTarget.classList.contains("activeTool")){e.currentTarget.classList.remove("activeTool");var n=this;Array.from(i).forEach((function(e,i){"none"!==e.style.display&&n.$refs["dicomCanvas".concat(i)].setToolPassive(t)}))}else{var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){e.classList.remove("activeTool")})),e.currentTarget.classList.add("activeTool");var r=this;Array.from(i).forEach((function(e,i){"none"!==e.style.display&&r.$refs["dicomCanvas".concat(i)].setToolActive(t)}))}},setDicomCanvasWwwc:function(e){this.wwwcList[this.currentDicomCanvasIndex]=e.target.value;var t=parseInt(e.target.value);-1===t?this.currentDicomCanvas.resetWwwc():0===t?this.customWwc.visible=!0:1===t?this.currentDicomCanvas.setToolActive("WwwcRegion"):2===t?this.currentDicomCanvas.setWwwc(400,60):3===t?this.currentDicomCanvas.setWwwc(600,300):4===t?this.currentDicomCanvas.setWwwc(1500,300):5===t?this.currentDicomCanvas.setWwwc(80,40):6===t?this.currentDicomCanvas.setWwwc(400,40):7===t&&this.currentDicomCanvas.setWwwc(1500,-400)},setWwwc:function(e){this.currentDicomCanvas.setWwwc(e.ww,e.wc),this.customWwc.visible=!1},toggleInvert:function(){this.currentDicomCanvas.toggleInvert()},setDicomCanvasRotate:function(e){var t=parseInt(e);1===t?this.currentDicomCanvas.resetRotate():2===t?this.currentDicomCanvas.setRotate(!0,!1,0,t):3===t?this.currentDicomCanvas.setRotate(!1,!0,0,t):4===t?this.currentDicomCanvas.setRotate(!1,!1,-90,t):5===t&&this.currentDicomCanvas.setRotate(!1,!1,90,t)},setColormap:function(e){this.colorList[this.currentDicomCanvasIndex]=e.target.value,this.currentDicomCanvas.setColormap(e.target.value)},setDicomCanvasfps:function(e){this.currentDicomCanvas.setFps(e.target.value)},fitToType:function(e,t){var i=document.querySelectorAll("[data-tool]");Array.from(i).forEach((function(e){e.classList.remove("activeTool")})),e.currentTarget.classList.add("activeTool"),"fitToWindow"===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)].fitToWindow():this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)].fitToImage()},setAnnotationSync:function(e){if(this.layoutRow*this.layoutCol!==1){this.resetSync("annotationSync");var t=!0,i=e.currentTarget;i.classList.contains("activeTool")?(i.classList.remove("activeTool"),t=!1):i.classList.add("activeTool"),this.sync.annotationSync||(this.sync.annotationSync=new c["Synchronizer"]("cornerstoneimagerendered",c["updateImageSynchronizer"]));var n=this,a=document.querySelectorAll(".dicom-item");Array.from(a).forEach((function(e,i){"none"!==e.style.display&&(t?(i!==n.currentDicomCanvasIndex?n.$refs["dicomCanvas".concat(i)].addTargetElement(n.sync["annotationSync"]):n.$refs["dicomCanvas".concat(i)].addSourceElement(n.sync["annotationSync"]),n.$refs["dicomCanvas".concat(i)].activeAnnotationSync(n.sync.annotationSync)):n.$refs["dicomCanvas".concat(i)].disabledAnnotationSync(n.sync.annotationSync))})),t||(n.sync.annotationSync=null)}},resetSync:function(e){for(var t in this.sync)t!==e&&this.sync[e]&&(this.sync[e]=null)}}},p=h,m=(i("a582"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},cc92:function(e,t,i){"use strict";i("e875")},cccd:function(e,t,i){var n=i("e0d3"),a=n.makeInner;function r(){var e=a();return function(t){var i=e(t),n=t.pipelineContext,a=i.large,r=i.progressiveRender,o=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(a^o||r^s)&&"reset"}}e.exports=r},cd12:function(e,t,i){i("01ed"),i("4a9d"),i("cb8f")},cd33:function(e,t,i){var n=i("6d8b"),a=i("4319"),r=n.each,o=n.curry;function s(e,t){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,e,t),i.seriesInvolved&&u(i,e),i}function l(e,t,i){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),s=a.get("link",!0)||[],l=[];r(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var u=v(i.model),f=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=i;var h=i.model,p=h.getModel("tooltip",n);if(r(i.getAxes(),o(w,!1,null)),i.getTooltipAxes&&n&&p.get("show")){var m="axis"===p.get("trigger"),b="cross"===p.get("axisPointer.type"),y=i.getTooltipAxes(p.get("axisPointer.axis"));(m||b)&&r(y.baseAxes,o(w,!b||"cross",m)),b&&r(y.otherAxes,o(w,"cross",!1))}}function w(n,r,o){var u=o.model.getModel("axisPointer",a),h=u.get("show");if(h&&("auto"!==h||n||g(u))){null==r&&(r=u.get("triggerTooltip")),u=n?c(o,p,a,t,n,r):u;var m=u.get("snap"),b=v(o.model),y=r||m||"category"===o.type,w=e.axesInfo[b]={key:b,axis:o,coordSys:i,axisPointerModel:u,triggerTooltip:r,involveSeries:y,snap:m,useHandle:g(u),seriesModels:[]};f[b]=w,e.seriesInvolved|=y;var _=d(s,o);if(null!=_){var I=l[_]||(l[_]={axesInfo:{}});I.axesInfo[b]=w,I.mapper=s[_].mapper,w.linkGroup=I}}}}))}function c(e,t,i,o,s,l){var c=t.getModel("axisPointer"),u={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=n.clone(c.get(e))})),u.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(u.type="line");var d=u.label||(u.label={});if(null==d.show&&(d.show=!1),"cross"===s){var f=c.get("label.show");if(d.show=null==f||f,!l){var h=u.lineStyle=c.get("crossStyle");h&&n.defaults(d,h.textStyle)}}return e.model.getModel("axisPointer",new a(u,i,o))}function u(e,t){t.eachSeries((function(t){var i=t.coordinateSystem,n=t.get("tooltip.trigger",!0),a=t.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==a&&!1!==t.get("axisPointer.show",!0)&&r(e.coordSysAxesInfo[v(i.model)],(function(e){var n=e.axis;i.getAxis(n.dim)===n&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function d(e,t){for(var i=t.model,n=t.dim,a=0;a=0||e===t}function h(e){var t=p(e);if(t){var i=t.axisPointerModel,n=t.axis.scale,a=i.option,r=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=g(i);null==r&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0){var R=o(y)?l:c;y>0&&(y=y*C+S),_[I++]=R[k],_[I++]=R[k+1],_[I++]=R[k+2],_[I++]=R[k+3]*y*256}else I+=4}return f.putImageData(w,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=n.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),e},_getGradient:function(e,t,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)t[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var o=r;e.exports=o},cd8e:function(e,t,i){"use strict";i("221a")},cd95:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"researchBSForm",staticStyle:{width:"80%"},attrs:{size:"small",model:e.form,rules:e.rules}},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:trialId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchNo")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ResearchProgramNo,callback:function(t){e.$set(e.form,"ResearchProgramNo",t)},expression:"form.ResearchProgramNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchName")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ExperimentName,callback:function(t){e.$set(e.form,"ExperimentName",t)},expression:"form.ExperimentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:decleareType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.IndicationType,callback:function(t){e.$set(e.form,"IndicationType",t)},expression:"form.IndicationType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteName"),prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:!(0===e.state&&0===e.userTypeEnumInt)},on:{change:e.handleSiteChange},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteAliasName,value:e.SiteId}})})),1)],1),e._v(" "),e.form.SiteId?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactor"),prop:"UserName"}},[i("el-input",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.UserName,callback:function(t){e.$set(e.form,"UserName",t)},expression:"form.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorPhone"),prop:"Phone"}},[i("el-input",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorEmail")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:engravingCycle")}},[i("el-input-number",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt),"controls-position":"right",min:0},model:{value:e.form.AverageEngravingCycle,callback:function(t){e.$set(e.form,"AverageEngravingCycle",t)},expression:"form.AverageEngravingCycle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:isQualified")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.IsConfirmImagingTechnologist,callback:function(t){e.$set(e.form,"IsConfirmImagingTechnologist",t)},expression:"form.IsConfirmImagingTechnologist"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),!1===e.form.IsConfirmImagingTechnologist?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:notQualifiedReason")}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.NotConfirmReson,callback:function(t){e.$set(e.form,"NotConfirmReson",t)},expression:"form.NotConfirmReson"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:staffType")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.EfficacyEvaluatorType,callback:function(t){e.$set(e.form,"EfficacyEvaluatorType",t)},expression:"form.EfficacyEvaluatorType"}},[i("el-radio",{attrs:{label:0}},[e._v("影像科医生")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("临床医生")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:isFollowStudyParam")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.IsFollowStudyParameters,callback:function(t){e.$set(e.form,"IsFollowStudyParameters",t)},expression:"form.IsFollowStudyParameters"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form.IsFollowStudyParameters?e._e():i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:notFollowStudyParam")}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.NotFollowReson,callback:function(t){e.$set(e.form,"NotFollowReson",t)},expression:"form.NotFollowReson"}})],1),e._v(" "),i("el-form-item",[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",loading:e.btnLoading,size:"small"},on:{click:function(t){return e.handleSave(!1)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e()],1)],1)},a=[],r=(i("7514"),i("96cf"),i("3b8d")),o=(i("c5f6"),i("7cdf"),i("3e42")),s=i("896b"),l={name:"QuestionForm",data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;if(!i)return n(new Error(e.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:researchForm:formRule:phone")))}),100)};return{form:{Id:"",Sponsor:"",ResearchProgramNo:"",ExperimentName:"",TrialCode:"",IndicationType:"",SiteId:"",TrialSiteCode:"",UserName:"",Phone:"",Email:"",AverageEngravingCycle:"",IsConfirmImagingTechnologist:"",NotConfirmReson:"",EfficacyEvaluatorType:"",IsFollowStudyParameters:"",NotFollowReson:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:t,trigger:"blur"}]},siteOptions:[],btnLoading:!1,state:null,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt")}},methods:{handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["researchBSForm"].validate((function(a){if(a){t.btnLoading=!0;var r={id:t.form.Id,trialId:t.$route.query.trialId,siteId:t.form.SiteId,userName:t.form.UserName,phone:t.form.Phone,email:t.form.Email,averageEngravingCycle:t.form.AverageEngravingCycle,isConfirmImagingTechnologist:t.form.IsConfirmImagingTechnologist,notConfirmReson:t.form.NotConfirmReson,efficacyEvaluatorType:t.form.EfficacyEvaluatorType,isFollowStudyParameters:t.form.IsFollowStudyParameters,notFollowReson:t.form.NotFollowReson};Object(s["b"])(r).then((function(n){t.btnLoading=!1,n.IsSuccess&&!e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(){t.btnLoading=!1,n(!1)}))}else n(!1)}))}))},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Zd"])(this.$route.query.trialId);case 2:n=e.sent,a=n.Result,this.siteOptions=a,this.form.Id=i.Id,this.form.Sponsor=t.Sponsor,this.form.ResearchProgramNo=t.ResearchProgramNo,this.form.ExperimentName=t.ExperimentName,this.form.TrialCode=t.TrialCode,this.form.TrialSiteCode=i.TrialSiteCode,this.form.TrialSiteAliasName=i.TrialSiteAliasName,this.form.IndicationType=t.IndicationType,this.form.SiteId=i.SiteId,this.form.UserName=i.UserName,this.form.Phone=i.Phone,this.form.Email=i.Email,this.form.AverageEngravingCycle=i.AverageEngravingCycle,this.form.IsConfirmImagingTechnologist=i.IsConfirmImagingTechnologist,this.form.NotConfirmReson=i.NotConfirmReson,this.form.EfficacyEvaluatorType=i.EfficacyEvaluatorType,this.form.IsFollowStudyParameters=i.IsFollowStudyParameters,this.form.NotFollowReson=i.NotFollowReson,this.state=i.State;case 24:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),handleSiteChange:function(e){var t=this.siteOptions.find((function(t){return t.SiteId===e}));t&&(this.form.TrialSiteCode=t.TrialSiteCode)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},cd96:function(e,t,i){"use strict";i("29d7")},cd9d:function(e,t){function i(e){return e}e.exports=i},cdaa:function(e,t,i){var n=i("607d"),a=n.addEventListener,r=n.removeEventListener,o=n.normalizeEvent,s=n.getNativeEvent,l=i("6d8b"),c=i("1fab"),u=i("22d1"),d=300,f=u.domSupported,h=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=l.map(e,(function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:n}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(e){return"mousewheel"===e&&u.browser.firefox?"DOMMouseScroll":e}function g(e){var t=e.pointerType;return"pen"===t||"touch"===t}function v(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function b(e){e&&(e.zrByTouch=!0)}function y(e,t){return o(e.dom,new _(e,t),!0)}function w(e,t){var i=t,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==t&&i===e.painterRoot))i=i.parentNode;return n}function _(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var I=_.prototype;I.stopPropagation=I.stopImmediatePropagation=I.preventDefault=l.noop;var x={mousedown:function(e){e=o(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=o(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||D(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=o(this.dom,e),D(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=o(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=w(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=o(this.dom,e),b(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),x.mousemove.call(this,e),x.mousedown.call(this,e)},touchmove:function(e){e=o(this.dom,e),b(e),this.handler.processGesture(e,"change"),x.mousemove.call(this,e)},touchend:function(e){e=o(this.dom,e),b(e),this.handler.processGesture(e,"end"),x.mouseup.call(this,e),+new Date-this._lastTouchMomentn&&t.row.BeforeQuestionList[n].Answer?i("div",[t.row.BeforeQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.BeforeQuestionList[n].DictionaryCode,parseInt(t.row.BeforeQuestionList[n].Answer)))+"\n ")]):22===t.row.BeforeQuestionList[n].QuestionType?i("span",[e._v(e._s("-1"===t.row.BeforeQuestionList[n].Answer?e.$t("trials:medicalFeedback:table:unKnow"):t.row.BeforeQuestionList[n].Answer))]):i("span",[e._v(e._s(t.row.BeforeQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),e._l(e.agreeOrNotList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:e.$t("trials:medicalFeedback:table:agreeToVisitPointCount"),"show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer)))+"\n ")]):0===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer))))]):i("span")]}}],null,!0)})})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:medicalFeedback:table:assessmentResults"),align:"center",prop:"","show-overflow-tooltip":""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AfterQuestionList.length>n&&t.row.AfterQuestionList[n].Answer?i("div",[3===t.row.AfterQuestionList[n].GlobalAnswerType?i("span",[e._v("\n "+e._s(e.getAssessType(t.row.AfterQuestionList[n].Answer))+"\n ")]):t.row.AfterQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.AfterQuestionList[n].DictionaryCode,parseInt(t.row.AfterQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.AfterQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:medicalFeedback:table:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row.VisitTaskId)}}})]}}],null,!1,1649918131)})],2):i("el-table",{attrs:{data:e.taskList}},[i("el-table-column",{attrs:{prop:"BlindName",label:e.$t("trials:globalReview:table:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:globalReview:table:evaluationRes"),align:"center",prop:""}},[e._l(e.evaluationQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.BeforeQuestionList.length>n&&t.row.BeforeQuestionList[n].Answer?i("div",[t.row.BeforeQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.BeforeQuestionList[n].DictionaryCode,parseInt(t.row.BeforeQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.BeforeQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),e._l(e.agreeOrNotList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:e.$t("trials:globalReview:table:isAgreeEvaluationRes"),"show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer)))+"\n ")]):0===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer))))]):i("span")]}}],null,!0)})})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:globalReview:table:adjustedRes"),align:"center",prop:""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AfterQuestionList.length>n&&t.row.AfterQuestionList[n].Answer?i("div",[3===t.row.AfterQuestionList[n].GlobalAnswerType?i("span",[e._v("\n "+e._s(e.getAssessType(t.row.AfterQuestionList[n].Answer))+"\n ")]):t.row.AfterQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.AfterQuestionList[n].DictionaryCode,parseInt(t.row.AfterQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.AfterQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:globalReview:table:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row.VisitTaskId)}}})]}}])})],2)],1)},a=[],r=(i("20d6"),i("28a5"),i("5f87")),o={name:"GReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{taskList:[],evaluationQsList:[],agreeOrNotList:[],adjustedQsList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=[],i=[],n=[];if(this.auditInfo.GlobalInfo.TaskList.length>0){var a=this.auditInfo.GlobalInfo.TaskList[0];a.BeforeQuestionList.map((function(e){t.push(e.QuestionName)})),a.AfterQuestionList.map((function(t){1===t.GlobalAnswerType&&10===e.CriterionType?i.push(e.$t("trials:globalReview:table:visitRemark")):1===t.GlobalAnswerType&&1===e.CriterionType?i.push(e.$t("trials:globalReview:table:globalRemark")):3===t.GlobalAnswerType&&1===e.CriterionType?i.push(e.$t("trials:globalReview:table:updateType")):i.push(t.QuestionName)})),a.AgreeOrNot.map((function(e){n.push(e.QuestionName)}))}this.globalUpdateType=this.auditInfo.GlobalInfo.GlobalUpdateType?this.auditInfo.GlobalInfo.GlobalUpdateType.split("|"):[],this.evaluationQsList=t,this.adjustedQsList=i,this.agreeOrNotList=n,this.taskList=this.auditInfo.GlobalInfo.TaskList,this.assessTypeList=this.auditInfo.GlobalInfo.AssessTypeList},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].ValueCN:""},handleView:function(e){var t=Object(r["a"])(),i=this.$route.query.trialId,n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(t,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(t,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},cddb:function(e,t,i){},ce01:function(e,t,i){},ce0b:function(e,t,i){"use strict";i("6f97")},ce7a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"trialForm",staticClass:"demo-ruleForm trial-Form",attrs:{"label-width":"190px",rules:e.trialFormRules,model:e.trialForm,"label-position":"right",inline:!0}},[i("el-row",[""!==e.trialForm.Id?i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:trialId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.trialForm.TrialCode,callback:function(t){e.$set(e.trialForm,"TrialCode",t)},expression:"trialForm.TrialCode"}})],1):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:experimentName"),prop:"ExperimentName"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:4}},model:{value:e.trialForm.ExperimentName,callback:function(t){e.$set(e.trialForm,"ExperimentName",t)},expression:"trialForm.ExperimentName"}})],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:pi"),prop:"HeadPI"}},[i("el-input",{model:{value:e.trialForm.HeadPI,callback:function(t){e.$set(e.trialForm,"HeadPI",t)},expression:"trialForm.HeadPI"}})],1)],1),e._v(" "),i("el-row"),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:indication"),prop:"Indication"}},["Other"!==e.trialForm.Indication&&"其它"!==e.trialForm.Indication?i("el-select",{model:{value:e.trialForm.Indication,callback:function(t){e.$set(e.trialForm,"Indication",t)},expression:"trialForm.Indication"}},e._l(e.$d.Indication,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.indicationGrouping===t.raw.ChildGroup,expression:"indicationGrouping === item.raw.ChildGroup"}],key:t.id,attrs:{label:t.label,value:t.label}})})),1):e._e(),e._v(" "),"Other"===e.trialForm.Indication||"其它"===e.trialForm.Indication?i("el-row",[i("el-col",{attrs:{span:12}},[i("el-select",{staticStyle:{width:"200px","margin-right":"10px"},model:{value:e.trialForm.Indication,callback:function(t){e.$set(e.trialForm,"Indication",t)},expression:"trialForm.Indication"}},e._l(e.$d.Indication,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.indicationGrouping===t.raw.ChildGroup,expression:"indicationGrouping === item.raw.ChildGroup"}],key:t.id,attrs:{label:t.label,value:t.label}})})),1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-input",{model:{value:e.trialForm.IndicationOther,callback:function(t){e.$set(e.trialForm,"IndicationOther",t)},expression:"trialForm.IndicationOther"}})],1)],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:modality")}},[i("el-select",{attrs:{multiple:""},model:{value:e.trialForm.ModalityIds,callback:function(t){e.$set(e.trialForm,"ModalityIds",t)},expression:"trialForm.ModalityIds"}},e._l(e.$d.Modality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),i("el-row",{staticStyle:{"margin-left":"190px"}},[i("el-form-item",{attrs:{label:""}},[i("el-button",{attrs:{type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("trials:trials-list:form:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:trials-list:form:save"))+"\n ")])],1)],1)],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("75fc"),s=(i("28a5"),i("db72")),l=i("4360"),c=i("2f62"),u=i("3e42"),d=i("86a6"),f={name:"TrialForm",props:{trialId:{type:String,default:""}},data:function(){var e=this,t=function(t,i,n){if(("其它"===i||"Other"===i)&&!e.trialForm.IndicationOther)return n(new Error("请输入适应症"));n()};return{trialForm:{Id:"",TrialCode:"",TrialType:1,SponsorId:"",CROId:"",ReviewModeId:"",ReviewTypeIds:[],Expedited:0,ModalityIds:[],Note:"",ExpectedPatients:0,TimePointsPerPatient:0,ProjectCycle:"",TotalReviewers:0,DeclarationTypeId:"742e0000-3e2c-0016-b5ca-08da6222442f",IndicationTypeId:"437a81b3-c5ad-49fd-82a1-8f441c4ba8da",PhaseId:"b1509dde-234a-46ce-cf13-08d9c120c961",AttendedReviewerType:0,IsLocked:!1,ResearchProgramNo:"111",ExperimentName:"",MainResearchUnit:"",HeadPI:"",PlanSiteCount:null,PlanVisitCount:null,Indication:null,IndicationOther:null},indicationGrouping:null,trialFormRules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TrialType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],ResearchProgramNo:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100")}],ExperimentName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100")}],Indication:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")},{validator:t,trigger:"blur"}],ProjectCycle:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ReviewModeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Expedited:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Note:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],ModalityIds:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],PhaseId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IndicationTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],DeclarationTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReviewTypeIds:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},btnLoading:!1,isLock:!1,expeditedOption:this.$d.YesOrNoForInt,loading:!1,declarationNum:null,indicationNum:null,phaseNum:null,dictionaryList:{}}},computed:Object(s["a"])(Object(s["a"])({},Object(c["b"])(["sponsorList","croList"])),Object(c["d"])("user",["isTestUser"])),mounted:function(){this.initPage(),this.handleIndicationTypeChange("437a81b3-c5ad-49fd-82a1-8f441c4ba8da"),console.log(this.isTestUser,"isTestUser")},methods:{initForm:function(){var e=this;this.loading=!0,Object(u["Od"])(this.trialId).then((function(t){if(e.loading=!1,t.IsSuccess)for(var i in e.trialForm){if("IndicationOther"===i)return;if("Indication"===i)if(~t.Result["Indication"].indexOf("-")){var n=t.Result["Indication"].split("-");e.$set(e.trialForm,"IndicationOther",n[1]),e.trialForm["Indication"]=n[0]}else e.trialForm[i]="00000000-0000-0000-0000-000000000000"===t.Result[i]?"":t.Result[i];else e.trialForm[i]="00000000-0000-0000-0000-000000000000"===t.Result[i]?"":t.Result[i],"IndicationTypeId"===i&&(e.indicationGrouping=e.$d.IndicationType.filter((function(e){return e.id===t.Result[i]}))[0].raw.ChildGroup)}})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.trialForm.validate((function(t){if(t){e.btnLoading=!0,e.trialForm.Id||(e.trialForm.TrialCode="".concat(e.declarationNum).concat(e.indicationNum).concat(e.phaseNum),console.log(e.trialForm.TrialCode));var i=Object.assign({},e.trialForm);"其它"!==i.Indication&&"Other"!==i.Indication||(i.Indication=i.Indication+"-"+i.IndicationOther),Object(u["A"])(i).then((function(t){e.btnLoading=!1,e.trialForm.Id?e.$message.success(e.$t("trials:trials-list:message:updatedSuccessfully")):(e.trialForm.Id=t.Result,e.$message.success(e.$t("trials:trials-list:message:addedSuccessfully"))),e.$emit("getList"),e.$emit("closeDialog")})).catch((function(){e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("closeDialog")},handleDeclarationTypeChange:function(e){if(e&&(this.declarationNum=this.$d.DeclarationType.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id)){var t=Object(o["a"])(this.trialForm.TrialCode);t[2]=this.declarationNum,this.trialForm.TrialCode=t.join("")}},handleIndicationTypeChange:function(e){if(this.indicationGrouping=null,e){if(this.indicationNum=this.$d.IndicationType.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id){var t=Object(o["a"])(this.trialForm.TrialCode);t[3]=this.indicationNum,this.trialForm.TrialCode=t.join("")}this.indicationGrouping=this.$d.IndicationType.filter((function(t){return t.id===e}))[0].raw.ChildGroup}this.trialForm.Indication=null},handlePhaseChange:function(e){if(e&&(this.phaseNum=this.$d.Trial_Phase.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id)){var t=Object(o["a"])(this.trialForm.TrialCode);t[4]=this.phaseNum,this.trialForm.TrialCode=t.join("")}},handleExpectedPatientsChange:function(e){this.trialForm.PlanVisitCount=e*this.trialForm.TimePointsPerPatient},handleTpPerPatientChange:function(e){this.trialForm.PlanVisitCount=e*this.trialForm.ExpectedPatients},initPage:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getDicData();case 3:return e.next=5,l["a"].dispatch("global/getSponsorList");case 5:return e.next=7,l["a"].dispatch("global/getCROList");case 7:this.trialId&&(this.trialForm.Id=this.trialId,this.initForm()),this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(d["c"])(["DeclarationType","IndicationType","Modality","ReviewMode","ReviewType","Trial_Phase"]).then((function(t){e.dictionaryList=Object(s["a"])({},t.Result)}))}}},h=f,p=(i("3016"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},cea2:function(e,t,i){"use strict";i("47c1")},cee1:function(e,t,i){var n=i("6d8b");function a(e){var t={};e.eachSeriesByType("map",(function(i){var a=i.getMapType();if(!i.getHostGeoModel()&&!t[a]){var r={};n.each(i.seriesGroup,(function(t){var i=t.coordinateSystem,n=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&n.each(n.mapDimension("value"),(function(e,t){var a=n.getName(t),o=i.getRegion(a);if(o&&!isNaN(e)){var s=r[a]||0,l=i.dataToPoint(o.center);r[a]=s+1,n.setItemLayout(t,{point:l,offset:s})}}))}));var o=i.getData();o.each((function(e){var t=o.getName(e),i=o.getItemLayout(e)||{};i.showLabel=!r[t],o.setItemLayout(e,i)})),t[a]=!0}}))}e.exports=a},cf22:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前检查",name:"first"}},[i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.studyCode)+"\n ")]),e._v(" "),i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.description)+"\n ")]),e._v(" "),e.seriesCount?i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.modality)+" : "+e._s(e.seriesCount)+" Series\n ")]):e._e(),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.seriesList,(function(t,n){return i("div",{key:n,class:{viewerSideActive:0==n},staticStyle:{position:"relative","margin-bottom":"5px","border-radius":"2px",border:"1px solid #404040"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(i,n,t)}}},[i("div",{staticClass:"viewernavigatorwrapper"},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[t.keySeries?i("div",{staticStyle:{padding:"1px",color:"red"}},[e._v("\n Key Images\n ")]):i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"item.instanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.sliceThickness,expression:"!item.keySeries && item.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.description,expression:"!item.keySeries &&item.description"}],staticStyle:{width:"120px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),t.keySeries?e._e():i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])])],1),e._v(" "),e.showDelete?i("div",{on:{click:function(e){e.stopPropagation()}}},[i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否阅片")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeReadingStatus(i,t)}},model:{value:t.isReading,callback:function(i){e.$set(t,"isReading",i)},expression:"item.isReading"}}),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否删除")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeDeleteStatus(i,t)}},model:{value:t.isDeleted,callback:function(i){e.$set(t,"isDeleted",i)},expression:"item.isDeleted"}})],1):e._e(),e._v(" "),t.prefetchInstanceCount>0&&t.prefetchInstanceCount0&&(t.$refs.dicomViewer.loadImageStack(t.seriesList[0],t.labels[t.tpCode]),t.firstInstanceId=t.seriesList[0].imageIds[0])}}))},initSeries:function(){var e=this;this.studyCode=this.$router.currentRoute.query.studyCode,this.modality=this.$router.currentRoute.query.modality,this.seriesCount=1,this.description=this.$router.currentRoute.query.description;var t=this.$router.currentRoute.query.seriesId,i=this.$router.currentRoute.query.seriesNumber,n=this.$router.currentRoute.query.subjectVisitId,a=this.$router.currentRoute.query.studyId,r=this.$router.currentRoute.query.trialId;Object(u["mc"])(t).then((function(o){if(o.Result&&(!o.Result||0!==o.Result.length)){var s=o.Result[0].SeriesInstanceUid,l=o.Result[0].SliceLocation,c=o.Result[0].IsReading,u=o.Result[0].IsDeleted,d=[],f=[];o.Result.forEach((function(e){f.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e.Path))})),d.push({trialId:r,subjectVisitId:n,studyId:a,imageIds:f,seriesId:t,seriesUid:s,seriesNumber:i,sliceThickness:l,modality:e.modality,description:e.description,isReading:c,isDeleted:u,previewImageUrl:"/api/series/preview/".concat(t),instanceCount:o.Result.length,prefetchInstanceCount:0,loadStatus:!1,imageloadedArr:[]}),e.seriesList=d,e.seriesList.length>0&&e.$nextTick((function(){e.$refs.dicomViewer.loadImageStack(e.seriesList[0]),e.firstInstanceId=e.seriesList[0].imageIds[0]}))}}))},showSeriesImage:function(e,t,i){var n=this,a=e.currentTarget,r=document.querySelectorAll("[series-type]");if(Array.from(r).forEach((function(e){e.classList.remove("viewerSideActive")})),a.classList.add("viewerSideActive"),this.currentSeriesIndex=t,this.$refs.dicomViewer.loadImageStack(this.seriesList[t]),!i.loadStatus){i.isLoading=!0;var o=(new Date).getTime();i.imageIds.map((function(e,t){var a="";a=0===t?new Date((new Date).setHours(23,59,59,999)).getTime():o-1,n.load(e,i.seriesId,a)}))}},initStudy:function(){var e=this;if(this.studyCode=this.$router.currentRoute.query.studyCode,this.modality=this.$router.currentRoute.query.modality,this.seriesCount=1,this.description=this.$router.currentRoute.query.description,this.$router.currentRoute.query.series){var t=JSON.parse(this.$router.currentRoute.query.series),i=[],n=[];t.InstancePathList.forEach((function(e){n.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),i.push({imageIds:n,seriesId:t.Id,seriesUid:t.SeriesInstanceUid,seriesNumber:t.SeriesNumber,sliceThickness:t.SliceThickness,modality:t.Modality,description:t.Description,previewImageUrl:"/api/series/preview/".concat(t.Id),instanceCount:t.InstanceCount,prefetchInstanceCount:0,hasLabel:t.HasLabel,keySeries:t.KeySeries,loadStatus:!1,imageloadedArr:[]}),this.seriesList=i,this.seriesList.length>0&&this.$nextTick((function(){e.$refs.dicomViewer.loadImageStack(e.seriesList[0]),e.firstInstanceId=e.seriesList[0].imageIds[0]}))}},deleteSeries:function(){var e=this;this.loading=!0;var t=this.$router.currentRoute.query.subjectVisitId,i=this.$router.currentRoute.query.studyId,n=this.$router.currentRoute.query.seriesId;Object(u["Re"])(this.trialId,t,i,n,5).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){e.loading=!1}))},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.isReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.isReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isReading?1:2;i.loading=!0,Object(u["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isReading=!t.isReading,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.isDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.isDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isDeleted?5:4;i.loading=!0,Object(u["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isDeleted=!t.isDeleted,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},loadAllImages:function(){var e=this,t=(new Date).getTime();this.seriesList.forEach((function(i){i.imageIds.forEach((function(n){t--,e.load(n,i.seriesId,t)}))}))},load:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999;return new Promise((function(a,r){d["a"].loadAndCacheImagePlus(e,t,n).then((function(t){t&&(i.imageLoaded(e,t.data.string("x0020000e")),a(t))})).catch((function(e){r(e)}))}))},imageLoaded:function(e,t){for(var i=-1,n=0;n=this.seriesList[i].instanceCount&&(this.seriesList[i].prefetchInstanceCount=this.seriesList[i].instanceCount,this.seriesList[i].loadStatus=!0))}},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},unload:function(){this.cachedImages.sort(this.compare),s["wadouri"].dataSetCacheManager.unload(this.cachedImages[0].uri),this.cachedImages.splice(0,1)},compare:function(e,t){return e.timeStamp>t.timeStamp?-1:e.timeStamp=this.seriesList[r].instanceCount&&(this.seriesList[r].prefetchInstanceCount=this.seriesList[r].instanceCount,this.seriesList[r].loadStatus=!0))}}}},m=p,g=(i("afe7"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},cf221:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),~e.$route.path.indexOf("select")?e._e():i("el-table-column",{attrs:{prop:"Code",label:"字典键值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildGroup",label:"分组","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("DictionaryChildAddOrUpdateForm",{ref:"DictionaryChildAddOrUpdateForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("ff85"),l=function(){return{parentId:""}},c={components:{BoxContent:o["default"],DictionaryChildAddOrUpdateForm:s["default"]},props:{parent:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),basicDicList:[],list:[],total:0,loading:!1,drawerChild:!1,rowData:{},childList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList()},methods:{handleChild:function(e){this.drawerChild=!0,this.getDictionaryChildList(e.Id)},getDictionaryChildList:function(e){var t=this;Object(r["fb"])(e).then((function(e){t.childList=e.Result.CurrentPageData})).catch((function(){t.loading=!1}))},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Edit",e,{DataTypeEnum:t.parent.DataTypeEnum})}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Add",{},{ConfigTypeId:e.parent.ConfigTypeId,parentId:e.parent.Id,DataTypeEnum:e.parent.DataTypeEnum})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["fb"])(this.parent.Id).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"249f93b7",null);t["default"]=f.exports},cf4f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container"},[i("el-card",{staticClass:"box-card"},[i("div",{staticStyle:{width:"80%"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"employmentForm",staticClass:"demo-ruleForm",attrs:{rules:e.employmentRules,model:e.employmentForm,"label-width":"150px"}},[i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Hospital: ",prop:"HospitalId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{change:e.handleHospitalChange},model:{value:e.employmentForm.HospitalId,callback:function(t){e.$set(e.employmentForm,"HospitalId",t)},expression:"employmentForm.HospitalId"}},e._l(e.hospitalList,(function(t,n){return i("el-option",{key:n,attrs:{label:t.HospitalName,value:t.Id}},[i("span",[e._v("\n "+e._s(t.HospitalName)+"\n ")])])})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Affiliated University: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",autosize:"",disabled:"",size:"small"},model:{value:e.UniversityAffiliated,callback:function(t){e.UniversityAffiliated=t},expression:"UniversityAffiliated"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"City: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.City,callback:function(t){e.City=t},expression:"City"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"State/Province: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.Province,callback:function(t){e.Province=t},expression:"Province"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Country: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.Country,callback:function(t){e.Country=t},expression:"Country"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Department: ",prop:"DepartmentId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.employmentForm.DepartmentId,callback:function(t){e.$set(e.employmentForm,"DepartmentId",t)},expression:"employmentForm.DepartmentId"}},[e._l(e.dictionaryList.Department,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.DepartmentId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"DepartmentOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify (required)",size:"small"},model:{value:e.employmentForm.DepartmentOther,callback:function(t){e.$set(e.employmentForm,"DepartmentOther",t)},expression:"employmentForm.DepartmentOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.DepartmentId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"DepartmentOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.DepartmentOtherCN,callback:function(t){e.$set(e.employmentForm,"DepartmentOtherCN",t)},expression:"employmentForm.DepartmentOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Rank: ",prop:"RankId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"select",size:"small"},on:{change:e.RankChange},model:{value:e.employmentForm.RankId,callback:function(t){e.$set(e.employmentForm,"RankId",t)},expression:"employmentForm.RankId"}},e._l(e.$d.Rank,(function(e){return i("el-option",{key:e.id,attrs:{label:e.raw.Value,value:e.id}})})),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("Rank",e.employmentForm.RankId,"id")||"Other"===e.$fd("Rank",e.employmentForm.RankId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"RankOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.RankOther,callback:function(t){e.$set(e.employmentForm,"RankOther",t)},expression:"employmentForm.RankOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("Rank",e.employmentForm.RankId,"id")||"Other"===e.$fd("Rank",e.employmentForm.RankId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"RankOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.RankOtherCN,callback:function(t){e.$set(e.employmentForm,"RankOtherCN",t)},expression:"employmentForm.RankOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Physician: ",prop:"PhysicianId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{change:e.PhysicianChange},model:{value:e.employmentForm.PhysicianId,callback:function(t){e.$set(e.employmentForm,"PhysicianId",t)},expression:"employmentForm.PhysicianId"}},e._l(e.$d.PhysicianOriginal,(function(e){return i("el-option",{key:e.id,attrs:{label:e.raw.Value,value:e.id}})})),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")||"Other"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"Physician"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.Physician,callback:function(t){e.$set(e.employmentForm,"Physician",t)},expression:"employmentForm.Physician"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")||"Other"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PhysicianCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.PhysicianCN,callback:function(t){e.$set(e.employmentForm,"PhysicianCN",t)},expression:"employmentForm.PhysicianCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Position: ",prop:"Position"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"select",size:"small"},model:{value:e.employmentForm.PositionId,callback:function(t){e.$set(e.employmentForm,"PositionId",t)},expression:"employmentForm.PositionId"}},[e._l(e.dictionaryList.Position,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}}),e._v(" "),i("el-option",{attrs:{label:"None",value:"f30a074b-2b47-4a92-97ec-e15086d37883"}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.PositionId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PositionOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.PositionOther,callback:function(t){e.$set(e.employmentForm,"PositionOther",t)},expression:"employmentForm.PositionOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.PositionId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PositionOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.PositionOtherCN,callback:function(t){e.$set(e.employmentForm,"PositionOtherCN",t)},expression:"employmentForm.PositionOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled||"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)])],1)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=i("33ba"),l=i("86a6"),c=i("4360"),u=i("2f62"),d={name:"Employment",data:function(){return{employmentForm:{Id:this.$route.query.Id,DepartmentId:"",DepartmentOther:"",DepartmentOtherCN:"",RankId:"",RankOther:"",RankOtherCN:"",PositionId:"",PositionOther:"",PositionOtherCN:"",HospitalId:"",PhysicianId:"",Physician:"",PhysicianCN:"",PhysicianOriginal:null},UniversityAffiliated:"",City:"",Province:"",Country:"",employmentRules:{DepartmentId:[{required:!0,message:"Please select department",trigger:"blur"}],DepartmentOther:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],DepartmentOtherCN:[{max:50,message:"The maximum length is 50"}],RankId:[{required:!0,message:"Please select rank",trigger:"blur"}],RankOther:[{required:!0,message:"Please select rank",trigger:"blur"},{max:50,message:"The maximum length is 50"}],RankOtherCN:[{required:!0,message:"Please select rank",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PhysicianId:[{required:!0,message:"Please select Physician",trigger:"blur"}],Physician:[{required:!0,message:"Please select Physician",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PhysicianCN:[{required:!0,message:"Please select Physician",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PositionId:[{required:!0,message:"Please select position",trigger:"blur"}],PositionOther:[{max:50,message:"The maximum length is 50"}],PositionOtherCN:[{max:50,message:"The maximum length is 50"}],HospitalId:[{required:!0,message:"Please select hospital",trigger:"blur"}]},isDisabled:!1,selectId:"00000000-0000-0000-0000-000000000000",otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",loading:!1,dictionaryList:{}}},computed:Object(o["a"])({},Object(u["b"])(["hospitalList"])),mounted:function(){this.initEmployment()},methods:{RankChange:function(e){var t=this.$d.Rank.find((function(t){return t.id===e}));"其它"===t.label||"Other"===t.label?(this.employmentForm.RankOther="",this.employmentForm.RankOtherCN=""):(this.employmentForm.RankOther=t.raw.Value,this.employmentForm.RankOtherCN=t.raw.ValueCN)},PhysicianChange:function(e){var t=this.$d.PhysicianOriginal.find((function(t){return t.id===e}));"其它"===t.label||"Other"===t.label?(this.employmentForm.Physician="",this.employmentForm.PhysicianCN=""):(this.employmentForm.Physician=t.raw.Value,this.employmentForm.PhysicianCN=t.raw.ValueCN)},handleSave:function(){var e=this;this.$refs.employmentForm.validate((function(t){if(t){e.loading=!0,e.isDisabled=!0;var i={},n=e.$d.PhysicianOriginal.find((function(t){return t.id===e.employmentForm.PhysicianId}));i.Id=e.$route.query.Id,i.DepartmentId=e.employmentForm.DepartmentId,i.DepartmentOther=e.employmentForm.DepartmentId===e.otherId?e.employmentForm.DepartmentOther:"",i.DepartmentOtherCN=e.employmentForm.DepartmentId===e.otherId?e.employmentForm.DepartmentOtherCN:"",i.RankId=e.employmentForm.RankId,i.RankOther=e.employmentForm.RankId===e.otherId?e.employmentForm.RankOther:"",i.RankOtherCN=e.employmentForm.RankId===e.otherId?e.employmentForm.RankOtherCN:"",i.PhysicianId=e.employmentForm.PhysicianId,i.Physician="其它"!==n.label&&"Other"!==n.label?n.raw.Value:e.employmentForm.Physician,i.PhysicianCN="其它"!==n.label&&"Other"!==n.label?n.raw.ValueCN:e.employmentForm.PhysicianCN,i.PositionId=e.employmentForm.PositionId,i.PositionOther=e.employmentForm.PositionId===e.otherId?e.employmentForm.PositionOther:"",i.PositionOtherCN=e.employmentForm.PositionId===e.otherId?e.employmentForm.PositionOtherCN:"",i.HospitalId=e.employmentForm.HospitalId,Object(s["C"])(i).then((function(t){e.isDisabled=!1,e.loading=!1,e.$message.success("Saved successfully"),e.id||(e.employmentForm.Id=t.Result)})).catch((function(){e.isDisabled=!1,e.loading=!1}))}}))},initForm:function(){var e=this,t=this.$route.query.Id;t&&(this.loading=!0,Object(s["v"])(t).then((function(i){var n=i.Result,a=n.PhysicianId,r=n.Physician,o=n.PhysicianCN,s=n.DepartmentId,l=n.DepartmentOther,c=n.DepartmentOtherCN,u=n.RankId,d=n.RankOther,f=n.RankOtherCN,h=n.PositionId,p=n.PositionOther,m=n.PositionOtherCN,g=n.HospitalId;e.employmentForm.Id=t,e.employmentForm.DepartmentId=s===e.selectId?"":s,e.employmentForm.DepartmentOther=l,e.employmentForm.DepartmentOtherCN=c,e.employmentForm.RankId=u===e.selectId?"":u,e.employmentForm.RankOther=d,e.employmentForm.RankOtherCN=f,e.employmentForm.PositionId=h===e.selectId?"":h,e.employmentForm.PositionOther=p,e.employmentForm.PhysicianId=a,e.employmentForm.Physician=r,e.employmentForm.PhysicianCN=o,e.employmentForm.PositionOtherCN=m,e.employmentForm.HospitalId=g===e.selectId?"":g,e.handleHospitalChange(e.employmentForm.HospitalId),e.loading=!1})).catch((function(){e.loading=!1})))},handleHospitalChange:function(e){var t=this.hospitalList.filter((function(t){return t.Id===e}));t.length&&(this.UniversityAffiliated=t[0].UniversityAffiliated,this.City=t[0].City,this.Province=t[0].Province,this.Country=t[0].Country)},initEmployment:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:return e.next=4,c["a"].dispatch("global/getHospital");case 4:this.initForm();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Department","Rank","Position"]).then((function(t){e.dictionaryList=Object(o["a"])({},t.Result)}))}}},f=d,h=(i("7dd4"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},cf53:function(e,t,i){"use strict";i("f2af")},cf62:function(e,t,i){},cf76:function(e,t,i){},cf7e:function(e,t,i){var n=i("6d8b");function a(e){return this._axes[e]}var r=function(e){this._axes={},this._dimList=[],this.name=e||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return n.map(this._dimList,a,this)},getAxesByScale:function(e){return e=e.toLowerCase(),n.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var i=this._dimList,n=e instanceof Array?[]:{},a=0;a=0&&(o[r[l].depth]=new s(r[l],this,t));if(n&&i){var c=a(n,i,this,!0,u);return c.data}function u(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getData().getItemLayout(t).depth,a=i.levelModels[n];return a||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getGraph().getEdgeByIndex(t),a=n.node1.getLayout().depth,r=i.levelModels[a];return r||this.parentModel})),e}))}},setNodePosition:function(e,t){var i=this.option.data[e];i.localX=t[0],i.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getDataParams(e,i),a=n.data,r=a.source+" -- "+a.target;return n.value&&(r+=" : "+n.value),o(r)}if("node"===i){var s=this.getGraph().getNodeByIndex(e),l=s.getLayout().value,u=this.getDataParams(e,i).data.name;if(l)r=u+" : "+l;return o(r)}return c.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var i=c.superCall(this,"getDataParams",e,t);if(null==i.value&&"node"===t){var n=this.getGraph().getNodeByIndex(e),a=n.getLayout().value;i.value=a}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;e.exports=u},d01d:function(e,t,i){"use strict";i("2860")},d045:function(e,t,i){"use strict";i("7688")},d070:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t){t.update="updateView",n.registerAction(t,(function(t,i){var n={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[e](t.name);var r=i.coordinateSystem;a.each(r.regions,(function(e){n[e.name]=i.isSelected(e.name)||!1}))})),{selected:n,name:t.name}}))}i("1f1a"),i("eeea"),i("7661"),i("49e8"),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},d090:function(e,t,i){var n=i("6d8b"),a=i("f934"),r=i("3842"),o=i("2039"),s=864e5;function l(e,t,i){this._model=e}function c(e,t,i,n){var a=i.calendarModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[e](n):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=r.parseDate(e);var t=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var n=e.getDate();n=n<10?"0"+n:n;var a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t,m:i,d:n,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+n,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(e){d(o,e)&&(s[r[e]]=o[e]*l[e])}));var c={width:t.getWidth(),height:t.getHeight()},u=this._rect=a.getLayoutRect(s,c);function d(e,t){return null!=e[t]&&"auto"!==e[t]}n.each([0,1],(function(e){d(o,e)||(o[e]=u[r[e]]/l[e])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(e,t){n.isArray(e)&&(e=e[0]),null==t&&(t=!0);var i=this.getDateInfo(e),a=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=a.start.time&&i.timeo.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var i=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,n=new Date(e[0].time),a=n.getDate(),r=e[1].date.getDate();n.setDate(a+i-1);var o=n.getDate();if(o!==r){var l=n.getTime()-e[1].time>0?1:-1;while((o=n.getDate())!==r&&(n.getTime()-e[1].time)*l>0)i-=l,n.setDate(o-l)}var c=Math.floor((i+e[0].day+6)/7),u=t?1-c:c-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||0===e&&tn.lweek)return!1;var a=7*(e-1)-n.fweek+t,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var i=[];return e.eachComponent("calendar",(function(n){var a=new l(n,e,t);i.push(a),n.coordinateSystem=a})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},o.register("calendar",l);var u=l;e.exports=u},d0b8:function(e,t,i){},d0f9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return 1===e.rowData.ReadingCategory?i("VisitReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):2===e.rowData.ReadingCategory?i("GlobalReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):4===e.rowData.ReadingCategory?i("AdReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):5===e.rowData.ReadingCategory?i("OncologyReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):e._e()},a=[],r=i("46f5"),o=i("cdce"),s=i("02c3"),l=i("919e"),c={name:"HistoricAssessment",components:{VisitReview:r["default"],GlobalReview:o["default"],AdReview:s["default"],OncologyReview:l["default"]},props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}}},u=c,d=(i("559d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},d13d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-search-form"},[i("el-form",{attrs:{size:e.size,inline:!0,"label-width":e.labelWidth}},[e._l(e.searchForm,(function(t){return i("el-form-item",{key:t.prop,attrs:{label:t.label}},["Input"===t.type?i("el-input",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini",readonly:t.readonly},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Select"===t.type?i("el-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini"},on:{change:function(i){t.change&&t.change(e.that,e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.options,(function(e){return i("el-option",{key:e[t.props["label"]],attrs:{label:e[t.props["label"]],value:e[t.props["value"]]}})})),1):e._e(),e._v(" "),"Select2"===t.type?i("el-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini"},on:{change:function(i){t.change&&t.change(e.that,e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.options,(function(e,t){return i("el-option",{key:e,attrs:{label:e,value:t}})})),1):e._e(),e._v(" "),"Radio"===t.type?i("el-radio-group",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.radios,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"RadioButton"===t.type?i("el-radio-group",{style:{width:t.width},on:{change:function(i){t.change&&t.change(e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.radios,(function(t){return i("el-radio-button",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"Checkbox"===t.type?i("el-checkbox-group",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.checkboxs,(function(t){return i("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"Date"===t.type?i("el-date-picker",{style:{width:t.width},attrs:{placeholder:t.placeholder,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":t.pickerOption},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Time"===t.type?i("el-time-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,type:""},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"DateTime"===t.type?i("el-date-picker",{style:{width:t.width},attrs:{placeholder:t.placeholder,type:"datetime",disabled:t.disable&&t.disable(e.searchData[t.prop])},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Switch"===t.type?i("el-switch",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Custom"===t.type?e._t(t.slot):e._e()],2)})),e._v(" "),e._l(e.searchHandle,(function(t){return i("el-form-item",{key:t.label},[t.slot?e._t(t.slot):i("el-button",{attrs:{type:t.type,size:t.size||e.size,icon:t.icon||""},on:{click:function(i){return e.handleClick(t.emitKey)}}},[e._v(e._s(t.label))])],2)}))],2)],1)},a=[],r={props:{that:{type:Object,default:void 0},isHandle:{type:Boolean,default:!0},labelWidth:{type:String,default:""},size:{type:String,default:"mini"},searchForm:{type:Array,default:function(){return[]}},searchHandle:{type:Array,default:function(){return[]}},searchData:{type:Object,default:function(){}}},methods:{handleClick:function(e){this.$emit("".concat(e))}}},o=r,s=(i("75f8"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},d15d:function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.each;function o(e){var t=a();e.eachSeries((function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}})),t.each(s)}function s(e){r(e,(function(t,i){var n=[],a=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(r,(function(r,l,c){var u,d,f=o.get(t.stackedDimension,c);if(isNaN(f))return a;s?d=o.getRawIndex(c):u=o.get(t.stackedByDimension,c);for(var h=NaN,p=i-1;p>=0;p--){var m=e[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,u)),d>=0){var g=m.data.getByRawIndex(m.stackResultDimension,d);if(f>=0&&g>0||f<=0&&g<0){f+=g,h=g;break}}}return n[0]=f,n[1]=h,n}));o.hostModel.setData(l),t.data=l}))}e.exports=o},d205:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"surgeryForm",staticClass:"surgery-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:surgeryName"),prop:"OperationName"}},[i("el-input",{model:{value:e.form.OperationName,callback:function(t){e.$set(e.form,"OperationName",t)},expression:"form.OperationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:surgeryDate"),prop:"OperationTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.pickerOption},model:{value:e.form.OperationTime,callback:function(t){e.$set(e.form,"OperationTime",t)},expression:"form.OperationTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={props:{parentData:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){return{trialId:this.$route.query.trialId,form:{Id:"",OperationName:"",OperationTime:"",ClinicalDataTrialSetId:""},rules:{OperationName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.surgeryForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["n"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePSDialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePSDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},d21f:function(e,t,i){"use strict";i("e61d")},d22c:function(e,t,i){},d28b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("QSFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()],1)},a=[],r=(i("ac6a"),i("e56e")),o=i("85de"),s={name:"QcQuestionPreview",components:{QSFormItem:o["default"]},props:{trialId:{type:String,default:""}},data:function(){return{loading:!1,questions:[],questionForm:{},isRender:!1}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={trialId:this.trialId};Object(r["qb"])(t).then((function(t){t.Result.map((function(t){e.$set(e.questionForm,t.Id,""),t.Childrens.length>0&&e.setChild(t.Childrens)})),e.questions=t.Result,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,""),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""}}},l=s,c=(i("60d25"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"8cacef0c",null);t["default"]=u.exports},d28f:function(e,t,i){var n=i("3eba");i("84d5"),i("4650"),i("5e97");var a=i("903c"),r=i("6cb7");n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,a),r.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(e,t,i){var n=i("3eba");n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(e,t,i){var n=i("6d8b"),a=i("401b"),r=i("cb6d"),o=i("1fab"),s=i("607d"),l=i("0b44"),c="silent";function u(e,t,i){return{type:e,event:i,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:d}}function d(){s.stop(this.event)}function f(){}f.prototype.dispose=function(){};var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,i,n){o.call(this),this.storage=e,this.painter=t,this.painterRoot=n,i=i||new f,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(i)};function m(e,t,i){if(e[e.rectHover?"rectContain":"contain"](t,i)){var n,a=e;while(a){if(a.clipPath&&!a.clipPath.contain(t,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||c}return!1}function g(e,t,i){var n=e.painter;return t<0||t>n.getWidth()||i<0||i>n.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(n.each(h,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,i=e.zrY,n=g(this,t,i),a=this._hovered,r=a.target;r&&!r.__zr&&(a=this.findHover(a.x,a.y),r=a.target);var o=this._hovered=n?{x:t,y:i}:this.findHover(t,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==r&&this.dispatchToElement(o,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,i=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!i&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var i=this[e];i&&i.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,i){e=e||{};var n=e.target;if(!n||!n.silent){var a="on"+t,r=u(t,e,i);while(n)if(n[a]&&(r.cancelBubble=n[a].call(n,r)),n.trigger(t,r),n=n.parent,r.cancelBubble)break;r.cancelBubble||(this.trigger(t,r),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[a]&&e[a].call(e,r),e.trigger&&e.trigger(t,r)})))}},findHover:function(e,t,i){for(var n=this.storage.getDisplayList(),a={x:e,y:t},r=n.length-1;r>=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=m(n[r],e,t))&&(!a.topTarget&&(a.topTarget=n[r]),o!==c)){a.target=n[r];break}}return a},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===t&&i.clear();var n=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&i.clear(),n){var a=n.type;e.gestureEvent=a,this.dispatchToElement({target:n.target},a,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var i,n,r=t.zrX,o=t.zrY,s=g(this,r,o);if("mouseup"===e&&s||(i=this.findHover(r,o),n=i.target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}})),n.mixin(p,o),n.mixin(p,r);var v=p;e.exports=v},d34b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-container"},[i("div",{staticClass:"dicom-list"},[i("div",{staticClass:"container"},[i("div",{staticClass:"related-study-wrapper"},[i("div",{staticClass:"left"},[i("div",{staticClass:"visit-name-wrapper"},[e.visitTaskList.length>0?i("div",{staticStyle:{display:"flex","flex-direction":"row"}},e._l(e.visitTaskList,(function(t){return i("div",{key:t.VisitTaskId,staticClass:"visit-item",class:{"visit-item-active":e.activeTaskVisitId==t.VisitTaskId},on:{click:function(i){return i.preventDefault(),e.handleClick(t)}}},[e._v(e._s(t.TaskBlindName))])})),0):e._e()])]),e._v(" "),i("div",{staticClass:"right"},e._l(e.visitTaskList,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeTaskVisitId===t.VisitTaskId,expression:"activeTaskVisitId === s.VisitTaskId"}],key:t.VisitTaskId,staticClass:"study-wrapper"},[e.selectArr.includes(t.VisitTaskId)?i("StudyList",{ref:t.VisitTaskId,refInFor:!0,attrs:{"visit-task-id":t.VisitTaskId,"trial-id":e.trialId,"subject-visit-id":t.VisitId,"task-blind-name":t.TaskBlindName},on:{loadImageStack:e.loadImageStack,previewNoneDicoms:e.previewNoneDicoms}}):e._e()],1)})),0)])])]),e._v(" "),i("div",{staticClass:"dicom-viewer"},[i("div",{staticClass:"container"},[e.activeTaskVisitId?i("DicomViewer",{ref:"dicomViewer",attrs:{"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile,IseCRFShowInDicomReading:e.IseCRFShowInDicomReading,isReadingShowSubjectInfo:e.isReadingShowSubjectInfo},on:{previewCD:e.previewCD}}):e._e()],1)])])},a=[],r=(i("6762"),i("2fdb"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=i("2048"),l=i("e4ac"),c=i("9b92"),u=i("4360"),d=i("5f87"),f=i("2f62"),h={name:"CustomizeReadPage",components:{DicomViewer:l["default"],StudyList:s["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},isExistsClinicalData:{type:Boolean,required:!0},isExistsNoDicomFile:{type:Boolean,required:!0},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{activeName:"relation-study",tabs:["relation-study"],taskList:[],loading:!1,selectArr:[],activeTaskIndex:-1,activeTaskVisitId:"",measureData:[],activeTaskIsCurrentTask:!1,activeTaskIsBaseline:!1,activeTaskReadingTaskState:2,readingTaskState:2,open:null}},computed:Object(o["a"])({},Object(f["b"])(["visitTaskList"])),mounted:function(){var e=this;this.getVisitInfo(),c["a"].$on("getNextVisitInfo",(function(){e.getNextVisitInfo()})),c["a"].$on("toggleVisitList",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.visitTaskList.findIndex((function(e){return e.VisitTaskId===i.visitTaskId})),e.activeTaskVisitId=i.visitTaskId,e.activeTaskIndex=n,e.activeTaskIsCurrentTask=e.visitTaskList[n].IsCurrentTask,e.activeTaskIsBaseline=e.visitTaskList[n].IsBaseLineTask,e.activeTaskReadingTaskState=e.visitTaskList[n].ReadingTaskState,e.visitTaskList[n].IsInit){t.next=23;break}if(a=e.$loading({fullscreen:!0}),e.visitTaskList[n].measureDataInit){t.next=11;break}return t.next=11,u["a"].dispatch("reading/getMeasuredData",e.visitTaskList[n].VisitTaskId);case 11:if(e.visitTaskList[n].studyListInit){t.next=14;break}return t.next=14,u["a"].dispatch("reading/getStudyInfo",{trialId:e.trialId,subjectVisitId:e.visitTaskList[n].VisitId,visitTaskId:e.visitTaskList[n].VisitTaskId,taskBlindName:e.visitTaskList[n].TaskBlindName});case 14:if(e.visitTaskList[n].readingQuestionsInit){t.next=17;break}return t.next=17,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:e.trialId,visitTaskId:e.visitTaskList[n].VisitTaskId});case 17:if(e.visitTaskList[n].questionsInit){t.next=20;break}return t.next=20,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:e.trialId,visitTaskId:e.visitTaskList[n].VisitTaskId});case 20:return t.next=22,u["a"].dispatch("reading/setStatus",{visitTaskId:e.visitTaskList[n].VisitTaskId});case 22:a.close();case 23:e.selectArr.includes(e.visitTaskList[n].VisitTaskId)||e.selectArr.push(e.visitTaskList[n].VisitTaskId),e.$nextTick((function(){e.$refs[e.activeTaskVisitId][0].toggleStudy(i)}));case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),c["a"].$on("isCanActiveNoneDicomTool",(function(t){e.open.postMessage({type:"isCanActiveNoneDicomTool",data:t},window.location)})),c["a"].$on("removeNoneDicomMeasureData",(function(t){e.open.postMessage({type:"removeNoneDicomMeasureData",data:t},window.location)})),c["a"].$on("addNoneDicomMeasureData",(function(t){e.open.postMessage({type:"addNoneDicomMeasureData",data:t},window.location)}))},beforeDestroy:function(){c["a"].$off("toggleVisitList"),c["a"].$off("getNextVisitInfo"),c["a"].$off("isCanActiveNoneDicomTool"),c["a"].$off("removeNoneDicomMeasureData"),c["a"].$off("addNoneDicomMeasureData")},methods:{getVisitInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),e.next=3,u["a"].dispatch("reading/getOrganInfo",this.visitTaskId);case 3:return e.next=5,u["a"].dispatch("reading/getVisitTasks",this.visitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(i>-1)){e.next=24;break}return e.next=9,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 9:return e.next=11,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 11:return e.next=13,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:return e.next=17,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){c["a"].$emit("getCustomTableQuestionAnswer",n.visitTaskList[i].VisitTaskId),n.$refs[n.activeTaskVisitId][0].getStudyInfo(!0)}));case 24:t.close();case 25:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getNextVisitInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),e.next=3,u["a"].dispatch("reading/getNextVisitTask",{visitTaskId:this.visitTaskId});case 3:if(i=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(i>-1)){e.next=22;break}return e.next=7,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){c["a"].$emit("getCustomTableQuestionAnswer",n.visitTaskList[i].VisitTaskId),n.$refs[n.activeTaskVisitId][0].getStudyInfo()}));case 22:t.close();case 23:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleClick:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.activeTaskVisitId!==t.VisitTaskId){e.next=2;break}return e.abrupt("return");case 2:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),this.visitTaskList[i].IsInit){e.next=17;break}return n=this.$loading({fullscreen:!0}),e.next=7,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:c["a"].$emit("getCustomTableQuestionAnswer",this.visitTaskList[i].VisitTaskId),n.close();case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].initStudyList()}));case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadImageStack:function(e){var t=this;this.$nextTick((function(){t.$refs.dicomViewer.loadImageStack(e)}))},previewCD:function(){var e=Object(d["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},previewNoneDicoms:function(e){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId})),i=this.visitTaskList[t].TaskBlindName,n=Object(d["a"])(),a=this.$router.resolve({path:"/nonedicoms?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(e.visitTaskId,"&taskBlindName=").concat(i,"&readingTaskState=").concat(this.visitTaskList[t].ReadingTaskState,"&TokenKey=").concat(n)});this.open=window.open(a.href,"_blank")}}},p=h,m=(i("558b"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,"6e4d762c",null);t["default"]=g.exports},d357:function(e,t,i){var n=i("6d8b"),a=n.each,r=i("1c5f"),o=r.simpleLayout,s=r.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),i=e.coordinateSystem;if(i&&"view"!==i.type){var n=e.getData(),r=[];a(i.dimensions,(function(e){r=r.concat(n.mapDimension(e,!0))}));for(var l=0;l"),e.msgList.forEach((function(t,n){var a=e.$t("trials:consistencyCheck:title:title6").replace("yyyy",t.StudyDate);a=a.replace("xxx",t.Modality),i+="".concat(n+1,". ").concat(a,"
    ")})),e.isLackOf?(i+="
    ",i+="".concat(e.$t("trials:consistencyCheck:title:title7"),"
    "),e.IRCList.forEach((function(t,n){var a=e.$t("trials:consistencyCheck:title:title6").replace("yyyy",t.StudyDate);a=a.replace("xxx",t.Modality),i+="".concat(n+1,".").concat(a,"(").concat(t.IsJoin&&!t.IsCheck?e.$t("trials:consistencyCheck:title:title8"):e.$t("trials:consistencyCheck:title:title9"),")
    ")})),e.form.reason.length>0&&(i+="
    ",i+="".concat(e.$t("trials:consistencyCheck:title:title10"),"
    "),e.form.reason.forEach((function(e,t){i+="".concat(t+1,".").concat(e,"
    ")})))):i+="
    ".concat(e.$t("trials:consistencyCheck:title:title11")),console.log(i),e.$emit("sendMessage",i,e.closeLoading)}})):this.$message.error(this.$t("trials:consistencyCheck:title:title4"))}}}),s=o,l=(i("aa3e1"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"3dd20f93",null);t["default"]=c.exports},d394:function(e,t,i){},d3a0:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("29a8"),o=i("2145"),s=r.toolbox.magicType,l="__ec_magicType_stack__";function c(e){this.model=e}c.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:a.clone(s.title),option:{},seriesIndex:{}};var u=c.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return a.each(e.get("type"),(function(e){t[e]&&(i[e]=t[e])})),i};var d={line:function(e,t,i,n){if("bar"===e)return a.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(e,t,i,n){if("line"===e)return a.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(e,t,i,n){var r=i.get("stack")===l;if("line"===e||"bar"===e)return n.setIconStatus("stack",r?"normal":"emphasis"),a.merge({id:t,stack:r?"":l},n.get("option.stack")||{},!0)}},f=[["line","bar"],["stack"]];u.onclick=function(e,t,i){var n=this.model,r=n.get("seriesIndex."+i);if(d[i]){var o,c={series:[]},u=function(t){var r=t.subType,o=t.id,s=d[i](r,o,t,n);s&&(a.defaults(s,t.option),c.series.push(s));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var f=u.dim,h=f+"Axis",p=e.queryComponents({mainType:h,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],m=p.componentIndex;c[h]=c[h]||[];for(var g=0;g<=m;g++)c[h][m]=c[h][m]||{};c[h][m].boundaryGap="bar"===i}}};if(a.each(f,(function(e){a.indexOf(e,i)>=0&&a.each(e,(function(e){n.setIconStatus(e,"normal")}))})),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},u),"stack"===i){var h=c.series&&c.series[0]&&c.series[0].stack===l;o=h?a.merge({stack:s.title.tiled},s.title):a.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:o,featureName:"magicType"})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),o.register("magicType",c);var h=c;e.exports=h},d3a3:function(e,t,i){},d3a4:function(e,t,i){var n,a=i("22d1"),r="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function c(e){return n(e)}if(l&&!a.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",r),n=function(e){return l.createElement("')}}catch(d){n=function(e){return l.createElement("<"+e+' xmlns="'+r+'" class="zrvml">')}}function u(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=c,t.initVML=u},d3de:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div")},a=[],r={},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"673cd722",null);t["default"]=l.exports},d3ee:function(e,t,i){"use strict";i("66ad")},d3f47:function(e,t){function i(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf((function(e){for(var t=n.getName(e),a=0;a{b}: {c} ({d}%)"},legend:{show:!0,top:"2%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},color:t,series:[{name:"Total",type:"pie",radius:["50%","75%"],center:["50%","50%"],labelLine:{normal:{length:"4%",length2:"2%",lineStyle:{color:"#e6e6e6"}}},label:{normal:{position:"inner",formatter:"{per|{c}}",rich:{a:{color:"#fff",fontSize:Object(l["a"])(.12),lineHeight:Object(l["a"])(.2),align:"center"},hr:{width:"100%",height:0,alien:"center"},per:{color:"#fff",align:"center",fontSize:Object(l["a"])(.15)}}}},itemStyle:{borderWidth:Object(l["a"])(.3)},data:e}],animationEasing:"elasticOut",animationDelayUpdate:function(e){return 5*e}};this.$refs.reading_stats&&(this.myChart=o.a.init(this.$refs.reading_stats),this.myChart.setOption(i))},getReadingData:function(){var e=this;Object(s["d"])().then((function(t){if(t.IsSuccess){var i=[];if(t.Result)for(var n in t.Result){var a=n;"Timepoint"===n?a="TP":"Adjudication"===n?a="AD":"Global"===n&&(a="GL"),i.push({name:a,value:t.Result[n]}),e.sum+=t.Result[n]}e.initChart(i)}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},d454:function(e,t,i){"use strict";i("3d96")},d498:function(e,t,i){var n=i("cbe5"),a=i("4fac"),r=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){a.buildPath(e,t,!1)}});e.exports=r},d4982:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:!!e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"访视任务数",prop:"PlanVisitCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanVisitCount,callback:function(t){e.$set(e.form,"PlanVisitCount",t)},expression:"form.PlanVisitCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"裁判任务数",prop:"PlanJudgeCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanJudgeCount,callback:function(t){e.$set(e.form,"PlanJudgeCount",t)},expression:"form.PlanJudgeCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"全局任务数",prop:"PlanGlobalCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanGlobalCount,callback:function(t){e.$set(e.form,"PlanGlobalCount",t)},expression:"form.PlanGlobalCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"肿瘤学阅片任务数",prop:"PlanTumorCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanTumorCount,callback:function(t){e.$set(e.form,"PlanTumorCount",t)},expression:"form.PlanTumorCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanVisitCount:0,PlanJudgeCount:0,PlanGlobalCount:0,PlanTumorCount:0,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanVisitCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanJudgeCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanGlobalCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanTumorCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){console.log(this.doctorUserList),console.log(this.data),this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(o["d"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("保存成功"),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"7f20e73d",null);t["default"]=u.exports},d4b1:function(e,t,i){var n=i("3eba"),a=i("17d6"),r=n.extendComponentView({type:"axisPointer",render:function(e,t,i){var n=t.getComponent("tooltip"),r=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";a.register("axisPointer",i,(function(e,t,i){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){a.unregister(t.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(e,t){a.unregister("axisPointer",t),r.superApply(this._model,"dispose",arguments)}}),o=r;e.exports=o},d4c3:function(e,t,i){"use strict";i("fccc")},d4c6:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,i=0;i=a||g<0)break;if(h(b)){if(p){g+=r;continue}break}if(g===i)e[r>0?"moveTo":"lineTo"](b[0],b[1]);else if(l>0){var y=t[m],w="y"===u?1:0,_=(b[w]-y[w])*l;c(d,y),d[w]=y[w]+_,c(f,b),f[w]=b[w]-_,e.bezierCurveTo(d[0],d[1],f[0],f[1],b[0],b[1])}else e.lineTo(b[0],b[1]);m=g,g+=r}return v}function g(e,t,i,n,r,p,m,g,v,b,y){for(var w=0,_=i,I=0;I=r||_<0)break;if(h(x)){if(y){_+=p;continue}break}if(_===i)e[p>0?"moveTo":"lineTo"](x[0],x[1]),c(d,x);else if(v>0){var S=_+p,T=t[S];if(y)while(T&&h(t[S]))S+=p,T=t[S];var C=.5,k=t[w];T=t[S];if(!T||h(T))c(f,x);else{var R,D;if(h(T)&&!y&&(T=x),a.sub(u,T,k),"x"===b||"y"===b){var L="x"===b?0:1;R=Math.abs(x[L]-k[L]),D=Math.abs(x[L]-T[L])}else R=a.dist(x,k),D=a.dist(x,T);C=D/(D+R),l(f,x,u,-v*(1-C))}o(d,d,g),s(d,d,m),o(f,f,g),s(f,f,m),e.bezierCurveTo(d[0],d[1],f[0],f[1],x[0],x[1]),l(d,x,u,v*C)}else e.lineTo(x[0],x[1]);w=_,_+=p}return I}function v(e,t){var i=[1/0,1/0],n=[-1/0,-1/0];if(t)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:t?i:n,max:t?n:i}}var b=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=0,a=i.length,r=v(i,t.smoothConstraint);if(t.connectNulls){for(;a>0;a--)if(!h(i[a-1]))break;for(;n0;r--)if(!h(i[r-1]))break;for(;a=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new a(t),s.key=e,i.insertEntry(s),n[e]=s}return r},o.get=function(e){var t=this._map[e],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}};var s=r;e.exports=s},d524:function(e,t,i){"use strict";i("bb1a")},d55a:function(e,t,i){"use strict";i("c523")},d55c:function(e,t,i){"use strict";i("e3da")},d592:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"visit-list"},[i("template",{slot:"search-container"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:crcUpload:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:submitState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.SubmitState,callback:function(t){e.$set(e.searchData,"SubmitState",t)},expression:"searchData.SubmitState"}},e._l(e.$d.SubmitState,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),0!==e.otherInfo.QCProcessEnum?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:auditState")}},[2===e.otherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"120px"},attrs:{multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStateRC,(function(e,t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:"AuditStateRC"+e.label+t,attrs:{value:e.value,label:e.label}})})),1):e._e(),e._v(" "),1===e.otherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"120px"},attrs:{multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStatePE,(function(e,t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:"AuditStatePE"+e.label+t,attrs:{value:e.value,label:e.label}})})),1):e._e()],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:seletctedReviews:table:submissionTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:submit"],expression:"['trials:trials-panel:visit:crc-upload:submit']"}],attrs:{type:"primary",icon:"el-icon-check",disabled:0===e.selectArr.length},on:{click:e.handleBulkSubmit}},[e._v("\n "+e._s(e.$t("trials:crcUpload:button:submit"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:new"],expression:"['trials:trials-panel:visit:crc-upload:new']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"visitList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:crcUpload:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.SubjectCode))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:e.$t("trials:crcUpload:table:visitName"),"show-overflow-tooltip":"","min-width":"160",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.VisitExecuted?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleOpenStudyDialog(t.row)}}},[i("span",[e._v(e._s(t.row.VisitName))])]):i("span",[e._v("\n "+e._s(t.row.VisitName)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DicomStudyCount",label:e.$t("trials:auditRecord:table:visit"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{attrs:{placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[e._v(e._s(e.$t("trials:crcUpload:label:dicom"))+": "+e._s(t.row.DicomStudyCount))])]),e._v(" "),i("span",[e._v("\n "+e._s(t.row.DicomStudyCount)+"\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EarliestScanDate",label:e.$t("trials:crcUpload:table:earliestScanDate"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EarliestScanDate?e.moment(t.row.EarliestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:crcUpload:table:latestScanDate"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitState",label:e.$t("trials:crcUpload:table:submitState"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.SubmitState===0?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):1*t.row.SubmitState===1?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):1*t.row.SubmitState===2?i("el-tag",[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitTime",label:e.$t("trials:crcUpload:table:submitTime"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:upload","trials:trials-panel:visit:crc-upload:submit","trials:trials-panel:visit:crc-upload:edit","trials:trials-panel:visit:crc-upload:delete"],"||")?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-upload2",disabled:1*t.row.SubmitState===2||2===t.row.VisitExecuted||t.row.IsLostVisit,circle:"",title:e.$t("trials:crcUpload:action:upload")},on:{click:function(i){return e.handleUpload(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:submit"],expression:"['trials:trials-panel:visit:crc-upload:submit']"}],attrs:{icon:"el-icon-check",disabled:1*t.row.AuditState>0||1*t.row.SubmitState!==1||2===t.row.VisitExecuted||t.row.IsLostVisit,circle:"",title:e.$t("trials:crcUpload:action:submit")},on:{click:function(i){return e.handleSubmit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:delete"],expression:"['trials:trials-panel:visit:crc-upload:delete']"}],attrs:{icon:"el-icon-delete",disabled:1*t.row.SubmitState!==0||t.row.InPlan||t.row.IsLostVisit||t.row.IsFinalVisit,circle:"",title:e.$t("trials:crcUpload:action:delete")},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2998173990)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.edit_cfg.visible?i("el-dialog",{attrs:{visible:e.edit_cfg.visible,"close-on-click-modal":!1,title:e.edit_cfg.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.edit_cfg,"visible",t)}}},[e.edit_cfg.visible?i("VisitForm",{attrs:{data:e.rowData,"other-info":e.otherInfo},on:{getList:e.getList,closeDialog:e.closeEditDialog}}):e._e()],1):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"close-on-click-modal":!1,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{display:"flex","flex-direction":"column"}},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&(e.otherInfo.IsHaveFirstGiveMedicineDate||e.otherInfo.IsEnrollementQualificationConfirm)||!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"(rowData.IsBaseLine && (otherInfo.IsHaveFirstGiveMedicineDate || otherInfo.IsEnrollementQualificationConfirm)) || (!rowData.IsBaseLine && otherInfo.IsPDProgressView)"}],staticClass:"base-search-form",staticStyle:{height:"60px",padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && otherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"!rowData.IsBaseLine && otherInfo.IsPDProgressView"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&(e.otherInfo.IsHaveFirstGiveMedicineDate||e.otherInfo.IsEnrollementQualificationConfirm)||!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"(rowData.IsBaseLine && (otherInfo.IsHaveFirstGiveMedicineDate || otherInfo.IsEnrollementQualificationConfirm)) || (!rowData.IsBaseLine && otherInfo.IsPDProgressView)"}]},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:edit"],expression:"['trials:trials-panel:visit:crc-upload:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.relationVisible=!0}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n\n ")])],1)],1),e._v(" "),i("el-tabs",{staticStyle:{flex:"1"},attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[i("upload-dicom-files",{attrs:{data:e.rowData,"subject-id":e.rowData.SubjectId,"subject-visit-id":e.rowData.Id},on:{getList:e.getList,close:e.closeUpload}})],1),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"subject-visit-id":e.rowData.Id,data:e.rowData,"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!0},on:{getList:e.getList}}):e._e()],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"subject-visit-id":e.rowData.Id,data:e.rowData,"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!0},on:{getList:e.getList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.studyVisible?i("el-dialog",{attrs:{visible:e.studyVisible,"close-on-click-modal":!1,fullscreen:!0,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.studyVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body"},[i("el-form",{staticClass:"base-search-form",staticStyle:{padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && otherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView||1===e.rowData.PDState,expression:"!rowData.IsBaseLine && otherInfo.IsPDProgressView || rowData.PDState === 1"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("h4",{staticClass:"box-title"},[e._v(e._s(e.$t("trials:crcUpload:label:dicom")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("StudyInfo",{attrs:{data:e.rowData},on:{getList:e.getList}}):e._e()],1),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:clinicalData"))+"\n ")]):e._e(),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("el-card",{staticClass:"box-card"},[e.rowData.Id&&e.rowData.IsBaseLine?i("UploadClinicalData",{attrs:{"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!1,data:e.rowData,"subject-visit-id":e.rowData.Id},on:{getList:e.getList}}):e._e()],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:clinicalData"))+"\n ")]):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadClinicalData",{attrs:{"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!1,data:e.rowData,"subject-visit-id":e.rowData.Id},on:{getList:e.getList}}):e._e()],1):e._e()],1)]):e._e(),e._v(" "),i("base-model",{attrs:{config:e.chat_cfg}},[i("template",{slot:"dialog-body"},[e.rowData.Id?i("HistoryChat",{attrs:{data:e.rowData,"body-parts":e.otherInfo.BodyPartTypes,modalities:e.otherInfo.Modalitys,"clinical-enum":e.otherInfo.ClinicalInformationTransmissionEnum},on:{getList:e.getList}}):e._e()],1)],2),e._v(" "),e.relationVisible?i("el-dialog",{staticStyle:{height:"600px"},attrs:{visible:e.relationVisible,"close-on-click-modal":!1,title:e.$t("trials:crcUpload:dialogTitle:edit"),width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.relationVisible=t}}},[i("el-form",{attrs:{size:"small"}},[i("div",{staticClass:"base-dialog-body"},[e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1):e._e(),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.relationVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveRelationInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.rowData.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.SubjectVisible?i("el-dialog",{attrs:{visible:e.SubjectVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.SubjectVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("trials:crcUpload:dialogTitle:edit")))])]),e._v(" "),i("div",{staticStyle:{color:"#f66","margin-bottom":"20px","margin-left":"40px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:message:baseDate"))+"\n ")]),e._v(" "),e.SubjectVisible?i("SubjectsForm",{attrs:{data:e.SubjectInfo,"other-info":e.otherInfo},on:{submitFirstGiveMedicineTime:e.submitFirstGiveMedicineTime,close:e.closeSubjectVisible}}):e._e()],1):e._e()],2)},a=[],r=i("db72"),o=i("3e42"),s=i("9a3b"),l=i("3f2a"),c=i("6071"),u=i("333d"),d=i("5572"),f=i("0280"),h=i("4ebb"),p=i("dda6"),m=i("4c58"),g=i("fa44"),v=i("0744"),b=i("179b"),y=i("7eeb"),w=i("5be4"),_=i("c1df"),I=i.n(_),x=i("7a9e"),S=i("a599"),T=i("5f87"),C=function(){return{SubjectInfo:"",SiteId:"",PageIndex:1,PageSize:20,VisitPlanArray:[],AuditStateArray:[],SubmitState:null,ChallengeState:null,BeginSubmitTime:null,EndSubmitTime:null}},k={name:"VisitList",components:{BaseContainer:c["default"],Pagination:u["default"],BaseModel:y["default"],SignForm:b["default"],VisitForm:d["default"],UploadDicomFiles:f["default"],UploadNonDicomFiles:h["default"],UploadClinicalData:p["default"],HistoryChat:m["default"],StudyInfo:g["default"],SubjectsForm:v["default"]},data:function(){return{timeList:[],edit_cfg:{visible:!1,title:"",width:"600px",showClose:!0},SubjectVisible:!1,searchData:C(),loading:!1,uploadVisible:!1,qcVisible:!1,list:[],total:0,siteOptions:[],visitPlanOptions:[],rowData:{},moment:I.a,activeName:"dicom",studyVisible:!1,studyLoading:!1,studyList:[],deleteArr:[],currentVisitId:"",urgentForm:{isUrgent:null},btnLoading:!1,chat_cfg:{visible:!1,title:"",width:"1000px",showClose:!0},relationVisible:!1,otherInfo:{},SubjectInfo:{},selectArr:[],signVisible:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},trialId:this.$route.query.trialId}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.visitList.doLayout()}))}},mounted:function(){this.getSite(),this.$route.query.subjectCode&&(this.searchData.SubjectInfo=this.$route.query.subjectCode),Object(S["a"])("subjectCode",""),this.getList(),this.getVisitPlanOptions()},methods:{changeTimeList:function(){this.timeList?(this.searchData.BeginSubmitTime=this.timeList[0],this.searchData.EndSubmitTime=this.timeList[1]):(this.searchData.BeginSubmitTime=null,this.searchData.EndSubmitTime=null)},handleExport:function(){var e=this;Object(l["a"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Pb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.edit_cfg.title=this.$t("trials:crcUpload:dialogTitle:new"),this.edit_cfg.visible=!0},handleEdit:function(e){this.rowData=e,this.edit_cfg.title=this.$t("trials:crcUpload:dialogTitle:edit"),this.edit_cfg.visible=!0},closeEditDialog:function(){this.edit_cfg.visible=!1},handleView:function(e){var t=Object(T["a"])(),i=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(e.TrialId,"&visitInfo=").concat(e.VisitName,"(").concat(e.VisitNum,")&subjectVisitId=").concat(e.Id,"&TokenKey=").concat(t)});window.open(i.href,"_blank")},handleUpload:function(e){w["a"].studyList=[],this.activeName="dicom",this.rowData=Object(r["a"])({},e),this.uploadVisible=!0},handleSubmit:function(e){this.rowData=Object(r["a"])({},e),this.verifyIsAllowSubmit()},verifyIsAllowSubmit:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,subjectVisitIds:[this.rowData.Id]};Object(o["Ff"])(t).then((function(t){e.loading=!1,t.IsSuccess&&e.$confirm(e.$t("trials:crcUpload:message:submit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){if(e.rowData.IsBaseLine)if(e.otherInfo.ClinicalInformationTransmissionEnum>0){var t=x["default"].processSignature.ClinicalDataConfirmation;e.signCode=t,e.signVisible=!0}else e.submit();else e.checkNeedSignAndSubmit()})).catch((function(){}))})).catch((function(t){e.loading=!1,1===t.Result?e.$confirm(t.ErrorMessage,{showCancelButton:!1,showConfirmButton:!1,type:"warning"}):0===t.Result&&e.$confirm(t.ErrorMessage,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){e.checkNeedSignAndSubmit()})).catch((function(){}))}))},checkNeedSignAndSubmit:function(){if(!this.otherInfo.IsHaveFirstGiveMedicineDate||null!==this.rowData.SubjectFirstGiveMedicineTime&&""!==this.rowData.SubjectFirstGiveMedicineTime||this.rowData.IsBaseLine)if(this.otherInfo.ClinicalInformationTransmissionEnum>0&&this.rowData.IsBaseLine){var e=x["default"].processSignature.ClinicalDataConfirmation;this.signCode=e,this.signVisible=!0}else this.submit();else{var t=Object.assign({},this.rowData);t.Code=this.rowData.SubjectCode,t.Id=this.rowData.SubjectId,this.SubjectInfo=t,this.SubjectVisible=!0}},submitFirstGiveMedicineTime:function(e){this.rowData.SubjectFirstGiveMedicineTime=e,this.SubjectVisible=!1,this.checkNeedSignAndSubmit()},closeSignDialog:function(e,t){e?this.submit(t):this.signVisible=!1},submit:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.trialId,subjectVisitIds:[this.rowData.Id]}};e&&(i.signInfo=e),Object(s["a"])(i).then((function(i){t.loading=!1,i.IsSuccess&&(e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.getList(),t.$message.success(t.$t("trials:crcUpload:message:submittedSuccessfully")))})).catch((function(i){t.loading=!1,3===i.Result?(t.getList(),t.signVisible=!1,t.$confirm(i.ErrorMessage,{showCancelButton:!1,showConfirmButton:!0,type:"warning"})):e&&(t.$refs["signForm"].btnLoading=!1)}))},handleBulkSubmit:function(){var e=this;this.$confirm(this.$t("trials:crcUpload:message:bulkSubmit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={data:{trialId:e.trialId,subjectVisitIds:e.selectArr}};Object(s["a"])(t).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success(e.$t("trials:crcUpload:message:submittedSuccessfully")))})).catch((function(t){e.loading=!1,3===t.Result&&e.$confirm(t.ErrorMessage,{showCancelButton:!1,showConfirmButton:!0,type:"warning"}),e.getList()}))})).catch((function(){}))},handleOpenStudyDialog:function(e){this.studyVisible=!0,this.currentVisitId=e.Id,this.rowData=Object(r["a"])({},e)},closeUpload:function(){this.uploadVisible=!1},handleOpenHistoryChat:function(e){this.rowData=Object(r["a"])({},e),this.chat_cfg.title="".concat(this.$t("trials:crcUpload:dialogTitle:qsRecord")," (").concat(e.SubjectCode," ").concat(e.VisitName,")"),this.chat_cfg.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:crcUpload:message:deleteVisit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Ab"])(t.trialId,e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:crcUpload:message:deleteVisitSuccessfully"))),t.loading=!1})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=C(),this.getList()},closeSubjectVisible:function(){this.SubjectVisible=!1},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},saveRelationInfo:function(){var e=this;this.btnLoading=!0;var t={subjectVisitId:this.rowData.Id,subjectId:this.rowData.SubjectId,pdState:this.rowData.PDState,isEnrollmentConfirm:this.rowData.IsEnrollmentConfirm,subjectFirstGiveMedicineTime:this.rowData.SubjectFirstGiveMedicineTime};Object(o["sf"])(this.trialId,t).then((function(t){e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.relationVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;it&&c>n&&c>r&&c>s||c1&&b(),f=u.cubicAt(t,n,r,s,v[0]),m>1&&(h=u.cubicAt(t,n,r,s,v[1]))),2===m?wt&&s>n&&s>r||s=0&&c<=1){for(var d=0,f=u.quadraticAt(t,n,r,c),h=0;hi||s<-i)return 0;var l=Math.sqrt(i*i-s*s);g[0]=-l,g[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u%h<1e-4){n=0,a=h;var d=r?1:-1;return o>=g[0]+e&&o<=g[1]+e?d:0}if(r){l=n;n=c(a),a=c(l)}else n=c(n),a=c(a);n>a&&(a+=h);for(var f=0,p=0;p<2;p++){var m=g[p];if(m+e>o){var v=Math.atan2(s,m);d=r?1:-1;v<0&&(v=h+v),(v>=n&&v<=a||v+h>=n&&v+h<=a)&&(v>Math.PI/2&&v<1.5*Math.PI&&(d=-d),f+=d)}}return f}function I(e,t,i,n,l){for(var c=0,u=0,h=0,p=0,g=0,v=0;v1&&(i||(c+=d(u,h,p,g,n,l))),1===v&&(u=e[v],h=e[v+1],p=u,g=h),b){case f.M:p=e[v++],g=e[v++],u=p,h=g;break;case f.L:if(i){if(a.containStroke(u,h,e[v],e[v+1],t,n,l))return!0}else c+=d(u,h,e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.C:if(i){if(r.containStroke(u,h,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],t,n,l))return!0}else c+=y(u,h,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.Q:if(i){if(o.containStroke(u,h,e[v++],e[v++],e[v],e[v+1],t,n,l))return!0}else c+=w(u,h,e[v++],e[v++],e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.A:var I=e[v++],x=e[v++],S=e[v++],T=e[v++],C=e[v++],k=e[v++];v+=1;var R=1-e[v++],D=Math.cos(C)*S+I,L=Math.sin(C)*T+x;v>1?c+=d(u,h,D,L,n,l):(p=D,g=L);var O=(n-I)*T/S+I;if(i){if(s.containStroke(I,x,T,C,C+k,R,t,O,l))return!0}else c+=_(I,x,T,C,C+k,R,O,l);u=Math.cos(C+k)*S+I,h=Math.sin(C+k)*T+x;break;case f.R:p=u=e[v++],g=h=e[v++];var $=e[v++],N=e[v++];D=p+$,L=g+N;if(i){if(a.containStroke(p,g,D,g,t,n,l)||a.containStroke(D,g,D,L,t,n,l)||a.containStroke(D,L,p,L,t,n,l)||a.containStroke(p,L,p,g,t,n,l))return!0}else c+=d(D,g,D,L,n,l),c+=d(p,L,p,g,n,l);break;case f.Z:if(i){if(a.containStroke(u,h,p,g,t,n,l))return!0}else c+=d(u,h,p,g,n,l);u=p,h=g;break}}return i||m(h,g)||(c+=d(u,h,p,g,n,l)||0),0!==c}function x(e,t,i){return I(e,0,!1,t,i)}function S(e,t,i,n){return I(e,t,!0,i,n)}t.contain=x,t.containStroke=S},d84e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"attachment-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.$d.Common_File_Type,(function(t){return i("el-tab-pane",{key:t.value,attrs:{label:t.label,name:String(t.value)}},["1"===e.activeTab?i("UploadTemplate"):e._e(),e._v(" "),"2"===e.activeTab?i("ExportTemplate"):e._e(),e._v(" "),"3"===e.activeTab?i("EmailTemplate"):e._e(),e._v(" "),"4"===e.activeTab?i("CommonTemplate"):e._e(),e._v(" "),"5"===e.activeTab?i("SignatureTemplate"):e._e()],1)})),1)],1)},a=[],r=(i("7f7f"),i("437a")),o=i("c8a7"),s=i("3407"),l=i("8e37"),c=i("737a"),u={name:"Attachment",components:{UploadTemplate:r["default"],ExportTemplate:o["default"],EmailTemplate:s["default"],CommonTemplate:l["default"],SignatureTemplate:c["default"]},data:function(){return{activeTab:null}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab=String(this.$d.Common_File_Type[0].value)},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/attachment?tabActive=".concat(e.name)})}}},d=u,f=(i("0f13"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},d862:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ecrf-wrapper"},[e.questions.length>0?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"is-first-change-task":e.isFirstChangeTask,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),e.readingTaskState<2&&!e.isFirstChangeTask?i("el-form-item",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"mini",disabled:!e.questionFormChangeState,type:e.questionFormChangeState?"primary":null},on:{click:e.handleSave}},[e._v(e._s(e.$t("common:button:save")))])],1)]):e._e()],2):e._e()],1)},a=[],r=(i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("3e42")),l=i("6caf"),c=i("9b92"),u=i("2f62"),d=i("4360"),f={name:"ECRF",components:{QuestionItem:l["default"]},props:{questionFormChangeState:{type:Boolean,default:!1},questionFormChangeNum:{type:Number,default:0},isFirstChangeTask:{type:Boolean,default:!1}},data:function(){return{loading:!1,questions:[],questionForm:{},readingTaskState:2,visitTaskId:""}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList","currentReadingTaskState"])),watch:{questionForm:{deep:!0,immediate:!1,handler:function(e){c["a"].$emit("questionFormChange",!0)}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;c["a"].$on("setReadingState",(function(t){e.readingTaskState=t})),c["a"].$on("handleSaveQuestions",(function(t){e.handleSave()}))},beforeDestroy:function(){c["a"].$off("setReadingState")},methods:{getQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.visitTaskId=t,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t})),i>-1&&(this.readingTaskState=this.visitTaskList[i].ReadingTaskState,n=this.visitTaskList[i].Questions,n.map((function(e){"group"===e.Type&&0===e.Childrens.length||(e.IsPage||"group"===e.Type||"summary"===e.Type||a.$set(a.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens.length>0&&a.setChild(e.Childrens))})),this.questions=n);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},handleSave:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){e.loading=!0;var i=[];for(var n in e.questionForm)i.push({id:n,answer:e.questionForm[n]});var a={visitTaskId:e.visitTaskId,answers:i};Object(s["ye"])(a).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$message.success(e.$t("common:message:savedSuccessfully")),n=e.$route.query.trialId,t.next=4,d["a"].dispatch("reading/refreshDicomReadingQuestionAnswer",{trialId:n,visitTaskId:e.visitTaskId});case 4:e.getQuestions(e.visitTaskId),e.loading=!1,c["a"].$emit("questionFormChange",!1),c["a"].$emit("getReportInfo",!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))}}))},resetFormItemData:function(e){this.questionForm[e]=null},setFormItemData:function(e){this.questionForm[e.key]=e.val}}},h=f,p=(i("c07d"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"028a58a9",null);t["default"]=m.exports},d870:function(e,t,i){"use strict";i("03e9")},d873:function(e,t,i){},d88a:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);t["default"]=s},d898:function(e,t,i){},d943:function(e,t,i){},d9d0:function(e,t,i){var n=i("6d8b"),a=i("1687"),r=i("f934"),o=i("697e"),s=i("0f55"),l=i("2306"),c=i("3842"),u=i("ef6a"),d=n.each,f=Math.min,h=Math.max,p=Math.floor,m=Math.ceil,g=c.round,v=Math.PI;function b(e,t,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,i)}function y(e,t){return f(h(e,t[0]),t[1])}function w(e,t){var i=t.layoutLength/(t.axisCount-1);return{position:i*e,axisNameAvailableWidth:i,axisLabelShow:!0}}function _(e,t){var i,n,a=t.layoutLength,r=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=i&&r<=i+t.axisLength&&o>=n&&o<=n+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(i){if(e.contains(i,t)){var n=i.getData();d(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),o.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=t.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],c=this.dimensions.length,u=y(t.get("axisExpandWidth"),l),d=y(t.get("axisExpandCount")||0,[0,c]),f=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=y(h[1]-h[0],l),h[1]=h[0]+e;else{e=y(u*(d-1),l);var v=t.get("axisExpandCenter")||p(c/2);h=[u*v-e/2],h[1]=h[0]+e}var b=(s-e)/(c-d);b<3&&(b=0);var w=[p(g(h[0]/u,1))+1,m(g(h[1]/u,1))-1],_=b/u*h[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:f,axisExpandWidth:u,axisCollapseWidth:b,axisExpandWindow:h,axisCount:c,winInnerIndices:w,axisExpandWindow0Pos:_}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;t.each((function(e){var t=[0,n.axisLength],i=e.inverse?1:0;e.setExtent(t[i],t[1-i])})),d(i,(function(t,i){var o=(n.axisExpandable?_:w)(i,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},c=[s[r].x+e.x,s[r].y+e.y],u=l[r],d=a.create();a.rotate(d,d,u),a.translate(d,d,c),this._axesLayout[t]={position:c,rotation:u,transform:d,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,i,a){null==i&&(i=0),null==a&&(a=e.count());var r=this._axesMap,o=this.dimensions,s=[],l=[];n.each(o,(function(t){s.push(e.mapDimension(t)),l.push(r.get(t).model)}));for(var c=this.hasAxisBrushed(),u=i;ua*(1-d[0])?(l="jump",o=s-a*(1-d[2])):(o=s-a*d[1])>=0&&(o=s-a*(1-d[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?u(o,n,r,"all"):l="none";else{a=n[1]-n[0];var m=r[1]*s/a;n=[h(0,m-a/2)],n[1]=f(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var I=b;e.exports=I},d9f1:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(e,t){return t.type||(t.data?"category":"value")}r("angle",s,c,l.angle),r("radius",s,c,l.radius)},d9f2:function(e,t,i){"use strict";i("dcd5")},d9fc:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,i){i&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=a},da2b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticStyle:{height:"100%"}},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:crcQuestion:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:isOverTime")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsOverTime,callback:function(t){e.$set(e.searchData,"IsOverTime",t)},expression:"searchData.IsOverTime"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{ref:"crcQsTable",attrs:{prop:"ChallengeCode",label:e.$t("trials:crcQuestion:table:challengeCode"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:{color:t.row.IsClosed?"":"red"},attrs:{type:"text"},on:{click:function(i){return e.handleReplay(t.row)}}},[e._v("\n "+e._s(t.row.ChallengeCode)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:crcQuestion:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:crcQuestion:table:subjectId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:crcQuestion:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QCProcessEnum",label:e.$t("trials:crcQuestion:table:qCProcessEnum"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",0)))]):i("span",[e._v("--")])],1):2===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):2===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):i("span",[e._v("--")])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReuploadEnum",label:e.$t("trials:crcQuestion:table:reuploadSatus"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReuploadEnum?i("span",[e._v("--")]):1===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):2===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):3===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReUploadedTime",label:e.$t("trials:crcQuestion:table:reuploadTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:crcQuestion:table:createTime"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeadlineTime",label:e.$t("trials:crcQuestion:table:deadline"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOverTime",label:e.$t("trials:crcQuestion:table:isOverTime"),"show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsOverTime?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))]):i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsClosed",label:e.$t("trials:crcQuestion:table:isClose"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsClosed?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestMsgTime",label:e.$t("trials:crcQuestion:table:latestMsgTime"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClosedTime",label:e.$t("trials:crcQuestion:table:closedTime"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-question:send"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-question:send"],expression:"['trials:trials-panel:visit:crc-question:send']"}],attrs:{icon:"el-icon-chat-dot-square",disabled:t.row.IsClosed,circle:"",title:e.$t("trials:crcQuestion:action:reply")},on:{click:function(i){return e.handleReplay(t.row)}}})]}}],null,!1,2949028649)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:crcQuestion:dialogTitle:message1")+"("+e.currentQCRow.SubjectCode+" "+e.currentQCRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("chat-form",{ref:"chatForm",attrs:{data:e.currentQCRow,"user-type":"crc","body-parts":e.otherInfo.BodyPartTypes,modalities:e.otherInfo.Modalitys,"subject-visit-id":e.currentQCRow.Id,"clinical-enum":e.otherInfo.ClinicalInformationTransmissionEnum},on:{close:e.close,getDialogList:e.getDialogList}})],1):e._e()],2)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("3f2a"),l=i("c1c6"),c=i("6071"),u=i("333d"),d=function(){return{IsOverTime:null,SubjectCode:"",SiteId:"",VisitPlanArray:[],PageIndex:1,PageSize:20}},f={name:"CrcQusetion",components:{BaseContainer:c["default"],Pagination:u["default"],ChatForm:l["default"]},data:function(){return{searchData:d(),total:0,list:[],loading:!1,chatVisible:!1,currentQCRow:{},siteOptions:[],visitPlanOptions:[],otherInfo:{},trialId:this.$route.query.trialId}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{handleExport:function(){var e=this;Object(s["i"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Mb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleReplay:function(e){var t=this;this.loading=!0,Object(o["Dc"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(i.Result.length>0&&Object.assign(e,i.Result[0]),t.currentQCRow=Object(r["a"])({},e),t.chatVisible=!0)})).catch((function(){t.loading=!1}))},close:function(){this.chatVisible=!1},getDialogList:function(){var e=this;this.loading=!0,Object(o["Dc"])(this.currentQCRow.Id).then((function(t){if(e.loading=!1,t.IsSuccess&&t.Result.length>0){var i=e.list.findIndex((function(t){return t.Id===e.currentQCRow.Id}));i>-1&&(e.currentQCRow=Object.assign(e.list[i],t.Result[0]),e.$refs["chatForm"].addMessage(t.Result[0].DialogList[t.Result[0].DialogList.length-1]))}})).catch((function(){e.loading=!1}))},handleReset:function(){this.searchData=d(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},da52:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:uploadMonitor:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadMonitor:table:subjectId")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:uploadMonitor:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode","min-width":"100",label:e.$t("trials:uploadMonitor:table:siteId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"130",label:e.$t("trials:uploadMonitor:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:uploadMonitor:table:visitName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode","min-width":"100",label:e.$t("trials:uploadMonitor:table:studyId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicom","min-width":"100",label:e.$t("trials:uploadMonitor:table:imageType"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsDicom?"DICOM":"Non-DICOM")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Uploader","min-width":"100",label:e.$t("trials:uploadMonitor:table:uploader"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:e.$t("trials:uploadMonitor:table:ip"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadStartTime","min-width":"140",label:e.$t("trials:uploadMonitor:table:beginTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UploadStartTimeStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArchiveFinishedTime","min-width":"140",label:e.$t("trials:uploadMonitor:table:endTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ArchiveFinishedTime)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadIntervalStr","min-width":"100",label:e.$t("trials:uploadMonitor:table:uploadInterval"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UploadIntervalStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArchiveIntervalStr","min-width":"100",label:e.$t("trials:uploadMonitor:table:archiveInterval"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ArchiveIntervalStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalMillisecondsInterval","min-width":"100",label:e.$t("trials:uploadMonitor:table:totalTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TimeInterval)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount","min-width":"100",label:e.$t("trials:uploadMonitor:table:fileCount"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileSize","min-width":"100",label:e.$t("trials:uploadMonitor:table:fileSize"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.fileSizeFormatter(t.row.FileSize))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicomReUpload","min-width":"140",label:e.$t("trials:uploadMonitor:table:isRepetition"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsDicomReUpload))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSuccess","min-width":"130",label:e.$t("trials:uploadMonitor:table:uploadStatus"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSuccess?i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsSuccess)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsSuccess)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note","min-width":"110",label:e.$t("trials:uploadMonitor:table:remark"),"show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("3e42"),o=i("3f2a"),s=i("333d"),l=i("6071"),c=i("7eeb"),u=function(){return{SortField:"",Asc:!1,PageIndex:1,PageSize:20,TrialId:"",SiteId:"",SubjectId:"",SubjectVisitId:"",SubjectInfo:"",VisitPlanArray:[]}},d={components:{BaseContainer:l["default"],Pagination:s["default"],BaseModel:c["default"]},data:function(){return{list:[],total:0,loading:!1,searchData:u(),trialId:this.$route.query.trialId,siteOptions:[],visitPlanOptions:[]}},mounted:function(){this.getSite(),this.getList(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ac"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(r["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},fileSizeFormatter:function(e){if(e)return(e/Math.pow(1024,2)).toFixed(3)+"M"},handleReset:function(){this.searchData=u(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()},handleExport:function(){Object(o["n"])(this.searchData).then((function(e){})).catch((function(){}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},da75:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-dict",use:"icon-dict-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},dae1:function(e,t,i){var n=i("3eba");i("928d"),i("b369"),i("4411");var a=i("90c2"),r=i("9ca8");n.registerVisual(a),n.registerLayout(r)},db0e:function(e,t,i){var n=i("3eba");i("a8c6"),i("8344"),n.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},db38:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},db47:function(e,t,i){},db6f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"100%"}},[i("transition",{attrs:{name:"viewer-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.urlList.length>0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-bottom-right",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},on:{click:e.handleDrawArrow}})])]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},[e.canvasSize.width&&e.canvasPosition.y?i("canvas",{style:e.imgStyle,attrs:{id:"canvas",height:e.canvasSize.height,width:e.canvasSize.width},on:{mousedown:e.handleMouseDown,mousemove:e.handleMouseMove,mouseup:e.handleMouseUp,contextmenu:e.handleContextmenu}}):e._e()])],2)])],1)},a=[],r=i("db72"),o=(i("20d6"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("526f")),l=i("6bd7"),c=i("4360"),u=Object(l["a"])()?"DOMMouseScroll":"mousewheel",d="",f={name:"CustomizeNoneDicomsCanvas",props:{readingTaskState:{type:Number,default:2},urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},studyId:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{loading:!1,index:this.initialIndex,isShow:!1,infinite:!0,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1},imgUrl:"",ctx:null,canvasPosition:{x:"",y:""},canvasSize:{height:"",width:""},canvasMousePosition:{x:"",y:""},mousePosition:{x:"",y:""},color:"rgb(255, 255, 0)",lineWidth:2,isMouseDown:!1,canvasMouseStart:{x:"",y:""},model:"",currentImg:"",imgId:"",currentDrawData:{},canvasData:[],imgZoom:1,isToolDisabled:!1,lesionName:"",visitTaskId:"",isInit:!1,imgSize:{height:"",width:""}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e),this.imgUrl=this.urlList[e].Path,this.imgId=this.urlList[e].Id,this.loadImage()}}},mounted:function(){var e=this;window.addEventListener("message",this.receiveMsg),document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{getCanvasData:function(){var e=this;return new Promise(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.visitTaskId=e.$router.currentRoute.query.visitTaskId,e.canvasData=[],t.next=4,c["a"].dispatch("reading/getMeasuredData",e.visitTaskId);case 4:return t.next=6,c["a"].dispatch("reading/getNoneDicomMeasuredData",e.visitTaskId).then((function(t){t.forEach((function(t){t&&t.MeasureData&&e.canvasData.push(t.MeasureData)})),console.log("getCanvasData添加"),sessionStorage.setItem("measureData",e.canvasData)}));case 6:i();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},loadImage:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,this.isInit){e.next=5;break}return e.next=4,this.getCanvasData();case 4:this.isInit=!0;case 5:return t=new Image,t.src=this.imgUrl,e.abrupt("return",new Promise((function(e){t.onload=function(){i.currentImg=t,i.loading=!1,i.initCanvas(t),e(t)}})));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleDrawArrow:function(){var e={type:"isCanActiveNoneDicomTool",data:""};window.opener.postMessage(e,window.location)},receiveMsg:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("nonedicoms",t.data.type),"isCanActiveNoneDicomTool"!==t.data.type){e.next=12;break}if(!t.data.data.isCanActiveTool){e.next=7;break}this.model="ArrowAnnotate",this.lesionName=t.data.data.lesionName,e.next=10;break;case 7:if(t.data.data.reason){e.next=9;break}return e.abrupt("return");case 9:this.$confirm(t.data.data.reason,{type:"warning",distinguishCancelAndClose:!0,showCancelButton:!1}).then((function(){}));case 10:e.next=42;break;case 12:if("removeNoneDicomMeasureData"!==t.data.type){e.next=25;break}return i=this.canvasData.findIndex((function(e){return e.data.uuid===t.data.data.data.uuid})),this.canvasData.splice(i,1),console.log("移除",t.data.data.data.uuid,this.canvasData),d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=19,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 19:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="",e.next=42;break;case 25:if("addNoneDicomMeasureData"!==t.data.type){e.next=42;break}n=this.canvasData.length-1;case 27:if(!(n>=0)){e.next=35;break}if(!this.canvasData[n]||!this.canvasData[n].data||this.canvasData[n].data.uuid!==t.data.data.data.uuid){e.next=32;break}return this.canvasData[n]=t.data.data,console.log("添加",t.data.data,t.data.data.data.uuid,this.canvasData),e.abrupt("break",35);case 32:n--,e.next=27;break;case 35:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=38,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 38:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="";case 42:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initCanvas:function(e){var t=this;this.loading=!0,this.canvasSize.height=e.height,this.canvasSize.width=e.width,this.imgSize.height=e.height,this.imgSize.width=e.width;var i=document.getElementsByClassName("image-viewer__canvas")[0];this.canvasPosition={x:i.offsetWidth/2-e.width/2,y:i.offsetHeight/2-e.height/2-25},this.$nextTick(Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return d=document.getElementById("canvas").getContext("2d"),i.next=3,d.drawImage(e,0,0,e.width,e.height);case 3:t.drawToArr(),t.loading=!1;case 5:case"end":return i.stop()}}),i)}))))},clearCanvas:function(){this.canvasData=[],this.currentDrawData={},d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height)},handleContextmenu:function(e){e.preventDefault()},handleMouseDown:function(e){0===e.button&&(this.isMouseDown=!0,this.canvasMouseStart={x:e.offsetX,y:e.offsetY})},handleMouseMove:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.mousePosition={x:t.pageX,y:t.pageY},this.canvasMousePosition={x:t.offsetX,y:t.offsetY},(t.offsetX<0||t.offsetY<0||0===t.offsetX||0===t.offsetY)&&(this.isMsg=!1,this.isMouseDown=!1),this.isMouseDown){e.next=5;break}return e.abrupt("return");case 5:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=8,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 8:return e.next=10,this.drawToArr();case 10:"ArrowAnnotate"===this.model&&this.drawArrowAnnotate(t);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),drawToArr:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.canvasData.forEach((function(e){if(e.instanceId===t.imgId&&"ArrowAnnotate"===e.type){var i,n,a=10,r=45,o=e.data.handles.start.x,s=e.data.handles.start.y,l=e.data.handles.end.x,c=e.data.handles.end.y,u=180*Math.atan2(s-c,o-l)/Math.PI,f=(u+r)*Math.PI/180,h=(u-r)*Math.PI/180,p=a*Math.cos(f),m=a*Math.sin(f),g=a*Math.cos(h),v=a*Math.sin(h);d.lineWidth=t.lineWidth,d.beginPath(),d.moveTo(o*t.imgZoom,s*t.imgZoom),d.lineTo(l*t.imgZoom,c*t.imgZoom),i=l+p,n=c+m,d.moveTo(i,n),d.lineTo(l,c),i=l+g,n=c+v,d.lineTo(i,n),t.drawText(d,{x:o,y:s},{x:l,y:c},e.data.remark,t.color),d.strokeStyle=t.color,d.stroke()}}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleMouseUp:function(e){if(0===e.button){if("ArrowAnnotate"===this.model){for(var t in this.currentDrawData.data.handles)this.currentDrawData.data.handles[t].x=this.currentDrawData.data.handles[t].x/this.imgZoom,this.currentDrawData.data.handles[t].y=this.currentDrawData.data.handles[t].y/this.imgZoom;this.currentDrawData&&this.currentDrawData.data&&(console.log("handleMouseUp添加"),this.canvasData.push(this.currentDrawData))}this.isMouseDown=!1,this.model="",this.lesionName="",this.canvasMousePosition={x:e.offsetX,y:e.offsetY};var i={type:"setMeasurement",data:this.currentDrawData};window.opener.postMessage(i,window.location)}},drawArrowAnnotate:function(e){var t,i,n=10,a=45,r=this.canvasMouseStart.x,o=this.canvasMouseStart.y,s=e.offsetX,l=e.offsetY,c=180*Math.atan2(o-l,r-s)/Math.PI,u=(c+a)*Math.PI/180,f=(c-a)*Math.PI/180,h=n*Math.cos(u),p=n*Math.sin(u),m=n*Math.cos(f),g=n*Math.sin(f);d.lineWidth=this.lineWidth,d.beginPath(),d.strokeStyle=this.color,d.moveTo(this.canvasMouseStart.x,this.canvasMouseStart.y),d.lineTo(e.offsetX,e.offsetY),t=s+h,i=l+p,d.moveTo(t,i),d.lineTo(s,l),t=s+m,i=l+g,d.lineTo(t,i),this.drawText(d,{x:r,y:o},{x:s,y:l},this.lesionName,this.color),d.stroke(),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"ArrowAnnotate",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"ArrowAnnotate",toolType:"ArrowAnnotate"}}},drawText:function(e,t,i,n,a){if(n&&""!==n){var r=5,o=this.textBoxWidth(e,n,r),s=12,l=s+10,c=Math.max(o,l)/2+r;i.x0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(s["b"])(document,"keydown",this._keyDownHandler),Object(s["b"])(document,u,null)},deviceSupportUninstall:function(){Object(s["a"])(document,"keydown",this._keyDownHandler),Object(s["a"])(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},h=f,p=(i("ed4c"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"74d167e6",null);t["default"]=m.exports},db9e:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("e86a"),o=i("2145"),s=i("2306"),l=i("4319"),c=i("80f0"),u=i("79190"),d=n.extendComponentView({type:"toolbox",render:function(e,t,i,n){var d=this.group;if(d.removeAll(),e.get("show")){var h=+e.get("itemSize"),p=e.get("feature")||{},m=this._features||(this._features={}),g=[];a.each(p,(function(e,t){g.push(t)})),new c(this._featureNames||[],g).add(v).update(v).remove(a.curry(v,null)).execute(),this._featureNames=g,u.layout(d,e,i),d.add(u.makeBackground(d.getBoundingRect(),e)),d.eachChild((function(e){var t=e.__title,n=e.hoverStyle;if(n&&t){var a=r.getBoundingRect(t,r.makeFont(n)),o=e.position[0]+d.position[0],s=e.position[1]+d.position[1]+h,l=!1;s+a.height>i.getHeight()&&(n.textPosition="top",l=!0);var c=l?-5-a.height:h+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",c],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,c],n.textAlign="left")}}))}function v(a,r){var s,c=g[a],u=g[r],d=p[c],h=new l(d,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===c&&(d.title=n.newTitle),c&&!u){if(f(c))s={model:h,onclick:h.option.onclick,featureName:c};else{var v=o.get(c);if(!v)return;s=new v(h,t,i)}m[c]=s}else{if(s=m[u],!s)return;s.model=h,s.ecModel=t,s.api=i}c||!u?h.get("show")&&!s.unusable?(b(h,s,c),h.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&n[e].trigger(t)},s.render&&s.render(h,t,i,n)):s.remove&&s.remove(t,i):s.dispose&&s.dispose(t,i)}function b(n,r,o){var l=n.getModel("iconStyle"),c=n.getModel("emphasis.iconStyle"),u=r.getIcons?r.getIcons():n.get("icon"),f=n.get("title")||{};if("string"===typeof u){var p=u,m=f;u={},f={},u[o]=p,f[o]=m}var g=n.iconPaths={};a.each(u,(function(o,u){var p=s.createIcon(o,{},{x:-h/2,y:-h/2,width:h,height:h});p.setStyle(l.getItemStyle()),p.hoverStyle=c.getItemStyle(),p.setStyle({text:f[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var m=e.getModel("tooltip");m&&m.get("show")&&p.attr("tooltip",a.extend({content:f[u],formatter:m.get("formatter",!0)||function(){return f[u]},formatterParams:{componentType:"toolbox",name:u,title:f[u],$vars:["name","title"]},position:m.get("position",!0)||"bottom"},m.option)),s.setHoverStyle(p),e.get("showTitle")&&(p.__title=f[u],p.on("mouseover",(function(){var t=c.getItemStyle(),i="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:c.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||i})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(n.get("iconStatus."+u)||"normal"),d.add(p),p.on("click",a.bind(r.onclick,r,t,i,u)),g[u]=p}))}},updateView:function(e,t,i,n){a.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,i,n)}))},remove:function(e,t){a.each(this._features,(function(i){i.remove&&i.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){a.each(this._features,(function(i){i.dispose&&i.dispose(e,t)}))}});function f(e){return 0===e.indexOf("my")}e.exports=d},dbe0:function(e,t,i){},dc13:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},dc20:function(e,t,i){var n=i("8727"),a=n.createElement,r=i("6d8b"),o=i("4942"),s=i("cbe5"),l=i("0da8"),c=i("76a5"),u=i("0c12"),d=i("b16f"),f=i("9fa3"),h=i("bcaa1"),p=i("3f8e"),m=p.path,g=p.image,v=p.text;function b(e){return parseInt(e,10)}function y(e){return e instanceof s?m:e instanceof l?g:e instanceof c?v:m}function w(e,t){return t&&e&&t.parentNode!==e}function _(e,t,i){if(w(e,t)&&i){var n=i.nextSibling;n?e.insertBefore(t,n):e.appendChild(t)}}function I(e,t){if(w(e,t)){var i=e.firstChild;i?e.insertBefore(t,i):e.appendChild(t)}}function x(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function S(e){return e.__textSvgEl}function T(e){return e.__svgEl}var C=function(e,t,i,n){this.root=e,this.storage=t,this._opts=i=r.extend({},i||{});var o=a("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=a("g");o.appendChild(s);var l=a("g");o.appendChild(l),this.gradientManager=new d(n,l),this.clipPathManager=new f(n,l),this.shadowManager=new h(n,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=c,e.appendChild(c),c.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};function k(e){return function(){o('In SVG mode painter not support method "'+e+'"')}}C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=a("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,i=this._svgRoot,n=this._visibleList,a=e.length,r=[];for(t=0;t=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return i[0]},resize:function(e,t){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var a=i.style;a.width=e+"px",a.height=t+"px";var r=this._svgDom;r.setAttribute("width",e),r.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||b(s[i])||b(o.style[i]))-(b(s[a])||0)-(b(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},r.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){C.prototype[e]=k(e)}));var R=C;e.exports=R},dc2f:function(e,t){var i=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};i.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var n=i;e.exports=n},dc32:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"DICOM匿名配置",name:"anonymization"}},["anonymization"==e.activeTab?i("Anonymization"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("0a32")),o=i("5adc"),s=i("909f"),l=i("2ae9"),c=i("02c9"),u=i("87d6"),d=i("cc2e"),f=i("8455"),h={name:"Questions",components:{QcQuestions:r["default"],CriterionsTmp:o["default"],ClinicalData:s["default"],Anonymization:c["default"],IncreaseFields:u["default"],Email:d["default"],Sign:f["default"],MedicalAudit:l["default"]},data:function(){return{activeTab:"anonymization"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="anonymization"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/template?tabActive=".concat(e.name)})}}},p=h,m=(i("8e6c"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},dc78:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},dc83:function(e,t,i){"use strict";i("efa6")},dcaf:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"siteform-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:customSite:form:siteName"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.SiteName,callback:function(t){e.$set(e.listQuery,"SiteName",t)},expression:"listQuery.SiteName"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:e.handleCustomSite}},[e._v("\n "+e._s(e.$t("trials:sitesList:dialogButton:customSite"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-plus"},on:{click:e.handleAssign}},[e._v("\n "+e._s(e.$t("trials:sitesList:dialogButton:addSite"))+"\n ")])],1)],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{staticClass:"site-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteName",label:e.$t("trials:customSite:form:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:customSite:form:country"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:customSite:form:city"),"show-overflow-tooltip":"","min-width":"80",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Address",label:e.$t("trials:customSite:form:address"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}})],1)],1)]),e._v(" "),i("el-footer",{staticStyle:{"text-align":"right"}},[i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)]),e._v(" "),e.customVisible?i("el-dialog",{attrs:{visible:e.customVisible,"close-on-click-modal":!1,title:e.$t("trials:customSite:title:custom"),width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.customVisible=t}}},[e.customVisible?i("CustomSiteForm",{on:{close:e.closeDialog,getList:e.handleReset}}):e._e()],1):e._e()],1)},a=[],r=i("3e42"),o=i("4165"),s=i("333d"),l=function(){return{SiteName:"",PageIndex:1,PageSize:20}},c={components:{Pagination:s["default"],CustomSiteForm:o["default"]},data:function(){return{list:[],total:0,listQuery:l(),selectArr:[],assignLoadStatus:!1,customVisible:!1,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this,t=this.$loading({target:document.querySelector(".site-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["Yd"])(this.listQuery).then((function(i){t.close(),e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount})).catch((function(){t.close()}))},handleCustomSite:function(){this.customVisible=!0},closeDialog:function(){this.customVisible=!1},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:customSite:message:add"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".site-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["J"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:addedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;is)return!0;if(r){var l=o.getAxisInfo(e).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===i},makeElOption:function(e,t,i,n,a){},createPointerEl:function(e,t,i,n){var a=t.pointer;if(a){var o=d(e).pointerEl=new r[a.type](f(t.pointer));e.add(o)}},createLabelEl:function(e,t,i,n){if(t.label){var a=d(e).labelEl=new r.Rect(f(t.label));e.add(a),v(a,n)}},updatePointerEl:function(e,t,i){var n=d(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var a=d(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{shape:t.label.shape,position:t.label.position}),v(a,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,a=this._api.getZr(),o=this._handle,c=i.getModel("handle"),u=i.get("status");if(!c.get("show")||!u||"hide"===u)return o&&a.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=r.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),a.add(o)),y(o,i,!1);var d=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(c.getItemStyle(null,d));var f=c.get("size");n.isArray(f)||(f=[f,f]),o.attr("scale",[f[0]/2,f[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){m(this._axisPointerModel,!t&&this._moveAnimation,this._handle,b(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(b(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(b(n)),d(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},p.prototype.constructor=p,a.enableClassExtend(p);var w=p;e.exports=w},dcb4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"userForm",staticStyle:{width:"800px"},attrs:{size:"small",model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-card",{staticClass:"Basic",attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("trials:trials-myinfo:title:basicInfo")))])]),e._v(" "),e.user.UserCode?i("el-form-item",{attrs:{label:"S/N",prop:"UserCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserCode,callback:function(t){e.$set(e.user,"UserCode",t)},expression:"user.UserCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserName"),prop:"UserName"}},[i("el-input",{model:{value:e.user.UserName,callback:function(t){e.$set(e.user,"UserName",t)},expression:"user.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:lastName"),prop:"LastName"}},[i("el-input",{model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:firstName"),prop:"FirstName"}},[i("el-input",{model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:e.$t("admin:Sex"),prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},e._l(e.$d.Sex,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:EMail"),prop:"EMail"}},[i("el-input",{model:{value:e.user.EMail,callback:function(t){e.$set(e.user,"EMail",t)},expression:"user.EMail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:Phone"),prop:"Phone"}},[i("el-input",{model:{value:e.user.Phone,callback:function(t){e.$set(e.user,"Phone",t)},expression:"user.Phone"}})],1),e._v(" "),1==e.type?i("el-form-item",{attrs:{label:e.$t("admin:Status")}},[i("el-switch",{attrs:{"active-value":0,"inactive-value":1},model:{value:e.user.Status,callback:function(t){e.$set(e.user,"Status",t)},expression:"user.Status"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsTestUser")}},[i("el-switch",{model:{value:e.user.IsTestUser,callback:function(t){e.$set(e.user,"IsTestUser",t)},expression:"user.IsTestUser"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserType"),prop:"UserTypeId"}},[i("el-select",{ref:"userType",staticStyle:{width:"100%"},attrs:{size:"small",disabled:!1===e.user.CanEditUserType},model:{value:e.user.UserTypeId,callback:function(t){e.$set(e.user,"UserTypeId",t)},expression:"user.UserTypeId"}},e._l(e.userTypeOptions,(function(t,n){return 20!==t.UserTypeEnum?i("el-option",{key:n,attrs:{label:t.UserType,value:t.Id}}):e._e()})),1)],1)],1),e._v(" "),i("el-card",{staticClass:"Affiliation",staticStyle:{"margin-top":"10px"},attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("admin:OrganizationName")))])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsZhiZhun")}},[i("el-radio-group",{on:{change:e.OrgnizationTypeChanged},model:{value:e.user.IsZhiZhun,callback:function(t){e.$set(e.user,"IsZhiZhun",t)},expression:"user.IsZhiZhun"}},e._l(e.$d.IsZhiZhun,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1===e.user.IsZhiZhun,expression:"user.IsZhiZhun === false"}],attrs:{label:e.$t("admin:OrganizationName")}},[i("el-input",{model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:DepartmentName"),prop:"DepartmentName"}},[i("el-input",{model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:PositionName"),prop:"PositionName"}},[i("el-input",{model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{staticStyle:{margin:"10px 15px"},attrs:{type:"primary",size:"small",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)},a=[],r=i("50fc"),o={name:"UserInfo",props:{userId:{type:String,default:""}},data:function(){var e=function(e,t,i){var n=zzSessionStorage.getItem("lang")?zzSessionStorage.getItem("lang"):"zh",a=/^[a-zA-Z0-9_]{4,16}$/;console.log(!a.test(t)),a.test(t)?i():i("zh"===n?new Error("1)新建账号,用户名字符长度最小为4个字符,最大为16个字符,只可使用字母、数字、下划线;"):new Error("Passwords must have: 1) 8 - 32 characters; 2) At least 1 number; 3) At least 1 uppercase letter; 4) At least 1 lowercase letter; 5) At least 1 special character (~!-@#$%^&*_+?) "))};return{user:{UserName:"",LastName:"",FirstName:"",Sex:"",EMail:"",Phone:"",UserTypeId:"",IsZhiZhun:"",OrganizationName:"",DepartmentName:"",PositionName:"",IsTestUser:!1},userFormRules:{UserName:[{required:!0,validator:e,trigger:"blur"}],UserTypeId:[{required:!0,message:"Please Select",trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:"Please Select",trigger:["blur","change"]}],OrganizationName:[{required:!0,message:"Please specify",trigger:"blur"}],LastName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],FirstName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Phone:[{max:20,min:7,message:"The length is 7 to 20",trigger:["blur"]}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:["blur"]},{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please specify",trigger:"blur"}],Status:[{required:!0,message:"Please specify",trigger:"blur"}],DepartmentName:[{max:50,message:"The maximum length is 50"}],PositionName:[{max:50,message:"The maximum length is 50"}]},userTypeOptions:[],isDisabled:!1,type:0}},created:function(){this.getUserTypeList(),""!==this.userId?(this.getUserInfo(),this.type=1):this.type=0},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.UserTypeEnum=i[0].UserTypeEnum),e.user.BaseUrl="".concat(location.protocol,"//").concat(location.host,"/login"),e.user.RouteUrl="".concat(location.protocol,"//").concat(location.host,"/email-recompose"),e.user.Id?Object(r["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success(e.$t("common:message:updatedSuccessfully"))})).catch((function(){e.isDisabled=!1})):Object(r["c"])(e.user).then((function(t){e.isDisabled=!1,e.user.Id=t.Result.Id,e.user.UserCode=t.Result.UserCode,e.$emit("getUserId",t.Result.Id),e.$message.success(e.$t("common:message:addedSuccessfully")),e.$router.push({path:"/system/user/list"})})).catch((function(){e.isDisabled=!1}))}}))},getUserTypeList:function(){var e=this;Object(r["o"])(0).then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},getUserInfo:function(){var e=this;Object(r["l"])(this.userId).then((function(t){e.user=t.Result}))},OrgnizationTypeChanged:function(e){this.user.OrganizationName=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},dcd5:function(e,t,i){},dcea:function(e,t,i){var n=i("6d8b"),a=i("e887"),r=i("2306"),o=i("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],c=a.extend({type:"boxplot",render:function(e,t,i){var n=e.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===e.get("layout")?1:0;n.diff(r).add((function(e){if(n.hasValue(e)){var t=n.getItemLayout(e),i=d(t,n,e,o,!0);n.setItemGraphicEl(e,i),a.add(i)}})).update((function(e,t){var i=r.getItemGraphicEl(t);if(n.hasValue(e)){var s=n.getItemLayout(e);i?f(s,i,n,e):i=d(s,n,e,o),a.add(i),n.setItemGraphicEl(e,i)}else a.remove(i)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=n},remove:function(e){var t=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:n.noop}),u=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var i=t.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n0?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.toString().replaceAll(",","|")))]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.addGroup2(n)}}},[e._v("添加分组")])],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[e._v("分组: "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v(e._s(t))])}))],2)]):e._e()],1)})),1)],1)})),1),e._v(" "),e.QuestionVisible?i("el-dialog",{attrs:{title:"选择答案",visible:e.QuestionVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.QuestionVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{"label-width":"110px",label:"阅片人A"}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingA,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingA",t)},expression:"QuestionList[selectIndex].groupingA"}},e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t)}},[e._v("A"+e._s(n+1)+":"+e._s(t))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"110px",label:"阅片人B"}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingB,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingB",t)},expression:"QuestionList[selectIndex].groupingB"}},e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t)}},[e._v("A"+e._s(n+1)+":"+e._s(t))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.QuestionVisible=!1,e.$set(e.QuestionList[e.selectIndex],"groupingA",[]),e.$set(e.QuestionList[e.selectIndex],"groupingB",[])}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.save}},[e._v("\n 保存\n ")])],1)]):e._e()],1)},a=[],r=(i("6b54"),i("ac6a"),i("958c")),o={data:function(){return{CriterionList:[],QuestionList:[],ReadingQuestionCriterionTrialId:null,btnLoading:!1,loading:!1,index:0,QuestionVisible:!1,activeNames:null,indexA:null,type:null}},watch:{ReadingQuestionCriterionTrialId:function(e){var t=this;this.loading=!0,Object(r["T"])({ReadingQuestionCriterionTrialId:e}).then((function(e){t.loading=!1,t.QuestionList=e.Result,t.activeNames=t.QuestionList[0].ReadingQuestionTrialId,t.QuestionList.forEach((function(e){t.$set(e,"grouping",[]),t.$set(e,"groupingA",[]),t.$set(e,"groupingB",[]),t.$set(e,"AnswerGroupList",Object.assign([],e.AnswerCombination)),t.$set(e,"AnswerGroup2List",Object.assign([],e.AnswerGroup)),console.log(e)}))})).catch((function(){t.btnLoading=!1,t.loading=!1}))}},methods:{tagClose2:function(e,t){var i=this;this.$confirm("删除该规则组?").then((function(){i.QuestionList[e].AnswerGroup2List.splice(t,1)}))},tagClose:function(e,t){var i=this;this.$confirm("删除该规则组?").then((function(){i.QuestionList[e].AnswerGroupList.splice(t,1)}))},save:function(){var e=this.selectIndex,t=this.indexA;0!==this.QuestionList[e].groupingA.length?0!==this.QuestionList[e].groupingB.length?("add"===this.type?this.QuestionList[e].AnswerGroupList.push({AnswerGroupA:this.QuestionList[e].groupingA,AnswerGroupB:this.QuestionList[e].groupingB}):(this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupA",this.QuestionList[e].groupingA),this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupB",this.QuestionList[e].groupingB)),this.$set(this.QuestionList[e],"groupingA",[]),this.$set(this.QuestionList[e],"groupingB",[]),this.$message.success("成功新增答案规则"),this.QuestionVisible=!1):this.$message.error("请先选择答案B"):this.$message.error("请先选择答案A")},addGroup2:function(e){if(0!==this.QuestionList[e].grouping.length){var t=this.QuestionList[e].grouping.toString().replaceAll(",","|");this.QuestionList[e].AnswerGroup2List.push("|".concat(t,"|")),this.$set(this.QuestionList[e],"grouping",[])}else this.$message.error("请先选择答案,再添加分组")},addGroup:function(e,t){this.selectIndex=e,this.type="add",null!==t&&(this.indexA=t,this.type="edit",console.log(this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),console.log(this.QuestionList[e].AnswerGroupList[t].AnswerGroupB),this.$set(this.QuestionList[e],"groupingA",this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),this.$set(this.QuestionList[e],"groupingB",this.QuestionList[e].AnswerGroupList[t].AnswerGroupB)),this.QuestionVisible=!0},reset:function(e,t){var i=this;this.$confirm("确定重置当前设置的裁判任务生成规则吗?").then((function(){i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:[],AnswerCombination:[],JudgeType:1}).then((function(e){i.$set(i.QuestionList[t],"AnswerGroup2List",[]),i.$set(i.QuestionList[t],"AnswerGroupList",[]),i.$set(i.QuestionList[t],"JudgeType",1),i.$message.success("重置成功"),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},apply:function(e,t){var i=this;(2!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroup2List.length)&&(3!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroupList.length)?(this.btnLoading=!0,this.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:this.QuestionList[t].AnswerGroup2List,AnswerCombination:this.QuestionList[t].AnswerGroupList,JudgeType:this.QuestionList[t].JudgeType}).then((function(e){i.$message.success("应用成功"),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))):this.$message.error("请先配置规则才能应用")},tabClick:function(e){this.ReadingQuestionCriterionTrialId=this.CriterionList[this.index].ReadingQuestionCriterionTrialId},getList:function(){var e=this;this.btnLoading=!0,this.loading=!0,Object(r["S"])({TrialId:this.$route.query.trialId}).then((function(t){e.CriterionList=t.Result,e.CriterionList.length&&(e.ReadingQuestionCriterionTrialId=e.CriterionList[0].ReadingQuestionCriterionTrialId),e.btnLoading=!1,e.loading=!1})).catch((function(){e.btnLoading=!1,e.loading=!1}))}},mounted:function(){this.getList()}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"546d78ee",null);t["default"]=c.exports},de99:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"anonymizationFrom",attrs:{model:e.form,rules:e.rules,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:lastName"),prop:"LastName"}},[i("el-input",{model:{value:e.form.LastName,callback:function(t){e.$set(e.form,"LastName",t)},expression:"form.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:firstName"),prop:"FirstName"}},[i("el-input",{model:{value:e.form.FirstName,callback:function(t){e.$set(e.form,"FirstName",t)},expression:"form.FirstName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:userType"),prop:"UserTypeId"}},[e.userTypeOptions?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.UserTypeId,callback:function(t){e.$set(e.form,"UserTypeId",t)},expression:"form.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:phone"),prop:"Phone"}},[i("el-input",{model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:email"),prop:"Email"}},[i("el-input",{model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:organization"),prop:"OrganizationName"}},[i("el-input",{model:{value:e.form.OrganizationName,callback:function(t){e.$set(e.form,"OrganizationName",t)},expression:"form.OrganizationName"}})],1)],1),e._v(" "),e.errorMsg?i("div",{staticStyle:{"font-size":"12px",color:"#f66"}},[e._v(e._s(e.errorMsg))]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.handleSave("SendEmail")}}},[e._v("\n "+e._s(e.$t("trials:externalStaff:button:saveAndSendEmail"))+"\n ")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("c5f6"),i("7cdf"),i("3e42")),s=i("7eeb"),l=function(){return{Id:null,TrialId:null,LastName:null,FirstName:null,UserTypeId:"",Phone:null,Email:null,OrganizationName:null}},c={name:"StaffExternalAdd",components:{BaseModel:s["default"]},props:{userTypeOptions:{type:Array,default:function(){return{}}}},data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;i||n(),setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:externalStaff:formRule:phone")))}),100)},i=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.Email&&a.test(e.form.Email)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:externalStaff:formRule:email"))),e.sendDisabled=!0)}};return{form:{Id:null,LastName:null,FirstName:null,UserTypeId:"",Phone:null,Email:null,TrialId:null,IsSendEmail:!1},rules:{LastName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{min:0,max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50"),trigger:"blur"}],FirstName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{min:0,max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50"),trigger:"blur"}],UserTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],Phone:[{required:!1,validator:t,trigger:["blur"]}],Email:[{required:!0,validator:i,trigger:["blur"]}]},btnLoading:!1,userRoles:[],userTypeEnumInt:0,model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},trialId:"",errorMsg:null}},watch:{model_cfg:{handler:function(e,t){this.errorMsg=null},deep:!0}},mounted:function(){this.trialId=this.$route.query.trialId},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(e){var t=this;this.$refs.anonymizationFrom.validate((function(i){i&&(t.btnLoading=!0,t.form.TrialId=t.trialId,"SendEmail"===e&&(t.form.IsSendEmail=!0,t.form.BaseUrl="".concat(location.protocol,"//").concat(location.host,"/login"),t.form.RouteUrl="".concat(location.protocol,"//").concat(location.host,"/email-recompose")),Object(o["D"])(t.form).then((function(e){t.btnLoading=!1,t.$message.success(t.$t("common:message:savedSuccessfully")),t.model_cfg.visible=!1,t.$emit("getList")})).catch((function(e){e.Result&&(t.$set(t.form,"LastName",e.Result.LastName),t.$set(t.form,"FirstName",e.Result.FirstName),t.$set(t.form,"Phone",e.Result.Phone),t.errorMsg=e.ErrorMessage),t.btnLoading=!1})))}))},handleCancel:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},de9d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:0===e.dict.type.UserTypeGroup.length,expression:"dict.type.UserTypeGroup.length === 0"}],ref:"roleForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:"User Type: ",prop:"UserTypeName"}},[i("el-input",{model:{value:e.form.UserTypeName,callback:function(t){e.$set(e.form,"UserTypeName",t)},expression:"form.UserTypeName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Shortname: ",prop:"UserTypeShortName"}},[i("el-input",{model:{value:e.form.UserTypeShortName,callback:function(t){e.$set(e.form,"UserTypeShortName",t)},expression:"form.UserTypeShortName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否内部角色: ",prop:"IsInternal"}},[i("el-radio-group",{model:{value:e.form.IsInternal,callback:function(t){e.$set(e.form,"IsInternal",t)},expression:"form.IsInternal"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Group: ",prop:"UserTypeGroupIdList"}},[i("el-select",{attrs:{multiple:""},model:{value:e.form.UserTypeGroupIdList,callback:function(t){e.$set(e.form,"UserTypeGroupIdList",t)},expression:"form.UserTypeGroupIdList"}},e._l(e.dict.type.UserTypeGroup,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Order: "}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Order,callback:function(t){e.$set(e.form,"Order",t)},expression:"form.Order"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"PermissionStr: ",prop:"PermissionStr"}},[i("el-input",{model:{value:e.form.PermissionStr,callback:function(t){e.$set(e.form,"PermissionStr",t)},expression:"form.PermissionStr"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"role: "}},[i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeExpand(t)}},model:{value:e.menuExpand,callback:function(t){e.menuExpand=t},expression:"menuExpand"}},[e._v("展开/折叠")]),e._v(" "),i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeNodeAll(t)}},model:{value:e.menuNodeAll,callback:function(t){e.menuNodeAll=t},expression:"menuNodeAll"}},[e._v("全选/全不选")]),e._v(" "),i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeConnect(t)}},model:{value:e.form.menuCheckStrictly,callback:function(t){e.$set(e.form,"menuCheckStrictly",t)},expression:"form.menuCheckStrictly"}},[e._v("父子联动")]),e._v(" "),i("el-tree",{ref:"menu",staticClass:"tree-border",attrs:{"check-strictly":!e.form.menuCheckStrictly,data:e.menuOptions,"show-checkbox":"","node-key":"MenuId","empty-text":"加载中,请稍后",props:e.defaultProps}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("50fc")),s=i("a6dc"),l=i("30b0"),c=i("7eeb"),u={components:{BaseModel:c["default"]},dicts:["UserTypeGroup"],props:{data:{type:Object,default:function(){return{Id:"",UserTypeName:"",IsInternal:!0,UserTypeShortName:"",Order:"",Description:"",PermissionStr:""}}}},data:function(){return{menuExpand:!1,menuNodeAll:!1,userTypeGroupOptions:[{value:1,label:"Trial"},{value:2,label:"Reviewer"},{value:3,label:"Other"}],model_cfg:l["a"],defaultProps:{children:"Children",label:"MenuName"},form:{Id:"",UserType:"",IsInternal:!0,UserTypeShortName:"",Type:null,Description:"",UserTypeGroupIdList:[],menuCheckStrictly:!0},rules:{UserTypeName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UserTypeShortName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}],UserTypeGroupIdList:[{required:!0,message:"Please specify",trigger:"blur"}]},menuOptions:[],btnLoading:!1}},mounted:function(){this.getMenuList(),Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleCheckedTreeConnect:function(e){this.form.menuCheckStrictly=!!e},getMenuAllCheckedKeys:function(){var e=this.$refs.menu.getCheckedKeys(),t=this.$refs.menu.getHalfCheckedKeys();return e.unshift.apply(e,t),e},handleCheckedTreeExpand:function(e){for(var t=this.menuOptions,i=0;i=0;i--)s.asc(t[i])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var i=t[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,a=t.length;n0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,""),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},setFormItemData:function(e){this.$set(this.questionForm,e.key,e.val)}}},l=s,c=(i("5da4"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"004906dc",null);t["default"]=u.exports},df70:function(e,t,i){var n=i("3eba"),a=i("6fda"),r=i("29a8"),o=i("2145"),s=r.toolbox.restore;function l(e){this.model=e}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var c=l.prototype;c.onclick=function(e,t,i){a.clear(e),t.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var u=l;e.exports=u},df96:function(e,t,i){"use strict";i("807f")},dfa3:function(e,t,i){"use strict";i("ffb2")},dfb2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"needSignSys-wrapper"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:workbench:title:sysDocBeSigned")))])]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[i("h3",[i("Pagination",{staticClass:"page",staticStyle:{display:"inline-block"},attrs:{total:e.total,page:e.listQuery.pageIndex,limit:e.listQuery.pageSize,layout:"total, sizes, prev, pager, next",background:!1},on:{"update:page":function(t){return e.$set(e.listQuery,"pageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small",circle:"",title:e.$t("common:button:reset")},on:{click:e.handleReset}})],1)])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"needSignSysList",attrs:{data:e.list,"show-header":!0,height:"calc(100% - 100px)"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:fileType"),prop:"FileType","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:fileName"),prop:"Name","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:uploadTime"),prop:"UpdateTime","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:workbench:action:sign")},on:{click:function(i){return e.handleSign(t.row)}}})]}}])})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[e.currentIsConfirm?e._e():i("span",{staticStyle:{position:"fixed",right:"75px",top:"14px"}},[i("span",{staticStyle:{color:"red","margin-right":"10px"}},[e._v("\n "+e._s(e.$t("common:message:signTip"))+"\n "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.duration<60*e.currentMinMinutes,expression:"duration < currentMinMinutes * 60"}]},[e._v(e._s("("+(60*e.currentMinMinutes-e.duration)+"s)"))])]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:null!==e.timer||0===e.duration,loading:e.btnLoading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{attrs:{"is-system-doc":e.currentRow.IsSystemDoc,"document-id":e.currentRow.Id,"file-name":e.fileName},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("333d"),l=i("c686"),c=i("1d64"),u=function(){return{pageIndex:1,pageSize:20,asc:!0,sortField:""}},d={name:"NeedSignSysDoc",components:{Pagination:s["default"],PreviewFile:l["default"],SignForm:c["default"]},data:function(){return{listQuery:u(),listLoading:!1,list:[],total:0,previewVisible:!1,signVisible:!1,currentMinMinutes:0,duration:0,timer:null,btnLoading:!1,fileName:"",currentPath:"",currentType:"",currentIsConfirm:!1,currentUser:zzSessionStorage.getItem("userName"),currentRow:{}}},mounted:function(){this.getList()},destroyed:function(){this.timer&&this.stopTimer()},methods:{getList:function(){var e=this;Object(o["le"])(this.listQuery).then((function(t){e.listLoading=!1,e.total=t.Result.TotalCount,e.list=t.Result.CurrentPageData})).catch((function(){e.listLoading=!1}))},handleSign:function(e){var t=this;this.currentRow=Object(r["a"])({},e);var i=e.Name,n=e.FullFilePath,a=e.SignViewMinimumMinutes;this.currentPath=n,this.currentType=e.Name?i.substring(i.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=a,this.currentIsConfirm=!1,this.title=i,this.fileName=i.slice(0,i.lastIndexOf(".")),this.listLoading=!0,Object(o["Te"])(e.Id).then((function(e){t.listLoading=!1,t.previewVisible=!0;var i=t;setTimeout((function(){i.initTimer()}),1e3)})).catch((function(){t.listLoading=!1}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.asc=!0:this.listQuery.asc=!1,this.listQuery.sortField=e.prop,this.getList()},handleReset:function(){var e=this;this.listQuery=u(),this.getList(),this.$nextTick((function(){e.$refs.needSignSysList.clearSort()}))},handleConfirm:function(){this.signVisible=!0},closeSignDialog:function(e){this.signVisible=!1,e&&(this.currentIsConfirm=!0,this.getList(),this.$emit("refreshStats"))},initTimer:function(){this.currentMinMinutes>0&&!this.currentIsConfirm&&(this.duration=0,this.timer&&this.stopTimer(),this.startTimer())},startTimer:function(){var e=this;this.timer=setInterval((function(){e.duration++,e.duration>=60*e.currentMinMinutes&&e.stopTimer()}),1e3)},stopTimer:function(){clearInterval(this.timer),this.timer=null}}},f=d,h=(i("6311"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"42c23ce6",null);t["default"]=p.exports},dffe:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"specialty-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.specialty,size:"small"}},[i("el-form-item",{attrs:{label:"Specialty:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Speciality))]):i("span",[e._v(e._s(e.specialty.SpecialityCN))])]),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Subspeciality))]):i("span",[e._v(e._s(e.specialty.SubspecialityCNList))])]),e._v(" "),i("el-form-item",{attrs:{label:"Modality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.ReadingType))]):i("span",[e._v(e._s(e.specialty.ReadingTypeCNList))])])],1)],1)},a=[],r={props:{specialty:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("49e4"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},e042:function(e,t,i){},e04d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reviewer-analysis"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"listContainer",staticClass:"list-container"},[i("el-table",{attrs:{size:"small",stripe:"",data:e.list,"show-summary":"","summary-method":e.getSummaries,height:"99%"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"100","show-overflow-tooltip":"",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110","show-overflow-tooltip":"",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentUSD",label:"Payment($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RevenusUSD",label:"Revenus($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.MissingTrialCodes&&t.row.MissingTrialCodes.length>0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" ("+e._s(t.row.MissingTrialCodes.join(","))+" need setting trial unit price)")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfit",label:"Gross profit($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.GrossProfit)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfitMargin",label:"Gross Profit Margin","min-width":"140","show-overflow-tooltip":"",formatter:e.grossProfitMarginFormatter,sortable:""}})],1)],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("0340"),s=i("3339"),l={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},listLoading:!1,arrID:[]}},watch:{param:{deep:!0,handler:function(e,t){console.log(e),this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate,this.listQuery.Nation=e.Nation?1*e.Nation:""}}},mounted:function(){this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.Nation=this.param.Nation?1*this.param.Nation:"",this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["z"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},resetList:function(){this.getList()},getSummaries:function(e){var t=this;window.setTimeout((function(){t.theight===t.height?t.theight-=.5:t.theight=t.height}),1e3);var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){if("PaymentUSD"===e.property||"RevenusUSD"===e.property||"GrossProfit"===e.property||"GrossProfitMargin"===e.property){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))?a[t]="":(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:s["a"].add(e,t)}),0),"GrossProfitMargin"===e.property?a[t]=0===a[6]?"0.00%":(Number(a[7])/Number(a[6])*100).toFixed(2)+"%":"PaymentUSD"!==e.property&&"RevenusUSD"!==e.property&&"GrossProfit"!==e.property||(a[t]=Number(a[t])))}}else a[t]="Total (Current Page)"})),a},grossProfitMarginFormatter:function(e){return Number(100*e.GrossProfitMargin).toFixed(2)+"%"},handleSelectChange:function(e){for(var t=[],i=0;i0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},export:function(){var e=this,t="".concat(this.listQuery.BeginDate,"--").concat(this.listQuery.EndDate),i=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:15},{key:"ReviewerCode",width:20},{key:"PaymentUSD",width:15},{key:"RevenusUSD",width:15},{key:"GrossProfit",width:20},{key:"GrossProfitMargin",width:25}],n="Type:Reviewer Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),a=["","Surname","Given Name","Name CN","Reviewer ID","Payment($)","Revenus($)","Gross profit($)","Gross Profit Margin"],r=[{colIndex:6,format:"#,##0.00"},{colIndex:7,format:"#,##0.00"},{colIndex:8,format:"#,##0.00"},{colIndex:9,format:"0.00%"}],s=0,l=0,c=0,u=1,d=this.list.filter((function(t){return e.arrID.indexOf(t.ReviewerId)>-1}));d.forEach((function(e){e.Index=u++,s+=e.PaymentUSD,l+=e.RevenusUSD,c+=e.GrossProfit}));var f=["","Total","","","",s,l,c,0===l?0:c/l];Object(o["a"])(t,i,"Analysis",n,a,d,f,r)}}},c=l,u=(i("be6a"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"69c4eef5",null);t["default"]=d.exports},e054:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectStatusForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"160px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:status"),prop:"Status"}},[i("el-radio-group",{attrs:{disabled:2===e.originalStatus},model:{value:e.form.Status,callback:function(t){e.$set(e.form,"Status",t)},expression:"form.Status"}},e._l(e.$d.Subject_Visit_Status,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),2==e.form.Status?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:outVisitDate"),prop:"VisitOverTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.VisitOverTime,callback:function(t){e.$set(e.form,"VisitOverTime",t)},expression:"form.VisitOverTime"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"SubjectStatusForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{SubjectId:"",Status:1,OutEnrollmentTime:"",Reason:"",VisitOverTime:"",FinalSubjectVisitId:""},rules:{OutEnrollmentTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],FinalSubjectVisitId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],Reason:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],VisitOverTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},subjectVisitOptions:[],btnLoading:!1,loading:!1,originalStatus:null,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,Object(o["rd"])(this.data.Id);case 3:if(t=e.sent,i=t.Result,this.subjectVisitOptions=i,Object.keys(this.data).length>0){for(n in this.form)this.data.hasOwnProperty(n)&&(this.form[n]=this.data[n]);this.form.SubjectId=this.data.Id,this.originalStatus=this.data.Status}this.form.TrialId=this.trialId,this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.subjectStatusForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.trialId,e.form.SiteId=e.data.SiteId,Object(o["tf"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("closeDialog")})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("closeDialog")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e057:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("2306"),o=i("c775"),s=o.getDefaultLabel,l=i("3301"),c=i("9d57"),u=c.getLayoutOnAxis,d=i("80f0"),f=i("4f85"),h=i("4319"),p=i("e887"),m=i("b0af"),g=m.createClipPath,v=i("aa3e"),b=i("00d8"),y=i("307b"),w=i("eaeb"),_=i("471e"),I=r.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],S=["emphasis","itemStyle"],T=["label"],C=["emphasis","label"],k="e\0\0",R={cartesian2d:v,geo:b,singleAxis:y,polar:w,calendar:_};function D(e){var t,i=e.type;if("path"===i){var n=e.shape,a=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=B(n);t=r.makePath(o,null,a,n.layout||"center"),t.__customPathData=o}else if("image"===i)t=new r.Image({}),t.__customImagePath=e.style.image;else if("text"===i)t=new r.Text({}),t.__customText=e.style.text;else if("group"===i)t=new r.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var s=r.getShapeClass(i);t=new s}return t.__customGraphicType=i,t.name=e.name,t}function L(e,t,i,n,o,s,l){var c={},u=i.style||{};if(i.shape&&(c.shape=a.clone(i.shape)),i.position&&(c.position=i.position.slice()),i.scale&&(c.scale=i.scale.slice()),i.origin&&(c.origin=i.origin.slice()),i.rotation&&(c.rotation=i.rotation),"image"===e.type&&i.style){var d=c.style={};a.each(["x","y","width","height"],(function(t){O(t,d,u,e.style,s)}))}if("text"===e.type&&i.style){d=c.style={};a.each(["x","y"],(function(t){O(t,d,u,e.style,s)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==e.type&&(e.useStyle(u),s)){e.style.opacity=0;var f=u.opacity;null==f&&(f=1),r.initProps(e,{style:{opacity:f}},n,t)}s?e.attr(c):r.updateProps(e,c,n,t),i.hasOwnProperty("z2")&&e.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&e.attr("silent",i.silent),i.hasOwnProperty("invisible")&&e.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&e.attr("ignore",i.ignore),i.hasOwnProperty("info")&&e.attr("info",i.info);var h=i.styleEmphasis;r.setElementHoverStyle(e,h),l&&r.setAsHighDownDispatcher(e,!1!==h)}function O(e,t,i,n,a){null==i[e]||a||(t[e]=i[e],i[e]=n[e])}function $(e,t,i,n){var o=e.get("renderItem"),l=e.coordinateSystem,c={};l&&(c=l.prepareCustoms?l.prepareCustoms():R[l.type](l));var d,f,h,p,m,g=a.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:_,styleEmphasis:I,visual:k,barLayout:D,currentSeriesIndices:L,font:O},c.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:N(e.getData())},b=!0;return function(e,i){return d=e,b=!0,o&&o(a.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},v),g)};function y(e){null==e&&(e=d),b&&(f=t.getItemModel(e),h=f.getModel(T),p=f.getModel(C),m=t.getItemVisual(e,"color"),b=!1)}function w(e,i){return null==i&&(i=d),t.get(t.getDimension(e||0),i)}function _(i,n){null==n&&(n=d),y(n);var o=f.getModel(x).getItemStyle();null!=m&&(o.fill=m);var l=t.getItemVisual(n,"opacity");null!=l&&(o.opacity=l);var c=i?V(i,h):h;return r.setTextStyle(o,c,null,{autoColor:m,isRectText:!0}),o.text=c.getShallow("show")?a.retrieve2(e.getFormattedLabel(n,"normal"),s(t,n)):null,i&&q(o,i),o}function I(i,n){null==n&&(n=d),y(n);var o=f.getModel(S).getItemStyle(),l=i?V(i,p):p;return r.setTextStyle(o,l,null,{isRectText:!0},!0),o.text=l.getShallow("show")?a.retrieve3(e.getFormattedLabel(n,"emphasis"),e.getFormattedLabel(n,"normal"),s(t,n)):null,i&&q(o,i),o}function k(e,i){return null==i&&(i=d),t.getItemVisual(i,e)}function D(e){if(l.getBaseAxis){var t=l.getBaseAxis();return u(a.defaults({axis:t},e),n)}}function L(){return i.getCurrentSeriesIndices()}function O(e){return r.getFont(e,i)}}function N(e){var t={};return a.each(e.dimensions,(function(i,n){var a=e.getDimensionInfo(i);if(!a.isExtraCoord){var r=a.coordDim,o=t[r]=t[r]||[];o[a.coordDimIndex]=n}})),t}function A(e,t,i,n,a,r){return e=P(e,t,i,n,a,r,!0),e&&r.setItemGraphicEl(t,e),e}function P(e,t,i,n,a,r,o){var s=!i;i=i||{};var l=i.type,c=i.shape,u=i.style;if(e&&(s||null!=l&&l!==e.__customGraphicType||"path"===l&&U(c)&&B(c)!==e.__customPathData||"image"===l&&Q(u,"image")&&u.image!==e.__customImagePath||"text"===l&&Q(c,"text")&&u.text!==e.__customText)&&(a.remove(e),e=null),!s){var d=!e;return!e&&(e=D(i)),L(e,t,i,n,r,d,o),"group"===l&&E(e,t,i,n,r),a.add(e),e}}function E(e,t,i,n,a){var r=i.children,o=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(o||l||c)if(l)M({oldChildren:e.children()||[],newChildren:r||[],dataIndex:t,animatableModel:n,group:e,data:a});else{c&&e.removeAll();for(var u=0;u40&&(c=Math.max(1,Math.floor(s/40)));for(var u=o[0],f=e.dataToCoord(u+1)-e.dataToCoord(u),h=Math.abs(f*Math.cos(n)),p=Math.abs(f*Math.sin(n)),m=0,g=0;u<=o[1];u+=c){var v=0,b=0,y=a.getBoundingRect(i(u),t.font,"center","top");v=1.3*y.width,b=1.3*y.height,m=Math.max(m,v,7),g=Math.max(g,b,7)}var w=m/h,_=g/p;isNaN(w)&&(w=1/0),isNaN(_)&&(_=1/0);var I=Math.max(0,Math.floor(Math.min(w,_))),S=d(e.model),T=e.getExtent(),C=S.lastAutoInterval,k=S.lastTickCount;return null!=C&&null!=k&&Math.abs(C-I)<=1&&Math.abs(k-s)<=1&&C>I&&S.axisExtend0===T[0]&&S.axisExtend1===T[1]?I=C:(S.lastTickCount=s,S.lastAutoInterval=I,S.axisExtend0=T[0],S.axisExtend1=T[1]),I}function x(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function S(e,t,i){var n=l(e),a=e.scale,r=a.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),d=r[0],f=a.count();0!==d&&c>1&&f/c>2&&(d=Math.round(Math.ceil(d/c)*c));var h=u(e),p=o.get("showMinLabel")||h,m=o.get("showMaxLabel")||h;p&&d!==r[0]&&v(r[0]);for(var g=d;g<=r[1];g+=c)v(g);function v(e){s.push(i?e:{formattedLabel:n(e),rawLabel:a.getLabel(e),tickValue:e})}return m&&g-c!==r[1]&&v(r[1]),s}function T(e,t,i){var a=e.scale,r=l(e),o=[];return n.each(a.getTicks(),(function(e){var n=a.getLabel(e);t(e,n)&&o.push(i?e:{formattedLabel:r(e),rawLabel:n,tickValue:e})})),o}t.createAxisLabels=f,t.createAxisTicks=h,t.calculateCategoryInterval=I},e09f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"靶病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.TargetLesion,callback:function(t){e.$set(e.searchData,"TargetLesion",t)},expression:"searchData.TargetLesion"}},e._l(e.$d.TargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"非靶病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.NonTargetLesions,callback:function(t){e.$set(e.searchData,"NonTargetLesions",t)},expression:"searchData.NonTargetLesions"}},e._l(e.$d.NoTargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"新病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.NewLesion,callback:function(t){e.$set(e.searchData,"NewLesion",t)},expression:"searchData.NewLesion"}},e._l(e.$d.NewLesionAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"整体疗效"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.OverallEfficacy,callback:function(t){e.$set(e.searchData,"OverallEfficacy",t)},expression:"searchData.OverallEfficacy"}},e._l(e.$d.OverallAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TargetLesion",label:"靶病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("TargetAssessment",Number(t.row.TargetLesion)))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NonTargetLesions",label:"非靶病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("NoTargetAssessment",t.row.NonTargetLesions))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NewLesion",label:"新病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("NewLesionAssessment",t.row.NewLesion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallEfficacy",label:"整体疗效","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OverallAssessment",t.row.OverallEfficacy))+"\n ")]}}])}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("EfficacyAssessmentForm",{attrs:{data:e.rowData,"criterion-id":e.criterionId},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("0a58"),u=function(){return{CriterionId:"",TargetLesion:null,NonTargetLesions:null,NewLesion:null,OverallEfficacy:null,PageIndex:1,PageSize:20}},d={name:"EfficacyAssessmentList",components:{BaseContainer:s["default"],Pagination:l["default"],EfficacyAssessmentForm:c["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:u(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.CriterionId=this.criterionId,Object(o["Hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={CriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["S"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},e0a5:function(e,t,i){},e0b8:function(e,t,i){"use strict";var n=i("7726"),a=i("5ca1"),r=i("2aba"),o=i("dcbc"),s=i("67ab"),l=i("4a59"),c=i("f605"),u=i("d3f4"),d=i("79e5"),f=i("5cc5"),h=i("7f20"),p=i("5dbc");e.exports=function(e,t,i,m,g,v){var b=n[e],y=b,w=g?"set":"add",_=y&&y.prototype,I={},x=function(e){var t=_[e];r(_,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,i){return t.call(this,0===e?0:e,i),this})};if("function"==typeof y&&(v||_.forEach&&!d((function(){(new y).entries().next()})))){var S=new y,T=S[w](v?{}:-0,1)!=S,C=d((function(){S.has(1)})),k=f((function(e){new y(e)})),R=!v&&d((function(){var e=new y,t=5;while(t--)e[w](t,t);return!e.has(-0)}));k||(y=t((function(t,i){c(t,y,e);var n=p(new b,t,y);return void 0!=i&&l(i,g,n[w],n),n})),y.prototype=_,_.constructor=y),(C||R)&&(x("delete"),x("has"),g&&x("get")),(R||T)&&x(w),v&&_.clear&&delete _.clear}else y=m.getConstructor(t,e,g,w),o(y.prototype,i),s.NEED=!0;return h(y,e),I[e]=y,a(a.G+a.W+a.F*(y!=b),I),v||m.setStrong(y,e,g),y}},e0d3:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=n.each,o=n.isObject,s=n.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,i){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=i.length;n=i.length&&i.push({option:e})}})),i}function m(e){var t=n.createHashMap();r(e,(function(e,i){var n=e.exist;n&&t.set(n.id,e)})),r(e,(function(e,i){var a=e.option;n.assert(!a||null==a.id||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})})),r(e,(function(e,i){var n=e.exist,a=e.option,r=e.keyInfo;if(o(a)){if(r.name=null!=a.name?a.name+"":n?n.name:l+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(t.get(r.id))}t.set(r.id,e)}}))}function g(e){var t=e.name;return!(!t||!t.indexOf(l))}function v(e){return o(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function b(e,t){var i={},n={};return a(e||[],i),a(t||[],n,i),[r(i),r(n)];function a(e,t,i){for(var n=0,a=e.length;n=t[0]&&e<=t[1]},a.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},a.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},a.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},a.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(e){this._isBlank=e},a.prototype.getLabel=null,n.enableClassExtend(a),n.enableClassManagement(a,{registerWhenExtend:!0});var r=a;e.exports=r},e0ef:function(e,t,i){var n=i("4b17"),a="Expected a function";function r(e,t){var i;if("function"!=typeof t)throw new TypeError(a);return e=n(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=void 0),i}}e.exports=r},e12a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"hospitalForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"170px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Hospital CN: ",prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},on:{change:e.siteChange},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.SiteName}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Hospital EN: ",prop:"HospitalName"}},[i("el-input",{model:{value:e.form.HospitalName,callback:function(t){e.$set(e.form,"HospitalName",t)},expression:"form.HospitalName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated University CN: ",prop:"UniversityAffiliatedCN"}},[i("el-input",{model:{value:e.form.UniversityAffiliatedCN,callback:function(t){e.$set(e.form,"UniversityAffiliatedCN",t)},expression:"form.UniversityAffiliatedCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated University EN: ",prop:"UniversityAffiliated"}},[i("el-input",{model:{value:e.form.UniversityAffiliated,callback:function(t){e.$set(e.form,"UniversityAffiliated",t)},expression:"form.UniversityAffiliated"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country CN: ",prop:"CountryCN"}},[i("el-input",{model:{value:e.form.CountryCN,callback:function(t){e.$set(e.form,"CountryCN",t)},expression:"form.CountryCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country EN: ",prop:"Country"}},[i("el-input",{model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province CN: ",prop:"ProvinceCN"}},[i("el-input",{model:{value:e.form.ProvinceCN,callback:function(t){e.$set(e.form,"ProvinceCN",t)},expression:"form.ProvinceCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province EN: ",prop:"Province"}},[i("el-input",{model:{value:e.form.Province,callback:function(t){e.$set(e.form,"Province",t)},expression:"form.Province"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City CN: ",prop:"CityCN"}},[i("el-input",{model:{value:e.form.CityCN,callback:function(t){e.$set(e.form,"CityCN",t)},expression:"form.CityCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City EN: ",prop:"City"}},[i("el-input",{model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("b1ef"),l={name:"HospitalForm",props:{data:{type:Object,default:function(){return{}}},model:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,form:{SiteId:null,Id:"",HospitalName:"",HospitalNameCN:"",UniversityAffiliated:"",UniversityAffiliatedCN:"",Country:"",CountryCN:"",Province:"",ProvinceCN:"",City:"",CityCN:""},siteList:[],rules:{SiteId:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],HospitalName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UniversityAffiliated:[{max:100,message:"The maximum length is 100"}],UniversityAffiliatedCN:[{max:100,message:"The maximum length is 100"}],Country:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CountryCN:[{max:50,message:"The maximum length is 50"}],Province:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ProvinceCN:[{max:50,message:"The maximum length is 50"}],City:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CityCN:[{max:50,message:"The maximum length is 50"}]}}},mounted:function(){this.getAllSiteList(),Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{siteChange:function(e){var t=this;this.siteList.forEach((function(i){i.Id===e&&(t.form.CityCN=i.City,t.form.HospitalNameCN=i.SiteName,t.form.ProvinceCN=i.Province,t.form.CountryCN=i.Country)}))},getAllSiteList:function(){var e=this;Object(s["c"])().then((function(t){e.siteList=t.Result,console.log(e.siteList)})).catch((function(){reject()}))},handleSave:function(){var e=this;this.$refs.hospitalForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["j"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["hospitalForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},e135:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search",staticStyle:{position:"relative"}},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.searchForm,"search-handle":e.searchHandle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto",height:"28px",position:"absolute",bottom:"0",right:"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleAddUser}},[e._v(e._s(e.$t("common:button:new")))])],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.users,"search-data":e.searchData,total:e.total},on:{getList:e.getList,editCb:e.handleEditUser,deleteCb:e.handleDeleteUser,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"genderSlot",fn:function(t){var i=t.scope;return[e._v("\n\n "+e._s(e.$fd("Sex",i.row.Sex))+"\n ")]}},{key:"roleSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.RoleNameList.map((function(e){return e.RoleName})).join(","))+"\n ")]}},{key:"isZhiZhunSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("IsZhiZhun",i.row.IsZhiZhun))+"\n ")]}},{key:"isTestUserSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("YesOrNo",i.row.IsTestUser))+"\n ")]}},{key:"statusSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("IsEnableByInt",i.row.Status))+"\n ")]}}])})],1)},a=[],r=(i("96cf"),i("3b8d")),o=(i("20d6"),i("50fc")),s=i("2b0e"),l=i("9923"),c=new s["default"]({i18n:l["a"]}),u=[{type:"index"},{prop:"UserCode",label:c.$t("S/N"),width:100,sortable:"custom",showOverflowTooltip:!0},{prop:"UserName",label:c.$t("admin:UserName"),minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"RealName",label:c.$t("admin:RealName"),minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"Sex",label:c.$t("admin:Sex"),hidden:!0,slot:"genderSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Phone",label:c.$t("admin:Phone"),minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"EMail",label:c.$t("admin:EMail"),minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"OrganizationName",label:c.$t("admin:OrganizationName"),minWidth:130,showOverflowTooltip:!0},{prop:"UserType",label:c.$t("admin:UserType"),minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"IsZhiZhun",label:c.$t("admin:IsZhiZhun"),hidden:!0,slot:"isZhiZhunSlot",minWidth:140,sortable:"custom",showOverflowTooltip:!0},{prop:"IsTestUser",label:c.$t("admin:IsTestUser"),hidden:!0,slot:"isTestUserSlot",minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"Status",label:c.$t("admin:Status"),hidden:!0,slot:"statusSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:c.$t("common:action:action"),minWidth:200,operates:[{name:c.$t("common:button:edit"),type:"primary",emitKey:"editCb"},{name:c.$t("common:button:delete"),type:"danger",emitKey:"deleteCb"}]}],d=[{type:"Input",label:c.$t("admin:UserName"),prop:"UserName",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:RealName"),prop:"RealName",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:Phone"),prop:"Phone",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:OrganizationName"),prop:"OrganizationName",width:"120px",placeholder:""},{type:"Select",label:c.$t("admin:IsZhiZhun"),prop:"IsZhiZhun",width:"100px",options:c.$d.IsZhiZhun,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:IsTestUser"),prop:"IsTestUser",width:"100px",options:c.$d.YesOrNo,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:Status"),prop:"UserState",width:"100px",options:c.$d.IsEnableByInt,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:UserType"),prop:"UserType",width:"100px",options:[],props:{label:"UserType",value:"Id"},placeholder:""}],f=[{label:c.$t("common:button:reset"),type:"primary",emitKey:"reset"},{label:c.$t("common:button:search"),type:"primary",emitKey:"search"}],h=i("f36a"),p=i("d13d"),m=i("c0ee"),g=i("fab6"),v=function(){return{UserName:null,Phone:null,OrganizationName:null,UserState:null,UserType:null,PageIndex:1,PageSize:20,Asc:!0,RealName:"",SortField:""}},b={name:"UserList",components:{BoxContent:h["default"],SearchForm:p["default"],BaseTable:m["default"]},mixins:[g["a"]],data:function(){return{searchData:v(),searchForm:d,searchHandle:f,columns:u,userTypeOptions:[],loading:!1,total:0,users:[]}},created:function(){this.getList(),this.getInfo()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["m"])(this.searchData).then((function(t){e.loading=!1,e.users=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},findItemIndex:function(e){return this.searchForm.findIndex((function(t){return t.prop&&t.prop===e}))},getInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["n"])();case 2:t=e.sent,i=this.findItemIndex("UserType"),this.$set(this.searchForm[i],"options",t.Result);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleAddUser:function(){this.$router.push({path:"/system/user/add"})},handleEditUser:function(e){this.$router.push({path:"/system/user/edit",query:{Id:e.Id}})},handleDeleteUser:function(e){var t=this;this.$confirm(this.$t("common:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(o["e"])(e.Id).then((function(i){i.IsSuccess&&(t.users.splice(t.users.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleReset:function(){this.searchData=v(),this.getList()}}},y=b,w=(i("5c2b"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"1d8961fc",null);t["default"]=_.exports},e196:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[e.isInit?i("resume-info"):e._e()],1)},a=[],r=i("6f0b"),o=i("a599"),s=i("4360"),l={components:{ResumeInfo:r["default"]},data:function(){return{isInit:!1}},mounted:function(){var e=Object(o["b"])("token");e&&(s["a"].dispatch("user/setToken",e),Object(o["a"])("token","")),this.isInit=!0}},c=l,u=(i("d3ee"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"2ab9fe6e",null);t["default"]=d.exports},e199:function(e,t,i){"use strict";i("6210")},e1e6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Enum Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value EN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ChildGroup: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ChildGroup,callback:function(t){e.$set(e.form,"ChildGroup",t)},expression:"form.ChildGroup"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ShowOrder: ",prop:"Code"}},[i("el-input-number",{attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",ShowOrder:0,IsEnable:!0,IsConfig:!1}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{openDialog:function(e,t,i){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l(),Object.keys(i).length&&(this.form=Object.assign(this.form,i))},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},e1fc:function(e,t,i){var n=i("6d8b"),a=i("d5b7"),r=i("9850"),o=function(e){for(var t in e=e||{},a.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,i=0;i=0&&(i.splice(n,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,i=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof o&&e.addChildrenToStorage(t)),i&&i.refresh()},remove:function(e){var t=this.__zr,i=this.__storage,a=this._children,r=n.indexOf(a,e);return r<0||(a.splice(r,1),e.parent=null,i&&(i.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(i)),t&&t.refresh()),this},removeAll:function(){var e,t,i=this._children,n=this.__storage;for(t=0;t1e-4)return p[0]=e-i,p[1]=t-a,m[0]=e+i,void(m[1]=t+a);if(u[0]=l(r)*i+e,u[1]=s(r)*a+t,d[0]=l(o)*i+e,d[1]=s(o)*a+t,g(p,u,d),v(m,u,d),r%=c,r<0&&(r+=c),o%=c,o<0&&(o+=c),r>o&&!h?o+=c:rr&&(f[0]=l(w)*i+e,f[1]=s(w)*a+t,g(p,f,p),v(m,f,m))}t.fromPoints=h,t.fromLine=p,t.fromCubic=v,t.fromQuadratic=b,t.fromArc=y},e27f:function(e,t,i){"use strict";i("02ab")},e297:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"payment-history data-list"},[i("div",{staticClass:"filter-container"},[i("el-select",{staticClass:"mr",attrs:{size:"small"},on:{change:e.handleTypeChange},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.types,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1),e._v(" "),i("el-select",{staticStyle:{width:"120px","margin-right":"5px"},attrs:{placeholder:"Nation",size:"small",clearable:""},model:{value:e.listQuery.Nation,callback:function(t){e.$set(e.listQuery,"Nation",t)},expression:"listQuery.Nation"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}})],1),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small",placeholder:"Reviewer",clearable:""},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-date-picker",{staticStyle:{width:"160px","margin-right":"5px"},attrs:{size:"small",placeholder:"Beginning Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.listQuery.BeginMonth,callback:function(t){e.$set(e.listQuery,"BeginMonth",t)},expression:"listQuery.BeginMonth"}}),e._v("To\n "),i("el-date-picker",{staticStyle:{width:"160px",margin:"0 5px"},attrs:{size:"small",placeholder:"End Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.endpickerOption,clearable:!1},model:{value:e.listQuery.EndMonth,callback:function(t){e.$set(e.listQuery,"EndMonth",t)},expression:"listQuery.EndMonth"}}),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.exportDisabled},on:{click:e.handleExport}},[e._v("Export Excel")])],1),e._v(" "),i("div",{staticClass:"data-table"},["Payment"==e.type?i("payment-list",{ref:"Payment",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e(),e._v(" "),"Adjustment"==e.type?i("adjustment-list",{ref:"Adjustment",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e()],1)])},a=[],r=i("db72"),o=(i("7878"),i("0228")),s=i("aa48"),l=i("2f62"),c={components:{PaymentList:o["default"],AdjustmentList:s["default"]},data:function(){var e=this;return{listQuery:{Reviewer:"",Nation:"",BeginMonth:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndMonth:new Date(new Date).format("yyyy-MM")},beginPickerOption:{disabledDate:function(t){return e.listQuery.EndMonth?t.getTime()>new Date(e.listQuery.EndMonth).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginMonth?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginMonth).getTime():t.getTime()>Date.now()}},exportDisabled:!0,types:["Payment","Adjustment"],type:"Payment"}},computed:Object(r["a"])({},Object(l["b"])(["paymentHistoryQuery"])),created:function(){this.paymentHistoryQuery&&(this.listQuery=this.paymentHistoryQuery)},methods:Object(r["a"])({handleSearch:function(){this.listQuery.PageIndex=1,this.setQueryParam(this.listQuery),this.$refs[this.type].getList()},handleReset:function(){this.listQuery.Reviewer="",this.listQuery.Nation="",this.listQuery.EndMonth=(new Date).format("yyyy-MM"),this.listQuery.BeginMonth=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),this.setQueryParam(this.listQuery),this.$refs[this.type].resetList()},handleTypeChange:function(){this.listQuery.Reviewer=""},handleExport:function(){this.$refs[this.type].export()},selectMore:function(e){this.exportDisabled=e}},Object(l["c"])({setQueryParam:"financials/SET_PAYMENTHISTORYQUERYPARAM"}))},u=c,d=(i("e7ca"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"0d9805a9",null);t["default"]=f.exports},e2f5:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticStyle:{height:"100%",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{height:"50px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-switch",{staticStyle:{"margin-right":"20px"},attrs:{"active-text":"EN","inactive-text":"中文"},model:{value:e.isEnglish,callback:function(t){e.isEnglish=t},expression:"isEnglish"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"center"}},[i("h3",[e._v(e._s(e.title))])])]),e._v(" "),i("div",{staticStyle:{flex:"1","margin-top":"50px","overflow-y":"auto"}},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("status-info",{attrs:{"basic-info":e.basicInfo,"status-list":e.statusList,"doctor-id":e.doctorId,holiday:e.holiday,"is-english":e.isEnglish}}),e._v(" "),i("el-collapse-item",{attrs:{title:"Basic Info",name:"1"}},[i("basic-info",{attrs:{"basic-info":e.doctorInfo.BasicInfoView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Employment",name:"2"}},[i("Employment",{attrs:{employment:e.workInfo,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Specialty",name:"3"}},[i("Specialty",{attrs:{specialty:e.specialtyList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Education & Training",name:"4"}},[i("education-training",{attrs:{"education-list":e.doctorInfo.EducationList,"postgraduate-list":e.doctorInfo.PostgraduateList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Research & Publication",name:"5"}},[i("research-publication",{attrs:{"research-info":e.doctorInfo.ResearchPublicationView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Trial Experience",name:"6"}},[e.doctorInfo.TrialExperienceView?i("trial-experience",{attrs:{"trial-experience":e.doctorInfo.TrialExperienceView,"is-english":e.isEnglish}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Credentials",name:"7"}},[e.doctorInfo.AttachmentList?i("Credentials",{attrs:{"attachment-list":e.doctorInfo.AttachmentList,"doctor-id":e.doctorId}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Resume",name:"8"}},[e.doctorInfo.AttachmentList?i("Resume",{attrs:{"resume-list":e.doctorInfo.AttachmentList}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Agreements",name:"9"}},[e.doctorInfo.AttachmentList?i("Agreements",{attrs:{"doctor-info":e.doctorInfo}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comment",name:"10"}},[i("Comment",{attrs:{"status-list":e.statusList}})],1)],1)],1)])},a=[],r=i("33ba"),o=i("2c29"),s=i("3a1d"),l=i("b78b"),c=i("7f1c"),u=i("451c"),d=i("4e13"),f=i("b300"),h=i("aacc"),p=i("89ff"),m=i("14e2"),g=i("0b29"),v={components:{StatusInfo:o["default"],BasicInfo:s["default"],Employment:l["default"],Specialty:c["default"],EducationTraining:u["default"],ResearchPublication:d["default"],TrialExperience:f["default"],Credentials:h["default"],Resume:p["default"],Agreements:m["default"],Comment:g["default"]},data:function(){return{isEnglish:!0,htmlTitle:"",title:"",holiday:"",loading:!1,activeNames:["1","2","3","4","5","6","7","8","9","10"],statusList:{},basicInfo:{},workInfo:{},researchInfo:{},certificateTbl:[],resumeList:[],specialtyList:{Speciality:"",ReadingType:"",Subspeciality:""},doctorInfo:{},agreementList:[],pageLoading:!1,doctorId:""}},mounted:function(){this.isEnglish=!(!0!==this.$route.query.isEnglish&&"true"!==this.$route.query.isEnglish),this.doctorId=this.$route.query.doctorId,this.initForm()},methods:{initStatus:function(){if(this.doctorInfo.AuditView){var e=this.doctorInfo.AuditView;this.statusList.ResumeStatus=0===e.ResumeStatus?"":1===e.ResumeStatus?"Yes":"No",this.statusList.CooperateStatus=0===e.CooperateStatus?"":1===e.CooperateStatus?"Yes":"No",this.statusList.ReviewStatus=0===e.ReviewStatus?"":1===e.ReviewStatus?"Yes":"No",this.statusList.AcceptingNewTrial=e.AcceptingNewTrial?"Yes":"No",this.statusList.ActivelyReading=e.ActivelyReading?"Yes":"No",this.statusList.AdminComment=e.AdminComment,this.statusList.Submitted=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Submitted:0,this.statusList.Approved=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Approved:0,this.statusList.Reading=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Reading:0}},initEmploymentInfo:function(){this.doctorInfo.EmploymentView&&(this.workInfo=this.doctorInfo.EmploymentView,this.workInfo.Department="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOther?this.workInfo.DepartmentOther:"Other":this.workInfo.Department,this.workInfo.DepartmentCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOtherCN:this.workInfo.DepartmentCN,this.workInfo.RankOther=this.workInfo.RankOther?"Other - "+this.workInfo.RankOther:"Other",this.workInfo.Rank="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOther:this.workInfo.Rank,this.workInfo.RankCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOtherCN:this.workInfo.RankCN,"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.PositionId?(this.workInfo.Position=this.workInfo.PositionOther,this.workInfo.PositionCN=this.workInfo.PositionOtherCN):"f30a074b-2b47-4a92-97ec-e15086d37883"===this.workInfo.PositionId?this.workInfo.Position="None":(this.workInfo.Position=this.workInfo.Position,this.workInfo.PositionCN=this.workInfo.PositionCN),this.workInfo.PositionOther=this.workInfo.PositionOther?"Other - "+this.workInfo.PositionOther:"Other")},initSpecialtyInfo:function(){if(this.doctorInfo.SpecialtyView){var e=this.doctorInfo.SpecialtyView;this.specialtyList.Department=e.DepartmentName?e.DepartmentName:"Other-"+e.DepartmentOther,e.ReadingTypeOther&&e.ReadingTypeList.push("Other-"+e.ReadingTypeOther),this.specialtyList.ReadingType=e.ReadingTypeList.length>0?e.ReadingTypeList.join(", "):"",e.ReadingTypeOtherCN&&e.ReadingTypeCNList.push(e.ReadingTypeOtherCN),this.specialtyList.ReadingTypeCNList=e.ReadingTypeCNList.length>0?e.ReadingTypeCNList.join(", "):"",e.SubspecialityOther&&e.SubspecialityList.push("Other-"+e.SubspecialityOther),e.SubspecialityOtherCN&&e.SubspecialityCNList.push(e.SubspecialityOtherCN),this.specialtyList.Subspeciality=e.SubspecialityList.length>0?e.SubspecialityList.join(", "):"",this.specialtyList.SubspecialityCNList=e.SubspecialityCNList.length>0?e.SubspecialityCNList.join(", "):"",this.specialtyList.Speciality="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?"Other-"+e.SpecialityOther:e.Speciality,this.specialtyList.SpecialityCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?e.SpecialityOtherCN:e.SpecialityCN}},initForm:function(){var e=this;this.doctorId&&(this.pageLoading=!0,Object(r["q"])(this.doctorId).then((function(t){e.pageLoading=!1,t.IsSuccess&&t.Result&&(e.holiday=t.Result.InHoliday?"Yes":"No",e.doctorInfo=t.Result,e.title="".concat(e.doctorInfo.BasicInfoView.FirstName," ").concat(e.doctorInfo.BasicInfoView.LastName,"'s Details"),e.htmlTitle=e.title,e.initStatus(),e.initEmploymentInfo(),e.initSpecialtyInfo())})))}}},b=v,y=(i("d4c3"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,"baf50954",null);t["default"]=w.exports},e327:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleSetting}},[e._v("配置字典分组")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",DataTypeEnum:1,PageIndex:1,PageSize:20,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{DataTypeEnum:1})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageIndex:1,PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},e330:function(e,t,i){},e351:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-table",{attrs:{size:"small",stripe:"",data:e.doctorList,height:"100%"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",sortable:"custom",label:"Name","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.LastName+t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",sortable:"custom",label:"ID","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Training)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.RefresherTraining)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Global)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Downtime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"80",fixed:"right",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")])]}}])})],1),e._v(" "),i("el-dialog",{key:e.timer,attrs:{size:"small",title:"Edit","append-to-body":"",visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("TrialsDataReviewersForm",{attrs:{form:e.row},on:{getList:e.getList,closeDialog:e.closeDialog}})],1)],1)},a=[],r=(i("c5f6"),i("32fb")),o={name:"TrialsDataReviewers",filters:{rounding:function(e){return e||(e=0),e?Number(e).toFixed(2):e}},components:{TrialsDataReviewersForm:r["default"]},props:{doctorList:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1,timer:null,row:null}},methods:{closeDialog:function(){this.dialogVisible=!1},getList:function(e){this.$emit("getList",e,1)},handleEdit:function(e){this.timer=(new Date).getTime(),this.row=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},e378:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},e389:function(e,t,i){"use strict";i("5837")},e3c3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,rules:e.rules,size:"small"}},[e.list.length>0?i("div",[i("div",{staticStyle:{"text-align":"right"}}),e._v(" "),1===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r"))+"\n "),e.findDoctorUser(e.list,0).DoctorUser&&!e.findDoctorUser(e.list,0).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,0).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,0))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,0).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,0).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r1"))+"\n "),e.findDoctorUser(e.list,1).DoctorUser&&!e.findDoctorUser(e.list,1).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,1).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,1))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,1).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,1).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r2"))+"\n "),e.findDoctorUser(e.list,2).DoctorUser&&!e.findDoctorUser(e.list,2).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,2).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,2))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,2).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,2).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:ad"))+"\n "),e.findDoctorUser(e.list,3).DoctorUser&&!e.findDoctorUser(e.list,3).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,3).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,3))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,3).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,3).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:O1"))+"\n "),e.findDoctorUser(e.list,4).DoctorUser&&!e.findDoctorUser(e.list,4).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,4).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,4))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,4).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,4).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px","font-size":"12px",color:"#f66"}},[i("i",{staticClass:"el-icon-info"}),e._v(" "),e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:msg1"))+"\n ")]),e._v(" "),i("div",[i("el-form-item",{attrs:{"label-width":"80px",label:e.$t("trials:reviewAssign:clearReader:title:reason"),prop:"Note"}},[i("el-input",{attrs:{type:"textarea",maxlength:"500","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1)]):e._e(),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7514"),i("ac6a"),i("c5f6"),i("958c")),o={name:"ManualAllocationTable",props:{TrialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},readingType:{type:Number,default:function(){return 0}}},data:function(){return{TrialId:this.$route.query.trialId,list:[],loading:!1,btnLoading:!1,form:{Note:""},readingType:null,rules:{Note:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},OtherInfo:null}},mounted:function(){var e=this;this.TrialId=this.$route.query.trialId,this.loading=!0,Object(r["P"])(this.data.SubjectId,this.TrialReadingCriterionId).then((function(t){e.list=t.Result,e.readingType=t.OtherInfo.ReadingType,e.OtherInfo=Object.assign({},t.OtherInfo),e.loading=!1})).catch((function(){e.loading=!1}))},methods:{clearAll:function(){var e=this,t=!1;this.form.Note="",this.list.forEach((function(i,n){i.IsHaveReading||(e.$set(i,"IsCancelAssign",!0),n+1===e.list.length?e.form.Note+="".concat(e.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.$fd("ArmEnum",i.ArmEnum)," ").concat(i.DoctorUser.UserName,"(").concat(i.DoctorUser.FullName,");"):e.form.Note+="".concat(e.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.$fd("ArmEnum",i.ArmEnum)," ").concat(i.DoctorUser.UserName,"(").concat(i.DoctorUser.FullName,");\n"),t=!0)})),t?this.$message.success(this.$t("trials:reviewAssign:clearReader:title:msg2")):this.$message.error(this.$t("trials:reviewAssign:clearReader:title:msg3"))},myClose:function(e){this.$set(e,"IsCancelAssign",!0),this.form.Note?this.form.Note+="\n".concat(this.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,");"):this.form.Note+="".concat(this.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,");")},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){if(t){e.loading=!0;var i=e.list.map((function(t){return{Id:t.Id,SubjectId:e.data.SubjectId,DoctorUserId:t.DoctorUserId,ArmEnum:t.ArmEnum,IsCancelAssign:t.IsCancelAssign}}));Object(r["l"])({CancelList:i,Note:e.form.Note,TrialReadingCriterionId:e.TrialReadingCriterionId,TrialId:e.TrialId}).then((function(){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.close()})).catch((function(){e.loading=!1}))}}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"3c562ed2",null);t["default"]=c.exports},e3da:function(e,t,i){},e3ff:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e468:function(e,t,i){var n=i("e46b"),a=i("6d8b"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("0f99"),l=s.makeSeriesEncodeForAxisCoordSys,c={_baseAxisDim:null,getInitialData:function(e,t){var i,r,s=t.getComponent("xAxis",this.get("xAxisIndex")),c=t.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),d=c.get("type");"category"===u?(e.layout="horizontal",i=s.getOrdinalMeta(),r=!0):"category"===d?(e.layout="vertical",i=c.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var f=["x","y"],h="horizontal"===e.layout?0:1,p=this._baseAxisDim=f[h],m=f[1-h],g=[s,c],v=g[h].get("type"),b=g[1-h].get("type"),y=e.data;if(y&&r){var w=[];a.each(y,(function(e,t){var i;e.value&&a.isArray(e.value)?(i=e.value.slice(),e.value.unshift(t)):a.isArray(e)?(i=e.slice(),e.unshift(t)):i=e,w.push(i)})),e.data=w}var _=this.defaultValueDimensions,I=[{name:p,type:o(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:o(b),dimsDef:_.slice()}];return n(this,{coordDimensions:I,dimensionsCount:_.length+1,encodeDefaulter:a.curry(l,I,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=c},e46b:function(e,t,i){var n=i("b1d4"),a=i("6179"),r=i("6d8b"),o=r.extend,s=r.isArray;function l(e,t,i){t=s(t)&&{coordDimensions:t}||o({},t);var r=e.getSource(),l=n(r,t),c=new a(l,e);return c.initData(r,i),c}e.exports=l},e47b:function(e,t,i){var n=i("e0d3"),a=n.makeInner,r=n.normalizeToArray,o=a();function s(e,t){for(var i=e.length,n=0;nt)return e[n];return e[i-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(e,t,i){t=t||this;var n=o(t),a=n.colorIdx||0,l=n.colorNameMap=n.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var c=r(this.get("color",!0)),u=this.get("colorLayer",!0),d=null!=i&&u?s(u,i):c;if(d=d||c,d&&d.length){var f=d[a];return e&&(l[e]=f),n.colorIdx=(a+1)%d.length,f}}};e.exports=l},e4a3:function(e,t,i){"use strict";i("a078")},e4ac:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-viewer-wrapper"},[i("div",{staticClass:"dicom-viewer-container"},[i("div",{staticClass:"dicom-tools"},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon"},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"layout"}})],1),e._v(" "),e._m(0),e._v(" "),i("div",{staticClass:"dropdown-content layout-content"},[i("ul",{staticStyle:{width:"50px"}},[i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),e.isReadingTaskViewInOrder?i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|B")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n B\n ")])]):e._e(),e._v(" "),i("li",{staticClass:"flex_column",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|A|A|A")}}},[e._m(1),e._v(" "),e._m(2)])])])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Wwwc"===e.activeTool?"tool_active":""],staticStyle:{width:"35px",translate:"50%"},attrs:{"data-tool":"Wwwc"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Wwwc",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"reversecolor"}})],1),e._v(" "),e._m(3),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"80px"}},e._l(e.wwwcArr,(function(t){return i("li",{key:t.label},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasWwwc(t)}}},[e._v(e._s(t.label))])])})),0)])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Zoom"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Zoom"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Zoom",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"magnifier"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v("缩放")])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Pan"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Pan"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Pan",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"move"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v("移动")])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Rotate"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Rotate"}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"rotate"}})],1),e._v(" "),e._m(4),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"80px"}},e._l(e.rotateArr,(function(t){return i("li",{key:t.label},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasRotate(t.val)}}},[e._v(e._s(t.label))])])})),0)])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",on:{click:function(t){return t.preventDefault(),e.fitToType(1===e.fitType?"fitToWindow":"fitToImage")}}},[1===e.fitType?i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToWindow"}}):i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToImage"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(1===e.fitType?"适应窗口":"适应图像"))])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.isScrollSync?"tool_active":""],on:{click:function(t){return t.preventDefault(),e.setImageIndexSync(t)}}},[e.isScrollSync?i("i",{staticClass:"el-icon-lock svg-icon"}):i("i",{staticClass:"el-icon-unlock svg-icon"})]),e._v(" "),i("div",{staticClass:"text"},[e._v("同步")])]),e._v(" "),e._l(e.measuredTools,(function(t){return i("div",{key:t.toolName},[t.disabledReason?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.disabledReason,placement:"top"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.activeTool===t.toolName?"tool_active":""],style:{cursor:t.isDisabled?"not-allowed":"pointer"},attrs:{"data-tool":t.toolName},on:{click:function(i){return i.preventDefault(),e.setToolActive(t.toolName,!0,i)},mouseenter:function(i){return e.enter(i,t.toolName)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":t.icon}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(t.text))])])]):i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.activeTool===t.toolName?"tool_active":""],style:{cursor:t.isDisabled?"not-allowed":"pointer"},attrs:{"data-tool":t.toolName},on:{click:function(i){return i.preventDefault(),e.setToolActive(t.toolName,!0,i)},mouseenter:function(i){return e.enter(i,t.toolName)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":t.icon}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(t.text))])])],1)})),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("div",{staticStyle:{padding:"5px"}},[e.isExistsClinicalData?i("el-button",{attrs:{type:"text"},on:{click:e.previewCD}},[e._v("临床数据")]):e._e()],1)])],2),e._v(" "),i("div",{staticClass:"dicom-viewers"},[i("div",{ref:"container",staticClass:"viewer-container",class:["box","box_"+e.layoutRow+"_"+e.layoutCol]},e._l(e.maxCanvas,(function(t){return i("div",{key:t,class:["item",t-1===e.currentDicomCanvasIndex?"item_active":""],style:t-1===e.currentDicomCanvasIndex?e.cornerstoneStyle:{},attrs:{"data-index":t-1},on:{dblclick:function(i){return e.setCornerstoneStyle(t-1)},click:function(i){return e.activateDicomCanvas(t-1)}}},[e.canvasW?i("dicom-canvas",{ref:"dicomCanvas"+(t-1),refInFor:!0,style:{width:e.canvasW,height:e.canvasH},attrs:{"canvas-index":t-1,"is-active":t-1===e.currentDicomCanvasIndex,"is-scroll-sync":e.isScrollSync},on:{setMeasureData:e.setMeasureData,modifyMeasureData:e.modifyMeasureData,scrollSync:e.scrollSync}}):e._e()],1)})),0),e._v(" "),i("div",{ref:"form-container",staticClass:"form-container"},[i("MeasurementList",{ref:"measurementList",attrs:{IseCRFShowInDicomReading:e.IseCRFShowInDicomReading,isReadingShowSubjectInfo:e.isReadingShowSubjectInfo}})],1)])])])},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("布局"),i("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("窗宽/窗位"),i("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("旋转"),i("i",{staticClass:"el-icon-caret-bottom"})])}],r=(i("7514"),i("96cf"),i("3b8d")),o=(i("5df3"),i("1c4c"),i("ac6a"),i("7f7f"),i("20d6"),i("db72")),s=i("81d9"),l=i("6e43"),c=i("e6ad"),u=i("c8b5"),d=i.n(u),f=i("4ed2"),h=i("9bb8"),p=i("9b92"),m=i("2f62"),g=i("4360");c["external"].cornerstone=s,c["external"].Hammer=d.a,c["external"].cornerstoneMath=l;var v={name:"DicomViewer",components:{DicomCanvas:f["default"],MeasurementList:h["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,default:!1},isExistsNoDicomFile:{type:Boolean,default:!1},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{cornerstoneStyle:{},layouts:[{index:0,row:1,col:1,name:"A"},{index:1,row:1,col:2,name:"A|A"},{index:2,row:1,col:2,name:"A|B"},{index:3,row:2,col:2,name:"A|A|A|A"}],rotateArr:[{label:"默认值",val:1},{label:"垂直翻转",val:2},{label:"水平翻转",val:3},{label:"左转90度",val:4},{label:"右转90度",val:5}],maxCanvas:1,layoutRow:1,layoutCol:1,currentDicomCanvasIndex:-1,currentDicomCanvas:{toolState:{clipPlaying:!1}},colormapsList:[],rotateList:[],colorList:[],wwwcList:[],canvasW:null,canvasH:null,activeTool:"",CriterionType:0,measuredTools:[{toolName:"Length",text:"直径测量",icon:"length",isDisabled:!1,disabledReason:""},{toolName:"Bidirectional",text:"长短径测量",icon:"bidirection",isDisabled:!1,disabledReason:""},{toolName:"ArrowAnnotate",text:"箭头工具",icon:"arrow",isDisabled:!1,disabledReason:""}],fitType:0,isDisabledTool:!1,canvasObj:{},wwwcArr:[{label:"默认值",val:1,ww:null,wc:null},{label:"CT Abdomen",val:2,wc:60,ww:400},{label:"CT Angio",val:3,wc:300,ww:600},{label:"CT Bone",val:4,wc:300,ww:1500},{label:"CT Brain",val:5,wc:40,ww:80},{label:"CT Chest",val:6,wc:40,ww:400},{label:"CT Lungs",val:7,wc:-400,ww:1500}],activeSeries:{},seriesStack:[],trialId:"",isScrollSync:!1,imageIndexSync:{sourceCanvas:"",targetCanvas:[]},isFirstRender:!1,isReadingTaskViewInOrder:!1}},computed:Object(o["a"])({},Object(m["b"])(["visitTaskList"])),mounted:function(){var e=this;this.isReadingTaskViewInOrder="true"===this.$router.currentRoute.query.isReadingTaskViewInOrder,this.CriterionType=parseInt(localStorage.getItem("CriterionType")),10===this.CriterionType&&(this.measuredTools=[{toolName:"ArrowAnnotate",text:"箭头",icon:"label",isDisabled:!1,disabledReason:""}]),this.rotateList[0]="1",this.colorList[0]="",this.wwwcList[0]="1",this.colormapsList=s["colors"].getColormapsList(),this.currentDicomCanvas=this.$refs["dicomCanvas0"]?this.$refs["dicomCanvas0"][0]:"",this.trialId=this.$router.currentRoute.query.trialId,this.setCanvasStyle(),window.addEventListener("resize",this.setCanvasStyle),p["a"].$on("updateImage",(function(t){for(var i=0;i1?"A|B":"A",n=this.layouts.findIndex((function(e){return e.name===i})),a=this.layouts[n];this.layoutRow=a.row,this.layoutCol=a.col,this.setCanvasStyle(),this.maxCanvas=a.row*a.col,this.$nextTick((function(){var i=document.querySelectorAll(".cornerstone-element");Array.from(i).forEach((function(e){s["enable"](e),s["resize"](e)})),e.map((function(e,i){t.canvasObj[i]=e,e.isCurrentTask&&(t.currentDicomCanvasIndex=i,t.activeSeries=e,t.$refs["measurementList"].initPage(e)),t.$refs["dicomCanvas".concat(i)][0].loadImageStack(e),t.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolPassive(t.activeTool)})):t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolEnabled(t.activeTool)})),t.activeTool="")}))}))},loadImageStack:function(e){var t=this;this.canvasObj[this.currentDicomCanvasIndex]=e,this.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolPassive(t.activeTool)})):this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolEnabled(t.activeTool)})),this.activeTool=""),this.$nextTick((function(){if(t.activeSeries=e,!t.isFirstRender||e.isFirstRender){t.isFirstRender=!0;var i=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));!t.visitTaskList[i].IsBaseLineTask&&t.isReadingTaskViewInOrder&&t.visitTaskList.length>1?t.changeLayout("A|B"):t.changeLayout("A")}else t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].loadImageStack(e);t.$refs["measurementList"].initPage(e)}))},getSeriesShowInCanvas:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,o,s,l,c,u,d,f,h=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this.$loading({fullscreen:!0}),"A"!==t.name){e.next=14;break}if(!this.activeSeries){e.next=10;break}return this.seriesStack=[this.activeSeries],this.currentDicomCanvasIndex=0,e.next=7,this.setCanvas(this.seriesStack);case 7:i.close(),e.next=12;break;case 10:n=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[n]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 12:e.next=59;break;case 14:if("A|A"!==t.name){e.next=27;break}if(!this.activeSeries){e.next=23;break}return this.seriesStack=[this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=0,e.next=20,this.setCanvas(this.seriesStack);case 20:i.close(),e.next=25;break;case 23:a=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[a]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 25:e.next=59;break;case 27:if("A|B"!==t.name){e.next=48;break}if(!this.activeSeries){e.next=43;break}if(o=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===h.activeSeries.visitTaskId})),s=this.visitTaskList[o].VisitTaskNum,!(s>0&&this.visitTaskList.length>1)){e.next=36;break}l=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),this.getFirstSeries(this.visitTaskList[10===this.CriterionType?s-1:l]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,h.activeSeries],h.currentDicomCanvasIndex=1,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=41;break;case 36:return this.seriesStack=[this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=1,e.next=40,this.setCanvas(this.seriesStack);case 40:i.close();case 41:e.next=46;break;case 43:c=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),u=this.visitTaskList[c].VisitTaskNum,u>0?(d=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),this.getFirstSeries(this.visitTaskList[d]).then((function(e){h.getFirstSeries(h.visitTaskList[c]).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return h.seriesStack=[e,n],h.currentDicomCanvasIndex=1,t.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))):this.getFirstSeries(this.visitTaskList[c]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t],h.currentDicomCanvasIndex=1,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 46:e.next=59;break;case 48:if("A|A|A|A"!==t.name){e.next=59;break}if(!this.activeSeries){e.next=57;break}return this.seriesStack=[this.activeSeries,this.activeSeries,this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=0,e.next=54,this.setCanvas(this.seriesStack);case 54:i.close(),e.next=59;break;case 57:f=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[f]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t,t,t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 59:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvas:function(e){var t=this;return new Promise((function(i){for(var n=[],a=0;a-1&&this.visitTaskList[o].measureDataInit){var s=this.visitTaskList[o].MeasureData.findIndex((function(t){return t.QuestionId===e.questionId&&t.RowIndex===e.rowIndex}));if(s>-1){var l=this.visitTaskList[o].StudyList,c=this.visitTaskList[o].MeasureData[s].StudyId,u=this.visitTaskList[o].MeasureData[s].SeriesId,d=this.visitTaskList[o].MeasureData[s].InstanceId,f=l.findIndex((function(e){return e.StudyId===c}));if(f>-1){var h=l[f].SeriesList.findIndex((function(e){return e.seriesId===u}));if(h>-1){var p=l[f].SeriesList[h],m=p.imageIds.findIndex((function(e){return!!~e.indexOf(d)}));m>-1&&(p.imageIdIndex=m,n.push(this.$refs["dicomCanvas".concat(a)][0].loadImageStack(p)))}}}}}Promise.all(n).then((function(){t.isScrollSync=i}))},getFirstSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||t.studyListInit){e.next=5;break}return e.next=3,g["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:t.VisitId,visitTaskId:t.VisitTaskId,taskBlindName:t.TaskBlindName});case 3:return e.next=5,g["a"].dispatch("reading/getMeasuredData",t.VisitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),n=this.visitTaskList[i].StudyList,a=n.findIndex((function(e){return e.SeriesList.length>0})),!(a>-1)){e.next=12;break}return e.abrupt("return",n[a].SeriesList[0]);case 12:return e.abrupt("return","");case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvasStyle:function(){this.canvasW=(window.innerWidth-570)/this.layoutCol+"px",this.canvasH=(window.innerHeight-130)/this.layoutRow+"px"},changeLayout:function(e){var t=this,i=this.layouts.findIndex((function(t){return t.name===e})),n=this.layouts[i];this.layoutRow=n.row,this.layoutCol=n.col,this.setCanvasStyle(),this.maxCanvas=n.row*n.col,this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)})),t.getSeriesShowInCanvas(n)}))},updateCanvas:function(e){for(var t=0;t=2))this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed",this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(t),this.activeTool="");else{var a=this.$refs["measurementList"].isCanActiveTool(t,!0);this.measuredTools[i].disabledReason=a.reason,a.isCanActiveTool?(this.measuredTools[i].isDisabled=!1,e.target.style.cursor="pointer"):(this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(t),this.activeTool=""),this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed")}}},setToolActive:function(e,t,i,n){var a=this;if(console.log("setToolActive",e),t){var r=this.measuredTools.findIndex((function(t){return t.toolName===e}));if(-1===r&&this.measuredTools[r].isDisabled)return;var o=this.measuredTools.find((function(t){return t.toolName===e}));if(!o||o.isDisabled)return;var s=this.canvasObj[this.currentDicomCanvasIndex];if(s.isCurrentTask&&t&&s.readingTaskState<2)this.activeTool&&!n?(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(e),this.activeTool=""):(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e));else{if(!this.activeTool)return;this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolEnabled(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""}}else this.activeTool===e?(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""):(this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e))},setToolEnabled:function(){var e=this.canvasObj[this.currentDicomCanvasIndex];if(!e.isCurrentTask)return this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),void(this.activeTool="");this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool="")},fitToType:function(e){"fitToWindow"!==this.activeTool&&"fitToImage"!==this.activeTool&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(this.activeTool),"fitToWindow"===e?(this.fitType=0,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToWindow()):"fitToImage"===e&&(this.fitType=1,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToImage()),this.activeTool=e},setMeasureData:function(e){this.$refs["measurementList"].setMeasuredData(e),this.activeTool=""},modifyMeasureData:function(e){this.$refs["measurementList"].modifyMeasuredData(e),this.activeTool=""},setDicomCanvasWwwc:function(e){1===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetWwwc():8===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].toggleInvert():this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setWwwc(e.ww,e.wc)},setImageIndexSync:function(){this.isScrollSync=!this.isScrollSync},scrollSync:function(e){for(var t=0;t0){for(t in this.form)this.form[t]=this.data[t];console.log(this.form),this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId),this.fileList=this.form.FileList.concat()}case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{PMClinicalDataConfirm:function(){var e=this;this.loading=!0,this.btnLoading=!0,l(this.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$emit("getList"),e.$emit("sign")})).catch((function(){e.loading=!1,e.btnLoading=!1}))},handleClinicalDataSetChange:function(e){var t=this.clinicalDatas.findIndex((function(t){return t.Id===e}));t>-1&&(this.currentTpl.id=this.clinicalDatas[t].Id,this.currentTpl.isExist=!!this.clinicalDatas[t].FileName)},getClinicalDatas:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={trialId:e.data.TrialId,IsVisit:e.data.IsVisit,ReadingId:e.data.ReadingId,SubjectId:e.data.SubjectId,ReadingClinicalDataId:e.data.Id?e.data.Id:"",IsBaseLine:e.data.IsBaseLine};Object(o["xd"])(n).then((function(i){e.clinicalDatas=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},save:function(){var e=this;this.$refs.verificationForm.validate((function(t){t&&e.PMClinicalDataConfirm()}))},handlePreview:function(){this.$emit("handlePreview",this.data.Id)},close:function(){this.$emit("close")}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"55cf189a",null);t["default"]=f.exports},e56e:function(e,t,i){"use strict";i.d(t,"eb",(function(){return r})),i.d(t,"gb",(function(){return o})),i.d(t,"h",(function(){return s})),i.d(t,"C",(function(){return l})),i.d(t,"ib",(function(){return c})),i.d(t,"j",(function(){return u})),i.d(t,"E",(function(){return d})),i.d(t,"vb",(function(){return f})),i.d(t,"r",(function(){return h})),i.d(t,"M",(function(){return p})),i.d(t,"X",(function(){return m})),i.d(t,"g",(function(){return g})),i.d(t,"z",(function(){return v})),i.d(t,"wb",(function(){return b})),i.d(t,"s",(function(){return y})),i.d(t,"N",(function(){return w})),i.d(t,"pb",(function(){return _})),i.d(t,"l",(function(){return I})),i.d(t,"G",(function(){return x})),i.d(t,"ob",(function(){return S})),i.d(t,"y",(function(){return T})),i.d(t,"lb",(function(){return C})),i.d(t,"m",(function(){return k})),i.d(t,"H",(function(){return R})),i.d(t,"mb",(function(){return D})),i.d(t,"n",(function(){return L})),i.d(t,"I",(function(){return O})),i.d(t,"Bb",(function(){return $})),i.d(t,"v",(function(){return N})),i.d(t,"R",(function(){return A})),i.d(t,"Qb",(function(){return P})),i.d(t,"ab",(function(){return E})),i.d(t,"e",(function(){return M})),i.d(t,"Pb",(function(){return F})),i.d(t,"a",(function(){return j})),i.d(t,"b",(function(){return V})),i.d(t,"hb",(function(){return q})),i.d(t,"D",(function(){return z})),i.d(t,"i",(function(){return B})),i.d(t,"V",(function(){return U})),i.d(t,"zb",(function(){return Q})),i.d(t,"P",(function(){return H})),i.d(t,"u",(function(){return G})),i.d(t,"Y",(function(){return W})),i.d(t,"yb",(function(){return Y})),i.d(t,"xb",(function(){return K})),i.d(t,"t",(function(){return Z})),i.d(t,"O",(function(){return X})),i.d(t,"W",(function(){return J})),i.d(t,"c",(function(){return ee})),i.d(t,"fb",(function(){return te})),i.d(t,"Z",(function(){return ie})),i.d(t,"d",(function(){return ne})),i.d(t,"A",(function(){return ae})),i.d(t,"tb",(function(){return re})),i.d(t,"ub",(function(){return oe})),i.d(t,"q",(function(){return se})),i.d(t,"L",(function(){return le})),i.d(t,"Ab",(function(){return ce})),i.d(t,"Db",(function(){return ue})),i.d(t,"Nb",(function(){return de})),i.d(t,"sb",(function(){return fe})),i.d(t,"J",(function(){return he})),i.d(t,"o",(function(){return pe})),i.d(t,"Fb",(function(){return me})),i.d(t,"nb",(function(){return ge})),i.d(t,"qb",(function(){return ve})),i.d(t,"rb",(function(){return be})),i.d(t,"jb",(function(){return ye})),i.d(t,"kb",(function(){return we})),i.d(t,"k",(function(){return _e})),i.d(t,"F",(function(){return Ie})),i.d(t,"db",(function(){return xe})),i.d(t,"f",(function(){return Se})),i.d(t,"B",(function(){return Te})),i.d(t,"Hb",(function(){return Ce})),i.d(t,"w",(function(){return ke})),i.d(t,"S",(function(){return Re})),i.d(t,"p",(function(){return De})),i.d(t,"K",(function(){return Le})),i.d(t,"U",(function(){return Oe})),i.d(t,"T",(function(){return $e})),i.d(t,"Kb",(function(){return Ne})),i.d(t,"Jb",(function(){return Ae})),i.d(t,"Eb",(function(){return Pe})),i.d(t,"Mb",(function(){return Ee})),i.d(t,"cb",(function(){return Me})),i.d(t,"Gb",(function(){return Fe})),i.d(t,"Ib",(function(){return je})),i.d(t,"Lb",(function(){return Ve})),i.d(t,"Cb",(function(){return qe})),i.d(t,"bb",(function(){return ze})),i.d(t,"x",(function(){return Be})),i.d(t,"Q",(function(){return Ue})),i.d(t,"Ob",(function(){return Qe}));var n=i("b775"),a=i("c5af");function r(){return Object(n["a"])({url:"/dictionary/getDicTree",method:"get"})}function o(e){return Object(n["a"])({url:"/dictionary/getDictionarySelectList",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/dictionary/addOrUpdateDictionary",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/dictionary/deleteDictionary/".concat(e),method:"delete"})}function c(e){return Object(n["a"])({url:"/hospital/getHospitalPageList",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/hospital/addOrUpdateHospital",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/hospital/deleteHospital/".concat(e),method:"delete"})}function f(e){return Object(n["a"])({url:"/site/getSiteList",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/site/addOrUpdateSite",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/site/deleteSite/".concat(e),method:"delete"})}function m(e){return Object(n["a"])({url:"/cro/getCROList",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/cro/addOrUpdateCro",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/cro/deleteCro/".concat(e),method:"delete"})}function b(e){return Object(n["a"])({url:"/sponsor/getSponsorList",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/sponsor/addOrUpdateSponsor",method:"post",data:e})}function w(e){return Object(n["a"])({url:"/sponsor/deleteSponsor/".concat(e),method:"delete"})}function _(e){return Object(n["a"])({url:"/QATemplate/GetQaTemplateList",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/QATemplate/AddOrUpdateQATemplate",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/QATemplate/DeleteQATemplate/".concat(e),method:"delete"})}function S(e,t){return Object(n["a"])({url:"/QATemplate/GetQATemplateConfigedList/".concat(e,"/").concat(t),method:"get"})}function T(e){return Object(n["a"])({url:"/QATemplate/ConfigQATemplateItem",method:"post",data:e})}function C(e){return Object(n["a"])({url:"/QATemplate/GetQATemplateItemList",method:"post",data:e})}function k(e){return Object(n["a"])({url:"/QATemplate/AddOrUpdateQATemplateItem",method:"post",data:e})}function R(e){return Object(n["a"])({url:"/QATemplate/DeleteQATemplateItem/".concat(e),method:"delete"})}function D(e){return Object(n["a"])({url:"/QCQuestionConfigure/getQCQuestionConfigureList",method:"post",data:e})}function L(e){return Object(n["a"])({url:"/QCQuestionConfigure/addOrUpdateQCQuestionConfigure",method:"post",data:e})}function O(e){return Object(n["a"])({url:"/QCQuestionConfigure/deleteQCQuestionConfigure/".concat(e),method:"delete"})}function $(e){return Object(n["a"])({url:"/SystemDocument/getSystemDocumentList",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/SystemDocument/addOrUpdateSystemDocument",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/SystemDocument/deleteSystemDocument/".concat(e),method:"delete"})}function P(e){var t=new FormData;return t.append("file",e),Object(n["a"])({url:"/TrialDocument/UploadSystemDoc",method:"post",data:t})}function E(e){return Object(n["a"])({url:"/CommonDocument/getCommonDocumentList",method:"post",data:e})}function M(e){return Object(n["a"])({url:"/CommonDocument/addOrUpdateCommonDocument",method:"post",data:e})}function F(e){var t=new FormData;return t.append("file",e),Object(n["a"])({url:"/CommonDocument/UploadCommonDoc",method:"post",data:t})}function j(e){return Object(a["a"])({url:"/CommonDocument/DownloadCommonDoc?code=".concat(e),method:"get",responseType:"blob"})}function V(e){return Object(a["a"])({url:"/CommonDocument/DownloadSystemClinicalFile?clinicalDataSystemSetId=".concat(e),method:"get",responseType:"blob"})}function q(e){return Object(n["a"])({url:"/EmailNoticeConfig/getEmailNoticeConfigList",method:"post",data:e})}function z(e){return Object(n["a"])({url:"/EmailNoticeConfig/deleteEmailNoticeConfig/".concat(e),method:"delete"})}function B(e){return Object(n["a"])({url:"/EmailNoticeConfig/addOrUpdateEmailNoticeConfig",method:"post",data:e})}function U(e){return Object(n["a"])({url:"/SystemBasicData/getBasicDataSelect",method:"post",data:e})}function Q(e){return Object(n["a"])({url:"/SystemBasicData/getSystemBasicDataList",method:"post",data:e})}function H(e){return Object(n["a"])({url:"/SystemBasicData/deleteSystemBasicData/".concat(e),method:"delete"})}function G(e){return Object(n["a"])({url:"/SystemBasicData/addOrUpdateSystemBasicData",method:"post",data:e})}function W(e){return Object(n["a"])({url:"/SystemBasicData/getChildList/".concat(e),method:"get"})}function Y(e){return Object(n["a"])({url:"/SystemBasicData/getSystemBasicData/".concat(e),method:"get"})}function K(e){return Object(n["a"])({url:"/SystemAnonymization/getSystemAnonymizationList",method:"post",data:e})}function Z(e){return Object(n["a"])({url:"/SystemAnonymization/addOrUpdateSystemAnonymization",method:"post",data:e})}function X(e){return Object(n["a"])({url:"/SystemAnonymization/deleteSystemAnonymization/".concat(e),method:"delete"})}function J(e){return Object(n["a"])({url:"/Dictionary/getBasicDicList",method:"post",data:e})}function ee(e){return Object(n["a"])({url:"/Dictionary/addOrUpdateBasicDic",method:"post",data:e})}function te(e){return Object(n["a"])({url:"/Dictionary/getChildList/".concat(e),method:"get"})}function ie(e){return Object(n["a"])({url:"/ClinicalDataSet/getSystemClinicalDataSystemSetList",method:"post",data:e})}function ne(e){return Object(n["a"])({url:"/ClinicalDataSet/addOrUpdateClinicalDataSystemSet",method:"post",data:e})}function ae(e){return Object(n["a"])({url:"/ClinicalDataSet/deleteClinicalSystemSetData/".concat(e),method:"delete"})}function re(e){return Object(n["a"])({url:"/ReadingQuestion/getReadingQuestionCriterionSystemList",method:"post",data:e})}function oe(e){return Object(n["a"])({url:"/ReadingQuestion/getReadingQuestionSystemList",method:"post",data:e})}function se(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateReadingQuestionSystem",method:"post",data:e})}function le(e){return Object(n["a"])({url:"/ReadingQuestion/deleteReadingQuestionSystem/".concat(e),method:"delete"})}function ce(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemCriterionOtherQuestion",method:"post",data:e})}function ue(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemGroupNameList",method:"post",data:e})}function de(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemReadingQuestionCriterionIsCompleteConfig",method:"post",data:e})}function fe(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/getReadingMedicineSystemQuestionList",method:"post",data:e})}function he(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/deleteReadingMedicineSystemQuestion/".concat(e),method:"delete"})}function pe(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/addOrUpdateReadingMedicineSystemQuestion",method:"post",data:e})}function me(e){return Object(n["a"])({url:"/ReadingImageTask/getSystemReadingQuestion",method:"post",data:e})}function ge(e){return Object(n["a"])({url:"/QCQuestionConfigure/GetQCQuestionSelectList",method:"post",data:e})}function ve(e){return Object(n["a"])({url:"/QCQuestionConfigure/getQuestionView",method:"post",data:e})}function be(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/getReadingMedicineSystemOtherQuestion",method:"post",data:e})}function ye(e){return Object(n["a"])({url:"/OrganInfo/getOrganInfoList",method:"post",data:e})}function we(e){return Object(n["a"])({url:"/OrganInfo/getOrganPageList",method:"post",data:e})}function _e(e){return Object(n["a"])({url:"/OrganInfo/addOrUpdateOrganInfo",method:"post",data:e})}function Ie(e){return Object(n["a"])({url:"/OrganInfo/deleteOrganInfo/".concat(e),method:"delete"})}function xe(e){return Object(n["a"])({url:"/OrganInfo/getCriterionNidusList",method:"post",data:e})}function Se(e){return Object(n["a"])({url:"/OrganInfo/addOrUpdateCriterionNidus",method:"post",data:e})}function Te(e){return Object(n["a"])({url:"/OrganInfo/deleteCriterionNidus/".concat(e),method:"delete"})}function Ce(e){return Object(n["a"])({url:"/ReadingQuestion/getTumorAssessmentPageList",method:"post",data:e})}function ke(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateTumorAssessment",method:"post",data:e})}function Re(e){return Object(n["a"])({url:"/ReadingQuestion/deleteTumorAssessment/".concat(e),method:"delete"})}function De(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateReadingQuestionCriterionSystem",method:"post",data:e})}function Le(e){return Object(n["a"])({url:"/ReadingQuestion/deleteReadingQuestionCriterionSystem/".concat(e),method:"delete"})}function Oe(e){return Object(n["a"])({url:"/Dictionary/getBasicConfigSelect?searchKey=".concat(e),method:"get"})}function $e(e){return Object(n["a"])({url:"/ReadingQuestion/getAssessType",method:"post",data:e})}function Ne(e){return Object(n["a"])({url:"/ReadingQuestion/setDictionaryFollowVisitUse",method:"post",data:e})}function Ae(e){return Object(n["a"])({url:"/ReadingQuestion/setDictionaryBaseLineUse",method:"post",data:e})}function Pe(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemOncologyInfo",method:"post",data:e})}function Ee(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemOncologyInfo",method:"post",data:e})}function Me(e){return Object(n["a"])({url:"/Dictionary/getCriterionDictionaryList?SystemCriterionId=".concat(e.SystemCriterionId),method:"get"})}function Fe(e){return Object(n["a"])({url:"/Dictionary/getTrialCriterionDictionaryList?TrialCriterionId=".concat(e.TrialCriterionId),method:"get"})}function je(e){return Object(n["a"])({url:"/ReadingQuestion/setCriterionDictionary",method:"post",data:e})}function Ve(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemGlobalInfo",method:"post",data:e})}function qe(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemGlobalInfo",method:"post",data:e})}function ze(e){return Object(n["a"])({url:"/Dictionary/getCriterionDictionary",method:"post",data:e})}function Be(e){return Object(n["a"])({url:"/ReadingQuestion/addSystemCriterionDictionaryCode",method:"post",data:e})}function Ue(e){return Object(n["a"])({url:"/ReadingQuestion/deleteSystemCriterionDictionary",method:"post",data:e})}function Qe(e){return Object(n["a"])({url:"/OrganInfo/synchronizeSystemOrgan",method:"post",data:e})}},e5a3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"EditRPStatus",attrs:{model:e.form,size:"small","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:readingStatus"),prop:"IsTakeEffect"}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.IsTakeEffect,callback:function(t){e.$set(e.form,"IsTakeEffect",t)},expression:"form.IsTakeEffect"}},e._l(e.$d.TakeEffect,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value,disabled:0===t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"EditRPStatus",props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,btnLoading:!1,visitPlanOptions:[],form:{Id:"",IsTakeEffect:null}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Object.keys(this.data).length>0)for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.TrialId=this.trialId;case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.EditRPStatus.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["Qe"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e5bc:function(e,t,i){"use strict";i("e042")},e5cc:function(e,t,i){"use strict";i("23df")},e61d:function(e,t,i){},e61e:function(e,t,i){},e64a:function(e,t,i){},e694:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"payment-settings"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{staticStyle:{"overflow-y":"auto"},attrs:{label:"Rates",name:"Rates"}},[e.load.Rates?i("rank-based-rates"):e._e(),e._v(" "),e.load.Rates?i("volume-reward"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Reviewers Data",name:"ReviewersData"}},[e.load.ReviewersData?i("reviewers-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trials Data",name:"TrialsData"}},[e.load.TrialsData?i("trials-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Exchange Rate",name:"ExchangeRate"}},[e.load.ExchangeRate?i("exchange-rate"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("f9dc")),o=i("4f6d"),s=i("eef3"),l=i("4ef0"),c=i("9a4e"),u={name:"Payment",components:{RankBasedRates:r["default"],VolumeReward:o["default"],ReviewersData:s["default"],TrialsData:l["default"],ExchangeRate:c["default"]},data:function(){return{activeTab:"Rates",load:{Rates:!0,ReviewersData:!1,TrialsData:!1,ExchangeRate:!1}}},computed:{},created:function(){this.$route.query.activeIndex&&(this.activeTab=this.$route.query.activeIndex)},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load={Rates:!1,ReviewersData:!1,TrialsData:!1,ExchangeRate:!1},this.load[e.name]=!0)}}},d=u,f=(i("e5cc"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},e6c9:function(e,t,i){"use strict";i("5c34")},e6cd:function(e,t,i){var n=i("6d8b");function a(){var e,t=[],i={};return{add:function(e,a,r,o,s){return n.isString(o)&&(s=o,o=0),!i[e.id]&&(i[e.id]=1,t.push({el:e,target:a,time:r,delay:o,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var n=t.length,a=0,r=t.length;a0&&0==t.row.RevenusUSD&&t.row.TrialCode?i("div",[i("span",{staticStyle:{color:"red"}},[e._v("Missing Trial unit price")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfit",label:"Gross profit($)","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.GrossProfit)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfitMargin",label:"Gross Profit Margin","min-width":"140","show-overflow-tooltip":"",formatter:e.grossProfitMarginFormatter}})],1)],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("0340"),s=i("3339"),l={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},listLoading:!1,spanArr:[],pos:0}},watch:{param:{handler:function(e,t){this.listQuery.CroId=e.CroId,this.listQuery.TrialCode=e.TrialCode,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate,this.listQuery.AttendedReviewerType=e.AttendedReviewerType?1*e.AttendedReviewerType:""},deep:!0}},mounted:function(){this.listQuery.CroId=this.param.CroId,this.listQuery.TrialCode=this.param.TrialCode,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.AttendedReviewerType=this.param.AttendedReviewerType?1*this.param.AttendedReviewerType:"",this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["D"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result,e.total=t.Result.TotalCount,e.getSpanArr(e.list)})).catch((function(){e.listLoading=!1}))},resetList:function(){this.getList()},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(1!==t){if("PaymentUSD"===e.property||"RevenusUSD"===e.property||"GrossProfit"===e.property||"GrossProfitMargin"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))?n[t]="":(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:s["a"].add(e,t)}),0),"GrossProfitMargin"===e.property?n[t]=0!==Number(n[8])?(Number(n[8])/Number(n[7])*100).toFixed(2)+"%":"0.00%":"PaymentUSD"!==e.property&&"RevenusUSD"!==e.property&&"GrossProfit"!==e.property||(n[t]=Number(n[t])))}}else n[t]="Total (Current Page)"})),n},grossProfitMarginFormatter:function(e){return Number(100*e.GrossProfitMargin).toFixed(2)+"%"},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(1===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t1&&(f="B5:B".concat(u+4));var h=["","Total","","","","",r,s,l,l/s];Object(o["a"])(e,t,"Analysis",i,n,c,h,a,f)}}},c=l,u=(i("340c"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"74526cdc",null);t["default"]=d.exports},e781:function(e,t,i){},e7a0:function(e,t,i){},e7aa:function(e,t,i){var n=i("2306"),a=i("c775"),r=a.getDefaultLabel;function o(e,t,i,a,o,l,c){var u=i.getModel("label"),d=i.getModel("emphasis.label");n.setLabelStyle(e,t,u,d,{labelFetcher:o,labelDataIndex:l,defaultText:r(o.getData(),l),isRectText:!0,autoColor:a}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=o},e7ca:function(e,t,i){"use strict";i("a915")},e7d2:function(e,t,i){var n=i("4a3f");function a(e,t,i,a,r,o,s,l,c,u,d){if(0===c)return!1;var f=c;if(d>t+f&&d>a+f&&d>o+f&&d>l+f||de+f&&u>i+f&&u>r+f&&u>s+f||u'});o.a.add(s);t["default"]=s},e86a:function(e,t,i){var n=i("9850"),a=i("5e76"),r=i("6d8b"),o=r.getContext,s=r.extend,l=r.retrieve2,c=r.retrieve3,u=r.trim,d={},f=0,h=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,m="12px sans-serif",g={};function v(e,t){g[e]=t}function b(e,t){t=t||m;var i=e+":"+t;if(d[i])return d[i];for(var n=(e+"").split("\n"),a=0,r=0,o=n.length;rh&&(f=0,d={}),f++,d[i]=a,a}function y(e,t,i,n,a,r,o,s){return o?_(e,t,i,n,a,r,o,s):w(e,t,i,n,a,r,s)}function w(e,t,i,a,r,o,s){var l=$(e,t,r,o,s),c=b(e,t);r&&(c+=r[1]+r[3]);var u=l.outerHeight,d=I(0,c,i),f=x(0,u,a),h=new n(d,f,c,u);return h.lineHeight=l.lineHeight,h}function _(e,t,i,a,r,o,s,l){var c=N(e,{rich:s,truncate:l,font:t,textAlign:i,textPadding:r,textLineHeight:o}),u=c.outerWidth,d=c.outerHeight,f=I(0,u,i),h=x(0,d,a);return new n(f,h,u,d)}function I(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function x(e,t,i){return"middle"===i?e-=t/2:"bottom"===i&&(e-=t),e}function S(e,t,i){var n=t.textPosition,a=t.textDistance,r=i.x,o=i.y;a=a||0;var s=i.height,l=i.width,c=s/2,u="left",d="top";switch(n){case"left":r-=a,o+=c,u="right",d="middle";break;case"right":r+=a+l,o+=c,d="middle";break;case"top":r+=l/2,o-=a,u="center",d="bottom";break;case"bottom":r+=l/2,o+=s+a,u="center";break;case"inside":r+=l/2,o+=c,u="center",d="middle";break;case"insideLeft":r+=a,o+=c,d="middle";break;case"insideRight":r+=l-a,o+=c,u="right",d="middle";break;case"insideTop":r+=l/2,o+=a,u="center";break;case"insideBottom":r+=l/2,o+=s-a,u="center",d="bottom";break;case"insideTopLeft":r+=a,o+=a;break;case"insideTopRight":r+=l-a,o+=a,u="right";break;case"insideBottomLeft":r+=a,o+=s-a,d="bottom";break;case"insideBottomRight":r+=l-a,o+=s-a,u="right",d="bottom";break}return e=e||{},e.x=r,e.y=o,e.textAlign=u,e.textVerticalAlign=d,e}function T(e,t,i){var n={textPosition:e,textDistance:i};return S({},n,t)}function C(e,t,i,n,a){if(!t)return"";var r=(e+"").split("\n");a=k(t,i,n,a);for(var o=0,s=r.length;o=r;c++)o-=r;var u=b(i,t);return u>o&&(i="",u=0),o=e-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=o,n.containerWidth=e,n}function R(e,t){var i=t.containerWidth,n=t.font,a=t.contentWidth;if(!i)return"";var r=b(e,n);if(r<=i)return e;for(var o=0;;o++){if(r<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?D(e,a,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*a/r):0;e=e.substr(0,s),r=b(e,n)}return""===e&&(e=t.placeholder),e}function D(e,t,i,n){for(var a=0,r=0,o=e.length;rd)e="",o=[];else if(null!=f)for(var h=k(f-(i?i[1]+i[3]:0),t,a.ellipsis,{minChar:a.minChar,placeholder:a.placeholder}),p=0,m=o.length;pr&&A(i,e.substring(r,o)),A(i,n[2],n[1]),r=p.lastIndex}rv)return{lines:[],width:0,height:0};S.textWidth=b(S.text,R);var O=T.textWidth,$=null==O||"auto"===O;if("string"===typeof O&&"%"===O.charAt(O.length-1))S.percentWidth=O,f.push(S),O=0;else{if($){O=S.textWidth;var N=T.textBackgroundColor,P=N&&N.image;P&&(P=a.findExistImage(P),a.isImageReady(P)&&(O=Math.max(O,P.width*D/P.height)))}var E=k?k[1]+k[3]:0;O+=E;var M=null!=g?g-I:null;null!=M&&M0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["I"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},getSite:function(){var e=this;Object(s["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},v=g,b=(i("3cf3"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"e73e63aa",null);t["default"]=y.exports},e887:function(e,t,i){var n=i("6d8b"),a=n.each,r=i("e1fc"),o=i("8918"),s=i("625e"),l=i("e0d3"),c=i("2306"),u=i("f47d"),d=u.createTask,f=i("cccd"),h=l.makeInner(),p=f();function m(){this.group=new r,this.uid=o.getUID("viewChart"),this.renderTask=d({plan:y,reset:w}),this.renderTask.context={view:this}}m.prototype={type:"chart",init:function(e,t){},render:function(e,t,i,n){},highlight:function(e,t,i,n){b(e.getData(),n,"emphasis")},downplay:function(e,t,i,n){b(e.getData(),n,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var g=m.prototype;function v(e,t,i){if(e&&(e.trigger(t,i),e.isGroup&&!c.isHighDownDispatcher(e)))for(var n=0,a=e.childCount();n2&&void 0!==arguments[2]?arguments[2]:0;if(n(this,e),i)if("string"==typeof i){var o=r.decodeAddress(i);this.nativeCol=o.col+a,this.nativeColOff=0,this.nativeRow=o.row+a,this.nativeRowOff=0}else void 0!==i.nativeCol?(this.nativeCol=i.nativeCol||0,this.nativeColOff=i.nativeColOff||0,this.nativeRow=i.nativeRow||0,this.nativeRowOff=i.nativeRowOff||0):void 0!==i.col?(this.col=i.col+a,this.row=i.row+a):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;this.worksheet=t}var t,i,o;return t=e,o=[{key:"asInstance",value:function(t){return t instanceof e||null==t?t:new e(t)}}],(i=[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}])&&a(t.prototype,i),o&&a(t,o),e}();t.exports=o},{"../utils/col-cache":19}],3:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i0||this.type===e.Types.Merge}},{key:"master",get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===e.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(t){this.type!==e.Types.Merge?(this._value.release(),this._value=S.create(S.getType(t),this,t)):this._value.master.value=t}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new u(e)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return s.escapeHtml(this.text)}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,i=this.workbook.definedNames;i.removeAllNames(this.fullAddress),e.forEach((function(e){i.addEx(t.fullAddress,e)}))}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:"model",get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){if(this._value.release(),this._value=S.create(e.type,this),this._value.model=e,e.comment)switch(e.comment.type){case"note":this._comment=u.fromModel(e.comment)}e.style?this.style=e.style:this.style={}}}]),e}();d.Types=l.ValueType;var f=function(){function e(t){n(this,e),this.model={address:t.address,type:d.Types.Null}}return r(e,[{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}},{key:"value",get:function(){return null},set:function(e){}},{key:"type",get:function(){return d.Types.Null}},{key:"effectiveType",get:function(){return d.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),h=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Number,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Number}},{key:"effectiveType",get:function(){return d.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),p=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:i}}return r(e,[{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.String}},{key:"effectiveType",get:function(){return d.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),m=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:i}}return r(e,[{key:"toString",value:function(){return this.model.value.richText.map((function(e){return e.text})).join("")}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.RichText}},{key:"effectiveType",get:function(){return d.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),g=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Date,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Date}},{key:"effectiveType",get:function(){return d.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),v=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}return r(e,[{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}},{key:"value",get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:"type",get:function(){return d.Types.Hyperlink}},{key:"effectiveType",get:function(){return d.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),b=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}return r(e,[{key:"isMergedTo",value:function(e){return e===this._master}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}},{key:"value",get:function(){return this._master.value},set:function(e){e instanceof d?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return d.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),y=function(){function e(t,i){n(this,e),this.cell=t,this.model={address:t.address,type:d.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}return r(e,[{key:"_copyModel",value:function(e){var t={},i=function(i){var n=e[i];n&&(t[i]=n)};return i("formula"),i("result"),i("ref"),i("shareType"),i("sharedFormula"),t}},{key:"validate",value:function(e){switch(S.getType(e)){case d.Types.Null:case d.Types.String:case d.Types.Number:case d.Types.Date:break;case d.Types.Hyperlink:case d.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&c(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:"formulaType",get:function(){return this.model.formula?l.FormulaType.Master:this.model.sharedFormula?l.FormulaType.Shared:l.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:"type",get:function(){return d.Types.Formula}},{key:"effectiveType",get:function(){var e=this.model.result;return null==e?l.ValueType.Null:e instanceof String||"string"==typeof e?l.ValueType.String:"number"==typeof e?l.ValueType.Number:e instanceof Date?l.ValueType.Date:e.text&&e.hyperlink?l.ValueType.Hyperlink:e.formula?l.ValueType.Formula:l.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),w=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.SharedString,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.SharedString}},{key:"effectiveType",get:function(){return d.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),_=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Boolean,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Boolean}},{key:"effectiveType",get:function(){return d.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),I=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Error,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Error}},{key:"effectiveType",get:function(){return d.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),x=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:JSON.stringify(i),rawValue:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:"type",get:function(){return d.Types.String}},{key:"effectiveType",get:function(){return d.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),S={getType:function(e){return null==e?d.Types.Null:e instanceof String||"string"==typeof e?d.Types.String:"number"==typeof e?d.Types.Number:"boolean"==typeof e?d.Types.Boolean:e instanceof Date?d.Types.Date:e.text&&e.hyperlink?d.Types.Hyperlink:e.formula||e.sharedFormula?d.Types.Formula:e.richText?d.Types.RichText:e.sharedString?d.Types.SharedString:e.error?d.Types.Error:d.Types.JSON},types:[{t:d.Types.Null,f:f},{t:d.Types.Number,f:h},{t:d.Types.String,f:p},{t:d.Types.Date,f:g},{t:d.Types.Hyperlink,f:v},{t:d.Types.Formula,f:y},{t:d.Types.Merge,f:b},{t:d.Types.JSON,f:x},{t:d.Types.SharedString,f:w},{t:d.Types.RichText,f:m},{t:d.Types.Boolean,f:_},{t:d.Types.Error,f:I}].reduce((function(e,t){return e[t.t]=t.f,e}),[]),create:function(e,t,i){var n=this.types[e];if(!n)throw new Error("Could not create Value of type ".concat(e));return new n(t,i)}};t.exports=d},{"../utils/col-cache":19,"../utils/shared-formula":22,"../utils/under-dash":25,"./enums":7,"./note":9}],4:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i=this._worksheet.properties.outlineLevelCol)}},{key:"isDefault",get:function(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"values",get:function(){var e=[];return this.eachCell((function(t,i){t&&t.type!==r.ValueType.Null&&(e[i]=t.value)})),e},set:function(e){var t=this;if(e){var i=this.number,n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((function(e,a){t._worksheet.getCell(a+n,i).value=e}))}}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}}])&&n(t.prototype,i),s&&n(t,s),e}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":25,"./enums":7}],5:[function(e,t,i){"use strict";function n(e,t){for(var i=0;ithis.bottom)&&(this.bottom=i),(!this.model.right||n>this.right)&&(this.right=n)}},{key:"expandRow",value:function(e){if(e){var t=e.dimensions,i=e.number;t&&this.expand(i,t.min,i,t.max)}}},{key:"expandToAddress",value:function(e){var t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottomthis.bottom||e.rightthis.right)}},{key:"contains",value:function(e){var t=r.decodeEx(e);return this.containsEx(t)}},{key:"containsEx",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}},{key:"forEachAddress",value:function(e){for(var t=this.left;t<=this.right;t++)for(var i=this.top;i<=this.bottom;i++)e(r.encodeAddress(i,t),i,t)}},{key:"top",get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:"left",get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:"right",get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:"_serialisedSheetName",get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?"".concat(e,"!"):"'".concat(e,"'!"):""}},{key:"tl",get:function(){return r.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(r.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return r.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(r.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}}])&&a(t.prototype,i),o&&a(t,o),e}();t.exports=o},{"../utils/col-cache":19}],11:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i2?n-2:0),r=2;r0)for(o=u;o>=i;o--)(s=this._cells[o-1])?((l=this.getCell(o+c)).value=s.value,l.style=s.style,l._comment=s._comment):this._cells[o+c-1]=void 0;for(o=0;oi.col)&&(e=i.col),t0?{min:e,max:t}:null}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var e=[],t=0,i=0;return this._cells.forEach((function(n){if(n){var a=n.model;a&&((!t||t>n.col)&&(t=n.col),i0,"Table must be on valid row"),n(s>0,"Table must be on valid col");var l=this.width,c=this.filterHeight,u=this.tableHeight;t.autoFilterRef=o.encode(r,s,r+c-1,s+l-1),t.tableRef=o.encode(r,s,r+u-1,s+l-1),t.columns.forEach((function(t,a){n(t.name,"Column ".concat(a," must have a name")),0===a?i(t,"totalsRowLabel","Total"):(i(t,"totalsRowFunction","none"),t.totalsRowFormula=e.getFormula(t))}))}},{key:"store",value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach((function(i){e[i]=t[i]}))},i=this.worksheet,n=this.table,a=n.tl,r=a.row,o=a.col,s=0;if(n.headerRow){var l=i.getRow(r+s++);n.columns.forEach((function(e,i){var n=e.style,a=e.name,r=l.getCell(o+i);r.value=a,t(r,n)}))}if(n.rows.forEach((function(e){var a=i.getRow(r+s++);e.forEach((function(e,i){var r=a.getCell(o+i);r.value=e,t(r,n.columns[i].style)}))})),n.totalsRow){var c=i.getRow(r+s++);n.columns.forEach((function(i,n){var a=c.getCell(o+n);if(0===n)a.value=i.totalsRowLabel;else{var r=e.getFormula(i);a.value=r?{formula:i.totalsRowFormula,result:i.totalsRowResult}:null}t(a,i.style)}))}}},{key:"load",value:function(e){var t=this,i=this.table,n=i.tl,a=n.row,r=n.col,o=0;if(i.headerRow){var s=e.getRow(a+o++);i.columns.forEach((function(e,t){s.getCell(r+t).value=e.name}))}if(i.rows.forEach((function(t){var i=e.getRow(a+o++);t.forEach((function(e,t){i.getCell(r+t).value=e}))})),i.totalsRow){var l=e.getRow(a+o++);i.columns.forEach((function(e,i){var n=l.getCell(r+i);0===i?n.value=e.totalsRowLabel:t.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var e=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:"getColumn",value:function(e){var t=this.table.columns[e];return new s(this,t,e)}},{key:"addColumn",value:function(e,t,i){this.cacheState(),void 0===i?(this.table.columns.push(e),this.table.rows.forEach((function(e,i){e.push(t[i])}))):(this.table.columns.splice(i,0,e),this.table.rows.forEach((function(e,n){e.splice(i,0,t[n])})))}},{key:"removeColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((function(i){i.splice(e,t)}))}},{key:"_assign",value:function(e,t,i){this.cacheState(),e[t]=i}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"model",get:function(){return this.table},set:function(e){this.table=e}},{key:"ref",get:function(){return this.table.ref},set:function(e){this._assign(this.table,"ref",e)}},{key:"name",get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(e){this.table.displayName=e}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,"headerRow",e)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,"totalsRow",e)}},{key:"theme",get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}]),e}();t.exports=l},{"../utils/col-cache":19}],13:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i31&&console.warn("Worksheet name ".concat(e," exceeds 31 chars. This will be truncated")),/[*?:/\\[\]]/.test(e))throw new Error("Worksheet name ".concat(e," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(e));if(e=(e||"sheet".concat(i)).substring(0,31),this._worksheets.find((function(t){return t&&t.name.toLowerCase()===e.toLowerCase()})))throw new Error("Worksheet name already exists: ".concat(e));t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));var n=this._worksheets.reduce((function(e,t){return(t&&t.orderNo)>e?t.orderNo:e}),0),r=Object.assign({},t,{id:i,name:e,orderNo:n+1,workbook:this}),o=new a(r);return this._worksheets[i]=o,o}},{key:"removeWorksheetEx",value:function(e){delete this._worksheets[e.id]}},{key:"removeWorksheet",value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:"getWorksheet",value:function(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((function(t){return t&&t.name===e})):void 0}},{key:"eachSheet",value:function(e){this.worksheets.forEach((function(t){e(t,t.id)}))}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}},{key:"getImage",value:function(e){return this.media[e]}},{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new s(this)),this._csv}},{key:"nextId",get:function(){for(var e=1;ee.length)&&(t=e.length);for(var i=0,n=new Array(t);ithis._columns.length)for(var i=this._columns.length+1;i<=e;)this._columns.push(new h(this,i++));return this._columns[e-1]}},{key:"spliceColumns",value:function(e,t){for(var i=this,n=this._rows,a=n.length,r=arguments.length,o=new Array(r>2?r-2:0),s=2;s0)for(var l=function(n){var a=[e,t];o.forEach((function(e){a.push(e[n]||null)}));var r=i.getRow(n+1);r.splice.apply(r,a)},c=0;c0)for(var p=f;p>=d;p--)this.getColumn(p+u).defn=this.getColumn(p).defn;for(var m=e;m1&&void 0!==arguments[1]?arguments[1]:"n",i=this._nextRow,n=this.getRow(i);return n.values=e,this._setStyleOption(i,"i"===t[0]?t:"n"),n}},{key:"addRows",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",n=[];return e.forEach((function(e){n.push(t.addRow(e,i))})),n}},{key:"insertRow",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,i),this.getRow(e)}},{key:"insertRows",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows.apply(this,[e,0].concat(o(t))),"n"!==i)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}},{key:"_copyStyle",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getRow(e),r=this.getRow(t);r.style=Object.freeze(a({},n.style)),n.eachCell({includeEmpty:i},(function(e,t){r.getCell(t).style=Object.freeze(a({},e.style))})),r.height=n.height}},{key:"duplicateRow",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this._rows[e-1],r=new Array(t).fill(a.values);this.spliceRows.apply(this,[e+1,n?0:t].concat(o(r)));for(var s=function(t){var n=i._rows[e+t];n.style=a.style,n.height=a.height,a.eachCell({includeEmpty:!0},(function(e,t){n.getCell(t).style=e.style}))},l=0;l2?a-2:0),o=2;o0)for(s=d;s>=n;s--)(l=this._rows[s-1])?function(){var e=i.getRow(s+u);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},(function(t,n){if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){var a=i.getRow(t._row._number+c).getCell(n),r=t._value._master,o=i.getRow(r._row._number+c).getCell(r._column._number);a.merge(o)}}))}():this._rows[s+u-1]=void 0;for(s=0;se.top||a>e.left)&&this.getCell(n,a).merge(i,t);this._merges[i.address]=e}},{key:"_unMergeMaster",value:function(e){var t=this._merges[e.address];if(t){for(var i=t.top;i<=t.bottom;i++)for(var n=t.left;n<=t.right;n++)this.getCell(i,n).unmerge();delete this._merges[e.address]}}},{key:"unMergeCells",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i3&&void 0!==arguments[3]?arguments[3]:"shared",r=u.decode(e),o=r.top,s=r.left,l=r.bottom,c=r.right,d=c-s+1,f=u.encodeAddress(o,s),h="shared"===a;n="function"==typeof i?i:Array.isArray(i)?Array.isArray(i[0])?function(e,t){return i[e-o][t-s]}:function(e,t){return i[(e-o)*d+(t-s)]}:function(){};for(var p=!0,m=o;m<=l;m++)for(var g=s;g<=c;g++)p?(this.getCell(m,g).value={shareType:a,formula:t,ref:e,result:n(m,g)},p=!1):this.getCell(m,g).value=h?{sharedFormula:f,result:n(m,g)}:n(m,g)}},{key:"addImage",value:function(e,t){var i={type:"image",imageId:e,range:t};this._media.push(new m(this,i))}},{key:"getImages",value:function(){return this._media.filter((function(e){return"image"===e.type}))}},{key:"addBackgroundImage",value:function(e){var t={type:"background",imageId:e};this._media.push(new m(this,t))}},{key:"getBackgroundImageId",value:function(){var e=this._media.find((function(e){return"background"===e.type}));return e&&e.imageId}},{key:"protect",value:function(e,t){var i=this;return new Promise((function(n){i.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(i.sheetProtection.algorithmName="SHA-512",i.sheetProtection.saltValue=b.randomBytes(16).toString("base64"),i.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,i.sheetProtection.hashValue=b.convertPasswordToHash(e,"SHA512",i.sheetProtection.saltValue,i.sheetProtection.spinCount)),t&&(i.sheetProtection=Object.assign(i.sheetProtection,t),!e&&"spinCount"in t&&delete i.sheetProtection.spinCount),n()}))}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(e){var t=new g(this,e);return this.tables[e.name]=t,t}},{key:"getTable",value:function(e){return this.tables[e]}},{key:"removeTable",value:function(e){delete this.tables[e]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(e){this.conditionalFormattings.push(e)}},{key:"removeConditionalFormatting",value:function(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:"_parseRows",value:function(e){var t=this;this._rows=[],e.rows.forEach((function(e){var i=new f(t,e.number);t._rows[i.number-1]=i,i.model=e}))}},{key:"_parseMergeCells",value:function(e){var t=this;c.each(e.mergeCells,(function(e){t.mergeCellsWithoutStyle(e)}))}},{key:"workbook",get:function(){return this._workbook}},{key:"dimensions",get:function(){var e=new d;return this._rows.forEach((function(t){if(t){var i=t.dimensions;i&&e.expand(t.number,i.min,t.number,i.max)}})),e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce((function(e,t){var i=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,i)}),0);var i=1,n=this._columns=[];e.forEach((function(e){var a=new h(t,i++,!1);n.push(a),a.defn=e}))}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var e=0;return this.eachRow((function(t){e=Math.max(e,t.cellCount)})),e}},{key:"actualColumnCount",get:function(){var e=[],t=0;return this.eachRow((function(i){i.eachCell((function(i){var n=i.col;e[n]||(e[n]=!0,t++)}))})),t}},{key:"_lastRowNumber",get:function(){for(var e=this._rows,t=e.length;t>0&&void 0===e[t-1];)t--;return t}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var e=0;return this.eachRow((function(){e++})),e}},{key:"hasMerges",get:function(){return c.some(this._merges,Boolean)}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}},{key:"model",get:function(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((function(e){return e.model})),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((function(e){return e.model})),conditionalFormattings:this.conditionalFormattings};e.cols=h.toModel(this.columns);var t=e.rows=[],i=e.dimensions=new d;return this._rows.forEach((function(e){var n=e&&e.model;n&&(i.expand(n.number,n.min,n.number,n.max),t.push(n))})),e.merges=[],c.each(this._merges,(function(t){e.merges.push(t.range)})),e},set:function(e){var t=this;this.name=e.name,this._columns=h.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new v(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((function(e){return new m(t,e)})),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((function(e,t){var i=new g;return i.model=t,e[t.name]=i,e}),{}),this.conditionalFormattings=e.conditionalFormattings}}])&&l(t.prototype,i),n&&l(t,n),e}();t.exports=y},{"../utils/col-cache":19,"../utils/encryptor":20,"../utils/under-dash":25,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,i){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var n={Workbook:e("./doc/workbook")},a=e("./doc/enums");Object.keys(a).forEach((function(e){n[e]=a[e]})),t.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":316,"core-js/modules/es.array.find-index":315,"core-js/modules/es.array.includes":317,"core-js/modules/es.array.iterator":318,"core-js/modules/es.number.is-nan":319,"core-js/modules/es.object.assign":320,"core-js/modules/es.object.keys":321,"core-js/modules/es.object.values":322,"core-js/modules/es.promise":323,"core-js/modules/es.string.from-code-point":324,"core-js/modules/es.string.includes":325,"core-js/modules/es.symbol":327,"core-js/modules/es.symbol.async-iterator":326,"regenerator-runtime/runtime":492}],16:[function(e,t,i){"use strict";var n="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");i.bufferToString=function(e){return"string"==typeof e?e:n?n.decode(e):e.toString()}},{}],17:[function(e,t,i){"use strict";var n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),a=e("buffer").Buffer;i.stringToBuffer=function(e){return"string"!=typeof e?e:n?a.from(n.encode(e).buffer):a.from(e)}},{buffer:216}],18:[function(e,t,i){"use strict";function n(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)n=(i=o-27)%26,a=Math.floor(i/26),t=this._dictionary[a]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)n=(i=o-703)%26,a=Math.floor(i/26)%26,r=Math.floor(i/676),t=this._dictionary[r]+this._dictionary[a]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: ".concat(e));return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error("".concat(e," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!s.test(e))throw new Error("Invalid Address: ".concat(e));return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var i,n=!1,a="",r=0,o=!1,s="",l=0,c=0;c=65&&i<=90)n=!0,a+=e[c],r=26*r+i-64;else if(i>=48&&i<=57)o=!0,s+=e[c],l=10*l+i-48;else if(o&&n&&36!==i)break;if(n){if(r>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(a))}else r=void 0;o||(l=void 0);var u={address:e=a+s,col:r,row:l,$col$row:"$".concat(a,"$").concat(s)};return r<=100&&l<=100&&(this._hash[e]=u,this._hash[u.$col$row]=u),u},getAddress:function(e,t){if(t){var i=this.n2l(t)+e;return this.decodeAddress(i)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var i=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),a={top:Math.min(i.row,n.row),left:Math.min(i.col,n.col),bottom:Math.max(i.row,n.row),right:Math.max(i.col,n.col)};return a.tl=this.n2l(a.left)+a.top,a.br=this.n2l(a.right)+a.bottom,a.dimensions="".concat(a.tl,":").concat(a.br),a}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=t[1]||t[2],n=t[3],a=n.split(":");if(a.length>1){var s=this.decodeAddress(a[0]),l=this.decodeAddress(a[1]),c=Math.min(s.row,l.row),u=Math.min(s.col,l.col),d=Math.max(s.row,l.row),f=Math.max(s.col,l.col);return s=this.n2l(u)+c,l=this.n2l(f)+d,{top:c,left:u,bottom:d,right:f,sheetName:i,tl:{address:s,col:u,row:c,$col$row:"$".concat(this.n2l(u),"$").concat(c),sheetName:i},br:{address:l,col:f,row:d,$col$row:"$".concat(this.n2l(f),"$").concat(d),sheetName:i},dimensions:"".concat(s,":").concat(l)}}if(n.startsWith("#"))return i?{sheetName:i,error:n}:{error:n};var h=this.decodeAddress(n);return i?function(e){for(var t=1;t=a&&c<=o&&u>=r&&u<=s}};t.exports=l},{}],20:[function(e,t,i){(function(i){"use strict";var n=e("crypto"),a={hash:function(e){for(var t=n.createHash(e),a=arguments.length,r=new Array(a>1?a-1:0),o=1;o3||3===d.length&&d>"XFD")return e;var p=n.l2n(d),m=parseInt(h,10);return u||(p+=s.col-o.col),f||(m+=s.row-o.row),(t||"")+(u||"")+n.n2l(p)+(f||"")+m}return e}))}}},{"./col-cache":19}],23:[function(e,t,i){(function(i,n){"use strict";function a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=n.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:"write",value:function(e,t,i){var n=Math.min(i,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}}]),e}(),g=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};u.inherits(g,c.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map((function(e){return e.toBuffer()})))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new m(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return r(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=function(t){return new Promise((function(i){t.write(e.toBuffer(),(function(){i()}))}))},i.next=3,Promise.all(t.pipes.map(n));case 3:case"end":return i.stop()}}),i)})))()},_writeToBuffers:function(e){for(var t=0,i=e.length;t1;)o._pipe(o.buffers.shift());r.next=29;break;case 21:if(o.corked){r.next=27;break}return r.next=24,o._pipe(s);case 24:a(),r.next=29;break;case 27:o._writeToBuffers(s),i.nextTick(a);case 29:r.next=34;break;case 31:o.paused||o.emit("data",s.toBuffer()),o._writeToBuffers(s),o.emit("readable");case 34:return r.abrupt("return",!0);case 35:case"end":return r.stop()}}),r)})))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,i){var n=this,a=function(e){e?i(e):(n._flush(),n.pipes.forEach((function(e){e.end()})),n.emit("finish"))};e?this.write(e,t,a):a()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var i=this.buffers[0],a=i.read(e);e-=a.length,t.push(a),i.eod&&i.full&&this.buffers.shift()}return n.concat(t)}return t=this.buffers.map((function(e){return e.toBuffer()})).filter(Boolean),this.buffers=[],n.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter((function(t){return t!==e}))},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),t.exports=g}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":24,"./utils":26,_process:467,buffer:216,"readable-stream":491}],24:[function(e,t,i){(function(e){"use strict";function i(e,t){for(var i=0;i=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}},{key:"addStringBuf",value:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}},{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}}])&&i(n.prototype,a),r&&i(n,r),t}();t.exports=n}).call(this,e("buffer").Buffer)},{buffer:216}],25:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=Object.prototype.toString,r=/["&<>]/,o={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((function(i){t(e[i],i)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((function(i){return t(e[i],i)})))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((function(i){return t(e[i],i)})))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((function(i){return t(e[i],i)})):[]},keyBy:function(e,t){return e.reduce((function(e,i){return e[i[t]]=i,e}),{})},isEqual:function(e,t){var i=n(e),a=n(t),r=Array.isArray(e),s=Array.isArray(t);if(i!==a)return!1;switch(n(e)){case"object":return r||s?!(!r||!s)&&e.length===t.length&&e.every((function(e,i){var n=t[i];return o.isEqual(e,n)})):o.every(e,(function(e,i){var n=t[i];return o.isEqual(e,n)}));default:return e===t}},escapeHtml:function(e){var t=r.exec(e);if(!t)return e;for(var i="",n="",a=0,o=t.index;o":n=">";break;default:continue}a!==o&&(i+=e.substring(a,o)),a=o+1,i+=n}return a!==o?i+e.substring(a,o):i},strcmp:function(e,t){return et?1:0},isUndefined:function(e){return"[object Undefined]"===a.call(e)},isObject:function(e){return"[object Object]"===a.call(e)},deepMerge:function(){var e,t,i,n=arguments[0]||{},a=arguments.length;function r(a,r){e=n[r],i=Array.isArray(a),o.isObject(a)||i?(i?(i=!1,t=e&&Array.isArray(e)?e:[]):t=e&&o.isObject(e)?e:{},n[r]=o.deepMerge(t,a)):o.isUndefined(a)||(n[r]=a)}for(var s=0;s&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop:function(){},promiseImmediate:function(e){return new Promise((function(i){t.setImmediate?n((function(){i(e)})):setTimeout((function(){i(e)}),1)}))},inherits:function(e,t,i,n){e.super_=t,n||(n=i,i=null),i&&Object.keys(i).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}));var a={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach((function(e){a[e]=Object.getOwnPropertyDescriptor(n,e)})),e.prototype=Object.create(t.prototype,a)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var i=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(i)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=o.parsePath(e);return"".concat(t.path,"/_rels/").concat(t.name,".rels")},xmlEncode:function(e){var t=r.exec(e);if(!t)return e;for(var i="",n="",a=0,o=t.index;o=11&&13!==s)){n="";break}continue}a!==o&&(i+=e.substring(a,o)),a=o+1,n&&(i+=n)}return a!==o?i+e.substring(a,o):i},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}}))},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:function(e){return new Promise((function(t){a.access(e,a.constants.F_OK,(function(e){t(!e)}))}))}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)}};i.exports=o}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:215,timers:521}],27:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i\n")}},{key:"openNode",value:function(e,t){var i=this.tos,n=this._xml;i&&this.open&&n.push(">"),this._stack.push(e),n.push("<"),n.push(e),s(n,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&o(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(r.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("")),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,i){this.openNode(e,t),void 0!==i&&this.writeText(i),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])&&n(t.prototype,i),a&&n(t,a),e}();l.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=l},{"./under-dash":25,"./utils":26}],28:[function(e,t,i){(function(i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e,t){for(var i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(i)return t}else if(i||e!==t)return e.toString()}},{key:"toStringAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toStringValue",value:function(e,t){return void 0===e?t:e}},{key:"toBoolAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(i)return t}else if(i||e!==t)return e?"1":"0"}},{key:"toBoolValue",value:function(e,t){return void 0===e?t:"1"===e}},{key:"toIntAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toIntValue",value:function(e,t){return void 0===e?t:parseInt(e,10)}},{key:"toFloatAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toFloatValue",value:function(e,t){return void 0===e?t:parseFloat(e)}}],i&&s(t.prototype,i),a&&s(t,a),e}();t.exports=d},{"../../utils/parse-sax":21,"../../utils/xml-stream":27}],32:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;ithis.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(e,t){if(e){var i=this.childXform;e.forEach((function(e){i.reconcile(e,t)}))}}}])&&a(t.prototype,i),n&&a(t,n),l}(e("./base-xform"));t.exports=c},{"./base-xform":31}],71:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i0");case"containsErrors":return"ISERROR(".concat(t,")");case"notContainsErrors":return"NOT(ISERROR(".concat(t,"))");default:return}}(t);i&&this.formulaXform.render(e,i),e.closeNode()}},{key:"renderTimePeriod",value:function(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var i=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new p(e.ref).tl;switch(e.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(t,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(t,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(t,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(t,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(t,",1)=TODAY()-1");case"today":return"FLOOR(".concat(t,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(t,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(t,",1)<=6,FLOOR(").concat(t,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(t,")=MONTH(TODAY()),YEAR(").concat(t,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0+1)))");default:return}}(t);i&&this.formulaXform.render(e,i),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return r(r({},function(e){var t=e.type,i=e.operator;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:i}}}(t)),{},{dxfId:f.toIntValue(t.dxfId),priority:f.toIntValue(t.priority),timePeriod:t.timePeriod,percent:f.toBoolValue(t.percent),bottom:f.toBoolValue(t.bottom),rank:f.toIntValue(t.rank),aboveAverage:f.toBoolValue(t.aboveAverage)})}},{key:"onParserClose",value:function(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}},{key:"tag",get:function(){return"cfRule"}}])&&s(t.prototype,i),n&&s(t,n),o}(h);t.exports=_},{"../../../../doc/range":10,"../../base-xform":31,"../../composite-xform":47,"./color-scale-xform":84,"./databar-xform":87,"./ext-lst-ref-xform":88,"./formula-xform":89,"./icon-set-xform":90}],83:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i1||s>1){var u=a.row+(r-1),f=a.col+(s-1);return d(d({},t.dataValidation),{},{sqref:"".concat(t.address,":").concat(m.encodeAddress(u,f))})}return d(d({},t.dataValidation),{},{sqref:t.address})}return null})).filter(Boolean)}(t);i.length&&(e.openNode("dataValidations",{count:i.length}),i.forEach((function(t){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((function(i,n){e.openNode("formula".concat(n+1)),"date"===t.type?e.writeText(p.dateToExcel(new Date(i))):e.writeText(i),e.closeNode()})),e.closeNode()})),e.closeNode())}},{key:"parseOpen",value:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&y(t,e.attributes,"allowBlank"),y(t,e.attributes,"showInputMessage"),y(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:b(t,e.attributes,"operator","between")}return b(t,e.attributes,"promptTitle"),b(t,e.attributes,"prompt"),b(t,e.attributes,"errorStyle"),b(t,e.attributes,"errorTitle"),b(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._formula&&this._formula.push(e)}},{key:"parseClose",value:function(e){var t=this;switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((function(e){e.includes(":")?new v(e).forEachAddress((function(e){t.model[e]=t._dataValidation})):t.model[e]=t._dataValidation})),!0;case"formula1":case"formula2":var i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=p.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0;default:return!0}}},{key:"tag",get:function(){return"dataValidations"}}])&&r(t.prototype,i),n&&r(t,n),c}(g);t.exports=w},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/utils":26,"../base-xform":31}],93:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans","".concat(t.min,":").concat(t.max)),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var n=this.map.c;t.cells.forEach((function(t){n.render(e,t,i)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map((function(e){return parseInt(e,10)})):[void 0,void 0],i=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(i.styleId=parseInt(e.attributes.s,10)),!0!==e.attributes.hidden&&"true"!==e.attributes.hidden&&1!==e.attributes.hidden&&"1"!==e.attributes.hidden||(i.hidden=!0),e.attributes.bestFit&&(i.bestFit=!0),e.attributes.ht&&(i.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(i.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(i.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var i=this.map.c;e.cells.forEach((function(e){i.reconcile(e,t)}))}},{key:"tag",get:function(){return"row"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../base-xform":31,"./cell-xform":72}],109:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i0){var r={Id:a(n),Type:f.Comments,Target:"../comments".concat(e.id,".xml")};n.push(r);var o={Id:a(n),Type:f.VmlDrawing,Target:"../drawings/vmlDrawing".concat(e.id,".vml")};n.push(o),e.comments.forEach((function(e){e.refAddress=u.decodeAddress(e.ref)})),t.commentRefs.push({commentName:"comments".concat(e.id),vmlDrawing:"vmlDrawing".concat(e.id)})}var s,l=[];e.media.forEach((function(r){if("background"===r.type){var o=a(n);s=t.media[r.imageId],n.push({Id:o,Type:f.Image,Target:"../media/".concat(s.name,".").concat(s.extension)}),e.background={rId:o},e.image=t.media[r.imageId]}else if("image"===r.type){var c=e.drawing;s=t.media[r.imageId],c||(c=e.drawing={rId:a(n),name:"drawing".concat(++t.drawingsCount),anchors:[],rels:[]},t.drawings.push(c),n.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(c.name,".xml")}));var u=i.preImageId===r.imageId?l[r.imageId]:l[c.rels.length];u||(u=a(c.rels),l[c.rels.length]=u,c.rels.push({Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(s.name,".").concat(s.extension)}));var d={picture:{rId:u},range:r.range};if(r.hyperlinks&&r.hyperlinks.hyperlink){var h=a(c.rels);l[c.rels.length]=h,d.picture.hyperlinks={tooltip:r.hyperlinks.tooltip,rId:h},c.rels.push({Id:h,Type:f.Hyperlink,Target:r.hyperlinks.hyperlink,TargetMode:"External"})}i.preImageId=r.imageId,c.anchors.push(d)}})),e.tables.forEach((function(e){var i=a(n);e.rId=i,n.push({Id:i,Type:f.Table,Target:"../tables/".concat(e.target)}),e.columns.forEach((function(e){var i=e.style;i&&(e.dxfId=t.styles.addDxfStyle(i))}))})),this.map.extLst.prepare(e,t)}},{key:"render",value:function(e,t){e.openXml(d.StdDocAttributes),e.openNode("worksheet",l.WORKSHEET_ATTRIBUTES);var i=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(i.defaultColWidth=t.properties.defaultColWidth);var n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},a=t.pageSetup&&t.pageSetup.margins,r={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},o=t.sheetProtection;this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,i),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,o),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,r),this.map.pageMargins.render(e,a),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach((function(t){t.Type===f.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(c.each(this.map,(function(e){e.reset()})),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"worksheet":var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var i={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(i,this.map.pageSetup.model,this.map.printOptions.model),a=M(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:a},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1;default:return!0}}},{key:"reconcile",value:function(e,t){var i=(e.relationships||[]).reduce((function(i,n){if(i[n.Id]=n,n.Type===f.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===f.VmlDrawing&&e.comments&&e.comments.length){var a=t.vmlDrawings[n.Target].comments;e.comments.forEach((function(e,t){e.note=Object.assign({},e.note,a[t])}))}return i}),{});if(t.commentsMap=(e.comments||[]).reduce((function(e,t){return t.ref&&(e[t.ref]=t),e}),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((function(e,t){return t.rId&&(e[t.address]=i[t.rId].Target),e}),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){var n=i[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){var a=n[1];t.drawings[a].anchors.forEach((function(t){if(t.medium){var i={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(i)}}))}}var r=e.background&&i[e.background.rId];if(r){var o=r.Target.split("/media/")[1],s=t.mediaIndex&&t.mediaIndex[o];void 0!==s&&e.media.push({type:"background",imageId:s})}e.tables=(e.tables||[]).map((function(e){var n=i[e.rId];return t.tables[n.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}])&&a(t.prototype,i),n&&a(t,n),l}(p);F.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=F},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../../rel-type":30,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":71,"./cf/conditional-formattings-xform":86,"./col-xform":91,"./data-validations-xform":92,"./dimension-xform":93,"./drawing-xform":94,"./ext-lst-xform":95,"./header-footer-xform":96,"./hyperlink-xform":97,"./merge-cell-xform":98,"./merges":99,"./page-margins-xform":102,"./page-setup-xform":104,"./picture-xform":105,"./print-options-xform":106,"./row-breaks-xform":107,"./row-xform":108,"./sheet-format-properties-xform":109,"./sheet-properties-xform":110,"./sheet-protection-xform":111,"./sheet-view-xform":112,"./table-part-xform":113}],115:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i=-90&&e<=90?e:void 0}},indent:function(e){return e=d.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return u.ReadingOrder.LeftToRight;case"rtl":return u.ReadingOrder.RightToLeft;default:return}}},p=function(e){if(e=h.textRotation(e)){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},m=function(e){var t=d.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}},g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.addRollback(),e.openNode("alignment");var i=!1;function n(t,n){n&&(e.addAttribute(t,n),i=!0)}n("horizontal",h.horizontal(t.horizontal)),n("vertical",h.vertical(t.vertical)),n("wrapText",!!h.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!h.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",h.indent(t.indent)),n("textRotation",p(t.textRotation)),n("readingOrder",h.readingOrder(t.readingOrder)),e.closeNode(),i?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={},i=!1;function n(e,n,a){e&&(t[n]=a,i=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",!!e.attributes.wrapText),n(e.attributes.shrinkToFit,"shrinkToFit",!!e.attributes.shrinkToFit),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",m(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=i?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"alignment"}}])&&r(t.prototype,i),n&&r(t,n),c}(f);t.exports=g},{"../../../doc/enums":7,"../../../utils/utils":26,"../base-xform":31}],126:[function(e,t,i){"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t=1)){e.next=6;break}return r=n.substr(a+1),o=n.substr(0,a),e.next=6,new Promise((function(e,a){var s=new f;s.on("finish",(function(){i.mediaIndex[n]=i.media.length,i.mediaIndex[o]=i.media.length;var t={type:"image",name:o,extension:r,buffer:s.toBuffer()};i.media.push(t),e()})),t.on("error",(function(e){a(e)})),t.pipe(s)}));case 6:case"end":return e.stop()}}),e)}))),function(e,t,i){return K.apply(this,arguments)})},{key:"_processDrawingEntry",value:(Y=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new S,e.next=3,a.parseStream(t);case 3:r=e.sent,i.drawings[n]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return Y.apply(this,arguments)})},{key:"_processDrawingRelsEntry",value:(W=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new y,e.next=3,a.parseStream(t);case 3:r=e.sent,i.drawingRels[n]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return W.apply(this,arguments)})},{key:"_processVmlDrawingEntry",value:(G=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new k,e.next=3,a.parseStream(t);case 3:r=e.sent,i.vmlDrawings["../drawings/".concat(n,".vml")]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return G.apply(this,arguments)})},{key:"_processThemeEntry",value:(H=r(regeneratorRuntime.mark((function e(t,i,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,a){var r=new f;t.on("error",a),r.on("error",a),r.on("finish",(function(){i.themes[n]=r.read().toString(),e()})),t.pipe(r)}));case 2:case"end":return e.stop()}}),e)}))),function(e,t,i){return H.apply(this,arguments)})},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:(Q=r(regeneratorRuntime.mark((function e(t,i){var a,r,o,l,c,d,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new u)),a=[],r=!0,o=!1,e.prev=4,c=s(t);case 6:return e.next=8,c.next();case 8:return d=e.sent,r=d.done,e.next=12,d.value;case 12:if(f=e.sent,r){e.next=19;break}h=f,a.push(h);case 16:r=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),o=!0,l=e.t0;case 25:if(e.prev=25,e.prev=26,r||null==c.return){e.next=30;break}return e.next=30,c.return();case 30:if(e.prev=30,!o){e.next=33;break}throw l;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",this.load(n.concat(a),i));case 36:case"end":return e.stop()}}),e,this,[[4,21,25,35],[26,,30,34]])}))),function(e,t){return Q.apply(this,arguments)})},{key:"load",value:(U=r(regeneratorRuntime.mark((function e(t,a){var r,o,s,l,d,f,h,p,y,w,I,x,S,T,C,k;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a&&a.base64?n.from(t.toString(),"base64"):t,o={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=4,c.loadAsync(r);case 4:s=e.sent,l=0,d=Object.values(s.files);case 6:if(!(l0&&(i=new p,r.render(i,e),t.append(i.xml,{name:"xl/comments".concat(e.id,".xml")}),i=new p,o.render(i,e),t.append(i.xml,{name:"xl/drawings/vmlDrawing".concat(e.id,".vml")}))}));case 5:case"end":return e.stop()}}),e)}))),function(e,t){return N.apply(this,arguments)})},{key:"_finalize",value:function(e){var t=this;return new Promise((function(i,n){e.on("finish",(function(){i(t)})),e.on("error",n),e.finalize()}))}},{key:"prepareModel",value:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new b,e.styles=e.useStyles?new g(!0):new g.Mock;var i=new I,n=new x;i.prepare(e);var a={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};a.drawings=e.drawings=[],a.commentRefs=e.commentRefs=[];var r=0;e.tables=[],e.worksheets.forEach((function(t){t.tables.forEach((function(t){r++,t.target="table".concat(r,".xml"),t.id=r,e.tables.push(t)})),n.prepare(t,a)}))}},{key:"write",value:($=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=i||{},n=this.workbook.model,(a=new d.ZipWriter(i.zip)).pipe(t),this.prepareModel(n,i),e.next=7,this.addContentTypes(a,n);case 7:return e.next=9,this.addOfficeRels(a,n);case 9:return e.next=11,this.addWorkbookRels(a,n);case 11:return e.next=13,this.addWorksheets(a,n);case 13:return e.next=15,this.addSharedStrings(a,n);case 15:return e.next=17,this.addDrawings(a,n);case 17:return e.next=19,this.addTables(a,n);case 19:return e.next=21,Promise.all([this.addThemes(a,n),this.addStyles(a,n)]);case 21:return e.next=23,this.addMedia(a,n);case 23:return e.next=25,Promise.all([this.addApp(a,n),this.addCore(a,n)]);case 25:return e.next=27,this.addWorkbook(a,n);case 27:return e.abrupt("return",this._finalize(a));case 28:case"end":return e.stop()}}),e,this)}))),function(e,t){return $.apply(this,arguments)})},{key:"writeFile",value:function(e,t){var i=this,n=l.createWriteStream(e);return new Promise((function(e,a){n.on("finish",(function(){e()})),n.on("error",(function(e){a(e)})),i.write(n,t).then((function(){n.end()}))}))}},{key:"writeBuffer",value:(O=r(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new f,e.next=3,this.write(i,t);case 3:return e.abrupt("return",i.read());case 4:case"end":return e.stop()}}),e,this)}))),function(e){return O.apply(this,arguments)})}])&&o(t.prototype,a),L&&o(t,L),e}();L.RelType=e("./rel-type"),t.exports=L}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":23,"../utils/utils":26,"../utils/xml-stream":27,"../utils/zip-stream":28,"./rel-type":30,"./xform/book/workbook-xform":37,"./xform/comment/comments-xform":39,"./xform/comment/vml-notes-xform":44,"./xform/core/app-xform":50,"./xform/core/content-types-xform":51,"./xform/core/core-xform":52,"./xform/core/relationships-xform":54,"./xform/drawing/drawing-xform":61,"./xform/sheet/worksheet-xform":114,"./xform/strings/shared-strings-xform":123,"./xform/style/styles-xform":134,"./xform/table/table-xform":140,"./xml/theme1.js":142,_process:467,buffer:216,fs:215,jszip:399,"readable-stream":491}],142:[function(e,t,i){"use strict";t.exports='\n '},{}],143:[function(e,t,i){(function(t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,i||{}),void 0===(null==i?void 0:i.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==i?void 0:i.quote)?this.quote='"':!1===(null==i?void 0:i.quote)&&(this.quote=""),"string"!=typeof(null==i?void 0:i.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=i.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}},{}],145:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},a=[],r=new l.Writable({write:function(e,t,i){a.push(e),i()}});return new Promise((function(o,s){r.on("error",s).on("finish",(function(){return o(t.concat(a))})),i.write(e,n).pipe(r)}))},i.writeToString=function(e,t){return i.writeToBuffer(e,t).then((function(e){return e.toString()}))},i.writeToPath=function(e,t,n){var a=c.createWriteStream(e,{encoding:"utf8"});return i.write(t,n).pipe(a)}}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":143,"./FormatterOptions":144,"./types":149,buffer:216,fs:215,stream:506,util:525}],149:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncTransform=void 0,i.isSyncTransform=function(e){return 1===e.length}},{}],150:[function(e,t,i){(function(t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i1?i-1:0),a=1;a=a||n.hasHitRowLimit)return i();if(n.parsedLineCount+=1,n.shouldSkipLine)return s();var l=e[o];n.rowCount+=1,n.parsedRowCount+=1;var c=n.rowCount;return n.transformRow(l,(function(e,t){if(e)return n.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return n.pushRow(t.row,s)}else n.emit("data-invalid",t.row,c,t.reason);return s()}))}(0)}},{key:"transformRow",value:function(e,t){var i=this;try{this.headerTransformer.transform(e,(function(n,a){return n?t(n):a?a.isValid?a.row?i.shouldEmitRows?i.rowTransformerValidator.transformAndValidate(a.row,t):i.skipRow(t):(i.rowCount-=1,i.parsedRowCount-=1,t(null,{row:null,isValid:!0})):i.shouldEmitRows?t(null,{isValid:!1,row:e}):i.skipRow(t):t(new Error("Expected result from header transform"))}))}catch(e){t(e)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}},{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}}])&&a(i.prototype,n),l&&a(i,l),p}(d.Transform);i.CsvParserStream=p}).call(this,e("timers").setImmediate)},{"./parser":162,"./transforms":165,stream:506,string_decoder:520,timers:521}],151:[function(e,t,i){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.ParserOptions=void 0;var a=n(e("lodash.escaperegexp")),r=n(e("lodash.isnil"));i.ParserOptions=function e(t){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=null!==(i=this.escape)&&void 0!==i?i:this.quote,this.supportsComments=!r.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)}},{"lodash.escaperegexp":426,"lodash.isnil":431}],152:[function(e,t,i){"use strict";var n=Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]},a=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return a(t,e),t},o=function(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||n(t,e,i)};Object.defineProperty(i,"__esModule",{value:!0}),i.parseString=i.parseFile=i.parseStream=i.parse=void 0;var s=r(e("fs")),l=e("stream"),c=e("./ParserOptions"),u=e("./CsvParserStream");o(e("./types"),i);var d=e("./CsvParserStream");Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),i.parse=function(e){return new u.CsvParserStream(new c.ParserOptions(e))},i.parseStream=function(e,t){return e.pipe(new u.CsvParserStream(new c.ParserOptions(t)))},i.parseFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new c.ParserOptions(t)))},i.parseString=function(e,t){var i=new l.Readable;return i.push(e),i.push(null),i.pipe(new u.CsvParserStream(new c.ParserOptions(t)))}},{"./CsvParserStream":150,"./ParserOptions":151,"./types":166,fs:215,stream:506}],153:[function(e,t,i){"use strict";function n(e,t){for(var i=0;ithis.cursor}},{key:"nextNonSpaceToken",get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;var i=t.exec(e);if(null==i)return null;var n=i[1],r=this.cursor+(i.index||0);return new a.Token({token:n,startCursor:r,endCursor:r+n.length-1})}},{key:"nextCharacterToken",get:function(){var e=this.cursor;return this.lineLength<=e?null:new a.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}}])&&n(t.prototype,i),o&&n(t,o),e}();i.Scanner=o},{"./Token":156}],156:[function(e,t,i){"use strict";function n(e,t){for(var i=0;ithis.headersLength){if(!t.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length));return{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}}return t.strictColumnHandling&&e.length1}));throw new Error("Duplicate headers found ".concat(JSON.stringify(a)))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}])&&n(t.prototype,i),a&&n(t,a),e}();i.HeaderTransformer=c},{"lodash.groupby":427,"lodash.isfunction":430,"lodash.isundefined":432,"lodash.uniq":433}],164:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i>6],a=0==(32&i);if(31==(31&i)){var r=i;for(i=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;i<<=7,i|=127&r}}else i&=31;return{cls:n,primitive:a,tag:i,tagStr:s.tag[i]}}function d(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var a=127&n;if(a>4)return e.error("length octect is too long");n=0;for(var r=0;r=31?n.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|o.tagClassByName[i||"universal"]<<6)}(e,t,i,this.reporter);if(n.length<128){var s=a.alloc(2);return s[0]=r,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var l=1,c=n.length;c>=256;c>>=8)l++;var u=a.alloc(2+l);u[0]=r,u[1]=128|l;for(var d=1+l,f=n.length;f>0;d--,f>>=8)u[d]=255&f;return this._createEncoderBuffer([u,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=a.alloc(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s=128;l>>=7)o++}for(var c=a.alloc(o),u=c.length-1,d=e.length-1;d>=0;d--){var f=e[d];for(c[u--]=127&f;(f>>=7)>0;)c[u--]=128|127&f}return this._createEncoderBuffer(c)},l.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=a.from(i)}if(a.isBuffer(e)){var n=e.length;0===e.length&&n++;var r=a.alloc(n);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var l=new Array(o),c=l.length-1;c>=0;c--)l[c]=255&e,e>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(a.from(l))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,i){var n,a=this._baseState;if(null===a.default)return!1;var r=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,i).join()),r.length!==a.defaultBuffer.length)return!1;for(n=0;n=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(e,t,i,n){for(var a=0,r=Math.min(e.length,i),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===n(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"===n(e))return this._initArray(e,t,i);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[r]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===i)for(n=0,r=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)a=l(e,i,i+6),this.words[n]|=a<>>26-r&4194303,(r+=24)>=26&&(r-=26,n++);i+6!==t&&(a=l(e,t,i+6),this.words[n]|=a<>>26-r&4194303),this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var r=e.length-i,o=r%n,s=Math.min(r,r-o)+i,l=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var a=0|e.words[0],r=0|t.words[0],o=a*r,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(o=(a=0|e.words[p])*(r=0|t.words[h])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,r=0,o=0;o>>24-n&16777215)||o!==this.length-1?u[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,o--)}for(0!==r&&(i=r.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);i=(p=p.idivn(h)).isZero()?m+i:u[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),r=i||Math.max(1,n);a(n<=r,"byte array longer than desired length"),a(r>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(r),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var a=0,r=0;r>>26;for(;0!==a&&r>>26;if(this.length=i.length,0!==a)this.words[this.length]=a,this.length++;else if(i!==this)for(;re.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==r&&o>26,this.words[o]=67108863&t;if(0===r&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],w=8191&y,_=y>>>13,I=0|o[4],x=8191&I,S=I>>>13,T=0|o[5],C=8191&T,k=T>>>13,R=0|o[6],D=8191&R,L=R>>>13,O=0|o[7],$=8191&O,N=O>>>13,A=0|o[8],P=8191&A,E=A>>>13,M=0|o[9],F=8191&M,j=M>>>13,V=0|s[0],q=8191&V,z=V>>>13,B=0|s[1],U=8191&B,Q=B>>>13,H=0|s[2],G=8191&H,W=H>>>13,Y=0|s[3],K=8191&Y,Z=Y>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,ae=0|s[6],re=8191&ae,oe=ae>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,q))|0)+((8191&(a=(a=Math.imul(d,z))+Math.imul(f,q)|0))<<13)|0;c=((r=Math.imul(f,z))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),a=(a=Math.imul(p,z))+Math.imul(m,q)|0,r=Math.imul(m,z);var ve=(c+(n=n+Math.imul(d,U)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(f,U)|0))<<13)|0;c=((r=r+Math.imul(f,Q)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,q),a=(a=Math.imul(v,z))+Math.imul(b,q)|0,r=Math.imul(b,z),n=n+Math.imul(p,U)|0,a=(a=a+Math.imul(p,Q)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,Q)|0;var be=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(f,G)|0))<<13)|0;c=((r=r+Math.imul(f,W)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),a=(a=Math.imul(w,z))+Math.imul(_,q)|0,r=Math.imul(_,z),n=n+Math.imul(v,U)|0,a=(a=a+Math.imul(v,Q)|0)+Math.imul(b,U)|0,r=r+Math.imul(b,Q)|0,n=n+Math.imul(p,G)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(m,G)|0,r=r+Math.imul(m,W)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(f,K)|0))<<13)|0;c=((r=r+Math.imul(f,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,z))+Math.imul(S,q)|0,r=Math.imul(S,z),n=n+Math.imul(w,U)|0,a=(a=a+Math.imul(w,Q)|0)+Math.imul(_,U)|0,r=r+Math.imul(_,Q)|0,n=n+Math.imul(v,G)|0,a=(a=a+Math.imul(v,W)|0)+Math.imul(b,G)|0,r=r+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((r=r+Math.imul(f,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,q),a=(a=Math.imul(C,z))+Math.imul(k,q)|0,r=Math.imul(k,z),n=n+Math.imul(x,U)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,Q)|0,n=n+Math.imul(w,G)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(_,G)|0,r=r+Math.imul(_,W)|0,n=n+Math.imul(v,K)|0,a=(a=a+Math.imul(v,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(f,ie)|0))<<13)|0;c=((r=r+Math.imul(f,ne)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,q),a=(a=Math.imul(D,z))+Math.imul(L,q)|0,r=Math.imul(L,z),n=n+Math.imul(C,U)|0,a=(a=a+Math.imul(C,Q)|0)+Math.imul(k,U)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(x,G)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(S,G)|0,r=r+Math.imul(S,W)|0,n=n+Math.imul(w,K)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(_,K)|0,r=r+Math.imul(_,Z)|0,n=n+Math.imul(v,J)|0,a=(a=a+Math.imul(v,ee)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,ee)|0,n=n+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,r=r+Math.imul(m,ne)|0;var Ie=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(f,re)|0))<<13)|0;c=((r=r+Math.imul(f,oe)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul($,q),a=(a=Math.imul($,z))+Math.imul(N,q)|0,r=Math.imul(N,z),n=n+Math.imul(D,U)|0,a=(a=a+Math.imul(D,Q)|0)+Math.imul(L,U)|0,r=r+Math.imul(L,Q)|0,n=n+Math.imul(C,G)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(k,G)|0,r=r+Math.imul(k,W)|0,n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(S,K)|0,r=r+Math.imul(S,Z)|0,n=n+Math.imul(w,J)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(_,J)|0,r=r+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,a=(a=a+Math.imul(v,ne)|0)+Math.imul(b,ie)|0,r=r+Math.imul(b,ne)|0,n=n+Math.imul(p,re)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,oe)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((r=r+Math.imul(f,ce)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,q),a=(a=Math.imul(P,z))+Math.imul(E,q)|0,r=Math.imul(E,z),n=n+Math.imul($,U)|0,a=(a=a+Math.imul($,Q)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,Q)|0,n=n+Math.imul(D,G)|0,a=(a=a+Math.imul(D,W)|0)+Math.imul(L,G)|0,r=r+Math.imul(L,W)|0,n=n+Math.imul(C,K)|0,a=(a=a+Math.imul(C,Z)|0)+Math.imul(k,K)|0,r=r+Math.imul(k,Z)|0,n=n+Math.imul(x,J)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(S,J)|0,r=r+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,ne)|0)+Math.imul(_,ie)|0,r=r+Math.imul(_,ne)|0,n=n+Math.imul(v,re)|0,a=(a=a+Math.imul(v,oe)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,oe)|0,n=n+Math.imul(p,le)|0,a=(a=a+Math.imul(p,ce)|0)+Math.imul(m,le)|0,r=r+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((r=r+Math.imul(f,fe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,z))+Math.imul(j,q)|0,r=Math.imul(j,z),n=n+Math.imul(P,U)|0,a=(a=a+Math.imul(P,Q)|0)+Math.imul(E,U)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul($,G)|0,a=(a=a+Math.imul($,W)|0)+Math.imul(N,G)|0,r=r+Math.imul(N,W)|0,n=n+Math.imul(D,K)|0,a=(a=a+Math.imul(D,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,n=n+Math.imul(C,J)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(k,J)|0,r=r+Math.imul(k,ee)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(S,ie)|0,r=r+Math.imul(S,ne)|0,n=n+Math.imul(w,re)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(_,re)|0,r=r+Math.imul(_,oe)|0,n=n+Math.imul(v,le)|0,a=(a=a+Math.imul(v,ce)|0)+Math.imul(b,le)|0,r=r+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,a=(a=a+Math.imul(p,fe)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,fe)|0;var Te=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((r=r+Math.imul(f,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,U),a=(a=Math.imul(F,Q))+Math.imul(j,U)|0,r=Math.imul(j,Q),n=n+Math.imul(P,G)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(E,G)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul($,K)|0,a=(a=a+Math.imul($,Z)|0)+Math.imul(N,K)|0,r=r+Math.imul(N,Z)|0,n=n+Math.imul(D,J)|0,a=(a=a+Math.imul(D,ee)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,ee)|0,n=n+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,ne)|0)+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(S,re)|0,r=r+Math.imul(S,oe)|0,n=n+Math.imul(w,le)|0,a=(a=a+Math.imul(w,ce)|0)+Math.imul(_,le)|0,r=r+Math.imul(_,ce)|0,n=n+Math.imul(v,de)|0,a=(a=a+Math.imul(v,fe)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,fe)|0;var Ce=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((r=r+Math.imul(m,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),a=(a=Math.imul(F,W))+Math.imul(j,G)|0,r=Math.imul(j,W),n=n+Math.imul(P,K)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(E,K)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul($,J)|0,a=(a=a+Math.imul($,ee)|0)+Math.imul(N,J)|0,r=r+Math.imul(N,ee)|0,n=n+Math.imul(D,ie)|0,a=(a=a+Math.imul(D,ne)|0)+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,n=n+Math.imul(C,re)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(k,re)|0,r=r+Math.imul(k,oe)|0,n=n+Math.imul(x,le)|0,a=(a=a+Math.imul(x,ce)|0)+Math.imul(S,le)|0,r=r+Math.imul(S,ce)|0,n=n+Math.imul(w,de)|0,a=(a=a+Math.imul(w,fe)|0)+Math.imul(_,de)|0,r=r+Math.imul(_,fe)|0;var ke=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(a=(a=a+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((r=r+Math.imul(b,me)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,K),a=(a=Math.imul(F,Z))+Math.imul(j,K)|0,r=Math.imul(j,Z),n=n+Math.imul(P,J)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(E,J)|0,r=r+Math.imul(E,ee)|0,n=n+Math.imul($,ie)|0,a=(a=a+Math.imul($,ne)|0)+Math.imul(N,ie)|0,r=r+Math.imul(N,ne)|0,n=n+Math.imul(D,re)|0,a=(a=a+Math.imul(D,oe)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,oe)|0,n=n+Math.imul(C,le)|0,a=(a=a+Math.imul(C,ce)|0)+Math.imul(k,le)|0,r=r+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,fe)|0)+Math.imul(S,de)|0,r=r+Math.imul(S,fe)|0;var Re=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((r=r+Math.imul(_,me)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,J),a=(a=Math.imul(F,ee))+Math.imul(j,J)|0,r=Math.imul(j,ee),n=n+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,ne)|0)+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,n=n+Math.imul($,re)|0,a=(a=a+Math.imul($,oe)|0)+Math.imul(N,re)|0,r=r+Math.imul(N,oe)|0,n=n+Math.imul(D,le)|0,a=(a=a+Math.imul(D,ce)|0)+Math.imul(L,le)|0,r=r+Math.imul(L,ce)|0,n=n+Math.imul(C,de)|0,a=(a=a+Math.imul(C,fe)|0)+Math.imul(k,de)|0,r=r+Math.imul(k,fe)|0;var De=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((r=r+Math.imul(S,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,ie),a=(a=Math.imul(F,ne))+Math.imul(j,ie)|0,r=Math.imul(j,ne),n=n+Math.imul(P,re)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(E,re)|0,r=r+Math.imul(E,oe)|0,n=n+Math.imul($,le)|0,a=(a=a+Math.imul($,ce)|0)+Math.imul(N,le)|0,r=r+Math.imul(N,ce)|0,n=n+Math.imul(D,de)|0,a=(a=a+Math.imul(D,fe)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,fe)|0;var Le=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(a=(a=a+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((r=r+Math.imul(k,me)|0)+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,re),a=(a=Math.imul(F,oe))+Math.imul(j,re)|0,r=Math.imul(j,oe),n=n+Math.imul(P,le)|0,a=(a=a+Math.imul(P,ce)|0)+Math.imul(E,le)|0,r=r+Math.imul(E,ce)|0,n=n+Math.imul($,de)|0,a=(a=a+Math.imul($,fe)|0)+Math.imul(N,de)|0,r=r+Math.imul(N,fe)|0;var Oe=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(a=(a=a+Math.imul(D,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((r=r+Math.imul(L,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,le),a=(a=Math.imul(F,ce))+Math.imul(j,le)|0,r=Math.imul(j,ce),n=n+Math.imul(P,de)|0,a=(a=a+Math.imul(P,fe)|0)+Math.imul(E,de)|0,r=r+Math.imul(E,fe)|0;var $e=(c+(n=n+Math.imul($,pe)|0)|0)+((8191&(a=(a=a+Math.imul($,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((r=r+Math.imul(N,me)|0)+(a>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(F,de),a=(a=Math.imul(F,fe))+Math.imul(j,de)|0,r=Math.imul(j,fe);var Ne=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(a=(a=a+Math.imul(P,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((r=r+Math.imul(E,me)|0)+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Ae=(c+(n=Math.imul(F,pe))|0)+((8191&(a=(a=Math.imul(F,me))+Math.imul(j,pe)|0))<<13)|0;return c=((r=Math.imul(j,me))+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=Ie,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=ke,l[12]=Re,l[13]=De,l[14]=Le,l[15]=Oe,l[16]=$e,l[17]=Ne,l[18]=Ae,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,a=0,r=0;r>>26)|0)>>>26,o&=67108863}i.words[r]=s,n=o,o=a}return 0!==n?i.words[r]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,i,n,a,r){for(var o=0;o>>=1)a++;return 1<>>=13,i[2*o+1]=8191&r,r>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=r>>>26,this.words[i]=67108863&r}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>a}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,n=(e-i)/26,r=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var r=e%26,o=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-r|d>>>r,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return a(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&r}for(;n>26,this.words[n+i]=67108863&r;if(0===s)return this.strip();for(a(-1===s),s=0,n=0;n>26,this.words[n]=67108863&r;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,r=0|a.words[a.length-1];0!==(i=26-this._countBits(r))&&(a=a.ushln(i),n.iushln(i),r=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(f=Math.min(f/r|0,67108863),n._ishlnsubmul(a,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,i){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.iadd(e)),{div:n,mod:r}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.isub(e)),{div:s.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,r,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),r=i.cmp(n);return r<0||1===a&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),r=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(n.isOdd()||r.isOdd())&&(n.iadd(u),r.isub(d)),n.iushrn(1),r.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),r.isub(l)):(i.isub(t),s.isub(n),l.isub(r))}return{a:s,b:l,gcd:i.iushln(c)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,r=new o(1),s=new o(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(i.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(s)):(i.isub(t),s.isub(r))}return(n=0===t.cmpn(1)?r:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var a=t.cmp(i);if(a<0){var r=t;t=i,i=r}else if(0===a||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,s&=67108863,this.words[o]=s}return 0!==r&&(this.words[o]=r,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var n=0|this.words[i],a=0|e.words[i];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(y,b),y.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,a=r}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return v[e]=t,t},x.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);a(!n.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=r;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();a(g=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==r?(r<<=1,r|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[r]),s=0,r=0)):s=0}l=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},r(S,x),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],182:[function(e,t,i){"use strict";i.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},i.toByteArray=function(e){var t,i,n=c(e),o=n[0],s=n[1],l=new r(function(e,t,i){return 3*(t+i)/4-i}(0,o,s)),u=0,d=s>0?o-4:o;for(i=0;i>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=a[e.charCodeAt(i)]<<2|a[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===s&&(t=a[e.charCodeAt(i)]<<10|a[e.charCodeAt(i+1)]<<4|a[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},i.fromByteArray=function(e){for(var t,i=e.length,a=i%3,r=[],o=0,s=i-a;os?s:o+16383));return 1===a?(t=e[i-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[i-2]<<8)+e[i-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("")};for(var n=[],a=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var a,r,o=[],s=t;s>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],183:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(t,i){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"===n(t)?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function l(e,t,i){for(var n=0,r=Math.min(e.length,i),o=0,s=t;s=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,o|=l}return a(!(240&o),"Invalid character in "+e),n}function c(e,t,i,n){for(var r=0,o=0,s=Math.min(e.length,i),l=t;l=49?c-49+10:c>=17?c-17+10:c,a(c>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"===n(e))return this._initArray(e,t,i);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[r]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===i)for(n=0,r=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)a=l(e,i,i+6),this.words[n]|=a<>>26-r&4194303,(r+=24)>=26&&(r-=26,n++);i+6!==t&&(a=l(e,t,i+6),this.words[n]|=a<>>26-r&4194303),this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var r=e.length-i,o=r%n,s=Math.min(r,r-o)+i,l=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var a=0|e.words[0],r=0|t.words[0],o=a*r,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(o=(a=0|e.words[p])*(r=0|t.words[h])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i._strip()}o.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,r=0,o=0;o>>24-n&16777215)||o!==this.length-1?f[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,o--)}for(0!==r&&(i=r.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];i="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);i=(d=d.idivn(u)).isZero()?m+i:f[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){this._strip();var n=this.byteLength(),r=i||Math.max(1,n);a(n<=r,"byte array longer than desired length"),a(r>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,r);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,a=0,r=0;a>8&255),i>16&255),6===r?(i>24&255),n=0,r=0):(n=o>>>24,r+=2)}if(i=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===r?(i>=0&&(e[i--]=o>>24&255),n=0,r=0):(n=o>>>24,r+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,n=e):(i=e,n=this);for(var a=0,r=0;r>>26;for(;0!==a&&r>>26;if(this.length=i.length,0!==a)this.words[this.length]=a,this.length++;else if(i!==this)for(;re.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==r&&o>26,this.words[o]=67108863&t;if(0===r&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],w=8191&y,_=y>>>13,I=0|o[4],x=8191&I,S=I>>>13,T=0|o[5],C=8191&T,k=T>>>13,R=0|o[6],D=8191&R,L=R>>>13,O=0|o[7],$=8191&O,N=O>>>13,A=0|o[8],P=8191&A,E=A>>>13,M=0|o[9],F=8191&M,j=M>>>13,V=0|s[0],q=8191&V,z=V>>>13,B=0|s[1],U=8191&B,Q=B>>>13,H=0|s[2],G=8191&H,W=H>>>13,Y=0|s[3],K=8191&Y,Z=Y>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,ae=0|s[6],re=8191&ae,oe=ae>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,q))|0)+((8191&(a=(a=Math.imul(d,z))+Math.imul(f,q)|0))<<13)|0;c=((r=Math.imul(f,z))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),a=(a=Math.imul(p,z))+Math.imul(m,q)|0,r=Math.imul(m,z);var ve=(c+(n=n+Math.imul(d,U)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(f,U)|0))<<13)|0;c=((r=r+Math.imul(f,Q)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,q),a=(a=Math.imul(v,z))+Math.imul(b,q)|0,r=Math.imul(b,z),n=n+Math.imul(p,U)|0,a=(a=a+Math.imul(p,Q)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,Q)|0;var be=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(f,G)|0))<<13)|0;c=((r=r+Math.imul(f,W)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),a=(a=Math.imul(w,z))+Math.imul(_,q)|0,r=Math.imul(_,z),n=n+Math.imul(v,U)|0,a=(a=a+Math.imul(v,Q)|0)+Math.imul(b,U)|0,r=r+Math.imul(b,Q)|0,n=n+Math.imul(p,G)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(m,G)|0,r=r+Math.imul(m,W)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(f,K)|0))<<13)|0;c=((r=r+Math.imul(f,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,z))+Math.imul(S,q)|0,r=Math.imul(S,z),n=n+Math.imul(w,U)|0,a=(a=a+Math.imul(w,Q)|0)+Math.imul(_,U)|0,r=r+Math.imul(_,Q)|0,n=n+Math.imul(v,G)|0,a=(a=a+Math.imul(v,W)|0)+Math.imul(b,G)|0,r=r+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((r=r+Math.imul(f,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,q),a=(a=Math.imul(C,z))+Math.imul(k,q)|0,r=Math.imul(k,z),n=n+Math.imul(x,U)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,Q)|0,n=n+Math.imul(w,G)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(_,G)|0,r=r+Math.imul(_,W)|0,n=n+Math.imul(v,K)|0,a=(a=a+Math.imul(v,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(f,ie)|0))<<13)|0;c=((r=r+Math.imul(f,ne)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,q),a=(a=Math.imul(D,z))+Math.imul(L,q)|0,r=Math.imul(L,z),n=n+Math.imul(C,U)|0,a=(a=a+Math.imul(C,Q)|0)+Math.imul(k,U)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(x,G)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(S,G)|0,r=r+Math.imul(S,W)|0,n=n+Math.imul(w,K)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(_,K)|0,r=r+Math.imul(_,Z)|0,n=n+Math.imul(v,J)|0,a=(a=a+Math.imul(v,ee)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,ee)|0,n=n+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,r=r+Math.imul(m,ne)|0;var Ie=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(f,re)|0))<<13)|0;c=((r=r+Math.imul(f,oe)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul($,q),a=(a=Math.imul($,z))+Math.imul(N,q)|0,r=Math.imul(N,z),n=n+Math.imul(D,U)|0,a=(a=a+Math.imul(D,Q)|0)+Math.imul(L,U)|0,r=r+Math.imul(L,Q)|0,n=n+Math.imul(C,G)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(k,G)|0,r=r+Math.imul(k,W)|0,n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(S,K)|0,r=r+Math.imul(S,Z)|0,n=n+Math.imul(w,J)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(_,J)|0,r=r+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,a=(a=a+Math.imul(v,ne)|0)+Math.imul(b,ie)|0,r=r+Math.imul(b,ne)|0,n=n+Math.imul(p,re)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,oe)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((r=r+Math.imul(f,ce)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,q),a=(a=Math.imul(P,z))+Math.imul(E,q)|0,r=Math.imul(E,z),n=n+Math.imul($,U)|0,a=(a=a+Math.imul($,Q)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,Q)|0,n=n+Math.imul(D,G)|0,a=(a=a+Math.imul(D,W)|0)+Math.imul(L,G)|0,r=r+Math.imul(L,W)|0,n=n+Math.imul(C,K)|0,a=(a=a+Math.imul(C,Z)|0)+Math.imul(k,K)|0,r=r+Math.imul(k,Z)|0,n=n+Math.imul(x,J)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(S,J)|0,r=r+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,ne)|0)+Math.imul(_,ie)|0,r=r+Math.imul(_,ne)|0,n=n+Math.imul(v,re)|0,a=(a=a+Math.imul(v,oe)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,oe)|0,n=n+Math.imul(p,le)|0,a=(a=a+Math.imul(p,ce)|0)+Math.imul(m,le)|0,r=r+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((r=r+Math.imul(f,fe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,z))+Math.imul(j,q)|0,r=Math.imul(j,z),n=n+Math.imul(P,U)|0,a=(a=a+Math.imul(P,Q)|0)+Math.imul(E,U)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul($,G)|0,a=(a=a+Math.imul($,W)|0)+Math.imul(N,G)|0,r=r+Math.imul(N,W)|0,n=n+Math.imul(D,K)|0,a=(a=a+Math.imul(D,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,n=n+Math.imul(C,J)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(k,J)|0,r=r+Math.imul(k,ee)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(S,ie)|0,r=r+Math.imul(S,ne)|0,n=n+Math.imul(w,re)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(_,re)|0,r=r+Math.imul(_,oe)|0,n=n+Math.imul(v,le)|0,a=(a=a+Math.imul(v,ce)|0)+Math.imul(b,le)|0,r=r+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,a=(a=a+Math.imul(p,fe)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,fe)|0;var Te=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((r=r+Math.imul(f,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,U),a=(a=Math.imul(F,Q))+Math.imul(j,U)|0,r=Math.imul(j,Q),n=n+Math.imul(P,G)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(E,G)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul($,K)|0,a=(a=a+Math.imul($,Z)|0)+Math.imul(N,K)|0,r=r+Math.imul(N,Z)|0,n=n+Math.imul(D,J)|0,a=(a=a+Math.imul(D,ee)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,ee)|0,n=n+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,ne)|0)+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(S,re)|0,r=r+Math.imul(S,oe)|0,n=n+Math.imul(w,le)|0,a=(a=a+Math.imul(w,ce)|0)+Math.imul(_,le)|0,r=r+Math.imul(_,ce)|0,n=n+Math.imul(v,de)|0,a=(a=a+Math.imul(v,fe)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,fe)|0;var Ce=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((r=r+Math.imul(m,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),a=(a=Math.imul(F,W))+Math.imul(j,G)|0,r=Math.imul(j,W),n=n+Math.imul(P,K)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(E,K)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul($,J)|0,a=(a=a+Math.imul($,ee)|0)+Math.imul(N,J)|0,r=r+Math.imul(N,ee)|0,n=n+Math.imul(D,ie)|0,a=(a=a+Math.imul(D,ne)|0)+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,n=n+Math.imul(C,re)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(k,re)|0,r=r+Math.imul(k,oe)|0,n=n+Math.imul(x,le)|0,a=(a=a+Math.imul(x,ce)|0)+Math.imul(S,le)|0,r=r+Math.imul(S,ce)|0,n=n+Math.imul(w,de)|0,a=(a=a+Math.imul(w,fe)|0)+Math.imul(_,de)|0,r=r+Math.imul(_,fe)|0;var ke=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(a=(a=a+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((r=r+Math.imul(b,me)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,K),a=(a=Math.imul(F,Z))+Math.imul(j,K)|0,r=Math.imul(j,Z),n=n+Math.imul(P,J)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(E,J)|0,r=r+Math.imul(E,ee)|0,n=n+Math.imul($,ie)|0,a=(a=a+Math.imul($,ne)|0)+Math.imul(N,ie)|0,r=r+Math.imul(N,ne)|0,n=n+Math.imul(D,re)|0,a=(a=a+Math.imul(D,oe)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,oe)|0,n=n+Math.imul(C,le)|0,a=(a=a+Math.imul(C,ce)|0)+Math.imul(k,le)|0,r=r+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,fe)|0)+Math.imul(S,de)|0,r=r+Math.imul(S,fe)|0;var Re=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((r=r+Math.imul(_,me)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,J),a=(a=Math.imul(F,ee))+Math.imul(j,J)|0,r=Math.imul(j,ee),n=n+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,ne)|0)+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,n=n+Math.imul($,re)|0,a=(a=a+Math.imul($,oe)|0)+Math.imul(N,re)|0,r=r+Math.imul(N,oe)|0,n=n+Math.imul(D,le)|0,a=(a=a+Math.imul(D,ce)|0)+Math.imul(L,le)|0,r=r+Math.imul(L,ce)|0,n=n+Math.imul(C,de)|0,a=(a=a+Math.imul(C,fe)|0)+Math.imul(k,de)|0,r=r+Math.imul(k,fe)|0;var De=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((r=r+Math.imul(S,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,ie),a=(a=Math.imul(F,ne))+Math.imul(j,ie)|0,r=Math.imul(j,ne),n=n+Math.imul(P,re)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(E,re)|0,r=r+Math.imul(E,oe)|0,n=n+Math.imul($,le)|0,a=(a=a+Math.imul($,ce)|0)+Math.imul(N,le)|0,r=r+Math.imul(N,ce)|0,n=n+Math.imul(D,de)|0,a=(a=a+Math.imul(D,fe)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,fe)|0;var Le=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(a=(a=a+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((r=r+Math.imul(k,me)|0)+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,re),a=(a=Math.imul(F,oe))+Math.imul(j,re)|0,r=Math.imul(j,oe),n=n+Math.imul(P,le)|0,a=(a=a+Math.imul(P,ce)|0)+Math.imul(E,le)|0,r=r+Math.imul(E,ce)|0,n=n+Math.imul($,de)|0,a=(a=a+Math.imul($,fe)|0)+Math.imul(N,de)|0,r=r+Math.imul(N,fe)|0;var Oe=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(a=(a=a+Math.imul(D,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((r=r+Math.imul(L,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,le),a=(a=Math.imul(F,ce))+Math.imul(j,le)|0,r=Math.imul(j,ce),n=n+Math.imul(P,de)|0,a=(a=a+Math.imul(P,fe)|0)+Math.imul(E,de)|0,r=r+Math.imul(E,fe)|0;var $e=(c+(n=n+Math.imul($,pe)|0)|0)+((8191&(a=(a=a+Math.imul($,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((r=r+Math.imul(N,me)|0)+(a>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(F,de),a=(a=Math.imul(F,fe))+Math.imul(j,de)|0,r=Math.imul(j,fe);var Ne=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(a=(a=a+Math.imul(P,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((r=r+Math.imul(E,me)|0)+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Ae=(c+(n=Math.imul(F,pe))|0)+((8191&(a=(a=Math.imul(F,me))+Math.imul(j,pe)|0))<<13)|0;return c=((r=Math.imul(j,me))+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=Ie,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=ke,l[12]=Re,l[13]=De,l[14]=Le,l[15]=Oe,l[16]=$e,l[17]=Ne,l[18]=Ae,0!==c&&(l[19]=c,i.length++),i};function v(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,a=0,r=0;r>>26)|0)>>>26,o&=67108863}i.words[r]=s,n=o,o=a}return 0!==n?i.words[r]=n:i.length--,i._strip()}function b(e,t,i){return v(e,t,i)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):i<63?m(this,e,t):i<1024?v(this,e,t):b(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,i,n,a,r){for(var o=0;o>>=1)a++;return 1<>>=13,i[2*o+1]=8191&r,r>>>=13;for(o=2*t;o>=26,i+=r/67108864|0,i+=o>>>26,this.words[n]=67108863&o}return 0!==i&&(this.words[n]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>a&1}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n=0);var t,i=e%26,n=(e-i)/26,r=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var r=e%26,o=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-r|d>>>r,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return a(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&r}for(;n>26,this.words[n+i]=67108863&r;if(0===s)return this._strip();for(a(-1===s),s=0,n=0;n>26,this.words[n]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,r=0|a.words[a.length-1];0!==(i=26-this._countBits(r))&&(a=a.ushln(i),n.iushln(i),r=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(f=Math.min(f/r|0,67108863),n._ishlnsubmul(a,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,i){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.iadd(e)),{div:n,mod:r}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.isub(e)),{div:s.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,r,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),r=i.cmp(n);return r<0||1===a&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var i=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(i*n+(0|this.words[r]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*i;this.words[n]=r/e|0,i=r%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),r=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(n.isOdd()||r.isOdd())&&(n.iadd(u),r.isub(d)),n.iushrn(1),r.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),r.isub(l)):(i.isub(t),s.isub(n),l.isub(r))}return{a:s,b:l,gcd:i.iushln(c)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,r=new o(1),s=new o(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(i.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(s)):(i.isub(t),s.isub(r))}return(n=0===t.cmpn(1)?r:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var a=t.cmp(i);if(a<0){var r=t;t=i,i=r}else if(0===a||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,s&=67108863,this.words[o]=s}return 0!==r&&(this.words[o]=r,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var n=0|this.words[i],a=0|e.words[i];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function I(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},r(I,_),I.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n>>22,a=r}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},I.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new I;else if("p224"===e)t=new x;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return w[e]=t,t},C.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);a(!n.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=r;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();a(g=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==r?(r<<=1,r|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[r]),s=0,r=0)):s=0}l=26}return a},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},r(k,C),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],184:[function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a;function r(e){this.rand=e}if(t.exports=function(e){return a||(a=new r(null)),a.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i>>24]^u[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],o=c[p>>>24]^u[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=c[m>>>24]^u[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],l=c[g>>>24]^u[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=r,p=o,m=s,g=l;return r=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],o=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[v++],l=(n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[r>>>=0,o>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],a=[[],[],[],[]],r=[[],[],[],[]],o=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,i[o]=c,n[c]=o;var u=e[o],d=e[u],f=e[d],h=257*e[c]^16843008*c;a[0][o]=h<<24|h>>>8,a[1][o]=h<<16|h>>>16,a[2][o]=h<<8|h>>>24,a[3][o]=h,h=16843009*f^65537*d^257*u^16843008*o,r[0][c]=h<<24|h>>>8,r[1][c]=h<<16|h>>>16,r[2][c]=h<<8|h>>>24,r[3][c]=h,0===o?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:r}}();function c(e){this._key=a(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),a=[],r=0;r>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=s[r/t|0]<<24):t>6&&r%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),a[r]=a[r-t]^o}for(var c=[],u=0;u>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=i,this._keySchedule=a,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},c.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),r=n.allocUnsafe(16);return r.writeUInt32BE(i[0],0),r.writeUInt32BE(i[3],4),r.writeUInt32BE(i[2],8),r.writeUInt32BE(i[1],12),r},c.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},t.exports.AES=c},{"safe-buffer":494}],187:[function(e,t,i){"use strict";var n=e("./aes"),a=e("safe-buffer").Buffer,r=e("cipher-base"),o=e("inherits"),s=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function u(e,t,i,o){r.call(this);var l=a.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),i=function(e,t,i){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var n=new s(i),r=t.length,o=r%16;n.update(t),o&&(o=16-o,n.update(a.alloc(o,0))),n.update(a.alloc(8,0));var l=8*r,u=a.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=a.from(e._finID);return c(d),d}(this,i,u),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,r),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),a=0;a16)throw new Error("unable to decrypt data");for(var i=-1;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=r[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=c(t,!1,i.key,i.iv);return f(e,n.key,n.iv)},i.createDecipheriv=f},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],190:[function(e,t,i){"use strict";var n=e("./modes"),a=e("./authCipher"),r=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,i){s.call(this),this._cache=new f,this._cipher=new l.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}e("inherits")(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return r.concat(n)};var d=r.alloc(16,16);function f(){this.cache=r.allocUnsafe(0)}function h(e,t,i){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=r.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=r.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===s.type?new o(s.module,t,i):"auth"===s.type?new a(s.module,t,i):new u(s.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=r.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=r(a)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,a],16)),this.ghash(r([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":494}],192:[function(e,t,i){"use strict";t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],193:[function(e,t,i){"use strict";var n=e("buffer-xor");i.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var a=e._cipher.decryptBlock(t);return n(a,i)}},{"buffer-xor":217}],194:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("buffer-xor");function r(e,t,i){var r=t.length,o=a(t,e._cache);return e._cache=e._cache.slice(r),e._prev=n.concat([e._prev,i?t:o]),o}i.encrypt=function(e,t,i){for(var a,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,r(e,t,i)]);break}a=e._cache.length,o=n.concat([o,r(e,t.slice(0,a),i)]),t=t.slice(a)}return o}},{"buffer-xor":217,"safe-buffer":494}],195:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;function a(e,t,i){for(var n,a,o=-1,s=0;++o<8;)n=t&1<<7-o?128:0,s+=(128&(a=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=r(e._prev,i?n:a);return s}function r(e,t){var i=e.length,a=-1,r=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++a>7;return r}i.encrypt=function(e,t,i){for(var r=t.length,o=n.allocUnsafe(r),s=-1;++s=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new n(a(t));return i}t.exports=r,r.getr=o}).call(this,e("buffer").Buffer)},{"bn.js":207,buffer:216,randombytes:475}],207:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],208:[function(e,t,i){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":209}],209:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],210:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],211:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("create-hash"),r=e("readable-stream"),o=e("inherits"),s=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function u(e){r.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){r.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function h(e){return new d(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(u,r.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=s(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(d,r.Writable),d.prototype._write=function(e,t,i){this._hash.update(e),i()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,i){"string"==typeof t&&(t=n.from(t,i)),this.end();var a=this._hash.digest();return l(t,a,e,this._signType,this._tag)},t.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},{"./algorithms.json":209,"./sign":212,"./verify":213,"create-hash":331,inherits:387,"readable-stream":491,"safe-buffer":214}],212:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("create-hmac"),r=e("browserify-rsa"),o=e("elliptic").ec,s=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function u(e,t,i,r){if((e=n.from(e.toArray())).length0&&i.ishrn(n),i}function f(e,t,i){var r,o;do{for(r=n.alloc(0);8*r.length=t)throw new Error("invalid sig")}t.exports=function(e,t,i,c,u){var d=o(i);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var a=new r(n),o=i.data.subjectPrivateKey.data;return a.verify(t,e,o)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var n=i.data.p,r=i.data.q,s=i.data.g,c=i.data.pub_key,u=o.signature.decode(e,"der"),d=u.s,f=u.r;l(d,r),l(f,r);var h=a.mont(n),p=d.invm(r);return 0===s.toRed(h).redPow(new a(t).mul(p).mod(r)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(r)).fromRed()).mod(n).mod(r).cmp(f)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2 */var n=e("buffer"),a=n.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return a(e,t,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=n:(r(n,i),i.Buffer=o),o.prototype=Object.create(a.prototype),r(a,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:216}],215:[function(e,t,i){arguments[4][185][0].apply(i,arguments)},{dup:185}],216:[function(e,t,i){(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ "use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=e("base64-js"),r=e("ieee754");function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return i.__proto__=t.prototype,i}function t(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,i)}function s(e,i,a){if("string"==typeof e)return function(e,i){if("string"==typeof i&&""!==i||(i="utf8"),!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var n=0|f(e,i),a=o(n),r=a.write(e,i);return r!==n&&(a=a.slice(0,r)),a}(e,i);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e));if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,i,n){if(i<0||e.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,i){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+n(e));var a=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===a)return 0;for(var o=!1;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return M(e).length;default:if(o)return r?-1:E(e).length;i=(""+i).toLowerCase(),o=!0}}function h(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,i);case"utf8":case"utf-8":return S(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return C(this,t,i);case"base64":return x(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function p(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,i,n,a,r){if(0===e.length)return-1;if("string"==typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof i&&(i=t.from(i,a)),t.isBuffer(i))return 0===i.length?-1:g(e,i,n,a,r);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,i,n):Uint8Array.prototype.lastIndexOf.call(e,i,n):g(e,[i],n,a,r);throw new TypeError("val must be string, number or Buffer")}function g(e,t,i,n,a){var r,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(r=i;rs&&(i=s-l),r=i;r>=0;r--){for(var d=!0,f=0;fa&&(n=a):n=a;var r=t.length;n>r/2&&(n=r/2);for(var o=0;o>8,a=i%256,r.push(a),r.push(n);return r}(t,e.length-i),e,i,n)}function x(e,t,i){return 0===t&&i===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,i))}function S(e,t,i){i=Math.min(e.length,i);for(var n=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+d<=i)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[a+1]))&&(l=(31&c)<<6|63&r)>127&&(u=l);break;case 3:r=e[a+1],o=e[a+2],128==(192&r)&&128==(192&o)&&(l=(15&c)<<12|(63&r)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=e[a+1],o=e[a+2],s=e[a+3],128==(192&r)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&r)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",n=0;nn)&&(i=n);for(var a="",r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function L(e,i,n,a,r,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>r||ie.length)throw new RangeError("Index out of range")}function O(e,t,i,n,a,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function $(e,t,i,n,a){return t=+t,i>>>=0,a||O(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,a){return t=+t,i>>>=0,a||O(e,0,i,8),r.write(e,t,i,n,52,8),i+8}i.Buffer=t,i.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},i.INSPECT_MAX_BYTES=50,i.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),t.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,i){return s(e,t,i)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,i){return function(e,t,i){return l(e),e<=0?o(e):void 0!==t?"string"==typeof i?o(e).fill(t,i):o(e).fill(t):o(e)}(e,t,i)},t.allocUnsafe=function(e){return c(e)},t.allocUnsafeSlow=function(e){return c(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,i){if(j(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),j(i,Uint8Array)&&(i=t.from(i,i.offset,i.byteLength)),!t.isBuffer(e)||!t.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===i)return 0;for(var n=e.length,a=i.length,r=0,o=Math.min(n,a);rt&&(e+=" ... "),""},t.prototype.compare=function(e,i,a,r,o){if(j(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+n(e));if(void 0===i&&(i=0),void 0===a&&(a=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),i<0||a>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&i>=a)return 0;if(r>=o)return-1;if(i>=a)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),l=(a>>>=0)-(i>>>=0),c=Math.min(s,l),u=this.slice(r,o),d=e.slice(i,a),f=0;f>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var a=this.length-t;if((void 0===i||i>a)&&(i=a),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return b(this,e,t,i);case"ascii":return y(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return _(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.slice=function(e,i){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(i=void 0===i?n:~~i)<0?(i+=n)<0&&(i=0):i>n&&(i=n),i>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e],a=1,r=0;++r>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e],a=1,r=0;++r=(a*=128)&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=t,a=1,r=this[e+--n];n>0&&(a*=256);)r+=this[e+--n]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},t.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),r.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),r.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),r.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),r.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||L(this,e,t,i,Math.pow(2,8*i)-1,0);var a=1,r=0;for(this[t]=255&e;++r>>=0,i>>>=0,n||L(this,e,t,i,Math.pow(2,8*i)-1,0);var a=i-1,r=1;for(this[t+a]=255&e;--a>=0&&(r*=256);)this[t+a]=e/r&255;return t+i},t.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*i-1);L(this,e,t,i,a-1,-a)}var r=0,o=1,s=0;for(this[t]=255&e;++r>0)-s&255;return t+i},t.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*i-1);L(this,e,t,i,a-1,-a)}var r=i-1,o=1,s=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/o>>0)-s&255;return t+i},t.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,i){return $(this,e,t,!0,i)},t.prototype.writeFloatBE=function(e,t,i){return $(this,e,t,!1,i)},t.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},t.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},t.prototype.copy=function(e,i,n,a){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),a||0===a||(a=this.length),i>=e.length&&(i=e.length),i||(i=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-i=0;--o)e[o+i]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,a),i);return r},t.prototype.fill=function(e,i,n,a){if("string"==typeof e){if("string"==typeof i?(a=i,i=0,n=this.length):"string"==typeof n&&(a=n,n=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!t.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){var r=e.charCodeAt(0);("utf8"===a&&r<128||"latin1"===a)&&(e=r)}}else"number"==typeof e&&(e&=255);if(i<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=i;o55295&&i<57344){if(!a){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&r.push(239,191,189);continue}a=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),a=i;continue}i=65536+(a-55296<<10|i-56320)}else a&&(t-=3)>-1&&r.push(239,191,189);if(a=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function M(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,i,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+i]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":182,buffer:216,ieee754:385}],217:[function(e,t,i){(function(e){"use strict";t.exports=function(t,i){for(var n=Math.min(t.length,i.length),a=new e(n),r=0;ru;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/to-absolute-index":304,"../internals/to-indexed-object":305,"../internals/to-length":307}],225:[function(e,t,i){var n=e("../internals/function-bind-context"),a=e("../internals/indexed-object"),r=e("../internals/to-object"),o=e("../internals/to-length"),s=e("../internals/array-species-create"),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d;return function(h,p,m,g){for(var v,b,y=r(h),w=a(y),_=n(p,m,3),I=o(w.length),x=0,S=g||s,T=t?S(h,I):i?S(h,0):void 0;I>x;x++)if((f||x in w)&&(b=_(v=w[x],x,y),e))if(t)T[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l.call(T,v)}else if(u)return!1;return d?-1:c||u?u:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},{"../internals/array-species-create":227,"../internals/function-bind-context":248,"../internals/indexed-object":257,"../internals/to-length":307,"../internals/to-object":308}],226:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/has"),o=Object.defineProperty,s={},l=function(e){throw e};t.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var i=[][e],c=!!r(t,"ACCESSORS")&&t.ACCESSORS,u=r(t,0)?t[0]:l,d=r(t,1)?t[1]:void 0;return s[e]=!!i&&!a((function(){if(c&&!n)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,i.call(e,u,d)}))}},{"../internals/descriptors":240,"../internals/fails":247,"../internals/has":252}],227:[function(e,t,i){var n=e("../internals/is-object"),a=e("../internals/is-array"),r=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var i;return a(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!a(i.prototype)?n(i)&&null===(i=i[r])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},{"../internals/is-array":261,"../internals/is-object":263,"../internals/well-known-symbol":314}],228:[function(e,t,i){var n=e("../internals/an-object");t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){var r=e.return;throw void 0!==r&&n(r.call(e)),t}}},{"../internals/an-object":223}],229:[function(e,t,i){var n=e("../internals/well-known-symbol")("iterator"),a=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var r={};r[n]=function(){return{next:function(){return{done:i=!0}}}},e(r)}catch(e){}return i}},{"../internals/well-known-symbol":314}],230:[function(e,t,i){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],231:[function(e,t,i){var n=e("../internals/to-string-tag-support"),a=e("../internals/classof-raw"),r=e("../internals/well-known-symbol")("toStringTag"),o="Arguments"==a(function(){return arguments}());t.exports=n?a:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?i:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},{"../internals/classof-raw":230,"../internals/to-string-tag-support":310,"../internals/well-known-symbol":314}],232:[function(e,t,i){var n=e("../internals/has"),a=e("../internals/own-keys"),r=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t){for(var i=a(t),s=o.f,l=r.f,c=0;c=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=n[1]),t.exports=a&&+a},{"../internals/engine-user-agent":243,"../internals/global":251}],245:[function(e,t,i){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],246:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/object-get-own-property-descriptor").f,r=e("../internals/create-non-enumerable-property"),o=e("../internals/redefine"),s=e("../internals/set-global"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var i,u,d,f,h,p=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=a(i,u))&&h.value:i[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&r(f,"sham",!0),o(i,u,f,e)}}},{"../internals/copy-constructor-properties":232,"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/is-forced":262,"../internals/object-get-own-property-descriptor":279,"../internals/redefine":294,"../internals/set-global":296}],247:[function(e,t,i){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],248:[function(e,t,i){var n=e("../internals/a-function");t.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-function":219}],249:[function(e,t,i){var n=e("../internals/path"),a=e("../internals/global"),r=function(e){return"function"==typeof e?e:void 0};t.exports=function(e,t){return arguments.length<2?r(n[e])||r(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},{"../internals/global":251,"../internals/path":290}],250:[function(e,t,i){var n=e("../internals/classof"),a=e("../internals/iterators"),r=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[n(e)]}},{"../internals/classof":231,"../internals/iterators":268,"../internals/well-known-symbol":314}],251:[function(e,i,n){(function(e){var t=function(e){return e&&e.Math==Math&&e};i.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],252:[function(e,t,i){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],253:[function(e,t,i){t.exports={}},{}],254:[function(e,t,i){var n=e("../internals/global");t.exports=function(e,t){var i=n.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}},{"../internals/global":251}],255:[function(e,t,i){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":249}],256:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/document-create-element");t.exports=!n&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":240,"../internals/document-create-element":241,"../internals/fails":247}],257:[function(e,t,i){var n=e("../internals/fails"),a=e("../internals/classof-raw"),r="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},{"../internals/classof-raw":230,"../internals/fails":247}],258:[function(e,t,i){var n=e("../internals/shared-store"),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),t.exports=n.inspectSource},{"../internals/shared-store":300}],259:[function(e,t,i){var n,a,r,o=e("../internals/native-weak-map"),s=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),d=e("../internals/shared-key"),f=e("../internals/hidden-keys"),h=s.WeakMap;if(o){var p=new h,m=p.get,g=p.has,v=p.set;n=function(e,t){return v.call(p,e,t),t},a=function(e){return m.call(p,e)||{}},r=function(e){return g.call(p,e)}}else{var b=d("state");f[b]=!0,n=function(e,t){return c(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},r=function(e){return u(e,b)}}t.exports={set:n,get:a,has:r,enforce:function(e){return r(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}}},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/is-object":263,"../internals/native-weak-map":272,"../internals/shared-key":299}],260:[function(e,t,i){var n=e("../internals/well-known-symbol"),a=e("../internals/iterators"),r=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(a.Array===e||o[r]===e)}},{"../internals/iterators":268,"../internals/well-known-symbol":314}],261:[function(e,t,i){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":230}],262:[function(e,t,i){var n=e("../internals/fails"),a=/#|\.prototype\./,r=function(e,t){var i=s[o(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},o=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},{"../internals/fails":247}],263:[function(e,t,i){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],264:[function(e,t,i){t.exports=!1},{}],265:[function(e,t,i){var n=e("../internals/is-object"),a=e("../internals/classof-raw"),r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==a(e))}},{"../internals/classof-raw":230,"../internals/is-object":263,"../internals/well-known-symbol":314}],266:[function(e,t,i){var n=e("../internals/an-object"),a=e("../internals/is-array-iterator-method"),r=e("../internals/to-length"),o=e("../internals/function-bind-context"),s=e("../internals/get-iterator-method"),l=e("../internals/call-with-safe-iteration-closing"),c=function(e,t){this.stopped=e,this.result=t};(t.exports=function(e,t,i,u,d){var f,h,p,m,g,v,b,y=o(t,i,u?2:1);if(d)f=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(a(h)){for(p=0,m=r(e.length);m>p;p++)if((g=u?y(n(b=e[p])[0],b[1]):y(e[p]))&&g instanceof c)return g;return new c(!1)}f=h.call(e)}for(v=f.next;!(b=v.call(f)).done;)if("object"==typeof(g=l(f,y,b.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},{"../internals/an-object":223,"../internals/call-with-safe-iteration-closing":228,"../internals/function-bind-context":248,"../internals/get-iterator-method":250,"../internals/is-array-iterator-method":260,"../internals/to-length":307}],267:[function(e,t,i){"use strict";var n,a,r,o=e("../internals/object-get-prototype-of"),s=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),c=e("../internals/well-known-symbol"),u=e("../internals/is-pure"),d=c("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(a=o(o(r)))!==Object.prototype&&(n=a):f=!0),null==n&&(n={}),u||l(n,d)||s(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},{"../internals/create-non-enumerable-property":236,"../internals/has":252,"../internals/is-pure":264,"../internals/object-get-prototype-of":283,"../internals/well-known-symbol":314}],268:[function(e,t,i){arguments[4][253][0].apply(i,arguments)},{dup:253}],269:[function(e,t,i){var n,a,r,o,s,l,c,u,d=e("../internals/global"),f=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/classof-raw"),p=e("../internals/task").set,m=e("../internals/engine-is-ios"),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,b=d.Promise,y="process"==h(v),w=f(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;for(y&&(e=v.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():r=void 0,e}}r=void 0,e&&e.enter()},y?o=function(){v.nextTick(n)}:g&&!m?(s=!0,l=document.createTextNode(""),new g(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),t.exports=_||function(e){var t={fn:e,next:void 0};r&&(r.next=t),a||(a=t,o()),r=t}},{"../internals/classof-raw":230,"../internals/engine-is-ios":242,"../internals/global":251,"../internals/object-get-own-property-descriptor":279,"../internals/task":303}],270:[function(e,t,i){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":251}],271:[function(e,t,i){var n=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},{"../internals/fails":247}],272:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/inspect-source"),r=n.WeakMap;t.exports="function"==typeof r&&/native code/.test(a(r))},{"../internals/global":251,"../internals/inspect-source":258}],273:[function(e,t,i){"use strict";var n=e("../internals/a-function"),a=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n})),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new a(e)}},{"../internals/a-function":219}],274:[function(e,t,i){var n=e("../internals/is-regexp");t.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":265}],275:[function(e,t,i){"use strict";var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/object-keys"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/object-property-is-enumerable"),l=e("../internals/to-object"),c=e("../internals/indexed-object"),u=Object.assign,d=Object.defineProperty;t.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol();return e[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||"abcdefghijklmnopqrst"!=r(u({},t)).join("")}))?function(e,t){for(var i=l(e),a=arguments.length,u=1,d=o.f,f=s.f;a>u;)for(var h,p=c(arguments[u++]),m=d?r(p).concat(d(p)):r(p),g=m.length,v=0;g>v;)h=m[v++],n&&!f.call(p,h)||(i[h]=p[h]);return i}:u},{"../internals/descriptors":240,"../internals/fails":247,"../internals/indexed-object":257,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-object":308}],276:[function(e,t,i){var n,a=e("../internals/an-object"),r=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),d=u("IE_PROTO"),f=function(){},h=function(e){return"