suyuan/public/admin/assets/index.3b72058f.js

2 lines
7.5 KiB
JavaScript

import{B as Z,C as ee,w as te,D as ae,I as le,L as oe,_ as ne,M as se,b as ue,J as ie,N as re}from"./element-plus.f958bb38.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{k as I,f as pe,b as me}from"./index.79566453.js";import{u as ce}from"./vue-router.12d45bc3.js";import{u as _e}from"./usePaging.160b82b8.js";import{a as fe}from"./useDictOptions.a1641d27.js";import{_ as De,a as Fe,b as ve}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.b785467b.js";import{d as U,s as he,r as C,$ as P,a4 as ye,af as be,o as s,c as w,a as V,U as e,L as t,M as c,u as i,K as m,R as Ee,V as R,S as o,T as B,k as ke,a7 as ge,n as S}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"./picker.28da70ce.js";import"./index.ace66c08.js";import"./index.785464a4.js";import"./index.aa34dee3.js";import"./index.bc054a49.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";const Ce=o("\u67E5\u8BE2"),we=o("\u91CD\u7F6E"),Ve=o(" \u65B0\u589E "),Be=o(" \u5220\u9664 "),xe={class:"mt-4"},Le=o(" \u7F16\u8F91 "),Ae=o(" \u4EA7\u54C1\u4FE1\u606F "),$e=o(" \u571F\u5730\u56FE\u7247 "),Ie=o(" \u79CD\u690D\u4FE1\u606F "),Pe=o(" \u5220\u9664 "),Re={class:"flex mt-4 justify-end"},Se=U({name:"landLists"}),$t=U({...Se,setup(Ue){const{query:N}=ce(),v=he(),h=C(!1);let b=N.user_id;typeof b>"u"&&(b="");const u=P({user_id:b,title:"",master_name:"",master_phone:""}),E=C([]),T=n=>{E.value=n.map(({id:l})=>l)},{dictData:q}=fe(""),{pager:f,getLists:y,resetParams:z,resetPage:J}=_e({fetchFun:Fe,params:u}),k=C(!1),D=P({picData:[]}),M=n=>{D.picData=[];const l=JSON.parse(n.pic);for(const r in l)D.picData.unshift(l[r]);console.log(D.picData),k.value=!0},j=async()=>{var n;h.value=!0,await S(),(n=v.value)==null||n.open("add")},K=async n=>{var l,r;h.value=!0,await S(),(l=v.value)==null||l.open("edit"),(r=v.value)==null||r.setFormData(n)},x=async n=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:n}),y()};return y(),(n,l)=>{const r=Z,F=ee,d=te,O=ae,L=le,G=me,p=oe,g=ne,A=ye("router-link"),H=se,Q=de,W=ue,X=ie,_=be("perms"),Y=re;return s(),w(R,null,[V("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(O,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(F,{label:"\u7528\u6237ID",prop:"user_id"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:u.user_id,"onUpdate:modelValue":l[0]||(l[0]=a=>u.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(r,{class:"w-[280px]",modelValue:u.title,"onUpdate:modelValue":l[1]||(l[1]=a=>u.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(r,{class:"w-[280px]",modelValue:u.master_name,"onUpdate:modelValue":l[2]||(l[2]=a=>u.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(r,{class:"w-[280px]",modelValue:u.master_phone,"onUpdate:modelValue":l[3]||(l[3]=a=>u.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:i(J)},{default:t(()=>[Ce]),_:1},8,["onClick"]),e(d,{onClick:i(z)},{default:t(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((s(),m(L,{class:"!border-none",shadow:"never"},{default:t(()=>[c((s(),m(d,{type:"primary",onClick:j},{icon:t(()=>[e(G,{name:"el-icon-Plus"})]),default:t(()=>[Ve]),_:1})),[[_,["land.land/add"]]]),c((s(),m(d,{disabled:!E.value.length,onClick:l[4]||(l[4]=a=>x(E.value))},{default:t(()=>[Be]),_:1},8,["disabled"])),[[_,["land.land/delete"]]]),V("div",xe,[e(H,{data:i(f).lists,onSelectionChange:T,style:{width:"100%"}},{default:t(()=>[e(p,{type:"selection",width:"55"}),e(p,{label:"ID",prop:"id",width:"80","show-overflow-tooltip":""}),e(p,{label:"\u7528\u6237\u4FE1\u606F",width:"200"},{default:t(({row:a})=>[e(g,{class:"mr-2",type:"success"},{default:t(()=>[o("ID: "+B(a.user_id),1)]),_:2},1024),e(g,{class:"mr-2",type:"success"},{default:t(()=>[o("\u8D26\u6237: "+B(a.user.account),1)]),_:2},1024)]),_:1}),e(p,{label:"\u571F\u5730\u540D\u79F0"},{default:t(({row:a})=>[e(g,{class:"mr-2",type:"success"},{default:t(()=>[o(B(a.title),1)]),_:2},1024)]),_:1}),e(p,{label:"\u571F\u5730\u9762\u79EF",prop:"total_area","show-overflow-tooltip":""}),e(p,{label:"\u5269\u4F59\u9762\u79EF",prop:"residual_area","show-overflow-tooltip":""}),e(p,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(p,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone","show-overflow-tooltip":""}),e(p,{label:"\u64CD\u4F5C",width:"350",align:"center",fixed:"right"},{default:t(({row:a})=>[c((s(),m(d,{type:"primary",link:"",onClick:$=>K(a)},{default:t(()=>[Le]),_:2},1032,["onClick"])),[[_,["land.land/edit"]]]),c((s(),m(d,{type:"primary",link:""},{default:t(()=>[e(A,{to:{path:i(I)("land.product/lists"),query:{land_id:a.id}}},{default:t(()=>[Ae]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.product/lists"]]]),e(d,{type:"primary",link:"",onClick:$=>M(a)},{default:t(()=>[$e]),_:2},1032,["onClick"]),c((s(),m(d,{type:"primary",link:""},{default:t(()=>[e(A,{to:{path:i(I)("land.land_plant/lists"),query:{land_id:a.id}}},{default:t(()=>[Ie]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.land_plant/lists"]]]),c((s(),m(d,{type:"danger",link:"",onClick:$=>x(a.id)},{default:t(()=>[Pe]),_:2},1032,["onClick"])),[[_,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),V("div",Re,[e(Q,{modelValue:i(f),"onUpdate:modelValue":l[5]||(l[5]=a=>ke(f)?f.value=a:null),onChange:i(y)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,i(f).loading]]),h.value?(s(),m(De,{key:0,ref_key:"editRef",ref:v,"dict-data":i(q),onSuccess:i(y),onClose:l[6]||(l[6]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):Ee("",!0)]),e(X,{modelValue:k.value,"onUpdate:modelValue":l[7]||(l[7]=a=>k.value=a),title:"\u571F\u5730\u56FE\u7247",center:""},{default:t(()=>[(s(!0),w(R,null,ge(D.picData,a=>(s(),w("div",{style:{display:"inline-block",margin:"12px"},key:a},[e(W,{style:{width:"200px",height:"200px"},src:a,"zoom-rate":1.2,"max-scale":5,"min-scale":.2,"preview-src-list":D.picData,"initial-index":4,fit:"cover",center:""},null,8,["src","zoom-rate","min-scale","preview-src-list"])]))),128))]),_:1},8,["modelValue"])],64)}}});export{$t as default};