12 |
- "use strict";(self["webpackChunkbaozhidao_putoutstorage"]=self["webpackChunkbaozhidao_putoutstorage"]||[]).push([[253],{9417:function(e,a,t){t.d(a,{Z:function(){return s}});var l=t(6252);const o={class:"card-header"};function n(e,a){const t=(0,l.up)("el-text"),n=(0,l.up)("el-card");return(0,l.wg)(),(0,l.j4)(n,{class:"box-card"},{header:(0,l.w5)((()=>[(0,l._)("div",o,[(0,l.Wm)(t,null,{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"card-tit")])),_:3}),(0,l.Wm)(t,{tag:"b"},{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"card-subhead")])),_:3})])])),default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"card-content")])),_:3})}var r=t(3744);const i={},p=(0,r.Z)(i,[["render",n]]);var s=p},6115:function(e,a,t){t.d(a,{Z:function(){return g}});var l=t(6252),o=t(2262),n=t(3577);const r=(e,a={},t=!0,l)=>{const n=(0,o.qj)({tableData:[],loading:!0,pageable:{pageNum:1,pageSize:8,total:0,RemainingTime:0,small:!0,disabled:!1},searchParam:{},searchInitParam:{},totalParam:{}}),r=async()=>{const t={page:n.pageable.pageNum,pageSize:n.pageable.pageSize,...a};e(t).then((e=>{n.tableData=e.data?.list||[],n.pageable.total=parseInt(e.data?.count),e.Data?.RemainingTime&&(n.pageable.RemainingTime=e.Data.RemainingTime),n.loading=!1}))},i=e=>{n.pageable.pageSize=e,r()},p=e=>{n.pageable.pageNum=e,r()},s=()=>{n.pageable.pageNum=1,r()};return{...(0,o.BK)(n),getTableList:r,searchTable:s,handleSizeChange:i,handleCurrentChange:p}},i={class:"y-tabs"},p={key:0,style:{color:"red"}},s={style:{"margin-top":"20px"}};var d=(0,l.aZ)({__name:"table",props:{columns:{default:()=>[]},requestApi:{},dataCallback:{},title:{},pagination:{type:Boolean,default:!0},layout:{default:"total, sizes, prev, pager, next, jumper"},initParam:{default:{}},border:{type:Boolean,default:!0},toolButton:{type:Boolean,default:!0},selectId:{default:"id"},displayHeader:{type:Boolean},rowClick:{},selectionChange:{},getRowKey:{},tableRowClassName:{},size:{},width:{},height:{},maxHeight:{},fit:{type:Boolean},stripe:{type:Boolean},rowKey:{},context:{},showHeader:{type:Boolean},showSummary:{type:Boolean},sumText:{},summaryMethod:{},rowClassName:{},rowStyle:{},cellClassName:{},cellStyle:{},headerRowClassName:{},headerRowStyle:{},headerCellClassName:{},headerCellStyle:{},highlightCurrentRow:{type:Boolean},currentRowKey:{},emptyText:{},expandRowKeys:{},defaultExpandAll:{type:Boolean},defaultSort:{},tooltipEffect:{},tooltipOptions:{},spanMethod:{},selectOnIndeterminate:{type:Boolean},indent:{},treeProps:{},lazy:{type:Boolean},load:{},className:{},style:{},tableLayout:{},scrollbarAlwaysOn:{type:Boolean},flexible:{type:Boolean},showOverflowTooltip:{type:[Boolean,Object]}},setup(e,{expose:a}){const t=e,{tableData:d,getTableList:u,pageable:g,loading:c,handleSizeChange:w,handleCurrentChange:y}=r(t.requestApi,t.initParam,t.pagination,t.dataCallback);u();const m=(0,o.iH)(t.columns);return a({getTableList:u,tableColumns:m,props:t}),(e,a)=>{const r=(0,l.up)("el-table-column"),u=(0,l.up)("el-tooltip"),h=(0,l.up)("el-empty"),b=(0,l.up)("el-table"),f=(0,l.up)("el-pagination"),k=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l.wy)(((0,l.wg)(),(0,l.j4)(b,{data:(0,o.SU)(d),onRowClick:t.rowClick,onSelectionChange:t.selectionChange,"row-key":t.getRowKey,border:t.border,"max-height":"450","row-style":e.tableRowClassName,"table-layout":"auto"},{append:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"append")])),empty:(0,l.w5)((()=>[(0,l.Wm)(h)])),default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"default"),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(m.value,(a=>((0,l.wg)(),(0,l.iD)(l.HY,{key:a},["selection"==a.type||"index"==a.type?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:0},a,{align:a.align??"center","reserve-selection":"selection"==a.type,"show-overflow-tooltip":!0}),null,16,["align","reserve-selection"])):(0,l.kq)("",!0),"expand"===a.type?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:1},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>[a.render?((0,l.wg)(),(0,l.j4)((0,l.LL)(a.render),{key:0,row:t.row},null,8,["row"])):(0,l.WI)(e.$slots,a.type,{key:1,row:t.row})])),_:2},1040,["align"])):(0,l.kq)("",!0),!a.type&&a.prop&&a.name!==a.prop?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:2},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>["T_wait_audit"==a.prop?((0,l.wg)(),(0,l.iD)("div",p,(0,n.zw)(1==t.row[a.prop]?"待审核":""),1)):(0,l.kq)("",!0),a.ellipsis?((0,l.wg)(),(0,l.j4)(u,{key:1,effect:"dark",content:t.row[a.prop],placement:"bottom"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,n.zw)(t.row[a.prop]),1)])),_:2},1032,["content"])):(0,l.kq)("",!0),a.fixed?(0,l.WI)(e.$slots,a.fixed,{key:2,row:t.row}):(0,l.kq)("",!0)])),_:2},1040,["align"])):(0,l.kq)("",!0),!a.type&&a.prop&&a.name===a.prop?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:3},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>[(0,l.WI)(e.$slots,a.prop,{row:t.row})])),_:2},1040,["align"])):(0,l.kq)("",!0)],64)))),128))])),_:3},8,["data","onRowClick","onSelectionChange","row-key","border","row-style"])),[[k,(0,o.SU)(c)]]),(0,l._)("div",s,[e.pagination?((0,l.wg)(),(0,l.j4)(f,{key:0,"current-page":(0,o.SU)(g).pageNum,"onUpdate:currentPage":a[0]||(a[0]=e=>(0,o.SU)(g).pageNum=e),"page-size":(0,o.SU)(g).pageSize,"onUpdate:pageSize":a[1]||(a[1]=e=>(0,o.SU)(g).pageSize=e),layout:t.layout,total:(0,o.SU)(g).total,"page-sizes":[8,10,20,50],onSizeChange:(0,o.SU)(w),onCurrentChange:(0,o.SU)(y)},null,8,["current-page","page-size","layout","total","onSizeChange","onCurrentChange"])):(0,l.kq)("",!0)])])}}});const u=d;var g=u},8253:function(e,a,t){t.r(a),t.d(a,{default:function(){return g}});var l=t(6252),o=t(2262),n=t(6115),r=t(9417),i=t(2531);const p={class:"personalInfo"},s=(0,l._)("div",{style:{display:"flex","align-items":"center"}},[(0,l._)("p",null,"单位(栋)"),(0,l._)("div",{style:{display:"flex","align-items":"center",margin:"0 30px"}},[(0,l._)("div",{style:{width:"15px",height:"15px","border-radius":"50%",background:"#2251f7"}}),(0,l._)("p",{style:{"margin-left":"10px"}},"楼宇数量")]),(0,l._)("div",{style:{display:"flex","align-items":"center"}},[(0,l._)("div",{style:{width:"15px",height:"15px","border-radius":"50%",background:"#fd8c38"}}),(0,l._)("p",{style:{"margin-left":"10px"}},"写字楼数量")])],-1);var d=(0,l.aZ)({__name:"index",setup(e){(0,o.iH)("first");const a=[{type:"index",label:"编号",width:80},{prop:"T_D_name",label:"名称",width:200},{prop:"operation",label:"操作",fixed:"right","min-width":200}],t={T_name:""};return(e,d)=>{const u=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",p,[(0,l.Wm)(r.Z,null,{"card-tit":(0,l.w5)((()=>[s])),"card-subhead":(0,l.w5)((()=>[(0,l.Uk)("血液制品名称")])),"card-content":(0,l.w5)((()=>[(0,l.Wm)(n.Z,{requestApi:(0,o.SU)(i.Lb),columns:a,initParam:t},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(u,{link:"",type:"primary",size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:1}),(0,l.Wm)(u,{link:"",type:"danger",size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:1})])),_:1},8,["requestApi"])])),_:1})])}}});const u=d;var g=u}}]);
- //# sourceMappingURL=253.2e54f253.js.map
|