import{v as S,$ as b,av as j,aw as T,ax as k,E as J}from"./index.17037962789732.js";import"./system.1703796278973.js";import"./index.1703796278973300.js";import"./index.170379627897315.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.170379627897332.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import"./index.1703796278973305.js";import"./index.1703796278973306.js";import{_ as B}from"./index.170379627897313.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import"./index.170379627897335.js";import"./index.170379627897318.js";import"./index.170379627897320.js";import"./index.170379627897321.js";import"./index.170379627897322.js";import"./index.170379627897323.js";import"./index.170379627897324.js";import"./index.170379627897325.js";import"./index.170379627897326.js";import"./index.170379627897328.js";import"./Item.1703796278973.js";import{a as D,g as E}from"./product.17037962789737.js";import{a as K}from"./comm.1703796278973.js";import{a as L}from"./setting.1703796278973.js";import{d as l,k as m,r as P,o as q,x as A,b as e,a as o,u as n,j as F,z as i,A as N,F as R,G as z,H as V}from"./vue.1703796278973.js";import{_ as $}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";import"./index.vue_vue_type_script_setup_true_lang.17037962789733.js";const _=r=>(z("data-v-5289d77c"),r=r(),V(),r),G=["src"],H={style:{width:"calc(100% - 100px)"}},U={style:{"font-size":"16px","font-weight":"600"}},M=_(()=>i("div",{class:"card-item-content-text"}," 设备类型 ",-1)),O=_(()=>i("div",null,"直连设备",-1)),Q=l({name:"Product"}),W=l({...Q,props:{rowKey:{type:String,default:""}},emits:["update:rowKey","change"],setup(r,{emit:p}){const s=r,c=m({});m(!0);const d=[{title:"ID",dataIndex:"id",width:300,ellipsis:!0,fixed:"left",search:{type:"string"}},{title:"名称",dataIndex:"name",width:200,ellipsis:!0,search:{type:"string",first:!0}},{title:"网关类型",dataIndex:"accessProvider",width:150,ellipsis:!0,hideInTable:!0,search:{type:"select",options:()=>E().then(t=>L(t.result||[]))}},{title:"设备类型",dataIndex:"deviceType",width:150},{title:"状态",dataIndex:"state",width:"90px",search:{type:"select",options:[{label:"禁用",value:0},{label:"正常",value:1}]}},{title:"说明",dataIndex:"describe",ellipsis:!0,width:300,search:{type:"string"}}],u=t=>{c.value=t},h=t=>{p("update:rowKey",t.id),p("change",t)};return(t,X)=>{const g=S,v=b,f=P("Ellipsis"),y=j,x=T,w=B,I=k,C=J;return q(),A(R,null,[e(g,{columns:d,type:"simple",onSearch:u,class:"device-import-product",target:"device-import-product"}),e(v,{style:{margin:"0"}}),e(C,{height:400},{default:o(()=>[e(I,{model:"CARD",columns:d,params:n(c),request:n(D),gridColumn:2,defaultParams:{terms:[{column:"state",value:"1",type:"and"},{column:"accessProvider",value:s==null?void 0:s.type}],sorts:[{name:"createTime",order:"desc"}]},gridColumns:[2,2,2],bodyStyle:{paddingRight:0,paddingLeft:0}},{card:o(a=>[e(w,{value:a,active:r.rowKey===a.id,status:a.state,statusText:a.state===1?"正常":"禁用",statusNames:{1:"processing",0:"error"},onClick:h},{img:o(()=>[F(t.$slots,"img",{},()=>[i("img",{width:"80",height:"80",src:a.photoUrl||n(K)("/device-product.png")},null,8,G)],!0)]),content:o(()=>[i("div",H,[e(f,null,{default:o(()=>[i("span",U,N(a.name),1)]),_:2},1024)]),e(x,null,{default:o(()=>[e(y,{span:12},{default:o(()=>[M,O]),_:1})]),_:1})]),_:2},1032,["value","active","status","statusText"])]),_:3},8,["params","request","defaultParams"])]),_:3})],64)}}});const Ht=$(W,[["__scopeId","data-v-5289d77c"]]);export{Ht as default};
