WokerTask/public/admin/assets/index.7162d02b.js

2 lines
4.0 KiB
JavaScript

import{C as L,D as T,w as I,F as N,J as U,P as $,Q as j,R as A}from"./element-plus.74337649.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import{r as Q}from"./index.2964e289.js";import{u as S}from"./usePaging.bd7a7dec.js";import J from"./detail.5841e3d2.js";import{d as E,s as W,r as F,$ as z,o as _,c as G,W as e,Q as t,u as r,U as f,R as H,P as b,a as w,j as K,T as M,n as O}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.9789cc37.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";function X(v){return Q.get({url:"/user.user/villageInfoList",params:v})}const Y={class:"mt-4"},Z={class:"flex justify-end mt-4"},ee=E({name:"projectLists"}),We=E({...ee,setup(v){const m=W(),p=F(!1),l=z({name:"",contact:""}),g=F([]),h=i=>{g.value=i.map(({id:o})=>o)},{pager:u,getLists:C,resetParams:D,resetPage:k}=S({fetchFun:X,params:l}),V=async i=>{var o,s;p.value=!0,await O(),(o=m.value)==null||o.open(),(s=m.value)==null||s.setFormData(i)};return C(),(i,o)=>{const s=L,c=T,d=I,y=N,B=U,n=$,x=j,P=q,R=A;return _(),G("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(y,{class:"mb-[-16px]",model:l,inline:""},{default:t(()=>[e(c,{label:"\u6237\u4E3B\u59D3\u540D",prop:"name"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.name,"onUpdate:modelValue":o[0]||(o[0]=a=>l.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6237\u4E3B\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.contact,"onUpdate:modelValue":o[1]||(o[1]=a=>l.contact=a),type:"number",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(d,{type:"primary",onClick:r(k)},{default:t(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:r(D)},{default:t(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((_(),b(B,{class:"!border-none",shadow:"never"},{default:t(()=>[w("div",Y,[e(x,{data:r(u).lists,onSelectionChange:h},{default:t(()=>[e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u6237\u4E3B\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact","show-overflow-tooltip":""}),e(n,{label:"\u5BB6\u5EAD\u4EBA\u6570",prop:"family_count","show-overflow-tooltip":""}),e(n,{label:"\u5BB6\u5EAD\u5730\u5740",prop:"address","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:a})=>[e(d,{link:"",onClick:oe=>V(a),type:"primary"},{default:t(()=>[f(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",Z,[e(P,{modelValue:r(u),"onUpdate:modelValue":o[2]||(o[2]=a=>K(u)?u.value=a:null),onChange:r(C)},null,8,["modelValue","onChange"])])]),_:1})),[[R,r(u).loading]]),p.value?(_(),b(J,{key:0,ref_key:"detailRef",ref:m,onClose:o[3]||(o[3]=a=>p.value=!1)},null,512)):M("",!0)])}}});export{We as default};