2023-12-06 15:09:38 +08:00
|
|
|
import{B as X,C as Y,Q as Z,R as ee,w as le,D as te,I as ae,L as ue,_ as oe,M as ne,N as ie}from"./element-plus.7a22678c.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{t as re,k as S,f as pe,b as me}from"./index.b77b824c.js";import{u as ce}from"./vue-router.ed788fee.js";import{u as _e}from"./usePaging.2a59f422.js";import{a as fe}from"./useDictOptions.a70ca585.js";import{f as ve,g as Be}from"./device.61472211.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_deviceEdit_lang.b1a756f8.js";import{d as N,s as Ee,r as P,_ as Fe,a3 as ye,ae as he,o as n,c as V,T as l,K as t,L as v,u as o,J as d,Q as Ce,U as I,a6 as U,a as R,R as i,S as F,j as we,n as T}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.104bdc4c.js";const Ve=i("\u67E5\u8BE2"),De=i("\u91CD\u7F6E"),ke=i(" \u65B0\u589E "),ge=i(" \u5220\u9664 "),xe={class:"mt-4"},Ie=i(" \u7F16\u8F91 "),Ue=i(" \u8BE6\u60C5 "),Re=i(" \u62A5\u8B66 "),$e=i(" \u5220\u9664 "),Ae={class:"flex mt-4 justify-end"},Le=N({name:"deviceLists"}),wl=N({...Le,setup(Se){const{query:q}=ce(),y=Ee(),h=P(!1);let D=q.product_id;typeof D>"u"&&(D="");const u=Fe({user_id:"",land_id:"",product_id:D,code:"",name:"",type:"",status:"",is_online:""}),k=P([]),M=r=>{k.value=r.map(({id:a})=>a)},{dictData:_}=fe("device_type,device_status,device_online_status,device_bind_status,monitor_item"),{pager:E,getLists:C,resetParams:j,resetPage:Q}=_e({fetchFun:ve,params:u}),J=async()=>{var r;h.value=!0,await T(),(r=y.value)==null||r.open("add")},K=async r=>{var a,m;h.value=!0,await T(),(a=y.value)==null||a.open("edit"),(m=y.value)==null||m.setFormData(r)},$=async r=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Be({id:r}),C()};return C(),(r,a)=>{const m=X,p=Y,B=Z,g=ee,c=le,O=te,A=ae,z=me,s=ue,x=de,w=oe,L=ye("router-link"),G=ne,H=se,b=he("perms"),W=ie;return n(),V("div",null,[l(A,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[l(O,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[l(p,{label:"\u7528\u6237ID",prop:"user_id"},{default:t(()=>[l(m,{class:"w-[280px]",modelValue:u.user_id,"onUpdate:modelValue":a[0]||(a[0]=e=>u.user_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u571F\u5730ID",prop:"land_id"},{default:t(()=>[l(m,{class:"w-[280px]",modelValue:u.land_id,"onUpdate:modelValue":a[1]||(a[1]=e=>u.land_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730ID"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u4EA7\u54C1ID",prop:"product_id"},{default:t(()=>[l(m,{class:"w-[280px]",modelValue:u.product_id,"onUpdate:modelValue":a[2]||(a[2]=e=>u.product_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1ID"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u8BBE\u5907\u7F16\u7801",prop:"code"},{default:t(()=>[l(m,{class:"w-[280px]",modelValue:u.code,"onUpdate:modelValue":a[3]||(a[3]=e=>u.code=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u7F16\u7801"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u8BBE\u5907\u540D\u79F0",prop:"name"},{default:t(
|