suyuan/public/admin/assets/index.256c7eb8.js

2 lines
6.3 KiB
JavaScript

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