2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{B as j,C as H,R as J,S as M,w as O,D as z,H as G,I as Q,J as W,K as X}from"./element-plus.c4a2af8a.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{u as ee}from"./vue-router.12d45bc3.js";import{u as te}from"./usePaging.160b82b8.js";import{u as oe}from"./useDictOptions.3f58fdc1.js";import{_ as ae,a as le,b as ne}from"./edit.vue_vue_type_script_setup_true_name_landPlantActionEdit_lang.ccb12b7f.js";import"./lodash.ec5da75f.js";import{f as ie}from"./index.7c5c8d56.js";import{d as V,s as se,r as E,$ as ue,af as re,o as i,c as B,U as e,L as o,M as h,u as n,K as p,R as pe,V as de,a7 as me,a as g,k as ce,S as _,n as _e}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.36a7ea39.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 fe=_("\u67E5\u8BE2"),Ce=_("\u91CD\u7F6E"),ve={class:"mt-4"},De=_(" \u7F16\u8F91 "),be=_(" \u5220\u9664 "),we={class:"flex mt-4 justify-end"},he=V({name:"landPlantActionLists"}),rt=V({...he,setup(ye){const{query:x}=ee(),f=se(),C=E(!1);var v=x.plant_id;typeof v>"u"&&(v="");const s=ue({plant_id:v,type:""}),P=E([]),L=u=>{P.value=u.map(({id:a})=>a)},{dictData:D}=oe("land_plant_action"),{pager:r,getLists:d,resetParams:I,resetPage:R}=te({fetchFun:le,params:s}),S=async u=>{var a,m;C.value=!0,await _e(),(a=f.value)==null||a.open("edit"),(m=f.value)==null||m.setFormData(u)},$=async u=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:u}),d()};return d(),(u,a)=>{const m=j,b=H,y=J,A=M,c=O,N=z,F=G,l=Q,T=Z,U=W,q=Y,k=re("perms"),K=X;return i(),B("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[e(b,{label:"\u79CD\u690DID",prop:"plant_id"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:s.plant_id,"onUpdate:modelValue":a[0]||(a[0]=t=>s.plant_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79CD\u690DID"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"type"},{default:o(()=>[e(A,{class:"w-[280px]",modelValue:s.type,"onUpdate:modelValue":a[1]||(a[1]=t=>s.type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"},{default:o(()=>[e(y,{label:"\u5168\u90E8",value:""}),(i(!0),B(de,null,me(n(D).land_plant_action,(t,w)=>(i(),p(y,{key:w,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(b,null,{default:o(()=>[e(c,{type:"primary",onClick:n(R)},{default:o(()=>[fe]),_:1},8,["onClick"]),e(c,{onClick:n(I)},{default:o(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((i(),p(F,{class:"!border-none",shadow:"never"},{default:o(()=>[g("div",ve,[e(U,{data:n(r).lists,onSelectionChange:L},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u79CD\u690D\u64CD\u4F5C\u7C7B\u578B",prop:"type"},{default:o(({row:t})=>[e(T,{options:n(D).land_plant_action,value:t.type},null,8,["options","value"])]),_:1}),e(l,{label:"\u79CD\u690D\u64CD\u4F5C",prop:"type_text","show-overflow-tooltip":""}),e(l,{label:"\u79CD\u690DID",prop:"plant_id","show-overflow-tooltip":""}),e(l,{label:"\u79CD\u690D\u7C7B\u578B",prop:"landPlant.kind","show-overflow-tooltip":""}),e(l,{label:"\u79CD\u690D\u54C1\u724C",prop:"landPlant.breed","show-overflow-tooltip":""}),e(l,{label:"\u79CD\u690D\u9762\u79EF",prop:"landPlant.area","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C\u8BE6\u60C5",prop:"detail","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",align:"center",fixed:"right"},{default:o(({row:t})=>[h((i(),p(c,{type:"primary",link:"",onClick:w=>S(t)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[k,["land.land_plant_action/edit"]]]),h((i(),p(c,{type:"danger",link:"",onClick:w=>$(t.id)},{default:o(()=>[be]),_:2},1032,["onClick"])),[[k,["land.land_plant_action/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",we,[e(q,{modelValue:n(r),"onUpdate:modelValue":a[2]||(a[2]=t=>ce(r)?r.value=t:null),onChange:n(d)},null,8,["modelValue","onChange"])])]),_:1})),[[K,n(r).loading]]),C.value?(i(),p(ae,{key:0,ref_key:"editRef",ref:f,"dict-data":n(D),onSuccess:n(d),onClose:a[3]||(a[3]=t=>C.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0)])}}});export{rt as default};
|