2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{B as Y,C as Z,w as ee,D as te,I as ae,L as oe,_ as le,M as ne,b as ie,J as se,N as ue}from"./element-plus.a3f01f50.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.b069f63a.js";import{k as A,f as de,b as pe}from"./index.8312bf00.js";import{u as me}from"./vue-router.ed788fee.js";import{u as ce}from"./usePaging.2a59f422.js";import{a as _e}from"./useDictOptions.6c5e56d7.js";import{_ as fe,a as De,b as Fe}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.438e38c8.js";import{d as R,s as ve,r as g,_ as $,a3 as he,ae as ye,o as n,c as C,a as w,T as e,K as t,L as c,u as s,J as m,Q as be,U as I,R as u,S as Ee,j as ke,a6 as ge,n as P}from"./@vue.108c970a.js";import"./lodash.ec5da75f.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.f258b2c3.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.eff1ffd5.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.241b9b5d.js";import"./picker.d8722077.js";import"./index.9fde0396.js";import"./index.1d03d266.js";import"./index.69eefd68.js";import"./index.b2b73b06.js";import"./index.vue_vue_type_script_setup_true_lang.ab282602.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";const Ce=u("\u67E5\u8BE2"),we=u("\u91CD\u7F6E"),Ve=u(" \u65B0\u589E "),Be=u(" \u5220\u9664 "),xe={class:"mt-4"},Le=u(" \u7F16\u8F91 "),Ae=u(" \u4EA7\u54C1\u4FE1\u606F "),$e=u(" \u571F\u5730\u56FE\u7247 "),Ie=u(" \u79CD\u690D\u4FE1\u606F "),Pe=u(" \u5220\u9664 "),Re={class:"flex mt-4 justify-end"},Se=R({name:"landLists"}),$t=R({...Se,setup(Ue){const{query:S}=me(),v=ve(),h=g(!1);let b=S.user_id;typeof b>"u"&&(b="");const i=$({user_id:b,title:"",master_name:"",master_phone:""}),E=g([]),U=l=>{E.value=l.map(({id:a})=>a)},{dictData:N}=_e(""),{pager:f,getLists:y,resetParams:T,resetPage:q}=ce({fetchFun:De,params:i}),k=g(!1),D=$({picData:[]}),J=l=>{D.picData=[];const a=JSON.parse(l.pic);for(const r in a)D.picData.unshift(a[r]);console.log(D.picData),k.value=!0},j=async()=>{var l;h.value=!0,await P(),(l=v.value)==null||l.open("add")},z=async l=>{var a,r;h.value=!0,await P(),(a=v.value)==null||a.open("edit"),(r=v.value)==null||r.setFormData(l)},V=async l=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Fe({id:l}),y()};return y(),(l,a)=>{const r=Y,F=Z,d=ee,K=te,B=ae,M=pe,p=oe,O=le,x=he("router-link"),Q=ne,G=re,H=ie,W=se,_=ye("perms"),X=ue;return n(),C(I,null,[w("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(K,{class:"mb-[-16px]",model:i,inline:""},{default:t(()=>[e(F,{label:"\u7528\u6237ID",prop:"user_id"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:i.user_id,"onUpdate:modelValue":a[0]||(a[0]=o=>i.user_id=o),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:i.title,"onUpdate:modelValue":a[1]||(a[1]=o=>i.title=o),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:i.master_name,"onUpdate:modelValue":a[2]||(a[2]=o=>i.master_name=o),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:i.master_phone,"onUpdate:modelValue":a[3]||(a[3]=o=>i.master_phone=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(F,null,{default:t(()=>[e(d,{type:"primary",onClick:s(q)},{default:t(()=>[Ce]),_:1},8,["onClick"]),e(d,{onClick:s(T)},{default:t(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((n(),m(B,{class:"!border-none",shadow:"never"},{default:t(()=>[c((n(),m(d,{type:"primary",onClick:j},{icon:t(()=>[e(M,{name:"el-icon-Plus"})]),default:t(()=>[Ve]),_:1})),[[_,["land.land/add"]]]),c((n(),m(d,{disabled:!E.value.length,onClick:a[4]||(a[4]=o=>V(E.value))},{default:t(()=>[Be]),_:1},8,["disabled"])),[[_,["land.land/delete"]]]),w("div",xe,[e(Q,{data:s(f).lists,onSelectionChange:U,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:"\u571F\u5730\u540D\u79F0"},{default:t(({row:o})=>[e(O,{class:"mr-2",type:"info"},{default:t(()=>[u(Ee(o.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:o})=>[c((n(),m(d,{type:"primary",link:"",onClick:L=>z(o)},{default:t(()=>[Le]),_:2},1032,["onClick"])),[[_,["land.land/edit"]]]),c((n(),m(d,{type:"primary",link:""},{default:t(()=>[e(x,{to:{path:s(A)("land.product/lists"),query:{land_id:o.id}}},{default:t(()=>[Ae]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.product/lists"]]]),e(d,{type:"primary",link:"",onClick:L=>J(o)},{default:t(()=>[$e]),_:2},1032,["onClick"]),c((n(),m(d,{type:"primary",link:""},{default:t(()=>[e(x,{to:{path:s(A)("land.land_plant/lists"),query:{land_id:o.id}}},{default:t(()=>[Ie]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.land_plant/lists"]]]),c((n(),m(d,{type:"danger",link:"",onClick:L=>V(o.id)},{default:t(()=>[Pe]),_:2},1032,["onClick"])),[[_,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),w("div",Re,[e(G,{modelValue:s(f),"onUpdate:modelValue":a[5]||(a[5]=o=>ke(f)?f.value=o:null),onChange:s(y)},null,8,["modelValue","onChange"])])]),_:1})),[[X,s(f).loading]]),h.value?(n(),m(fe,{key:0,ref_key:"editRef",ref:v,"dict-data":s(N),onSuccess:s(y),onClose:a[6]||(a[6]=o=>h.value=!1)},null,8,["dict-data","onSuccess"])):be("",!0)]),e(W,{modelValue:k.value,"onUpdate:modelValue":a[7]||(a[7]=o=>k.value=o),title:"\u571F\u5730\u56FE\u7247",center:""},{default:t(()=>[(n(!0),C(I,null,ge(D.picData,o=>(n(),C("div",{style:{display:"inline-block",margin:"12px"},key:o},[e(H,{style:{width:"200px",height:"200px"},src:o,"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};
|