import{av as D,aw as U}from"./index.17037962789732.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import I from"./ProductChooseDialog.1703796278973.js";import{_ as x}from"./DeviceChooseDialog.vue_vue_type_script_setup_true_lang.1703796278973.js";import y from"./BootCard.1703796278973.js";import B from"./DeviceCountCard.1703796278973.js";import S from"./PlatformPicCard.1703796278973.js";import T from"./StepCard.1703796278973.js";import{u as V}from"./permission.1703796278973.js";import{h as w}from"./system.1703796278973.js";import{d as P,k as _,o as c,x as E,b as t,a as m,z as $,u as r,c as f,M as g,B as b}from"./vue.1703796278973.js";import{_ as j}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.170379627897337.js";import"./index.170379627897315.js";import"./index.170379627897318.js";import"./index.170379627897316.js";import"./index.170379627897317.js";import"./home.1703796278973.js";import"./comm.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";import"./index.1703796278973300.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import"./index.1703796278973305.js";import"./index.1703796278973306.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"./StatusLabel.1703796278973.js";import"./index.1703796278973299.js";import"./moment.1703796278973.js";const N={class:"device-home-container"},H={class:"dialog"},J=P({name:"deviceHome"}),M=P({...J,setup(R){const n=V().hasPermission,l=i=>n(`device/Product:${i}`),p=i=>n(`device/Instance:${i}`),h=i=>n(`rule-engine/Instance:${i}`),{jumpPage:u}=w(),a=_(!1),s=_(!1),k=[{english:"STEP1",label:"创建产品",link:"device/Product",auth:l("add"),params:{save:!0}},{english:"STEP2",label:"创建设备",link:"device/Instance",auth:p("add"),params:{type:"add"}},{english:"STEP3",label:"规则引擎",link:"rule-engine/Instance",auth:h("add"),params:{save:!0}}],C=[{title:"创建产品",details:"产品是设备的集合，通常指一组具有相同功能的设备。物联设备必须通过产品进行接入方式配置。",iconUrl:"/images/home/bottom-4.png",linkUrl:"device/Product",auth:l("add"),params:{save:!0}},{title:"配置产品接入方式",details:"通过产品对同一类型的设备进行统一的接入方式配置。请参照设备铭牌说明选择匹配的接入方式。",iconUrl:"/images/home/bottom-1.png",linkUrl:"device/Product/Detail",auth:l("update"),onClick:()=>{a.value=!0}},{title:"添加测试设备",details:"添加单个设备，用于验证产品模型是否配置正确。",iconUrl:"/images/home/bottom-5.png",linkUrl:"device/Instance",auth:p("add"),params:{type:"add"}},{title:"功能调试",details:"对添加的测试设备进行功能调试，验证能否连接到平台，设备功能是否配置正确。",iconUrl:"/images/home/bottom-2.png",linkUrl:"device/Instance/Detail",onClick:()=>{s.value=!0}},{title:"批量添加设备",details:"批量添加同一产品下的设备",iconUrl:"/images/home/bottom-3.png",linkUrl:"device/Instance",auth:p("import"),params:{type:"import"}}];return(i,e)=>{const v=D,d=U;return c(),E("div",N,[t(d,{gutter:24},{default:m(()=>[t(v,{span:14},{default:m(()=>[t(y,{cardData:k,cardTitle:"物联网引导"})]),_:1}),t(v,{span:10},{default:m(()=>[t(B)]),_:1})]),_:1}),t(d,null,{default:m(()=>[t(S)]),_:1}),t(d,null,{default:m(()=>[t(T,{cardTitle:"设备接入推荐步骤",tooltip:"不同的设备因为通信协议的不同，存在接入步骤的差异",dataList:C})]),_:1}),$("div",H,[r(a)?(c(),f(I,{key:0,visible:r(a),"onUpdate:visible":e[0]||(e[0]=o=>g(a)?a.value=o:null),onConfirm:e[1]||(e[1]=o=>r(u)("device/Product/Detail",{id:o,tab:"Device"}))},null,8,["visible"])):b("",!0),r(s)?(c(),f(x,{key:1,visible:r(s),"onUpdate:visible":e[2]||(e[2]=o=>g(s)?s.value=o:null),onConfirm:e[3]||(e[3]=o=>r(u)("device/Instance/Detail",{id:o,tab:"Diagnose"}))},null,8,["visible"])):b("",!0)])])}}});const Rt=j(M,[["__scopeId","data-v-4c024f57"]]);export{Rt as default};
