var w=Object.defineProperty;var T=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var h=(a,l,n)=>l in a?w(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,i=(a,l)=>{for(var n in l||(l={}))M.call(l,n)&&h(a,n,l[n]);if(T)for(var n of T(l))K.call(l,n)&&h(a,n,l[n]);return a};var f=(a,l,n)=>new Promise((d,r)=>{var m=o=>{try{e(n.next(o))}catch(g){r(g)}},y=o=>{try{e(n.throw(o))}catch(g){r(g)}},e=o=>o.done?d(o.value):Promise.resolve(o.value).then(m,y);e((n=n.apply(a,l)).next())});import{P as U}from"./index.87b9fa4d.js";import{z as N}from"./api.761a0b6b.js";import{T as v}from"./index.0bc33df6.js";import{S as C}from"./index.d7d5ed38.js";import{g as c,a as s}from"./objectUtil.ec24ceed.js";import{B as x,c as b,M as F,N as k}from"./constant.1ef756ae.js";import{g as L}from"./dateUtil.de35d5fd.js";import{d as P,a as j,r as D,B as O,i as t,l as p,ce as u,_ as B,cf as E,a9 as V,p as S,k as _,cg as z}from"./index.0d3a6da1.js";import"./searchs.b637f0d6.js";import"./dayjs.min.74ed5bab.js";const Z=P({name:"expection-log-index",setup(){const a=j({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{appKey:null,clientType:null,phone:null,appType:null,exceptionType:null,deviceType:null,exceptionTime:null,exceptionStartTime:null,exceptionEndTime:null},dataList:[]}),l=D();O(()=>{n()});const n=()=>f(this,null,function*(){try{a.loading=!0;const{data:e}=yield N(i(i(i({},a.pagination),a.searchForm),L(a.searchForm.exceptionTime,["exceptionStartTime","exceptionEndTime"])));a.loading=!1,a.pagination.pageTotal=Number(e.total),a.dataList=e.rows||[]}catch(e){a.loading=!1}}),d=()=>{var e;(e=l.value)==null||e.submit()},r=()=>{var e;(e=l.value)==null||e.reset()},m=()=>{a.pagination.page=1,n()},y=()=>[{title:"\u5E94\u7528\u6807\u8BC6",key:"appKey",render(e){return t("div",null,[s(e.appKey,new Map(Object.entries(x)))])}},{title:"\u5BA2\u6237\u7AEF\u7C7B\u578B",key:"clientType",render(e){return t("div",null,[s(e.clientType,new Map(Object.entries(b)))])}},{title:"\u624B\u673A\u53F7",key:"phone"},{title:"\u5F02\u5E38\u7C7B\u578B",key:"exceptionType",render(e){return t("div",null,[s(e.exceptionType,new Map(Object.entries(k)))])}},{title:"\u5BA2\u6237\u7AEF\u4FE1\u606F",key:"userAgent",render(e){return t(v,{showContentWidth:280,content:e.userAgent},null)}},{title:"\u5E94\u7528\u7C7B\u578B",key:"appType",render(e){return t("div",null,[s(e.appType,new Map(Object.entries(F)))])}},{title:"\u8BBE\u5907\u7C7B\u578B",key:"deviceType"},{title:"\u8BBE\u5907\u7248\u672C",key:"deviceVersion"},{title:"\u5F02\u5E38\u65F6\u95F4",key:"exceptionTime"},{title:"\u5185\u5BB9",key:"content",width:400,render(e){return t(v,{showContentWidth:280,content:e.content},null)}}];return()=>t("div",{class:"system-menu-container"},[t(C,{ref:l,model:a.searchForm,onSubmit:m,saveKey:"expection-log-index",onSetModel:e=>a.searchForm=e},{default:()=>[t(p,{label:"\u5E94\u7528\u6807\u8BC6",path:"appKey"},{default:()=>[t(u,{value:a.searchForm.appKey,"onUpdate:value":e=>a.searchForm.appKey=e,placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528\u6807\u8BC6",clearable:!0,options:c(x)},null)]}),t(p,{label:"\u5BA2\u6237\u7AEF\u7C7B\u578B",path:"clientType"},{default:()=>[t(u,{value:a.searchForm.clientType,"onUpdate:value":e=>a.searchForm.clientType=e,placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u7C7B\u578B",clearable:!0,options:c(b)},null)]}),t(p,{label:"\u624B\u673A\u53F7",path:"phone"},{default:()=>[t(B,{value:a.searchForm.phone,"onUpdate:value":e=>a.searchForm.phone=e,placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",clearable:!0},null)]}),t(p,{label:"\u5E94\u7528\u7C7B\u578B",path:"appType"},{default:()=>[t(u,{value:a.searchForm.appType,"onUpdate:value":e=>a.searchForm.appType=e,placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B",options:c(F),clearable:!0},null)]}),t(p,{label:"\u5F02\u5E38\u7C7B\u578B",path:"exceptionType"},{default:()=>[t(u,{value:a.searchForm.exceptionType,"onUpdate:value":e=>a.searchForm.exceptionType=e,placeholder:"\u8BF7\u9009\u62E9\u5F02\u5E38\u7C7B\u578B",options:c(k),clearable:!0},null)]}),t(p,{label:"\u5F02\u5E38\u65F6\u95F4",path:"exceptionTime"},{default:()=>[t(E,{value:a.searchForm.exceptionTime,"onUpdate:value":e=>a.searchForm.exceptionTime=e,type:"daterange",clearable:!0,"value-format":"yyyy-MM-dd HH:mm:dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),t(p,null,{default:()=>[t(V,null,{default:()=>[t(S,{type:"primary",onClick:d},{default:()=>[_("\u641C\u7D22")]}),t(S,{type:"default",onClick:r},{default:()=>[_("\u91CD\u7F6E")]})]})]})]}),t("div",{class:["section-container"]},[t(z,{loading:a.loading,columns:y(),data:a.dataList},null),t(U,{page:a.pagination.page,"onUpdate:page":e=>a.pagination.page=e,pageSize:a.pagination.rows,"onUpdate:pageSize":e=>a.pagination.rows=e,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":e=>a.pagination.pageTotal=e,onList:n,sync:!0},null)])])}});export{Z as default};
