import{aG as C,r as y,F as k,W as j}from"./index.17037962789732.js";import"./index.170379627897337.js";import"./index.170379627897315.js";import"./index.170379627897318.js";import"./index.170379627897319.js";import"./index.170379627897314.js";import{h as w}from"./log.17037962789732.js";import{o as v}from"./comm.1703796278973.js";import{d as L,k as d,v as S,o as T,c as I,a as u,b as _,u as m}from"./vue.1703796278973.js";const U=L({__name:"index",props:{data:{type:Object}},emits:["closeSolve"],setup(g,{emit:f}){const e=g,a=d(!1),p=d(),b={describe:[{required:!0,message:"请输入处理结果"}]},t=S({describe:""});d(!0);const h=()=>{f("closeSolve")},x=()=>{a.value=!0,p.value.validate().then(async()=>{var o,r,n,s,l,c;(await w({describe:t.describe,type:"user",state:"normal",alarmRecordId:((r=(o=e.data)==null?void 0:o.current)==null?void 0:r.id)||"",alarmConfigId:((s=(n=e.data)==null?void 0:n.current)==null?void 0:s.alarmConfigId)||"",alarmTime:((c=(l=e==null?void 0:e.data)==null?void 0:l.current)==null?void 0:c.alarmTime)||""})).status===200?(v("操作成功！"),f("closeSolve")):v("操作失败！","error"),a.value=!1}).catch(i=>{console.log(i),a.value=!1})};return(i,o)=>{const r=C,n=y,s=k,l=j;return T(),I(l,{title:"告警处理",okText:"确定",cancelText:"取消",visible:"",onCancel:h,onOk:x,destroyOnClose:"",confirmLoading:m(a)},{default:u(()=>[_(s,{rules:b,layout:"vertical",ref_key:"formRef",ref:p,model:m(t)},{default:u(()=>[_(n,{label:"处理结果",name:"describe"},{default:u(()=>[_(r,{rows:8,maxlength:200,showCount:"",placeholder:"请输入处理结果",value:m(t).describe,"onUpdate:value":o[0]||(o[0]=c=>m(t).describe=c)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["confirmLoading"])}}});export{U as _};
