2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
|
import{B as R,C as S,w as P,D as T,I as M,L as j,M as q,N as K}from"./element-plus.f958bb38.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{u as G}from"./usePaging.160b82b8.js";import{a as H}from"./useDictOptions.0d228f3d.js";import{_ as J,a as O,b as Q}from"./edit.vue_vue_type_script_setup_true_name_landEdit_lang.81d9c485.js";import"./lodash.ec5da75f.js";import{f as W}from"./index.0782a5be.js";import{d as k,s as X,r as E,$ as Y,af as Z,o as i,c as ee,U as e,L as t,M as F,u as s,K as _,R as oe,a as B,k as te,S as c,n as le}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"./index.dbd8caa3.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";const ae=c("\u67E5\u8BE2"),ue=c("\u91CD\u7F6E"),se=c(" \u5220\u9664 "),ne={class:"mt-4"},re=c(" \u7F16\u8F91 "),ie=c(" \u5220\u9664 "),pe={class:"flex mt-4 justify-end"},de=k({name:"landLists"}),Ye=k({...de,setup(me){const D=X(),v=E(!1),a=Y({user_id:"",title:"",master_name:"",master_phone:""}),w=E([]),V=r=>{w.value=r.map(({id:o})=>o)},{dictData:g}=H("land_status"),{pager:p,getLists:f,resetParams:x,resetPage:y}=G({fetchFun:O,params:a}),L=async r=>{var o,n;v.value=!0,await le(),(o=D.value)==null||o.open("edit"),(n=D.value)==null||n.setFormData(r)},h=async r=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Q({id:r}),f()};return f(),(r,o)=>{const n=R,d=S,m=P,A=T,C=M,u=j,I=q,$=z,b=Z("perms"),U=K;return i(),ee("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(A,{class:"mb-[-16px]",model:a,inline:""},{default:t(()=>[e(d,{label:"\u7528\u6237ID",prop:"user_id"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.user_id,"onUpdate:modelValue":o[0]||(o[0]=l=>a.user_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.title,"onUpdate:modelValue":o[1]||(o[1]=l=>a.title=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u571F\u5730\u8D1F\u8D23\u4EBA",prop:"master_name"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.master_name,"onUpdate:modelValue":o[2]||(o[2]=l=>a.master_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"master_phone"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.master_phone,"onUpdate:modelValue":o[3]||(o[3]=l=>a.master_phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(m,{type:"primary",onClick:s(y)},{default:t(()=>[ae]),_:1},8,["onClick"]),e(m,{onClick:s(x)},{default:t(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((i(),_(C,{class:"!border-none",shadow:"never"},{default:t(()=>[F((i(),_(m,{disabled:!w.value.length,onClick:o[4]||(o[4]=l=>h(w.value))},{default:t(()=>[se]),_:1},8,["disabled"])),[[b,["land.land/delete"]]]),B("div",ne,[e(I,{data:s(p).lists,onSelectionChange:V},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"ID",prop:"id","show-overflow-to
|