Files
CNCEC_APP/unpackage/dist/dev/mp-weixin/pages/index/riskControlDetails/index.js
T
2026-08-17 11:01:21 +08:00

3 lines
1.3 KiB
JavaScript

"use strict";const e=require("../../../common/vendor.js"),_=require("../../../api/moduleApi/index.js"),l=require("../../../utils/index.js");if(!Array){const s=e.resolveComponent("u-search"),u=e.resolveComponent("u-empty");(s+u)()}const p=()=>"../../../uni_modules/uview-pro/components/u-search/u-search.js",d=()=>"../../../uni_modules/uview-pro/components/u-empty/u-empty.js";Math||(p+d)();const f={__name:"index",setup(s){let u=e.ref(""),o=e.ref({});e.onLoad(a=>{o.value=a,r(o.value.unitId)});let n=e.ref([]);const r=async a=>{let c=await _.getHSERiskClassificationItem({unitId:a,searchText:u.value});n.value=c},i=l.debounce(a=>{u.value=a,r(o.value.unitId)},500);return(a,c)=>e.e({a:e.o(e.unref(i),"e6"),b:e.o(t=>e.isRef(u)?u.value=t:u=t,"22"),c:e.p({placeholder:"请输入项目名称","show-action":!1,modelValue:e.unref(u)}),d:e.t(decodeURIComponent(e.unref(o).companyName)),e:e.unref(n).length>0},e.unref(n).length>0?{f:e.f(e.unref(n),(t,m,y)=>({a:e.t(t.ProjectName),b:e.t(t.HighRiskNum),c:e.t(t.MediumRiskNum),d:e.t(t.GeneralRiskNum),e:e.t(t.LowRiskNum),f:m}))}:{g:e.p({text:"暂无数据",mode:"list"})})}},h=e._export_sfc(f,[["__scopeId","data-v-1b3061ba"]]);wx.createPage(h);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/riskControlDetails/index.js.map