"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),l=require("../../../gen/Enums.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("u-search")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onShow(()=>{var e;o.useModel.formData.value.page=1,o.useModel.listData.value=[],null==(e=n.method)||e.getList()}),e.onUnload(()=>{o.useModel.formData.value.name="",o.useModel.formData.value.page=1,o.useModel.listData.value=[]}),(a,r)=>{var t,u,s,m,d;return{a:e.o(null==(t=e.unref(n.method))?void 0:t.onSearch),b:e.o(n=>e.unref(o.useModel).formData.value.name=n),c:e.p({placeholder:"请输入关键词搜索",showAction:!1,modelValue:e.unref(o.useModel).formData.value.name}),d:e.f(e.unref(o.useModel).listData.value,(o,a,r)=>{var t,u,s;return{a:e.t(null==o?void 0:o.emergency_event_levels_name),b:"35e31d32-2-"+r+",35e31d32-1",c:e.p({value:null==o?void 0:o.status,Enums:e.unref(l.EmergencyEventsStatusEnum)}),d:e.n(`status status_${null==o?void 0:o.status}`),e:e.t(null==o?void 0:o.name),f:e.t(null==(t=null==o?void 0:o.asset_project)?void 0:t.name),g:e.t(null==o?void 0:o.created_at),h:e.t((null==(s=null==(u=null==o?void 0:o.emergency_event_follows)?void 0:u[0])?void 0:s.created_at)||"-"),i:`item_${a}`,j:e.o(l=>{var a;return null==(a=e.unref(n.method))?void 0:a.handleDetail(o)},`item_${a}`)}}),e:e.o(null==(u=e.unref(n.method))?void 0:u.handleLoad),f:e.p({meta:null==(m=null==(s=e.unref(o.useModel))?void 0:s.metaData)?void 0:m.value}),g:e.o(null==(d=e.unref(n.method))?void 0:d.handleAdd),h:e.p({btnParimaryName:"新增突发事件"})}})});wx.createPage(a);
