import{I as y,w as B,J as V,H as P,K as T}from"./element-plus.c4a2af8a.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{u as R}from"./usePaging.160b82b8.js";import{u as S}from"./useDictOptions.1fafb9ed.js";import{_ as $,a as N}from"./edit.vue_vue_type_script_setup_true_name_monitorThresholdEdit_lang.dafff2fa.js";import"./lodash.ec5da75f.js";import"./index.eb383b5c.js";import{d as h,s as H,r as c,$ as K,af as M,o as r,c as U,M as d,u as a,K as _,L as n,R as j,a as f,U as t,k as q,S as I,n as J}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.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"./index.4f75fdef.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.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.2cdc8407.js";const z={class:"mt-4"},G=I(" \u7F16\u8F91 "),O={class:"flex mt-4 justify-end"},Q=h({name:"monitorThresholdLists"}),Mo=h({...Q,setup(W){const u=H(),p=c(!1),v=K({}),E=c([]),w=s=>{E.value=s.map(({id:e})=>e)},{dictData:F}=S(""),{pager:i,getLists:m,resetParams:X,resetPage:Y}=R({fetchFun:N,params:v}),C=async s=>{var e,o;p.value=!0,await J(),(e=u.value)==null||e.open("edit"),(o=u.value)==null||o.setFormData(s)};return m(),(s,e)=>{const o=y,b=B,g=V,x=L,D=P,k=M("perms"),A=T;return r(),U("div",null,[d((r(),_(D,{class:"!border-none",shadow:"never"},{default:n(()=>[f("div",z,[t(g,{data:a(i).lists,onSelectionChange:w},{default:n(()=>[t(o,{label:"\u571F\u58E4\u6700\u9AD8\u6E29\u5EA6",prop:"soil_temp_max","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u4F4E\u6E29\u5EA6",prop:"soil_temp_min","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u9AD8\u6E7F\u5EA6",prop:"soil_mois_max","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u4F4E\u6E7F\u5EA6",prop:"soil_mois_min","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u9AD8PH\u503C",prop:"soil_ph_max","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u4F4EPH\u503C",prop:"soil_ph_min","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u9AD8\u6C2E\u542B\u91CF",prop:"soil_n_content_max","show-overflow-tooltip":""}),t(o,{label:"\u571F\u58E4\u6700\u4F4E\u6C2E\u542B\u91CF",prop:"soil_n_content_min","show-overflow-tooltip":""}),t(o,{label:"\u6700\u5927\u98CE\u901F",prop:"wind_speed_max","show-overflow-tooltip":""}),t(o,{label:"\u6700\u5C0F\u98CE\u901F",prop:"wind_speed_min","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"120",align:"center",fixed:"right"},{default:n(({row:l})=>[d((r(),_(b,{type:"primary",link:"",onClick:Z=>C(l)},{default:n(()=>[G]),_:2},1032,["onClick"])),[[k,["device.monitor_threshold/edit"]]])]),_:1})]),_:1},8,["data"])]),f("div",O,[t(x,{modelValue:a(i),"onUpdate:modelValue":e[0]||(e[0]=l=>q(i)?i.value=l:null),onChange:a(m)},null,8,["modelValue","onChange"])])]),_:1})),[[A,a(i).loading]]),p.value?(r(),_($,{key:0,ref_key:"editRef",ref:u,"dict-data":a(F),onSuccess:a(m),onClose:e[1]||(e[1]=l=>p.value=!1)},null,8,["dict-data","onSuccess"])):j("",!0)])}}});export{Mo as default};