suyuan/public/admin/assets/index.6e215f68.js

2 lines
7.2 KiB
JavaScript

import{B as J,C as O,R as z,S as G,w as Q,D as W,H as X,I as Y,b as Z,J as ee,K as te}from"./element-plus.c4a2af8a.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.d8a052c5.js";import{u as ue}from"./vue-router.12d45bc3.js";import{u as ne}from"./usePaging.160b82b8.js";import{t as se,k as ie,f as re}from"./index.a7ae38ad.js";import{u as pe}from"./useDictOptions.f965e37e.js";import{_ as de,a as me,b as _e}from"./edit.vue_vue_type_script_setup_true_name_landPlantEdit_lang.145ac068.js";import{d as x,s as ce,r as V,$ as fe,a4 as Ce,af as De,o as s,c as B,U as e,L as a,M as C,u as n,K as d,R as be,V as Fe,a7 as ve,a as k,T as we,k as he,S as c,n as ke}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"./lodash.ec5da75f.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.9d3b0e12.js";import"./index.a5d54722.js";import"./index.6ef674b7.js";import"./index.6819103f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";const Ee=c("\u67E5\u8BE2"),ye=c("\u91CD\u7F6E"),ge={class:"mt-4"},Ve=c(" \u79CD\u690D\u64CD\u4F5C "),Be=c(" \u7F16\u8F91 "),xe=c(" \u5220\u9664 "),Te={class:"flex mt-4 justify-end"},Ue=x({name:"landPlantLists"}),xt=x({...Ue,setup(Ie){const{query:T}=ue(),D=ce(),b=V(!1);var F=T.land_id;typeof F>"u"&&(F="");const o=fe({land_id:F,kind:"",breed:"",user:"",status:"",plant_date:""}),U=V([]),I=p=>{U.value=p.map(({id:l})=>l)},{dictData:v}=pe("plant_status"),{pager:m,getLists:f,resetParams:L,resetPage:P}=ne({fetchFun:me,params:o}),R=async p=>{var l,i;b.value=!0,await ke(),(l=D.value)==null||l.open("edit"),(i=D.value)==null||i.setFormData(p)},S=async p=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:p}),f()};return f(),(p,l)=>{const i=J,r=O,E=z,$=G,A=oe,_=Q,q=W,y=X,u=Y,N=ae,g=Z,M=Ce("router-link"),K=ee,j=le,w=De("perms"),H=te;return s(),B("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(q,{class:"mb-[-16px]",model:o,inline:""},{default:a(()=>[e(r,{label:"\u571F\u5730ID",prop:"land_id"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o.land_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o.land_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730ID"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u79CD\u690D\u79CD\u7C7B",prop:"kind"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o.kind,"onUpdate:modelValue":l[1]||(l[1]=t=>o.kind=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79CD\u690D\u79CD\u7C7B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u79CD\u690D\u54C1\u724C",prop:"breed"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o.breed,"onUpdate:modelValue":l[2]||(l[2]=t=>o.breed=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79CD\u690D\u54C1\u724C"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u79CD\u690D\u4EBA\u5458",prop:"user"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o.user,"onUpdate:modelValue":l[3]||(l[3]=t=>o.user=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79CD\u690D\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u751F\u957F\u72B6\u6001",prop:"status"},{default:a(()=>[e($,{class:"w-[280px]",modelValue:o.status,"onUpdate:modelValue":l[4]||(l[4]=t=>o.status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u751F\u957F\u72B6\u6001"},{default:a(()=>[e(E,{label:"\u5168\u90E8",value:""}),(s(!0),B(Fe,null,ve(n(v).plant_status,(t,h)=>(s(),d(E,{key:h,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u64AD\u79CD\u65F6\u95F4",prop:"plant_date"},{default:a(()=>[e(A,{startTime:o.start_time,"onUpdate:startTime":l[5]||(l[5]=t=>o.start_time=t),endTime:o.end_time,"onUpdate:endTime":l[6]||(l[6]=t=>o.end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(r,null,{default:a(()=>[e(_,{type:"primary",onClick:n(P)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(_,{onClick:n(L)},{default:a(()=>[ye]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((s(),d(y,{class:"!border-none",shadow:"never"},{default:a(()=>[k("div",ge,[e(K,{data:n(m).lists,onSelectionChange:I},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u79CD\u690D\u79CD\u7C7B",prop:"kind","show-overflow-tooltip":""}),e(u,{label:"\u79CD\u690D\u54C1\u724C",prop:"breed","show-overflow-tooltip":""}),e(u,{label:"\u571F\u5730ID",prop:"land_id","show-overflow-tooltip":""}),e(u,{label:"\u6240\u5C5E\u571F\u5730",prop:"land.title","show-overflow-tooltip":""}),e(u,{label:"\u79CD\u690D\u9762\u79EF",prop:"area","show-overflow-tooltip":""}),e(u,{label:"\u79CD\u690D\u4EBA\u5458",prop:"user","show-overflow-tooltip":""}),e(u,{label:"\u751F\u957F\u72B6\u6001",prop:"status"},{default:a(({row:t})=>[e(N,{options:n(v).plant_status,value:t.status},null,8,["options","value"])]),_:1}),e(u,{label:"\u79CD\u690D\u56FE\u7247",prop:"pic"},{default:a(({row:t})=>[e(g,{style:{width:"50px",height:"50px"},src:t.pic},null,8,["src"])]),_:1}),e(u,{label:"\u6EAF\u6E90\u4E8C\u7EF4\u7801",prop:"qr_code"},{default:a(({row:t})=>[e(g,{style:{width:"50px",height:"50px"},src:t.qr_code},null,8,["src"])]),_:1}),e(u,{label:"\u64AD\u79CD\u65F6\u95F4",prop:"plant_date"},{default:a(({row:t})=>[k("span",null,we(t.plant_date?n(se)(t.plant_date,"yyyy-mm-dd hh:MM:ss"):""),1)]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:a(({row:t})=>[C((s(),d(_,{type:"primary",link:""},{default:a(()=>[e(M,{to:{path:n(ie)("land.land_plant_action/lists"),query:{plant_id:t.id}}},{default:a(()=>[Ve]),_:2},1032,["to"])]),_:2},1024)),[[w,["land.land_plant_action/lists"]]]),C((s(),d(_,{type:"primary",link:"",onClick:h=>R(t)},{default:a(()=>[Be]),_:2},1032,["onClick"])),[[w,["land.land_plant/edit"]]]),C((s(),d(_,{type:"danger",link:"",onClick:h=>S(t.id)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[w,["land.land_plant/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",Te,[e(j,{modelValue:n(m),"onUpdate:modelValue":l[7]||(l[7]=t=>he(m)?m.value=t:null),onChange:n(f)},null,8,["modelValue","onChange"])])]),_:1})),[[H,n(m).loading]]),b.value?(s(),d(de,{key:0,ref_key:"editRef",ref:D,"dict-data":n(v),onSuccess:n(f),onClose:l[8]||(l[8]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):be("",!0)])}}});export{xt as default};