suyuan/public/admin/assets/index.772bb779.js

2 lines
5.4 KiB
JavaScript

import{B as P,C as S,w as T,D as q,I as M,L as j,M as K,N as z}from"./element-plus.fbdc16f2.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.c1bd7115.js";import{u as H}from"./usePaging.160b82b8.js";import{k as J,f as O}from"./index.eedb7e65.js";import{a as Q}from"./useDictOptions.cd3e70ae.js";import{_ as W,a as X,b as Y}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.873c42b2.js";import"./lodash.e154233a.js";import{d as E,s as Z,r as b,$ as ee,a4 as te,af as oe,o as i,c as ae,U as e,L as o,M as F,u as s,K as _,R as le,a as C,k as ue,S as c,n as se}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.03adc6f0.js";import"./axios.3eae2260.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.c495a36d.js";import"./vue-clipboard3.d4154da9.js";import"./clipboard.7105729c.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.06948c5a.js";const ne=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),ie={class:"mt-4"},pe=c(" \u79CD\u690D\u4FE1\u606F "),me=c(" \u7F16\u8F91 "),de=c(" \u5220\u9664 "),_e={class:"flex mt-4 justify-end"},ce=E({name:"landLists"}),tt=E({...ce,setup(fe){const D=Z(),h=b(!1),l=ee({user_id:"",title:"",master_name:"",master_phone:""}),k=b([]),B=r=>{k.value=r.map(({id:t})=>t)},{dictData:V}=Q("land_status"),{pager:p,getLists:f,resetParams:g,resetPage:y}=H({fetchFun:X,params:l}),x=async r=>{var t,n;h.value=!0,await se(),(t=D.value)==null||t.open("edit"),(n=D.value)==null||n.setFormData(r)},L=async r=>{await O.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:r}),f()};return f(),(r,t)=>{const n=P,m=S,d=T,A=q,w=M,u=j,I=te("router-link"),R=K,U=G,v=oe("perms"),$=z;return i(),ae("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:l,inline:""},{default:o(()=>[e(m,{label:"\u7528\u6237ID",prop:"user_id"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:l.user_id,"onUpdate:modelValue":t[0]||(t[0]=a=>l.user_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:l.title,"onUpdate:modelValue":t[1]||(t[1]=a=>l.title=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:l.master_name,"onUpdate:modelValue":t[2]||(t[2]=a=>l.master_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:l.master_phone,"onUpdate:modelValue":t[3]||(t[3]=a=>l.master_phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(m,null,{default:o(()=>[e(d,{type:"primary",onClick:s(y)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(d,{onClick:s(g)},{default:o(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((i(),_(w,{class:"!border-none",shadow:"never"},{default:o(()=>[C("div",ie,[e(R,{data:s(p).lists,onSelectionChange:B},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u571F\u5730\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(u,{label:"\u571F\u5730\u9762\u79EF",prop:"total_area","show-overflow-tooltip":""}),e(u,{label:"\u5269\u4F59\u9762\u79EF",prop:"residual_area","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237ID",prop:"user_id","show-overflow-tooltip":""}),e(u,{label:"\u6240\u5C5E\u7528\u6237",prop:"user.account","show-overflow-tooltip":""}),e(u,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(u,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:o(({row:a})=>[F((i(),_(d,{type:"primary",link:""},{default:o(()=>[e(I,{to:{path:s(J)("land.land_plant/lists"),query:{land_id:a.id}}},{default:o(()=>[pe]),_:2},1032,["to"])]),_:2},1024)),[[v,["land.land_plant/lists"]]]),F((i(),_(d,{type:"primary",link:"",onClick:N=>x(a)},{default:o(()=>[me]),_:2},1032,["onClick"])),[[v,["land.land/edit"]]]),F((i(),_(d,{type:"danger",link:"",onClick:N=>L(a.id)},{default:o(()=>[de]),_:2},1032,["onClick"])),[[v,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",_e,[e(U,{modelValue:s(p),"onUpdate:modelValue":t[4]||(t[4]=a=>ue(p)?p.value=a:null),onChange:s(f)},null,8,["modelValue","onChange"])])]),_:1})),[[$,s(p).loading]]),h.value?(i(),_(W,{key:0,ref_key:"editRef",ref:D,"dict-data":s(V),onSuccess:s(f),onClose:t[5]||(t[5]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{tt as default};