enterprise-saa-s-dashboard-.../dist/assets/DeviceModelManagement-DADpS...

17 lines
20 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{c as q,d as T,a as x,b as t,f as i,u as m,F as w,r as D,j as u,l as U,m as y,v as $,p as v,q as j,n as b,t as r,h as E,s as k,o as p,g as I,i as P,w as g,e as L}from"./index-C5t0nGiQ.js";import{I as K}from"./info-DbTQmklK.js";import{P as A}from"./plus-BfKzmzQH.js";import{X as H}from"./x-Cy9cTPf9.js";import{S as O}from"./server-hSQBXLWa.js";import{C as R,T as W}from"./triangle-alert-DaaA5cmC.js";/**
* @license lucide-vue-next v0.487.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X=q("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
* @license lucide-vue-next v0.487.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J=q("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
* @license lucide-vue-next v0.487.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q=q("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Y={class:"p-6"},Z={class:"mb-6 p-4 rounded-lg flex items-start gap-3",style:{backgroundColor:"#eef5f0",border:"1px solid #a3c4ad"}},tt={class:"grid grid-cols-4 gap-6 mb-6"},et={class:"flex items-center justify-between"},ot={class:"text-sm mb-2",style:{color:"rgba(0, 0, 0, 0.65)"}},lt={class:"text-3xl font-semibold"},st={class:"bg-white rounded-lg mb-6",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},rt={class:"p-6 border-b",style:{borderColor:"#F0F0F0"}},nt={class:"flex items-center justify-between"},it={class:"overflow-x-auto"},dt={class:"w-full"},at={class:"px-6 py-4"},ut={class:"px-6 py-4",style:{color:"rgba(0, 0, 0, 0.65)"}},pt={class:"px-6 py-4"},ct={class:"px-6 py-4"},xt={class:"px-6 py-4"},yt={class:"px-6 py-4"},bt={class:"px-6 py-4"},vt={class:"px-6 py-4"},ft={class:"flex items-center gap-3"},mt={class:"bg-white rounded-lg mb-6",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},gt={class:"flex border-b",style:{borderColor:"#F0F0F0"}},Ft=["onClick"],kt={class:"p-6"},wt={class:"w-full"},Dt={class:"px-3 py-3 text-sm",style:{color:"rgba(0, 0, 0, 0.45)"}},Ct={class:"flex items-center gap-1"},qt={class:"px-3 py-3 text-sm"},Vt=["value","onBlur"],_t=["onClick"],jt={class:"px-3 py-3 text-center"},At=["onClick"],St={class:"mt-4 flex items-center justify-between"},ht={class:"bg-white w-[480px] h-full flex flex-col",style:{"box-shadow":"-4px 0 12px rgba(0,0,0,0.1)"}},Gt={class:"flex items-center justify-between p-5 border-b",style:{"border-color":"#F0F0F0"}},Mt={class:"flex-1 overflow-y-auto p-6"},Bt={class:"space-y-5"},Nt={class:"flex items-center gap-4"},zt={class:"flex items-center gap-2 cursor-pointer text-sm"},Tt={class:"flex items-center gap-2 cursor-pointer text-sm"},Ut={class:"p-4 rounded-lg",style:{"background-color":"#FAFAFA",border:"1px solid #F0F0F0"}},$t={class:"space-y-2 text-sm",style:{color:"rgba(0,0,0,0.65)"}},Et={class:"flex justify-between"},It={class:"flex justify-between"},Pt={class:"flex justify-between"},Lt={class:"flex items-center justify-end gap-3 p-5 border-t",style:{"border-color":"#F0F0F0"}},Kt=["disabled"],Yt=T({__name:"DeviceModelManagement",setup(Ht){const f=k(!1),l=k({name:"",code:"",authFile:"",configFile:"",firmwareVersion:"",status:"在产"}),c=k("GD30"),S=[{label:"型号总数",value:"12",icon:O,color:"#4a7c59"},{label:"在产型号",value:"8",icon:R,color:"#52C41A"},{label:"停产型号",value:"3",icon:W,color:"#FAAD14"},{label:"关联设备总数",value:"5,234",icon:J,color:"#722ED1"}],h=[{name:"GD30 高密度电法仪",code:"GD30-2024",authFile:"auth_gd30_v2.3.lic",configFile:"config_gd30_v1.5.json",firmwareVersion:"v2.3.5",deviceCount:2456,status:"在产"},{name:"GT20 瞬变电磁仪",code:"GT20-2023",authFile:"auth_gt20_v1.8.lic",configFile:"config_gt20_v1.2.json",firmwareVersion:"v1.8.2",deviceCount:1823,status:"在产"},{name:"GM10 大地电磁仪",code:"GM10-2022",authFile:"auth_gm10_v1.5.lic",configFile:"config_gm10_v1.0.json",firmwareVersion:"v1.5.1",deviceCount:955,status:"停产"}],d=k({GD30:[{id:1,text:"主板SN扫码绑定主机",type:"text",required:!0,note:"唯一SN"},{id:2,text:"采集板SN录入",type:"text",required:!0,note:"1/6/12通道"},{id:3,text:"发射板SN录入",type:"text",required:!0,note:""},{id:4,text:"内置升压模块检查",type:"bool",required:!0,note:""},{id:5,text:"GPS/北斗检测",type:"bool",required:!0,note:"授时正常"},{id:6,text:"电池安装与容量检测",type:"bool",required:!0,note:""},{id:7,text:"输入电压12~48V测试",type:"bool",required:!0,note:""},{id:8,text:"接收电压精度校验",type:"bool",required:!0,note:"按型号量程"},{id:9,text:"自电补偿±10V",type:"bool",required:!0,note:""},{id:10,text:"输入阻抗≥100MΩ",type:"bool",required:!0,note:""},{id:11,text:"恒压/恒流模式",type:"bool",required:!0,note:""},{id:12,text:"最大发射电流达标",type:"bool",required:!0,note:"6A/10A/10A"},{id:13,text:"脉冲宽度配置",type:"bool",required:!0,note:""},{id:14,text:"调级输出电压",type:"bool",required:!0,note:"100~600V"},{id:15,text:"系统启动正常",type:"bool",required:!0,note:""},{id:16,text:"采集APP连接",type:"bool",required:!0,note:""},{id:17,text:"Geometa账号配置",type:"bool",required:!0,note:""},{id:18,text:"授权文件校验",type:"bool",required:!0,note:""},{id:19,text:"USB/WiFi/网口/SD",type:"bool",required:!0,note:""},{id:20,text:"IP66防护与密封",type:"bool",required:!0,note:""},{id:21,text:"过流/过压/短路保护",type:"bool",required:!0,note:""},{id:22,text:"出厂装箱核对",type:"bool",required:!0,note:""}],GT20:[{id:1,text:"主板SN扫码绑定主机",type:"text",required:!0,note:"唯一SN"},{id:2,text:"采集板SN录入",type:"text",required:!0,note:""},{id:3,text:"GPS/北斗检测",type:"bool",required:!0,note:"授时正常"},{id:4,text:"系统启动正常",type:"bool",required:!0,note:""},{id:5,text:"整体功能测试",type:"bool",required:!0,note:""}],GM10:[{id:1,text:"主板SN扫码绑定主机",type:"text",required:!0,note:"唯一SN"},{id:2,text:"传感器模块连接",type:"bool",required:!0,note:""},{id:3,text:"接口板安装",type:"bool",required:!0,note:""},{id:4,text:"线缆整理",type:"bool",required:!0,note:""},{id:5,text:"系统初始化检测",type:"bool",required:!0,note:""}]}),F=k(null),G=(n,e,s,o)=>{d.value={...d.value,[n]:d.value[n].map(a=>a.id===e?{...a,[s]:o}:a)}},M=n=>{const e=d.value[n],s=e.length>0?Math.max(...e.map(o=>o.id))+1:1;d.value={...d.value,[n]:[...e,{id:s,text:"新检查项",type:"bool",required:!0,note:""}]}},B=(n,e)=>{d.value={...d.value,[n]:d.value[n].filter(s=>s.id!==e).map((s,o)=>({...s,id:o+1}))}},N=(n,e,s)=>{G(e,s,"text",n.target.value),F.value=null},z=n=>{n.key==="Enter"&&n.target.blur()};return(n,e)=>{const s=L("router-link");return p(),x("div",Y,[e[53]||(e[53]=t("div",{class:"mb-6"},[t("h2",{class:"text-2xl font-semibold mb-1"},"设备型号管理"),t("p",{class:"text-sm",style:{color:"rgba(0, 0, 0, 0.45)"}},"管理设备型号及相关配置")],-1)),t("div",Z,[i(m(K),{size:20,style:{color:"#4a7c59",flexShrink:0,marginTop:"2px"}}),e[16]||(e[16]=t("div",{style:{color:"#2d5a3d"}}," 型号管理是平台核心枢纽,每个型号关联授权文件、配置文件和固件版本 ",-1))]),t("div",tt,[(p(),x(w,null,D(S,(o,a)=>t("div",{key:a,class:"bg-white p-6 rounded-lg",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},[t("div",et,[t("div",null,[t("div",ot,r(o.label),1),t("div",lt,r(o.value),1)]),t("div",{class:"w-12 h-12 rounded-lg flex items-center justify-center",style:b({backgroundColor:`${o.color}15`})},[(p(),I(P(o.icon),{size:24,style:b({color:o.color})},null,8,["style"]))],4)])])),64))]),t("div",st,[t("div",rt,[t("div",nt,[e[18]||(e[18]=t("h3",{class:"text-lg font-semibold"},"型号列表",-1)),t("button",{class:"px-4 py-2 rounded text-white flex items-center gap-2",style:{backgroundColor:"#4a7c59"},onClick:e[0]||(e[0]=o=>f.value=!0)},[i(m(A),{size:16}),e[17]||(e[17]=u(" 新增型号 ",-1))])])]),t("div",it,[t("table",dt,[e[23]||(e[23]=t("thead",{style:{backgroundColor:"#FAFAFA"}},[t("tr",null,[t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"型号名称"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"编码"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"授权文件"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"配置文件"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"固件版本"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"设备数"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"状态"),t("th",{class:"px-6 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"操作")])],-1)),t("tbody",null,[(p(),x(w,null,D(h,(o,a)=>t("tr",{key:a,class:"border-b",style:{borderColor:"#F0F0F0"}},[t("td",at,r(o.name),1),t("td",ut,r(o.code),1),t("td",pt,[i(s,{to:"/licenses",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[u(r(o.authFile),1)]),_:2},1024)]),t("td",ct,[i(s,{to:"/config-files",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[u(r(o.configFile),1)]),_:2},1024)]),t("td",xt,[i(s,{to:"/firmware",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[u(r(o.firmwareVersion),1)]),_:2},1024)]),t("td",yt,r(o.deviceCount.toLocaleString()),1),t("td",bt,[t("span",{class:"px-2 py-1 rounded text-xs",style:b({backgroundColor:o.status==="在产"?"#F6FFED":"#FFFBE6",color:o.status==="在产"?"#52C41A":"#FAAD14",border:`1px solid ${o.status==="在产"?"#B7EB8F":"#FFE58F"}`})},r(o.status),5)]),t("td",vt,[t("div",ft,[e[22]||(e[22]=t("button",{class:"text-sm",style:{color:"#4a7c59"}},"编辑",-1)),i(s,{to:"/licenses",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[...e[19]||(e[19]=[u("授权",-1)])]),_:1}),i(s,{to:"/config-files",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[...e[20]||(e[20]=[u("配置",-1)])]),_:1}),i(s,{to:"/firmware",class:"text-sm",style:{color:"#4a7c59"}},{default:g(()=>[...e[21]||(e[21]=[u("固件",-1)])]),_:1})])])])),64))])])])]),t("div",mt,[e[27]||(e[27]=t("div",{class:"p-6 border-b",style:{borderColor:"#F0F0F0"}},[t("h3",{class:"text-lg font-semibold"},"装配Checklist模板")],-1)),t("div",gt,[(p(!0),x(w,null,D(Object.keys(d.value),o=>(p(),x("button",{key:o,onClick:a=>c.value=o,class:"px-6 py-3 text-sm font-medium transition-colors",style:b({color:c.value===o?"#4a7c59":"rgba(0, 0, 0, 0.65)",borderBottom:c.value===o?"2px solid #4a7c59":"none",marginBottom:c.value===o?"-1px":"0"})},r(o),13,Ft))),128))]),t("div",kt,[t("table",wt,[e[24]||(e[24]=t("thead",{style:{backgroundColor:"#FAFAFA"}},[t("tr",null,[t("th",{class:"px-3 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)",width:"50px"}},"序号"),t("th",{class:"px-3 py-3 text-left text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)"}},"项目名称"),t("th",{class:"px-3 py-3 text-center text-sm font-medium",style:{color:"rgba(0, 0, 0, 0.85)",width:"70px"}},"操作")])],-1)),t("tbody",null,[(p(!0),x(w,null,D(d.value[c.value],o=>{var a,V,_;return p(),x("tr",{key:o.id,class:"border-b",style:{borderColor:"#F0F0F0"}},[t("td",Dt,[t("div",Ct,[i(m(X),{size:14,style:{color:"#D9D9D9"}}),u(" "+r(o.id),1)])]),t("td",qt,[((a=F.value)==null?void 0:a.model)===c.value&&((V=F.value)==null?void 0:V.id)===o.id&&((_=F.value)==null?void 0:_.field)==="text"?(p(),x("input",{key:0,autofocus:"",class:"w-full px-2 py-1 border rounded text-sm",style:{borderColor:"#4a7c59"},value:o.text,onBlur:C=>N(C,c.value,o.id),onKeydown:z},null,40,Vt)):(p(),x("span",{key:1,class:"cursor-pointer hover:text-blue-500",onClick:C=>F.value={model:c.value,id:o.id,field:"text"}},r(o.text),9,_t))]),t("td",jt,[t("button",{onClick:C=>B(c.value,o.id),class:"text-gray-400 hover:text-red-500 transition-colors"},[i(m(Q),{size:15})],8,At)])])}),128))])]),t("div",St,[t("button",{onClick:e[1]||(e[1]=o=>M(c.value)),class:"px-4 py-2 text-sm flex items-center gap-1 rounded transition-colors",style:{color:"#4a7c59",border:"1px dashed #4a7c59"}},[i(m(A),{size:14}),e[25]||(e[25]=u(" 添加检查项 ",-1))]),e[26]||(e[26]=t("button",{class:"px-6 py-2 text-sm rounded text-white",style:{backgroundColor:"#4a7c59"}}," 确认保存 ",-1))])])]),f.value?(p(),x("div",{key:0,class:"fixed inset-0 z-50 flex justify-end",style:{"background-color":"rgba(0,0,0,0.45)"},onClick:e[15]||(e[15]=U(o=>f.value=!1,["self"]))},[t("div",ht,[t("div",Gt,[e[28]||(e[28]=t("h3",{class:"text-lg font-semibold"},"新增设备型号",-1)),t("button",{onClick:e[2]||(e[2]=o=>f.value=!1),class:"p-1 rounded hover:bg-gray-100",style:{color:"rgba(0,0,0,0.45)"}},[i(m(H),{size:18})])]),t("div",Mt,[t("div",Bt,[t("div",null,[e[29]||(e[29]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},[u("型号名称 "),t("span",{style:{color:"#FF4D4F"}},"*")],-1)),y(t("input",{"onUpdate:modelValue":e[3]||(e[3]=o=>l.value.name=o),type:"text",class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9"},placeholder:"如GD30 高密度电法仪"},null,512),[[$,l.value.name]])]),t("div",null,[e[31]||(e[31]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},[u("型号编码 "),t("span",{style:{color:"#FF4D4F"}},"*")],-1)),y(t("select",{"onUpdate:modelValue":e[4]||(e[4]=o=>l.value.code=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[30]||(e[30]=[t("option",{value:""},"请选择编码",-1),t("option",null,"GD10-2025",-1),t("option",null,"GD20-2025",-1),t("option",null,"GD30-2025",-1),t("option",null,"GT20-2025",-1),t("option",null,"GM10-2025",-1)])],512),[[v,l.value.code]])]),t("div",null,[e[33]||(e[33]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定授权文件",-1)),y(t("select",{"onUpdate:modelValue":e[5]||(e[5]=o=>l.value.authFile=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[32]||(e[32]=[t("option",{value:""},"请选择授权文件",-1),t("option",null,"auth_gd10_v1.0.lic",-1),t("option",null,"auth_gd20_v2.0.lic",-1),t("option",null,"auth_gd30_v2.3.lic",-1),t("option",null,"auth_gt20_v1.8.lic",-1),t("option",null,"auth_gm10_v1.5.lic",-1)])],512),[[v,l.value.authFile]]),e[34]||(e[34]=t("div",{class:"text-xs mt-1",style:{color:"rgba(0,0,0,0.45)"}},"授权文件按型号绑定,设备激活时自动下载",-1))]),t("div",null,[e[36]||(e[36]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定配置文件",-1)),y(t("select",{"onUpdate:modelValue":e[6]||(e[6]=o=>l.value.configFile=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[35]||(e[35]=[t("option",{value:""},"请选择配置文件",-1),t("option",null,"config_gd10_v1.0.json",-1),t("option",null,"config_gd20_v1.2.json",-1),t("option",null,"config_gd30_v1.5.json",-1),t("option",null,"config_gt20_v1.2.json",-1),t("option",null,"config_gm10_v1.0.json",-1)])],512),[[v,l.value.configFile]]),e[37]||(e[37]=t("div",{class:"text-xs mt-1",style:{color:"rgba(0,0,0,0.45)"}},"配置文件包含发射参数、采集参数、网络参数等",-1))]),t("div",null,[e[39]||(e[39]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定主机固件版本",-1)),y(t("select",{"onUpdate:modelValue":e[7]||(e[7]=o=>l.value.firmwareVersion=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[38]||(e[38]=[t("option",{value:""},"请选择主机固件版本",-1),t("option",null,"v2.3.5",-1),t("option",null,"v2.3.0",-1),t("option",null,"v2.2.0",-1),t("option",null,"v2.1.0",-1),t("option",null,"v1.8.2",-1),t("option",null,"v1.5.1",-1)])],512),[[v,l.value.firmwareVersion]])]),t("div",null,[e[41]||(e[41]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定主协板固件版本",-1)),y(t("select",{"onUpdate:modelValue":e[8]||(e[8]=o=>l.value.firmwareVersion=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[40]||(e[40]=[t("option",{value:""},"请选择主协板固件版本",-1),t("option",null,"v2.3.5",-1),t("option",null,"v2.3.0",-1),t("option",null,"v2.2.0",-1),t("option",null,"v2.1.0",-1),t("option",null,"v1.8.2",-1),t("option",null,"v1.5.1",-1)])],512),[[v,l.value.firmwareVersion]])]),t("div",null,[e[43]||(e[43]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定发射板固件版本",-1)),y(t("select",{"onUpdate:modelValue":e[9]||(e[9]=o=>l.value.firmwareVersion=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[42]||(e[42]=[t("option",{value:""},"请选择发射板固件版本",-1),t("option",null,"v2.3.5",-1),t("option",null,"v2.3.0",-1),t("option",null,"v2.2.0",-1),t("option",null,"v2.1.0",-1),t("option",null,"v1.8.2",-1),t("option",null,"v1.5.1",-1)])],512),[[v,l.value.firmwareVersion]])]),t("div",null,[e[45]||(e[45]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"绑定采集板固件版本",-1)),y(t("select",{"onUpdate:modelValue":e[10]||(e[10]=o=>l.value.firmwareVersion=o),class:"w-full px-3 py-2 border rounded text-sm",style:{"border-color":"#D9D9D9","background-color":"#fff"}},[...e[44]||(e[44]=[t("option",{value:""},"请选择采集板固件版本",-1),t("option",null,"v2.3.5",-1),t("option",null,"v2.3.0",-1),t("option",null,"v2.2.0",-1),t("option",null,"v2.1.0",-1),t("option",null,"v1.8.2",-1),t("option",null,"v1.5.1",-1)])],512),[[v,l.value.firmwareVersion]])]),t("div",null,[e[48]||(e[48]=t("label",{class:"block text-sm mb-2",style:{color:"rgba(0,0,0,0.85)"}},"状态",-1)),t("div",Nt,[t("label",zt,[y(t("input",{type:"radio","onUpdate:modelValue":e[11]||(e[11]=o=>l.value.status=o),value:"在产",style:{"accent-color":"#4a7c59"}},null,512),[[j,l.value.status]]),e[46]||(e[46]=t("span",null,"在产",-1))]),t("label",Tt,[y(t("input",{type:"radio","onUpdate:modelValue":e[12]||(e[12]=o=>l.value.status=o),value:"停产",style:{"accent-color":"#4a7c59"}},null,512),[[j,l.value.status]]),e[47]||(e[47]=t("span",null,"停产",-1))])])]),t("div",Ut,[e[52]||(e[52]=t("div",{class:"text-sm font-medium mb-3"},"绑定预览",-1)),t("div",$t,[t("div",Et,[e[49]||(e[49]=t("span",null,"授权文件",-1)),t("span",{style:b({color:l.value.authFile?"#52C41A":"#FF4D4F"})},r(l.value.authFile||"未绑定"),5)]),t("div",It,[e[50]||(e[50]=t("span",null,"配置文件",-1)),t("span",{style:b({color:l.value.configFile?"#52C41A":"#FF4D4F"})},r(l.value.configFile||"未绑定"),5)]),t("div",Pt,[e[51]||(e[51]=t("span",null,"固件版本",-1)),t("span",{style:b({color:l.value.firmwareVersion?"#52C41A":"#FF4D4F"})},r(l.value.firmwareVersion||"未绑定"),5)])])])])]),t("div",Lt,[t("button",{class:"px-4 py-2 rounded text-sm",style:{border:"1px solid #D9D9D9",color:"rgba(0,0,0,0.85)"},onClick:e[13]||(e[13]=o=>f.value=!1)},"取消"),t("button",{class:"px-4 py-2 rounded text-white text-sm",style:b({backgroundColor:l.value.name&&l.value.code?"#4a7c59":"#D9D9D9"}),disabled:!l.value.name||!l.value.code,onClick:e[14]||(e[14]=o=>f.value=!1)},"确认创建",12,Kt)])])])):E("",!0)])}}});export{Yt as default};