/*!
 *  build: Vue  Admin Plus
 *  copyright: vue-admin-beautiful.com
 *  time: 2024-03-07 17:07:58
 */
"use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[1603,4178],{56786:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var l=a(30032),o=(a(3241),a(91154),a(49676)),s=(a(73204),a(3837)),r=(a(81010),a(15659)),p=(a(10444),a(50363),a(66252)),_=a(3577),i=a(2262),m=a(8629);const n={class:"custom-table-container"},u={m:"4"},b={m:"t-0 b-2"},f={m:"t-0 b-2"},d={m:"t-0 b-2"},h={m:"t-0 b-2"};var w=(0,p.aZ)({__name:"hostTable",props:{tableData:{type:Array,default:()=>[]},pagination:{type:Object,default:()=>{}},page:{type:Number,default:1}},emits:["change-page"],setup(e,{emit:t}){const a=(0,i.iH)(null),w=e=>{a.value.showDialog(e)};function c(e){t("change-page",e)}return(t,g)=>{const W=s.$Y,y=r.ElButton,z=s.eI,k=o.R,v=l.Kf;return(0,p.wg)(),(0,p.iD)("div",n,[(0,p.Wm)(v,{shadow:"hover"},{default:(0,p.w5)((()=>[(0,p.Wm)(z,{fit:"",flexible:"",stripe:"","table-layout":"auto","row-key":"hostid",data:e.tableData,style:{width:"100%"},class:"data-list"},{default:(0,p.w5)((()=>[(0,p.Wm)(W,{fixed:"",type:"expand"},{default:(0,p.w5)((({row:e})=>[(0,p._)("div",u,[(0,p._)("p",b,"CPU："+(0,_.zw)(e.host_cpu_name),1),(0,p._)("p",f,"内存："+(0,_.zw)(e.host_memony),1),(0,p._)("p",d,"硬盘："+(0,_.zw)(e.host_disk_type_str),1),(0,p._)("p",h," 网络： "+(0,_.zw)(e.host_net_type_str),1)])])),_:1}),(0,p.Wm)(W,{fixed:"",sortable:"",prop:"host_room_str",label:"所属"}),(0,p.Wm)(W,{prop:"host_gpu_name",label:"GPU型号"}),(0,p.Wm)(W,{prop:"host_disk_size_str",label:"硬盘",sortable:""}),(0,p.Wm)(W,{label:"切分租金(元/卡)",size:"small"},{default:(0,p.w5)((()=>[(0,p.Wm)(W,{prop:"host_hour_fee",label:"小时",size:"small",sortable:""}),(0,p.Wm)(W,{prop:"host_daly_fee",label:"日",size:"small",sortable:""}),(0,p.Wm)(W,{prop:"host_week_fee",label:"周",size:"small",sortable:""}),(0,p.Wm)(W,{prop:"host_month_fee",label:"月",size:"small",sortable:""})])),_:1}),(0,p.Wm)(W,{label:"整机租金",size:"small"},{default:(0,p.w5)((()=>[(0,p.Wm)(W,{prop:"host_daly_fee_w",label:"日",size:"small",sortable:""}),(0,p.Wm)(W,{prop:"host_week_fee_w",label:"周",size:"small",sortable:""}),(0,p.Wm)(W,{prop:"host_month_fee_w",label:"月",size:"small",sortable:""})])),_:1}),(0,p.Wm)(W,{label:"评分",sortable:"",prop:"host_rate"}),(0,p.Wm)(W,{prop:"host_off_time_str",label:"可租",sortable:""}),(0,p.Wm)(W,{prop:"gpuNum",width:"100",label:"GPU数量"},{default:(0,p.w5)((({row:e})=>[(0,p.Uk)((0,_.zw)(e.host_gpu_left),1)])),_:1}),(0,p.Wm)(W,{fixed:"right",label:"操作"},{default:(0,p.w5)((({row:e})=>[(0,p.Wm)(y,{type:"primary",onClick:t=>w(e.host_id)},{default:(0,p.w5)((()=>[(0,p.Uk)(" 租赁 ")])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"]),(0,p.Wm)(k,{"current-page":e.page,layout:"prev, pager, next","page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:c},null,8,["current-page","page-size","total"])])),_:1}),(0,p.Wm)((0,i.SU)(m["default"]),{ref_key:"dialogRef",ref:a},null,512)])}}});function c(e){e.__source="src/views/gpumarket/hosts/components/hostTable.vue"}var g=a(83744);"function"===typeof c&&c(w);const W=(0,g.Z)(w,[["__scopeId","data-v-73d532f2"]]);var y=W}}]);