EI-Image-Viewer-Api/Start/Resource/EIImageViewerWeb/html/static/js/chunk-56757093.9cb6c2fba59d...

1 line
4.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56757093"],{"15cb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{display:"flex","justify-content":"center"}},[n("div",{staticStyle:{width:"600px","padding-top":"100px"}},[n("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"16px","line-height":"40px","text-indent":"30px"}},[e._v("\n 是否参与的临床试验项目:"),n("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ExperimentName))]),e._v("(试验方案号:"),n("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ResearchProgramNo))]),e._v(" 的独立影像评估工作。请选择:\n ")]),e._v(" "),n("div",{staticStyle:{padding:"20px"}},[n("el-radio-group",{model:{value:e.form.IsJoin,callback:function(t){e.$set(e.form,"IsJoin",t)},expression:"form.IsJoin"}},[n("el-radio",{attrs:{disabled:e.disabled,label:!0}},[e._v("是")]),e._v(" "),n("el-radio",{attrs:{disabled:e.disabled,label:!1}},[e._v("否")])],1)],1),e._v(" "),!1===e.form.IsJoin?n("div",{staticStyle:{"margin-bottom":"40px"}},[n("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(" "),n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[n("el-button",{staticStyle:{"min-width":"100px"},attrs:{type:"primary",size:"small",loading:e.loading,disabled:e.disabled},on:{click:e.save}},[e._v("确定")])],1)])])},s=[],o=(n("a481"),n("b775"));function a(e){return Object(o["a"])({url:"/TrialExternalUser/trialExternalUserJoinTrial",method:"post",data:e})}function r(e){return Object(o["a"])({url:"/TrialExternalUser/trialSiteSurveyUserJoinTrial",method:"post",data:e})}function l(e){return Object(o["a"])({url:"/TrialExternalUser/joinBasicInfo?Id=".concat(e.Id,"&IsExternalUser=").concat(e.IsExternalUser),method:"post"})}var c=n("c1df"),d=n.n(c),u={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"),n={Id:this.Id,IsJoin:this.form.IsJoin,ConfirmTime:d()().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?a(n).then((function(t){n.IsJoin?(e.$message.success("加入项目成功!即将自动跳转登录页面"),e.goLogin()):(e.$message.success("已拒绝加入项目"),e.loading=!1,e.disabled=!0)})).catch((function(){e.disabled=!1,e.loading=!1})):r(n).then((function(t){n.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=u,m=(n("f205"),n("2877")),h=Object(m["a"])(f,i,s,!1,null,null,null);t["default"]=h.exports},ec44:function(e,t,n){},f205:function(e,t,n){"use strict";n("ec44")}}]);