Index-legacy-62f099c5.js 6.5 KB

1
  1. System.register(["./index-legacy-4d01450a.js","./CusNavigation-legacy-6c20afcf.js","./index-legacy-755e9f4a.js","./ReloadOutlined-legacy-525c1ef3.js"],(function(e,t){"use strict";var n,i,l,o,a,d,r,u,c,s,f,p,v,x,h,g,y,m,b,w,k,_;return{setters:[function(e){n=e.d,i=e.i,l=e.v,o=e.a,a=e.n,d=e.r,r=e.o,u=e.y,c=e.c,s=e.f,f=e.e,p=e.w,v=e.S,x=e.t,h=e.h,g=e.D,y=e.p,m=e.j,b=e._},function(e){w=e.C},function(e){k=e.p},function(e){_=e.R}],execute:function(){var t=document.createElement("style");t.textContent="[data-v-d67680c9] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-d67680c9] .ant-spin-nested-loading{height:100%}[data-v-d67680c9] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-d67680c9] .ant-table{flex-grow:1;height:0px}[data-v-d67680c9] .ant-table-container{height:100%;display:flex;flex-direction:column}[data-v-d67680c9] .ant-table-body{overflow-y:auto!important;flex-grow:1;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-d67680c9] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-d67680c9] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-d67680c9] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-d67680c9] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-d67680c9] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-d67680c9]:hover{cursor:not-allowed}\n",document.head.appendChild(t);var C=function(e){return y("data-v-d67680c9"),e=e(),m(),e},z={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},T={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},F={style:{display:"flex"}},j={style:{"text-align":"left"}},S={key:0,style:{color:"green"}},N=[C((function(){return f("span",null,"持续泵",-1)}))],D={key:1,style:{color:"pink"}},W=[C((function(){return f("span",null,"脉冲泵",-1)}))],I={key:2,style:{color:"blue"}},R=[C((function(){return f("span",null,"智能泵",-1)}))],E={key:3,style:{color:"pink"}},H=[C((function(){return f("span",null,"化疗泵",-1)}))],J={key:4},M=[C((function(){return f("span",{style:{color:"#dba7a7"}},"未知",-1)}))],O=["onClick"],Q=C((function(){return f("a",{style:{"margin-left":"26px"}},"删除",-1)}));e("default",b(n({__name:"Index",setup:function(e){var t=i(null),n=l({x:1300}),y=l({pageSize:20,current:1,size:"default",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,t){console.log("111",e,t),this.current=e,this.pageSize=t,U()}}),m=i([]),b=i(!1),C=l({size:20,page:1,sort:"createtime",order:"desc",keyWord:"",mac:""}),U=function(){b.value=!0,C.size=y.pageSize,C.page=y.current,k({url:"/device/search",data:C},(function(e){console.log(e),y.total=e.total,m.value=e.data,b.value=!1}))},q=function(){y.current=1,U()},A=o();return a((function(){var e;console.log("device onMounted..."),n.y=(null===(e=t.value)||void 0===e?void 0:e.clientHeight)-113,U()})),function(e,i){var l=d("a-tooltip"),o=d("a-input"),a=d("a-form-item"),B=d("a-form"),G=d("a-table-column"),K=d("a-popconfirm"),L=d("a-table");return r(),u("div",z,[c(s(w),{title:"设备"}),f("div",T,[f("div",F,[c(B,{layout:"inline",model:C},{default:p((function(){return[c(a,null,{default:p((function(){return[c(o,{allowClear:"",value:C.keyWord,"onUpdate:value":i[0]||(i[0]=function(e){return C.keyWord=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:p((function(){return[c(l,{title:"点击搜索",onClick:q},{default:p((function(){return[c(s(v),{style:{color:"rgba(0, 0, 0, 0.45)"}})]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1},8,["model"])]),f("div",null,[c(l,{onClick:U},{default:p((function(){return[c(s(_),{style:{"font-size":"16px"},spin:b.value},null,8,["spin"])]})),_:1})])]),f("div",{ref_key:"table_container",ref:t,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[c(L,{"data-source":m.value,pagination:y,scroll:n,bordered:!0,loading:b.value,size:"middle"},{default:p((function(){return[c(G,{title:"序号",width:60,fixed:"left",align:"center"},{default:p((function(e){var t=e.index;return[f("div",null,x(t+1),1)]})),_:1}),c(G,{title:"设备编号","data-index":"id",width:180,fixed:"left"}),c(G,{title:"设备类型",width:100,fixed:"left"},{default:p((function(e){var t,n,i,l,o=e.record;return[f("div",j,[1==(null===(t=o.items)||void 0===t?void 0:t.pumpType)?(r(),u("div",S,N)):2==(null===(n=o.items)||void 0===n?void 0:n.pumpType)?(r(),u("div",D,W)):3==(null===(i=o.items)||void 0===i?void 0:i.pumpType)?(r(),u("div",I,R)):4==(null===(l=o.items)||void 0===l?void 0:l.pumpType)?(r(),u("div",E,H)):(r(),u("div",J,M))])]})),_:1}),c(G,{title:"住院号","data-index":"patientCode",width:120,fixed:"left"}),c(G,{title:"输注总量","data-index":"productName",width:80},{default:p((function(e){var t,n=e.record;return[f("div",null,[f("span",null,x(null===(t=n.items)||void 0===t?void 0:t.totalDose),1)])]})),_:1}),c(G,{title:"持续量","data-index":"productName",width:80},{default:p((function(e){var t,n=e.record;return[f("div",null,[f("span",null,x(null===(t=n.items)||void 0===t||null===(t=t.continueDose)||void 0===t?void 0:t.toFixed(1)),1)])]})),_:1}),c(G,{title:"已输入量","data-index":"productName",width:80},{default:p((function(e){var t,n=e.record;return[f("div",null,[f("span",null,x(null===(t=n.items)||void 0===t||null===(t=t.finishDose)||void 0===t?void 0:t.toFixed(1)),1)])]})),_:1}),c(G,{title:"电量","data-index":"productName",width:80},{default:p((function(e){var t,n=e.record;return[f("div",null,[f("span",null,x(null===(t=n.items)||void 0===t?void 0:t.electricity),1)])]})),_:1}),c(G,{title:"添加时间","data-index":"createTime",width:200}),c(G,{title:"最近更新时间","data-index":"updateTime",width:200,fixed:"right"}),c(G,{title:"操作",width:160,fixed:"right"},{default:p((function(e){var t=e.record;return[f("div",null,[f("a",{style:{"margin-left":"0px"},onClick:function(e){return function(e){console.log(e),A.push("/"+h+"/device/detail/"+e.id)}(t)}},"查看",8,O),c(K,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:function(e){return function(e){console.log(e);var t={id:e.id};k({url:"/device/delete",data:t},(function(e){console.log(e),g.info(e.msg),U()}))}(t)}},{default:p((function(){return[Q]})),_:2},1032,["onConfirm"])])]})),_:1})]})),_:1},8,["data-source","pagination","scroll","loading"])],512)])}}}),[["__scopeId","data-v-d67680c9"]]))}}}));