2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
import{B as te,C as oe,w as ae,D as le,I as ne,L as ie,M as se,b as ue,J as re,N as de}from"./element-plus.7a22678c.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import{k as R,f as me,b as ce}from"./index.bb590457.js";import{u as _e}from"./vue-router.ed788fee.js";import{u as fe}from"./usePaging.2a59f422.js";import{a as De}from"./useDictOptions.eb677e88.js";import{f as ve,h as Fe}from"./land.e99066e6.js";import"./lodash.ec5da75f.js";import{_ as he}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.a52a91f6.js";import{_ as be}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.31dfd6b1.js";import{d as T,s as I,r as y,_ as P,a3 as ye,ae as ke,o as l,c as E,a as g,T as e,K as a,L as c,u as n,J as d,Q as S,U,j as we,a6 as Ce,R as p,n as N}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.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.4eaaf2e9.js";import"./index.3956bbcf.js";import"./index.efeb5098.js";import"./index.3eeb6b50.js";import"./index.27064586.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";const Ee=p("\u67E5\u8BE2"),ge=p("\u91CD\u7F6E"),Be=p(" \u65B0\u589E "),Ve=p(" \u5220\u9664 "),xe={class:"mt-4"},Ae=p(" \u7F16\u8F91 "),Le=p(" \u4EA7\u54C1\u7BA1\u7406 "),$e=p(" \u571F\u5730\u56FE\u7247 "),Re=p(" \u79CD\u690D\u4FE1\u606F "),Ie=p(" \u5220\u9664 "),Pe={class:"flex mt-4 justify-end"},Se=T({name:"landLists"}),It=T({...Se,setup(Ue){const{query:q}=_e(),h=I(),J=I(),b=y(!1),B=y(!1);let k=q.user_id;typeof k>"u"&&(k="");const s=P({user_id:k,title:"",master_name:"",master_phone:""}),w=y([]),j=i=>{w.value=i.map(({id:t})=>t)},{dictData:V}=De(""),{pager:f,getLists:D,resetParams:z,resetPage:K}=fe({fetchFun:ve,params:s}),C=y(!1),v=P({picData:[]}),M=i=>{v.picData=[];const t=JSON.parse(i.pic);for(const u in t)v.picData.unshift(t[u]);console.log(v.picData),C.value=!0},O=async()=>{var i;b.value=!0,await N(),(i=h.value)==null||i.open("add")},Q=async i=>{var t,u;b.value=!0,await N(),(t=h.value)==null||t.open("edit"),(u=h.value)==null||u.setFormData(i)},x=async i=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Fe({id:i}),D()};return D(),(i,t)=>{const u=te,F=oe,r=ae,G=le,A=ne,H=ce,m=ie,L=ye("router-link"),W=se,X=pe,Y=ue,Z=re,_=ke("perms"),ee=de;return l(),E(U,null,[g("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(G,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(F,{label:"\u7528\u6237ID",prop:"user_id"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:s.user_id,"onUpdate:modelValue":t[0]||(t[0]=o=>s.user_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:s.title,"onUpdate:modelValue":t[1]||(t[1]=o=>s.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:a(()=>[e(u,{class:"w-[280px]",modelValue:s.master_name,"onUpdate:modelValue":t[2]||(t[2]=o=>s.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:a(()=>[e(u,{class:"w-[280px]",modelValue:s.master_phone,"onUpdate:modelValue":t[3]||(t[3]=o=>s.master_phone=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(F,null,{default:a(()=>[e(r,{type:"primary",onClick:n(K)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(r,{onClick:n(z)},{default:a(()=>[ge]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((l(),d(A,{class:"!border-none",shadow:"never"},{default:a(()=>[c((l(),d(r,{type:"primary",onClick:O},{icon:a(()=>[e(H,{name:"el-icon-Plus"})]),default:a(()=>[Be]),_:1})),[[_,["land.land/add"]]]),c((l(),d(r,{disabled:!w.value.length,onClick:t[4]||(t[4]=o=>x(w.value))},{default:a(()=>[Ve]),_:1},8,["disabled"])),[[_,["land.land/delete"]]]),g("div",xe,[e(W,{data:n(f).lists,onSelectionChange:j,style:{width:"100%"}},{default:a(()=>[e(m,{type:"selection",width:"55"}),e(m,{label:"ID",prop:"id",width:"80","show-overflow-tooltip":""}),e(m,{label:"\u571F\u5730\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(m,{label:"\u571F\u5730\u9762\u79EF",prop:"total_area","show-overflow-tooltip":""}),e(m,{label:"\u5269\u4F59\u9762\u79EF",prop:"residual_area","show-overflow-tooltip":""}),e(m,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(m,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone","show-overflow-tooltip":""}),e(m,{label:"\u64CD\u4F5C",width:"360",align:"center",fixed:"right"},{default:a(({row:o})=>[c((l(),d(r,{type:"primary",link:"",onClick:$=>Q(o)},{default:a(()=>[Ae]),_:2},1032,["onClick"])),[[_,["land.land/edit"]]]),c((l(),d(r,{type:"primary",link:""},{default:a(()=>[e(L,{to:{path:n(R)("land.product/lists"),query:{land_id:o.id}}},{default:a(()=>[Le]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.product/lists"]]]),e(r,{type:"primary",link:"",onClick:$=>M(o)},{default:a(()=>[$e]),_:2},1032,["onClick"]),c((l(),d(r,{type:"primary",link:""},{default:a(()=>[e(L,{to:{path:n(R)("land.land_plant/lists"),query:{land_id:o.id}}},{default:a(()=>[Re]),_:2},1032,["to"])]),_:2},1024)),[[_,["land.land_plant/lists"]]]),c((l(),d(r,{type:"danger",link:"",onClick:$=>x(o.id)},{default:a(()=>[Ie]),_:2},1032,["onClick"])),[[_,["land.land/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",Pe,[e(X,{modelValue:n(f),"onUpdate:modelValue":t[5]||(t[5]=o=>we(f)?f.value=o:null),onChange:n(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,n(f).loading]]),b.value?(l(),d(he,{key:0,ref_key:"editRef",ref:h,"dict-data":n(V),onSuccess:n(D),onClose:t[6]||(t[6]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),B.value?(l(),d(be,{key:1,ref_key:"bindRef",ref:J,"dict-data":n(V),onSuccess:n(D),onClose:t[7]||(t[7]=o=>B.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0)]),e(Z,{modelValue:C.value,"onUpdate:modelValue":t[8]||(t[8]=o=>C.value=o),title:"\u571F\u5730\u56FE\u7247",center:""},{default:a(()=>[(l(!0),E(U,null,Ce(v.picData,o=>(l(),E("div",{style:{display:"inline-block",margin:"12px"},key:o},[e(Y,{style:{width:"200px",height:"200px"},src:o,"zoom-rate":1.2,"max-scale":5,"min-scale":.2,"preview-src-list":v.picData,"initial-index":4,fit:"cover",center:""},null,8,["src","zoom-rate","min-scale","preview-src-list"])]))),128))]),_:1},8,["modelValue"])],64)}}});export{It as default};
|