(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9ceb696","chunk-41a0667a"],{"16d2":function(t,e,r){"use strict";var o=r("037d"),a=r("05a5"),n=r("a143"),i=r("05d7"),s=r("ca7c"),c=r("311e"),u=r("a33e"),l=r("eb5b"),p=r("0761"),d=TypeError,m=p((function(){[].keys().reduce((function(){}),void 0)})),b=!m&&u("reduce",d);o({target:"Iterator",proto:!0,real:!0,forced:m||b},{reduce:function(t){i(this);try{n(t)}catch(p){c(this,"throw",p)}var e=arguments.length<2,r=e?void 0:arguments[1];if(b)return l(b,this,e?[t]:[t,r]);var o=s(this),u=0;if(a(o,(function(o){e?(e=!1,r=o):r=t(r,o,u),u++}),{IS_RECORD:!0}),e)throw new d("Reduce of empty iterator with no initial value");return r}})},"40d6":function(t,e,r){"use strict";r.d(e,"dc",(function(){return a})),r.d(e,"ec",(function(){return n})),r.d(e,"i",(function(){return i})),r.d(e,"V",(function(){return s})),r.d(e,"Vb",(function(){return c})),r.d(e,"kc",(function(){return u})),r.d(e,"Nb",(function(){return l})),r.d(e,"Ub",(function(){return p})),r.d(e,"D",(function(){return d})),r.d(e,"gb",(function(){return m})),r.d(e,"oc",(function(){return b})),r.d(e,"fb",(function(){return f})),r.d(e,"E",(function(){return g})),r.d(e,"rb",(function(){return h})),r.d(e,"cc",(function(){return v})),r.d(e,"zc",(function(){return y})),r.d(e,"ic",(function(){return j})),r.d(e,"hb",(function(){return O})),r.d(e,"K",(function(){return k})),r.d(e,"hc",(function(){return S})),r.d(e,"L",(function(){return T})),r.d(e,"u",(function(){return w})),r.d(e,"S",(function(){return x})),r.d(e,"Mb",(function(){return C})),r.d(e,"xb",(function(){return L})),r.d(e,"O",(function(){return _})),r.d(e,"G",(function(){return I})),r.d(e,"gc",(function(){return $})),r.d(e,"Eb",(function(){return q})),r.d(e,"q",(function(){return P})),r.d(e,"lb",(function(){return A})),r.d(e,"N",(function(){return V})),r.d(e,"wb",(function(){return z})),r.d(e,"o",(function(){return E})),r.d(e,"U",(function(){return N})),r.d(e,"Ib",(function(){return B})),r.d(e,"Rb",(function(){return D})),r.d(e,"X",(function(){return U})),r.d(e,"Qb",(function(){return Q})),r.d(e,"v",(function(){return M})),r.d(e,"nb",(function(){return R})),r.d(e,"w",(function(){return J})),r.d(e,"W",(function(){return F})),r.d(e,"Pb",(function(){return H})),r.d(e,"Sb",(function(){return W})),r.d(e,"Y",(function(){return X})),r.d(e,"x",(function(){return Y})),r.d(e,"ob",(function(){return G})),r.d(e,"Zb",(function(){return K})),r.d(e,"db",(function(){return Z})),r.d(e,"Yb",(function(){return tt})),r.d(e,"J",(function(){return et})),r.d(e,"A",(function(){return rt})),r.d(e,"y",(function(){return ot})),r.d(e,"pb",(function(){return at})),r.d(e,"Z",(function(){return nt})),r.d(e,"Tb",(function(){return it})),r.d(e,"Bb",(function(){return st})),r.d(e,"wc",(function(){return ct})),r.d(e,"Ab",(function(){return ut})),r.d(e,"Q",(function(){return lt})),r.d(e,"H",(function(){return pt})),r.d(e,"s",(function(){return dt})),r.d(e,"mb",(function(){return mt})),r.d(e,"P",(function(){return bt})),r.d(e,"zb",(function(){return ft})),r.d(e,"j",(function(){return gt})),r.d(e,"l",(function(){return ht})),r.d(e,"T",(function(){return vt})),r.d(e,"Gb",(function(){return yt})),r.d(e,"ib",(function(){return jt})),r.d(e,"kb",(function(){return Ot})),r.d(e,"tc",(function(){return kt})),r.d(e,"jb",(function(){return St})),r.d(e,"sc",(function(){return Tt})),r.d(e,"vc",(function(){return wt})),r.d(e,"yc",(function(){return xt})),r.d(e,"uc",(function(){return Ct})),r.d(e,"xc",(function(){return Lt})),r.d(e,"rc",(function(){return _t})),r.d(e,"qc",(function(){return It})),r.d(e,"Xb",(function(){return $t})),r.d(e,"cb",(function(){return qt})),r.d(e,"I",(function(){return Pt})),r.d(e,"z",(function(){return At})),r.d(e,"qb",(function(){return Vt})),r.d(e,"bb",(function(){return zt})),r.d(e,"Wb",(function(){return Et})),r.d(e,"mc",(function(){return Nt})),r.d(e,"ab",(function(){return Bt})),r.d(e,"Jb",(function(){return Dt})),r.d(e,"Kb",(function(){return Ut})),r.d(e,"d",(function(){return Qt})),r.d(e,"e",(function(){return Mt})),r.d(e,"R",(function(){return Rt})),r.d(e,"Hb",(function(){return Jt})),r.d(e,"Fb",(function(){return Ft})),r.d(e,"Lb",(function(){return Ht})),r.d(e,"jc",(function(){return Wt})),r.d(e,"F",(function(){return Xt})),r.d(e,"n",(function(){return Yt})),r.d(e,"m",(function(){return Gt})),r.d(e,"vb",(function(){return Kt})),r.d(e,"fc",(function(){return Zt})),r.d(e,"a",(function(){return te})),r.d(e,"sb",(function(){return ee})),r.d(e,"k",(function(){return re})),r.d(e,"bc",(function(){return oe})),r.d(e,"yb",(function(){return ae})),r.d(e,"r",(function(){return ne})),r.d(e,"C",(function(){return ie})),r.d(e,"t",(function(){return se})),r.d(e,"M",(function(){return ce})),r.d(e,"g",(function(){return ue})),r.d(e,"f",(function(){return le})),r.d(e,"h",(function(){return pe})),r.d(e,"ub",(function(){return de})),r.d(e,"Ob",(function(){return me})),r.d(e,"Db",(function(){return be})),r.d(e,"tb",(function(){return fe})),r.d(e,"ac",(function(){return ge})),r.d(e,"pc",(function(){return he})),r.d(e,"lc",(function(){return ve})),r.d(e,"B",(function(){return ye})),r.d(e,"Ac",(function(){return je})),r.d(e,"eb",(function(){return Oe})),r.d(e,"Cb",(function(){return ke})),r.d(e,"nc",(function(){return Se})),r.d(e,"p",(function(){return Te})),r.d(e,"b",(function(){return we})),r.d(e,"c",(function(){return xe}));var o=r("b775");function a(t){return Object(o["a"])({url:"/smartor/target/targetInfo",method:"post",data:t})}function n(t){return Object(o["a"])({url:"/smartor/target/saveOrupdateIvrLibaTarget",method:"post",data:t})}function i(t){return Object(o["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function s(t){return Object(o["a"])({url:"/smartor/target/remove/"+t,method:"get"})}function c(t){return Object(o["a"])({url:"/smartor/icd10/list",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function l(t){return Object(o["a"])({url:"/smartor/baseopera/list",method:"post",data:t})}function p(t){return Object(o["a"])({url:"/smartor/outicd10/list",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function m(t){return Object(o["a"])({url:"/smartor/outicd10/remove/"+t,method:"get"})}function b(t){return Object(o["a"])({url:"/smartor/assort/selectIvrLibaTargetAssortList",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/smartor/assort/remove/"+t,method:"get"})}function g(t){return Object(o["a"])({url:"/smartor/assort/addtree",method:"post",data:t})}function h(t){return Object(o["a"])({url:"/smartor/assort/edit",method:"post",data:t})}function v(t){return Object(o["a"])({url:"/smartor/target/list",method:"post",data:t})}function y(t){return Object(o["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function j(t){return Object(o["a"])({url:"/smartor/script/list",method:"post",data:t})}function O(t){return Object(o["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function k(t){return Object(o["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function S(t){return Object(o["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function T(t){return Object(o["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function w(t){return Object(o["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function x(t){return Object(o["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function C(t){return Object(o["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function L(t){return Object(o["a"])({url:"/smartor/template/list",method:"post",data:t})}function _(t){return Object(o["a"])({url:"/smartor/template/remove/"+t,method:"get"})}function I(t){return Object(o["a"])({url:"/smartor/template/saveOrUpdateScript",method:"post",data:t})}function $(t){return Object(o["a"])({url:"/smartor/template/selectInfoByCondition",method:"post",data:t})}function q(t){return Object(o["a"])({url:"/smartor/ivrTaskTemplate/getTemplateInfoByID/"+t,method:"get"})}function P(t){return Object(o["a"])({url:"/smartor/templateassort/addtree",method:"post",data:t})}function A(t){return Object(o["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function V(t){return Object(o["a"])({url:"/smartor/templateassort/remove/"+t,method:"get"})}function z(t){return Object(o["a"])({url:"/smartor/templateassort/selectIvrLibaTemplateAssortList",method:"post",data:t})}function E(t){return Object(o["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function N(t){return Object(o["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function B(t){return Object(o["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function D(t){return Object(o["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function U(t){return Object(o["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function Q(t){return Object(o["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function M(t){return Object(o["a"])({url:"/smartor/extemplate/add",method:"post",data:t})}function R(t){return Object(o["a"])({url:"/smartor/extemplate/edit",method:"post",data:t})}function J(t){return Object(o["a"])({url:"/smartor/category/add",method:"post",data:t})}function F(t){return Object(o["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function H(t){return Object(o["a"])({url:"/smartor/category/list",method:"post",data:t})}function W(t){return Object(o["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function X(t){return Object(o["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function Y(t){return Object(o["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function G(t){return Object(o["a"])({url:"/smartor/extemplatescript/edit",method:"post",data:t})}function K(t){return Object(o["a"])({url:"/smartor/library/list",method:"post",data:t})}function Z(t){return Object(o["a"])({url:"/smartor/library/remove/"+t,method:"get"})}function tt(t){return Object(o["a"])({url:"/smartor/library/selectInfoByCondition",method:"post",data:t})}function et(t){return Object(o["a"])({url:"/smartor/library/saveOrUpdateHeLibrary",method:"post",data:t})}function rt(t){return Object(o["a"])({url:"/common/htmlContent",method:"post",data:t})}function ot(t){return Object(o["a"])({url:"/smartor/heLibraryAssort/addtree",method:"post",data:t})}function at(t){return Object(o["a"])({url:"/smartor/heLibraryAssort/edit",method:"post",data:t})}function nt(t){return Object(o["a"])({url:"/smartor/heLibraryAssort/remove/"+t,method:"get"})}function it(t){return Object(o["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}r("b8cc");function st(t){return Object(o["a"])({url:"/smartor/svyLibTemplate/selectSvyLibTemplatelist",method:"post",data:t})}function ct(t){return Object(o["a"])({url:"smartor/svytemplateTask/selectInfoByCondition",method:"post",data:t})}function ut(t){return Object(o["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function lt(t){return Object(o["a"])({url:"/smartor/svyLibTemplate/remove/"+t,method:"get"})}function pt(t){return Object(o["a"])({url:"/smartor/svyLibTemplate/saveOrUpdateTemplate",method:"post",data:t})}function dt(t){return Object(o["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function mt(t){return Object(o["a"])({url:"/smartor/svyLibTemplateCategory/edit",method:"post",data:t})}function bt(t){return Object(o["a"])({url:"/smartor/svyLibTemplateCategory/remove/"+t,method:"get"})}function ft(t){return Object(o["a"])({url:"/smartor/svyLibTemplateCategory/list",method:"post",data:t})}function gt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function ht(t){return Object(o["a"])({url:"/smartor/svytemplateTask/saveOrUpdateTaskTemp",method:"post",data:t})}function vt(t){return Object(o["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function yt(t){return Object(o["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function jt(t){return Object(o["a"])({url:"/smartor/td/add",method:"post",data:t})}function Ot(t){return Object(o["a"])({url:"/smartor/td/list",method:"get",params:t})}function kt(t){return Object(o["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function St(t){return Object(o["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function Tt(t){return Object(o["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function wt(t){return Object(o["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function xt(t){return Object(o["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function Ct(t){return Object(o["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function Lt(t){return Object(o["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function _t(t){return Object(o["a"])({url:"/smartor/serviceSubtaskDetail/editByCondition",method:"post",data:t})}function It(t){return Object(o["a"])({url:"/smartor/serviceSubtaskDetail/add",method:"post",data:t})}function $t(t){return Object(o["a"])({url:"/smartor/svyscript/list",method:"post",data:t})}function qt(t){return Object(o["a"])({url:"/smartor/svyscript/remove/"+t,method:"get"})}function Pt(t){return Object(o["a"])({url:"/smartor/svyscript/saveOrUpdateScript",method:"post",data:t})}function At(t){return Object(o["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function Vt(t){return Object(o["a"])({url:"/smartor/svyLibScriptCategory/edit",method:"post",data:t})}function zt(t){return Object(o["a"])({url:"/smartor/svyLibScriptCategory/remove/"+t,method:"get"})}function Et(t){return Object(o["a"])({url:"/smartor/svyLibScriptCategory/list",method:"post",data:t})}function Nt(t){return Object(o["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function Bt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function Dt(t){return Object(o["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Ut(t){return Object(o["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function Qt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Mt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/update",method:"post",data:t})}function Rt(t){return Object(o["a"])({url:"/smartor/servicetask/remove/"+t,method:"get"})}function Jt(t){return Object(o["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function Ft(t){return Object(o["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Ht(t){return Object(o["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Wt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Xt(t){return Object(o["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Yt(t){return Object(o["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function Gt(t){return Object(o["a"])({url:"/smartor/commonTask/taskSend",method:"post",data:t})}function Kt(t){return Object(o["a"])({url:"/smartor/servicetask/getScriptInfoByCondition",method:"post",data:t})}function Zt(t){return Object(o["a"])({url:"/smartor/outPath/getInfoByParam",method:"post",params:{param:t}})}function te(t){return Object(o["a"])({url:"/smartor/subtaskAnswer/saveQuestionCache",method:"post",data:t})}function ee(t){return Object(o["a"])({url:"/smartor/subtaskAnswer/getQuestionCache",method:"post",data:t})}function re(t){return Object(o["a"])({url:"/smartor/subtaskAnswer/saveQuestionAnswer",method:"post",data:t})}function oe(t){return Object(o["a"])({url:"/smartor/subtaskAnswer/selectPatQuestionResult",method:"post",data:t})}function ae(t){return Object(o["a"])({url:"/smartor/serviceSubtaskDetail/getPersonVoice",method:"post",data:t})}function ne(t){return Object(o["a"])({url:"/smartor/serviceSubtaskDetail/batchAdd",method:"post",data:t})}function ie(t){return Object(o["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function se(t){return Object(o["a"])({url:"/smartor/serviceSubtask/addSubTask",method:"post",data:t})}function ce(t){return Object(o["a"])({url:"/smartor/import/remove/"+t,method:"get"})}function ue(t){return Object(o["a"])({url:"/smartor/import/list",method:"post",data:t})}function le(t){return Object(o["a"])({url:"/smartor/import/edit",method:"post",data:t})}function pe(t){return Object(o["a"])({url:"/smartor/import/getInfo/"+t,method:"get"})}function de(t){return Object(o["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function me(t){return Object(o["a"])({url:"/smartor/patinhosp/selectPatMedInhospListCount",method:"post",data:t})}function be(t){return Object(o["a"])({url:"/smartor/serviceSubtask/getServiceStatistics",method:"post",data:t})}function fe(t){return Object(o["a"])({url:"/smartor/patinhosp/getDeptRanking",method:"post",data:t})}function ge(t){return Object(o["a"])({url:"/smartor/organization/list",method:"get"})}function he(t){return Object(o["a"])({url:"/sms/send",method:"post",data:t})}r("c38a");function ve(t){return Object(o["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function ye(t){return Object(o["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function je(t){return Object(o["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function Oe(t){return Object(o["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function ke(t){return Object(o["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Se(t){return Object(o["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function Te(t){return Object(o["a"])({url:"/getDept/"+t,method:"get"})}function we(){return Object(o["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function xe(t){return Object(o["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"63ce":function(t,e,r){"use strict";r.d(e,"h",(function(){return a})),r.d(e,"c",(function(){return n})),r.d(e,"i",(function(){return i})),r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return c})),r.d(e,"d",(function(){return u})),r.d(e,"e",(function(){return l})),r.d(e,"f",(function(){return p})),r.d(e,"g",(function(){return d}));var o=r("b775");r("c38a");function a(t){return Object(o["a"])({url:"/base/tag/edit",method:"post",data:t})}function n(t,e){var r={tagid:t,isupload:e};return Object(o["a"])({url:"/base/tag/edit",method:"post",data:r})}function i(t){return Object(o["a"])({url:"/system/tagcategory/edit",method:"post",data:t})}function s(t){return Object(o["a"])({url:"/base/tag/add",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/system/tagcategory",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/base/tag/remove/"+t,method:"get"})}function l(t){return Object(o["a"])({url:"/system/tagcategory/remove/"+t,method:"get"})}function p(t){return Object(o["a"])({url:"/base/tag/list",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/system/tagcategory/baseTagCategoryByName",method:"post",params:t})}},8081:function(t,e,r){"use strict";var o=r("037d"),a=r("c598").left,n=r("ee33"),i=r("3404"),s=r("fcfb"),c=!s&&i>79&&i<83,u=c||!n("reduce");o({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return a(this,t,e,e>1?arguments[1]:void 0)}})},"821f":function(t,e,r){"use strict";r("99fb")},"99fb":function(t,e,r){},b7ba:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"presentation-right"},[r("div",{staticClass:"sidecolumn"},[r("div",[r("el-steps",{attrs:{"finish-status":"success",active:t.Editprogress,simple:""}},[r("el-step",[r("template",{slot:"title"},[r("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){t.Editprogress=1}}},[t._v("问题基础信息编辑")])])],2),r("el-step",[r("template",{slot:"title"},[r("span",{staticStyle:{cursor:"pointer"},on:{click:t.nextstep}},[t._v("问题指标编辑")])])],2)],1)],1)]),1==t.Editprogress?r("div",[r("el-card",{staticClass:"box-card"},[r("el-form",{ref:"topicobj",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.topicobj,rules:t.rules}},[r("div",{staticClass:"headline"},[t._v(" 基础信息配置 "),r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"success"},on:{click:function(e){t.topicVisible=!0}}},[t._v("预览")])],1),r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.Saveproblem}},[t._v("保 存")])],1)]),r("el-divider"),r("div",{staticStyle:{"margin-left":"8%"}},[r("el-form-item",{attrs:{label:"问题内容",prop:"scriptContent"}},[r("el-input",{staticStyle:{width:"40vw"},attrs:{type:"textarea",id:"scriptContent",placeholder:"请输入问题内容"},on:{focus:function(e){return t.handleInput("scriptContent")}},model:{value:t.topicobj.scriptContent,callback:function(e){t.$set(t.topicobj,"scriptContent",e)},expression:"topicobj.scriptContent"}})],1),r("el-form-item",{attrs:{label:"问题说明",prop:"targetname"}},[r("el-input",{staticStyle:{width:"40vw"},attrs:{type:"textarea",placeholder:"请输入说明"},model:{value:t.topicobj.scriptDesc,callback:function(e){t.$set(t.topicobj,"scriptDesc",e)},expression:"topicobj.scriptDesc"}})],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"问题分类",prop:"categoryid"}},[r("el-select",{attrs:{size:"medium",filterable:"",placeholder:"请选择分类"},model:{value:t.topicobj.categoryid,callback:function(e){t.$set(t.topicobj,"categoryid",e)},expression:"topicobj.categoryid"}},t._l(t.classifylist,(function(e){return r("el-option-group",{key:e.id,attrs:{label:e.name}},t._l(e.svyLibScriptCategoryList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"评价类型",prop:"scoretype"}},[r("el-select",{attrs:{placeholder:"请选择分类"},model:{value:t.topicobj.scoretype,callback:function(e){t.$set(t.topicobj,"scoretype",e)},expression:"topicobj.scoretype"}},t._l(t.appraiselist,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),1==t.topicobj.scoretype?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"问题得分",prop:"score"}},[r("el-input",{attrs:{placeholder:"请输入分数"},model:{value:t.topicobj.score,callback:function(e){t.$set(t.topicobj,"score",e)},expression:"topicobj.score"}})],1)],1):t._e()],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"问题标题",prop:"scriptTopic"}},[r("el-input",{attrs:{placeholder:"请输入标题"},model:{value:t.topicobj.scriptTopic,callback:function(e){t.$set(t.topicobj,"scriptTopic",e)},expression:"topicobj.scriptTopic"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"是否可用",prop:"isavailable"}},[r("el-radio-group",{model:{value:t.topicobj.isavailable,callback:function(e){t.$set(t.topicobj,"isavailable",e)},expression:"topicobj.isavailable"}},t._l(t.usable,(function(e,o){return r("el-radio",{attrs:{label:e.value},on:{change:function(e){return t.$forceUpdate()}}},[t._v(t._s(e.label))])})),1)],1)],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"问题类型",prop:"scriptType"}},[r("el-select",{attrs:{size:"medium",filterable:"",placeholder:"请选择分类"},on:{change:t.changefn},model:{value:t.topicobj.scriptType,callback:function(e){t.$set(t.topicobj,"scriptType",e)},expression:"topicobj.scriptType"}},t._l(t.valuetype,(function(t){return r("el-option",{key:t.value,staticClass:"topicobjaa",attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"适用方式",prop:"suitway"}},[r("el-select",{attrs:{disabled:"",placeholder:"请选择"},model:{value:t.topicobj.suitway,callback:function(e){t.$set(t.topicobj,"suitway",e)},expression:"topicobj.suitway"}},t._l(t.mode,(function(t){return r("el-option",{key:t.value,staticClass:"topicobjaa",attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"语言",prop:"language"}},[r("el-select",{attrs:{size:"medium",filterable:"",placeholder:"请选择分类"},model:{value:t.topicobj.language,callback:function(e){t.$set(t.topicobj,"language",e)},expression:"topicobj.language"}},t._l(t.languagelist,(function(t){return r("el-option",{key:t.value,staticClass:"topicobjaa",attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1)],1),r("div",{staticClass:"headline"},[t._v("关联信息配置")]),r("el-divider"),r("div",{staticStyle:{"margin-left":"8%"}},[r("el-row",[r("el-form-item",{attrs:{label:"标签",prop:"desc"}},[r("div",{staticClass:"xinz-inf"},[t._l(t.dynamicTags,(function(e){return r("el-tag",{key:e.tagname,attrs:{type:"success",closable:"","disable-transitions":!1},on:{close:function(r){return t.handleClosetag(e)}}},[t._v(" "+t._s(e.tagname)+" ")])})),t.inputVisible?r("el-select",{attrs:{filterable:"",remote:"","allow-create":"","reserve-keyword":"","default-first-option":"","remote-method":t.remoteMethodtag,loading:t.loading,placeholder:"请选择"},on:{change:t.handleInputConfirm},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},t._l(t.optionstag,(function(t){return r("el-option",{key:t.tagid,attrs:{label:t.tagname,value:t.tagname}})})),1):r("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增标签")])],2)])],1),r("el-form-item",{attrs:{label:"题干文件",prop:"sickness"}},[r("div",{staticStyle:{width:"40vw"}},[r("el-upload",{staticClass:"upload-demo",attrs:{action:t.uploadImgUrl,headers:t.headers,accept:".jpg,.png,image/*","on-success":t.handleChangetg}},[r("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 只能上传jpg/png类型文件 ")])],1),r("div",{staticStyle:{margin:"20px"}},[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.topicobj.picturePath,"preview-src-list":t.topicobj.picturePath?[t.topicobj.picturePath]:[]}})],1)],1)])],1)],1)],1)],1):t._e(),2==t.Editprogress?r("div",[r("el-card",{staticClass:"box-card"},[r("el-form",{ref:"topicobj",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.topicobj}},[r("div",{staticClass:"headline"},[t._v(" 指标设置详情 "),t.topicobj.targetname?r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"success"},on:{click:function(e){t.topicVisible=!0}}},[t._v("预览")])],1):t._e(),r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"primary",round:""},on:{click:t.gettargetInfo}},[t._v(t._s(t.topicobj.targetname?"修改指标":"+选择指标"))])],1),r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.Saveproblem}},[t._v("保 存")])],1)]),r("el-divider"),r("el-form",{ref:"form"},[r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"指标名称",prop:"deptId"}},[r("el-input",{attrs:{disabled:"",placeholder:"请输入指标名称",maxlength:"20"},model:{value:t.topicobj.targetname,callback:function(e){t.$set(t.topicobj,"targetname",e)},expression:"topicobj.targetname"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"指标描述",prop:"deptId"}},[r("el-input",{attrs:{disabled:"",placeholder:"请输入指标描述",maxlength:"60"},model:{value:t.topicobj.targetdesc,callback:function(e){t.$set(t.topicobj,"targetdesc",e)},expression:"topicobj.targetdesc"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"结果类型"}},[r("el-radio-group",{attrs:{disabled:!0},model:{value:t.topicobj.valueType,callback:function(e){t.$set(t.topicobj,"valueType",e)},expression:"topicobj.valueType"}},[r("el-radio",{attrs:{label:1}},[t._v("选项")]),r("el-radio",{attrs:{label:2}},[t._v("文本")]),r("el-radio",{attrs:{label:3}},[t._v("数值")])],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"问题题型"}},[r("el-radio-group",{attrs:{disabled:!0},model:{value:t.topicobj.scriptType,callback:function(e){t.$set(t.topicobj,"scriptType",e)},expression:"topicobj.scriptType"}},[r("el-radio",{attrs:{label:"1"}},[t._v("单选")]),r("el-radio",{attrs:{label:"2"}},[t._v("多选")]),r("el-radio",{attrs:{label:"4"}},[t._v("问答")])],1)],1)],1)],1)],1),r("div",[r("el-divider"),4!=t.topicobj.scriptType?r("div",[r("div",{staticClass:"headline"},[t._v(" 选项设置"),r("span",{staticStyle:{"margin-left":"30px"}},[r("el-button",{attrs:{type:"primary",round:""},on:{click:t.addoption}},[t._v("+新增")])],1)]),t._l(t.topicobj.svyLibScriptOptions,(function(e){return 3!=e.isoperation?r("div",{staticClass:"topicxq"},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:11}},[r("el-form-item",{attrs:{label:"选项名称"}},[r("el-input",{attrs:{type:"text",placeholder:"请输入选项分值","show-word-limit":""},model:{value:e.optioncontent,callback:function(r){t.$set(e,"optioncontent",r)},expression:"item.optioncontent"}})],1)],1),r("el-col",{attrs:{span:11}},[1==t.topicobj.scoretype?r("el-form-item",{attrs:{label:"分值"}},[r("el-input",{attrs:{type:"text",placeholder:"请输入选项分值","show-word-limit":""},model:{value:e.score,callback:function(r){t.$set(e,"score",r)},expression:"item.score"}})],1):2==t.topicobj.scoretype?r("el-form-item",{attrs:{label:"ABC等级"}},[r("el-radio-group",{model:{value:e.score,callback:function(r){t.$set(e,"score",r)},expression:"item.score"}},[r("el-radio",{attrs:{label:1}},[t._v("A")]),r("el-radio",{attrs:{label:2}},[t._v("B")]),r("el-radio",{attrs:{label:3}},[t._v("C")])],1)],1):3==t.topicobj.scoretype?r("el-form-item",{attrs:{label:"优良等级"}},[r("el-radio-group",{model:{value:e.score,callback:function(r){t.$set(e,"score",r)},expression:"item.score"}},[r("el-radio",{attrs:{label:"优"}},[t._v("优")]),r("el-radio",{attrs:{label:"良"}},[t._v("良")]),r("el-radio",{attrs:{label:"差"}},[t._v("差")])],1)],1):t._e()],1),r("el-col",{attrs:{span:2,offsset:4==t.topicobj.scoretype?11:0}},[r("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(r){return t.deletexuanx(e)}}})],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-form-item",{attrs:{label:"异常提醒"}},[r("el-radio-group",{model:{value:e.isabnormal,callback:function(r){t.$set(e,"isabnormal",r)},expression:"item.isabnormal"}},[r("el-radio",{attrs:{label:1}},[t._v("是")]),r("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-form-item",{attrs:{label:"选中提示"}},[r("el-input",{staticStyle:{width:"40vw"},attrs:{type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:e.prompt,callback:function(r){t.$set(e,"prompt",r)},expression:"item.prompt"}})],1)],1),r("el-form-item",{attrs:{label:"选项文件",prop:"sickness"}},[r("div",{staticStyle:{width:"40vw"}},[r("el-upload",{staticClass:"upload-demo",attrs:{action:t.uploadImgUrl,headers:t.headers,accept:".jpg,.png,image/*","on-success":t.handleChange.bind(this,e)}},[r("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),r("div",{staticStyle:{margin:"20px"}},[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.picturePath,"preview-src-list":e.picturePath?[e.picturePath]:[]}})],1)],1)])],1):t._e()}))],2):r("div",{staticClass:"topicxq"},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"此处展示问答题收集信息"},model:{value:t.testgovalue,callback:function(e){t.testgovalue=e},expression:"testgovalue"}})],1)],1)],1)],1)],1):t._e()]),r("el-drawer",{attrs:{title:"选择指标",visible:t.drawer,"custom-class":"demo-drawer",size:"50%"},on:{"update:visible":function(e){t.drawer=e}}},[r("div",{staticClass:"preview-left"},[r("el-form",{ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"98px"}},[r("el-form-item",{attrs:{label:"指标名称",prop:"userName"}},[r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.gettargetInfo(e)}},model:{value:t.queryParams.targetname,callback:function(e){t.$set(t.queryParams,"targetname",e)},expression:"queryParams.targetname"}})],1),r("el-form-item",{attrs:{label:"指标说明",prop:"userName"}},[r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.gettargetInfo(e)}},model:{value:t.queryParams.targetdesc,callback:function(e){t.$set(t.queryParams,"targetdesc",e)},expression:"queryParams.targetdesc"}})],1),r("el-form-item",{attrs:{label:"指标类型",prop:"scriptType"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.queryParams.scriptType,callback:function(e){t.$set(t.queryParams,"scriptType",e)},expression:"queryParams.scriptType"}},t._l(t.qyoptions,(function(t,e){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:t.gettargetInfo}},[t._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.targetList}},[r("el-table-column",{key:"targetname",attrs:{label:"指标名称",align:"center",prop:"targetname",width:"100"}}),r("el-table-column",{key:"targetdesc",attrs:{label:"指标说明",align:"center",prop:"targetdesc",width:"200","show-overflow-tooltip":!0}}),r("el-table-column",{key:"isavailable",attrs:{label:"是否可用",align:"center",prop:"isavailable"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("dict-tag",{attrs:{options:t.usable,value:e.row.isavailable}})]}}])}),r("el-table-column",{key:"scriptType",attrs:{label:"问题类型",align:"center",prop:"scriptType"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("dict-tag",{attrs:{options:t.valuetype,value:e.row.scriptType}})]}}])}),r("el-table-column",{key:"optionDesc",attrs:{label:"选项说明",align:"center",prop:"optionDesc",width:"200","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(r){return t.selectlabel(e.row)}}},[r("span",{staticClass:"button-textxg"},[r("i",{staticClass:"el-icon-circle-plus-outline"}),t._v("选择")])])]}}])})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.gettargetInfo}})],1)]),r("el-dialog",{attrs:{title:"问题预览",visible:t.topicVisible,width:"50%"},on:{"update:visible":function(e){t.topicVisible=e}}},[r("div",{staticClass:"preview-left"},[r("div",{staticClass:"dev-text"},[r("span",[t._v(t._s(t.topicobj.scriptContent))])]),3!=t.topicobj.scriptType&&4!=t.topicobj.scriptType?r("div",{staticClass:"dev-xx"},[r("el-radio-group",{model:{value:t.topicobj.asrtext,callback:function(e){t.$set(t.topicobj,"asrtext",e)},expression:"topicobj.asrtext"}},t._l(t.topicobj.svyLibScriptOptions,(function(e,o){return r("el-radio",{key:e.optioncontent,attrs:{label:e.optioncontent}},[t._v(t._s(e.optioncontent))])})),1)],1):r("div",[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",rows:2},model:{value:t.topicobj.asrtext,callback:function(e){t.$set(t.topicobj,"asrtext",e)},expression:"topicobj.asrtext"}})],1)])])],1)},a=[],n=r("1b86"),i=r("f458"),s=r("025b"),c=r("b3d7"),u=(r("618d"),r("9364"),r("a76c"),r("fb51"),r("2f82"),r("6678"),r("8081"),r("a5a2"),r("6e70"),r("d3c0"),r("f24b"),r("c33f"),r("21b9"),r("16d2"),r("8ada"),r("4a55"),r("e795"),r("cfee"),r("aad4"),r("63ce")),l=r("4360"),p=r("40d6"),d=r("5f87"),m={data:function(){var t;return t={topicobj:{svyLibScriptOptions:[],svyLibScriptTagList:[],suitway:"1",scoretype:"4",language:"普通话"},headers:{Authorization:"Bearer "+Object(d["a"])()},uploadImgUrl:"/prod-api/common/uploadSort",inputVisible:!1,inputValue:"",currentInputId:"",scriptTypels:"",total:0,drawer:!1,loading:!1,topicVisible:!1,id:[],suitwaylist:[],targetList:[],dynamicTags:[],optionsclass:[],variablelist:[{variatename:"姓名",variate:"${name}",default:1},{variatename:"电话",variate:"${phone}",default:1},{variatename:"病情",variate:"${illness}",default:1}],url:"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",srcList:["https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg","https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg"],queryParams:{pageNum:1,pageSize:10,isavailable:"",scriptType:""},Editprogress:1,optionlist:[{value:"scriptTopic",table:"scriptTopic"},{value:"scriptTopic",table:"scriptTopic"},{value:"scriptTopic",table:"scriptTopic"}],inputValueillness:"",testgovalue:"",required:[],themelist:[],languagelist:[],courtyardlist:[],precedencetype:[]},Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(t,"inputVisible",!1),"inputVisibleillness",!1),"illnessVisible",!1),"deptOptions",[]),"qyoptions",[]),"optionsillness",[]),"illnesslistapi",[]),"illnesslist",[]),"classifylist",[]),"appraiselist",[{label:"分数",value:"1"},{label:"ABC等级",value:"2"},{label:"优良等级",value:"3"},{label:"无",value:"4"}]),Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(t,"optionstag",[]),"valuetype",[]),"usable",[]),"mode",[]),"rules",{categoryid:[{required:!0,message:"问题分类不能为空",trigger:"blur"}],scoretype:[{required:!0,message:"评价类型不能为空",trigger:"blur"}],language:[{required:!0,message:"语言不能为空",trigger:"blur"}],isavailable:[{required:!0,message:"可用状态不能为空",trigger:"blur"}],scriptTopic:[{required:!0,message:"问题标题不能为空",trigger:"blur"}],ismandatory:[{required:!0,message:"是否必填不能为空",trigger:"blur"}],scriptType:[{required:!0,message:"问题类型不能为空",trigger:"blur"}],suitway:[{required:!0,message:"适用方式不能为空",trigger:"blur"}],scriptContent:[{required:!0,message:"问题内容不能为空",trigger:"blur"}]})},created:function(){this.gettabList(),this.getissueinfo(),this.mode=l["a"].getters.mode,this.languagelist=l["a"].getters.languagelist,this.usable=l["a"].getters.usable,this.valuetype=l["a"].getters.askvaluetype,this.required=l["a"].getters.required,this.qyoptions=l["a"].getters.askvaluetype},methods:{getIndexInArray:function(t,e){return t.indexOf(e)},processElement:function(t){return Object(s["a"])(Object(s["a"])({},t),{},{isoperation:1})},flattenArray:function(t){var e=this,r=[];return t.forEach((function(t){r.push(t),t.svyLibTopicCategoryList&&(console.log(2),r=r.concat(e.flattenArray(t.svyLibTopicCategoryList)),delete t.svyLibTopicCategoryList)})),r},getissueinfo:function(){var t=this;this.id=this.$route.query.id,Object(p["Wb"])({}).then((function(e){t.classifylist=e.rows,t.$route.query.categoryid&&(t.topicobj.categoryid=Number(t.$route.query.categoryid))})),this.id&&(Object(p["Xb"])({id:this.id}).then((function(e){t.topicobj=e.rows[0],t.topicobj.svyLibScriptTagList||(t.topicobj.svyLibScriptTagList=[]),t.dynamicTags=t.topicobj.svyLibScriptTagList.map(t.processElement),t.scriptTypels=t.topicobj.scriptType,t.variablelist=JSON.parse(t.topicobj.otherdata)?JSON.parse(t.topicobj.otherdata):t.variablelist})),Object(p["Vb"])({pageNum:1,pageSize:100}).then((function(e){t.optionsillness=e.rows})),Object(p["Ub"])({outid:this.id,type:4}).then((function(e){t.illnesslist=e.rows})))},gettargetInfo:function(){var t=this;this.queryParams.scriptType||(this.queryParams.scriptType=this.topicobj.scriptType),this.queryParams.suitWay=1,Object(p["dc"])(this.queryParams).then((function(e){t.targetList=e.rows,t.total=e.total,t.drawer=!0}))},compileissue:function(){var t=this;this.$refs["topicobj"].validate((function(e){e&&(t.topicobj.svyLibScriptOptions=t.topicobj.svyLibScriptOptions.map((function(t){return 1!=t.isoperation&&3!=t.isoperation&&(t.isoperation=2),t})),t.topicobj.targetoptions=t.topicobj.svyLibScriptOptions.filter((function(t){return 3!=t.isoperation})).map((function(t){return t.optioncontent})).join(", "),t.topicobj.otherdata=JSON.stringify(t.variablelist),t.id?(t.topicobj.isoperation=2,Object(p["I"])(t.topicobj).then((function(e){200==e.code?(t.$message({message:"修改成功",type:"success"}),t.$router.go(-1)):t.$message({message:"修改失败",type:"error"})}))):(t.topicobj.isoperation=1,Object(p["I"])(t.topicobj).then((function(e){200==e.code?(t.$message({message:"新增成功",type:"success"}),t.$router.go(-1)):t.$message({message:"新增失败",type:"error"})}))),t.illnesslist.forEach((function(t,e){t.id||Object(p["D"])(t).then((function(t){}))})),t.illnesslistapi.length&&Object(p["gb"])(t.illnesslistapi.join(",")).then((function(t){})))}))},Scorejudgment:function(){var t=this,e=this.topicobj.svyLibScriptOptions,r=e.every((function(r,o){if(1==t.topicobj.scriptType)return r.score||0==r.score?!(Number(r.score)<0||Number(r.score)>Number(t.topicobj.score))||(console.log(r,"错误分值"),t.$message({message:"选项分值必须在0到"+t.topicobj.score+"分之间",type:"warning"}),!1):(t.$message({message:"选项分值未设置",type:"warning"}),!1);if(2==t.topicobj.scriptType){var a=e.reduce((function(t,e){return e.score?t+Number(e.score):t}),0);return a===Number(t.topicobj.score)||(t.$message({message:"多选题选项分值总和必须等于 "+t.topicobj.score+" 分",type:"warning"}),!1)}return 4==t.topicobj.scriptType||void 0}));r&&this.compileissue()},Saveproblem:function(){1==this.topicobj.scoretype?this.Scorejudgment():this.compileissue()},changefn:function(t){var e=this;console.log(t),(this.topicobj.targetname||this.topicobj.svyLibScriptOptions[0])&&this.$modal.confirm("更改类型后选项将清空是否继续?").then((function(){e.scriptTypels=e.topicobj.scriptType,e.topicobj.svyLibScriptOptions.forEach((function(t){t.isoperation=3}))})).catch((function(){e.topicobj.scriptType=e.scriptTypels}))},deletexuanx:function(t){var e=this.getIndexInArray(this.topicobj.svyLibScriptOptions,t);console.log(this.topicobj.svyLibScriptOptions),this.topicobj.svyLibScriptOptions[e].id?this.topicobj.svyLibScriptOptions[e].isoperation=3:this.topicobj.svyLibScriptOptions.splice(e,1)},addoption:function(){console.log(this.topicobj,"obj"),this.topicobj.svyLibScriptOptions.push({score:"",isoperation:1})},selectlabel:function(t){var e=this;this.$modal.confirm('是否选择标题为"'+t.targetname+'"的指标并替换填充问题及选项信息?').then((function(){console.log(t),e.topicobj.valueType=t.valueType,e.topicobj.scriptType=t.scriptType,e.topicobj.targetid=t.id,e.topicobj.targetname=t.targetname,e.topicobj.svyLibScriptOptions=[];var r=t.targetoptionList;r.forEach((function(t){e.topicobj.svyLibScriptOptions.push({optioncontent:t.targetvalue,isoperation:1})})),e.drawer=!1})).catch((function(){}))},gettabList:function(){var t=this,e={pageNum:1,pageSize:1e3,tagcategoryid:"0"};Object(u["f"])(e).then((function(e){t.optionstag=e.rows}))},handleClosetag:function(t){console.log(this.dynamicTags.indexOf(t));var e=this.dynamicTags.indexOf(t);this.dynamicTags.splice(this.dynamicTags.indexOf(t),1),this.topicobj.svyLibScriptTagList[e].delFlag=1},handleInputConfirm:function(){var t=this,e={},r=this.inputValue;r&&Object(u["f"])({pageNum:1,pageSize:1e3,tagcategoryid:"0",tagname:r}).then((function(o){o.rows[0]?(e=o.rows[0],e.isoperation=1):e={tagname:r,isoperation:1},t.topicobj.svyLibScriptTagList.push(e),t.dynamicTags.push(e)})),this.inputVisible=!1,this.inputValue=""},remoteMethodtag:function(t){var e=this;""!==t?(this.loading=!0,setTimeout((function(){e.loading=!1,Object(u["f"])({tagname:t,tagcategoryid:"0"}).then((function(t){e.optionstag=t.rows}))}),200)):this.optionstag=[]},showInput:function(){this.inputVisible=!0},handleCloseillness:function(t){this.illnesslist.splice(this.illnesslist.indexOf(t),1),t.id&&this.illnesslistapi.push(t.id)},remoteMethod:function(t){var e=this;console.log(t);var r={pageNum:1,pageSize:100,icdname:t};this.loading=!0,setTimeout((function(){e.loading=!1,Object(p["Vb"])(r).then((function(t){e.optionsillness=t.rows}))}),200)},illnessConfirm:function(t){var e=this,r={},o=this.inputValueillness;Object(p["kc"])(t).then((function(t){r=t.data,r.outid=e.id,r.type=4,r.icd10id=r.icdid,r.icd10name=r.icdname,r.icd10code=r.icdcode,o&&e.illnesslist.push(r)})),console.log(this.illnesslist),this.inputVisibleillness=!1,this.inputValueillness=""},resetQuery:function(){this.queryParams={pageNum:1,pageSize:10},this.gettargetInfo()},tsgnametos:function(t){var e="",r=this.topicobj.svyLibScriptOptions.length+1,o=document.querySelector("#"+this.currentInputId);if("scriptContent"==this.currentInputId){console.log(1),e=this.topicobj.scriptContent.split(""),console.log(2);var a=o.selectionEnd-o.selectionStart;e.splice(o.selectionStart,a,"__"+r+"__"),this.topicobj.svyLibScriptOptions.push({orderno:r,optiondesc:"",isoperation:1}),e=e.join(""),console.log(e),"scriptContent"==this.currentInputId&&(this.topicobj.scriptContent=e)}},addvariable:function(){this.variablelist.push({variatename:"",variate:""})},delvariable:function(t){var e=this.variablelist.indexOf(t);-1!==e?this.variablelist.splice(e,1):console.log("未找到该对象")},handleInput:function(t){this.currentInputId=t,console.log("输入框的值已更新:",this.currentInputId)},generateCombinations:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t.length)return[r];var o,a=t[e],s=[],c=Object(i["a"])(a);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=[].concat(Object(n["a"])(r),[u]),p=this.generateCombinations(t,e+1,l);s.push.apply(s,Object(n["a"])(p))}}catch(d){c.e(d)}finally{c.f()}return s},test:function(){var t=[["2","3","4","5"],["1","2","5","6"],["3","4","5","3"],["3","2","5","7"]],e=this.generateCombinations(t);console.log(e,"全部路线"),this.screen(e)},sumArray:function(t){return t.reduce((function(t,e){return t+parseInt(e)}),0)},screen:function(t){var e=this,r=t.filter((function(t){return e.sumArray(t)>21}));console.log(r,"筛选错误路线大于13分")},handleChange:function(t,e,r,o){if(console.log(e),200==e.code){console.log(t);var a=this.topicobj.svyLibScriptOptions.findIndex((function(e){return e.optioncontent==t.optioncontent}));console.log(a),this.topicobj.svyLibScriptOptions[a].picturePath=e.url,console.log(this.topicobj.svyLibScriptOptions[a]),this.$forceUpdate()}else this.$message.error("图片插入失败")},handleChangetg:function(t,e,r){200==t.code?this.topicobj.picturePath=t.url:this.$message.error("图片插入失败")},nextstep:function(){if(this.Editprogress<=1)return this.Editprogress++},laststep:function(){this.Editprogress=this.Editprogress-1}}},b=m,f=(r("821f"),r("1805")),g=Object(f["a"])(b,o,a,!1,null,"1ce6e7a1",null);e["default"]=g.exports},c598:function(t,e,r){"use strict";var o=r("a143"),a=r("ba03"),n=r("8308"),i=r("4e61"),s=TypeError,c="Reduce of empty array with no initial value",u=function(t){return function(e,r,u,l){var p=a(e),d=n(p),m=i(p);if(o(r),0===m&&u<2)throw new s(c);var b=t?m-1:0,f=t?-1:1;if(u<2)while(1){if(b in d){l=d[b],b+=f;break}if(b+=f,t?b<0:m<=b)throw new s(c)}for(;t?b>=0:m>b;b+=f)b in d&&(l=r(l,d[b],b,p));return l}};t.exports={left:u(!1),right:u(!0)}}}]);
|