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