suyuan/public/admin/assets/index.38f5faab.js

2 lines
5.4 KiB
JavaScript

import{B as S,C as N,w as T,D as q,H as K,I as j,J as H,K as J}from"./element-plus.c4a2af8a.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{u as z}from"./usePaging.160b82b8.js";import{k as G,f as O}from"./index.7c5c8d56.js";import{u as Q}from"./useDictOptions.3f58fdc1.js";import{_ as W,a as X,b as Y}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.2fd897a4.js";import"./lodash.ec5da75f.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 n,K as _,R as le,a as C,k as ue,S as c,n as ne}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.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.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.36a7ea39.js";const se=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),ie={class:"mt-4"},pe=c(" \u7F16\u8F91 "),me=c(" \u79CD\u690D\u4FE1\u606F "),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}=z({fetchFun:X,params:l}),x=async r=>{var t,s;h.value=!0,await ne(),(t=D.value)==null||t.open("edit"),(s=D.value)==null||s.setFormData(r)},A=async r=>{await O.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:r}),f()};return f(),(r,t)=>{const s=S,m=N,d=T,I=q,w=K,u=j,L=te("router-link"),R=H,U=M,v=oe("perms"),$=J;return i(),ae("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:l,inline:""},{default:o(()=>[e(m,{label:"\u7528\u6237ID",prop:"user_id"},{default:o(()=>[e(s,{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(s,{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(s,{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(s,{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:n(y)},{default:o(()=>[se]),_:1},8,["onClick"]),e(d,{onClick:n(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:n(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",align:"center",fixed:"right"},{default:o(({row:a})=>[F((i(),_(d,{type:"primary",link:"",onClick:P=>x(a)},{default:o(()=>[pe]),_:2},1032,["onClick"])),[[v,["land.land/edit"]]]),F((i(),_(d,{type:"primary",link:""},{default:o(()=>[e(L,{to:{path:n(G)("land.land_plant/lists"),query:{land_id:a.id}}},{default:o(()=>[me]),_:2},1032,["to"])]),_:2},1024)),[[v,["land.land_plant/lists"]]]),F((i(),_(d,{type:"danger",link:"",onClick:P=>A(a.id)},{default:o(()=>[de]),_:2},1032,["onClick"])),[[v,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",_e,[e(U,{modelValue:n(p),"onUpdate:modelValue":t[4]||(t[4]=a=>ue(p)?p.value=a:null),onChange:n(f)},null,8,["modelValue","onChange"])])]),_:1})),[[$,n(p).loading]]),h.value?(i(),_(W,{key:0,ref_key:"editRef",ref:D,"dict-data":n(V),onSuccess:n(f),onClose:t[5]||(t[5]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{tt as default};