2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{B as N,C as T,w as q,D as K,H as j,I as H,J,K as M}from"./element-plus.c4a2af8a.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{u as G}from"./usePaging.160b82b8.js";import{k as C,f as O}from"./index.2b468485.js";import{u as Q}from"./useDictOptions.9319430e.js";import{_ as W,a as X,b as Y}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.126c0ed6.js";import"./lodash.ec5da75f.js";import{d as B,s as Z,r as E,$ as ee,a4 as te,af as oe,o as r,c as ae,U as e,L as t,M as f,u,K as d,R as le,a as k,k as ue,S as m,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.2c826b32.js";const se=m("\u67E5\u8BE2"),re=m("\u91CD\u7F6E"),ie={class:"mt-4"},pe=m(" \u7F16\u8F91 "),de=m(" \u79CD\u690D\u4FE1\u606F "),me=m(" \u4EA7\u54C1\u4FE1\u606F "),_e=m(" \u5220\u9664 "),ce={class:"flex mt-4 justify-end"},fe=B({name:"landLists"}),ot=B({...fe,setup(Fe){const h=Z(),v=E(!1),l=ee({user_id:"",title:"",master_name:"",master_phone:""}),V=E([]),y=i=>{V.value=i.map(({id:o})=>o)},{dictData:g}=Q("land_status"),{pager:_,getLists:F,resetParams:x,resetPage:A}=G({fetchFun:X,params:l}),I=async i=>{var o,s;v.value=!0,await ne(),(o=h.value)==null||o.open("edit"),(s=h.value)==null||s.setFormData(i)},L=async i=>{await O.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:i}),F()};return F(),(i,o)=>{const s=N,c=T,p=q,R=K,b=j,n=H,w=te("router-link"),U=J,$=z,D=oe("perms"),P=M;return r(),ae("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:l,inline:""},{default:t(()=>[e(c,{label:"\u7528\u6237ID",prop:"user_id"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.user_id,"onUpdate:modelValue":o[0]||(o[0]=a=>l.user_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.title,"onUpdate:modelValue":o[1]||(o[1]=a=>l.title=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.master_name,"onUpdate:modelValue":o[2]||(o[2]=a=>l.master_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:l.master_phone,"onUpdate:modelValue":o[3]||(o[3]=a=>l.master_phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(p,{type:"primary",onClick:u(A)},{default:t(()=>[se]),_:1},8,["onClick"]),e(p,{onClick:u(x)},{default:t(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(b,{class:"!border-none",shadow:"never"},{default:t(()=>[k("div",ie,[e(U,{data:u(_).lists,onSelectionChange:y},{default:t(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u7528\u6237ID",prop:"user_id","show-overflow-tooltip":""}),e(n,{label:"\u571F\u5730\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(n,{label:"\u571F\u5730\u9762\u79EF",prop:"total_area","show-overflow-tooltip":""}),e(n,{label:"\u5269\u4F59\u9762\u79EF",prop:"residual_area","show-overflow-tooltip":""}),e(n,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(n,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"280",align:"center",fixed:"right"},{default:t(({row:a})=>[f((r(),d(p,{type:"primary",link:"",onClick:S=>I(a)},{default:t(()=>[pe]),_:2},1032,["onClick"])),[[D,["land.land/edit"]]]),f((r(),d(p,{type:"primary",link:""},{default:t(()=>[e(w,{to:{path:u(C)("land.land_plant/lists"),query:{land_id:a.id}}},{default:t(()=>[de]),_:2},1032,["to"])]),_:2},1024)),[[D,["land.land_plant/lists"]]]),f((r(),d(p,{type:"primary",link:""},{default:t(()=>[e(w,{to:{path:u(C)("land.product/lists"),query:{land_id:a.id}}},{default:t(()=>[me]),_:2},1032,["to"])]),_:2},1024)),[[D,["land.product/lists"]]]),f((r(),d(p,{type:"danger",link:"",onClick:S=>L(a.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[D,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ce,[e($,{modelValue:u(_),"onUpdate:modelValue":o[4]||(o[4]=a=>ue(_)?_.value=a:null),onChange:u(F)},null,8,["modelValue","onChange"])])]),_:1})),[[P,u(_).loading]]),v.value?(r(),d(W,{key:0,ref_key:"editRef",ref:h,"dict-data":u(g),onSuccess:u(F),onClose:o[5]||(o[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{ot as default};
|