3 lines
1.1 KiB
JavaScript
3 lines
1.1 KiB
JavaScript
"use strict";const e=require("../../../common/vendor.js"),_=require("../../../api/moduleApi/index.js"),i=require("../../../utils/index.js");if(!Array){const n=e.resolveComponent("u-search"),u=e.resolveComponent("u-empty");(n+u)()}const p=()=>"../../../uni_modules/uview-pro/components/u-search/u-search.js",m=()=>"../../../uni_modules/uview-pro/components/u-empty/u-empty.js";Math||(p+m)();const l={__name:"index",setup(n){let u=e.ref(""),o=e.ref([]);const r=async()=>{let c=await _.getQMSQC({searchText:u.value});o.value=c},a=i.debounce(c=>{u.value=c,r()},500);return e.onLoad(()=>{r()}),(c,f)=>e.e({a:e.o(e.unref(a),"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.unref(o).length>0},e.unref(o).length>0?{e:e.f(e.unref(o),(t,s,h)=>({a:e.t(t.UnitName),b:e.t(t.QcProvinceNum),c:e.t(t.QcGroupNum),d:e.t(t.QcEnterpriseNum),e:s}))}:{f:e.p({text:"暂无数据",mode:"list"})})}},d=e._export_sfc(l,[["__scopeId","data-v-8c4924a9"]]);wx.createPage(d);
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/quality/QC/index.js.map
|