"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../common/libraries/apiLoading.js"),n=require("../../../../gen/Apis.js");if(require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../../components/hs-empty/hs-empty.js")+(()=>"../../../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"permission_show",setup(r){const t=e.ref([]),s=()=>{e.index.navigateBack({delta:1})};return e.onLoad(e=>{var r;r=e,o.getApiLoading(n.Apis.Emergency.EmergencyEventTeams.GetPermission,{asset_projects_id:null==r?void 0:r.id}).then(e=>{var o;t.value=(null==(o=null==e?void 0:e.data)?void 0:o.members)||[],console.log(e)})}),(o,n)=>{var r,i;return e.e({a:!(null==(r=t.value)?void 0:r.length)},(null==(i=t.value)?void 0:i.length)?{}:{b:e.p({height:"20vh"})},{c:e.f(t.value,(o,n,r)=>({a:e.t(null==o?void 0:o.employee_name),b:e.t(null==o?void 0:o.employee_phone),c:e.o(n=>{var r;(r=null==o?void 0:o.employee_phone)?e.index.makePhoneCall({phoneNumber:r}):e.index.showToast({title:"当前人员手机号为空！",icon:"none"})},`item_${n}`),d:`item_${n}`})),d:e.o(s),e:e.p({btnParimaryName:"报其他项目"})})}}});wx.createPage(r);
