suyuan/public/admin/assets/index.93d97e2a.js

2 lines
5.9 KiB
JavaScript

import{B as K,C as O,Q as z,R as G,w as H,D as W,I as X,L as Y,_ as Z,M as ee,N as te}from"./element-plus.a3f01f50.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.b069f63a.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.6c01626d.js";import{u as ne}from"./vue-router.ed788fee.js";import{u as ie}from"./usePaging.2a59f422.js";import{a as ue}from"./useDictOptions.2a1f05b2.js";import{_ as se,a as re,b as pe}from"./edit.vue_vue_type_script_setup_true_name_landPlantActionEdit_lang.3e2f0787.js";import{t as de,f as me}from"./index.b6e852fa.js";import{d as T,s as _e,r as V,_ as ce,ae as fe,o as u,c as x,T as t,K as a,L as g,u as n,J as _,Q as Ce,U as De,a6 as ve,a as h,R as r,S as C,j as ye,n as Fe}from"./@vue.108c970a.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"./index.1b087a1f.js";import"./lodash.ec5da75f.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";const be=r("\u67E5\u8BE2"),ge=r("\u91CD\u7F6E"),he={class:"mt-4"},we=r(" \u7F16\u8F91 "),Ee=r(" \u5220\u9664 "),ke={class:"flex mt-4 justify-end"},Be=T({name:"landPlantActionLists"}),Ct=T({...Be,setup(Ve){const{query:I}=ne(),D=_e(),v=V(!1);let y=I.plant_id;typeof y>"u"&&(y="");const l=ce({user_id:"",plant_id:y,type:"",start_time:"",end_time:""}),L=V([]),P=s=>{L.value=s.map(({id:o})=>o)},{dictData:F}=ue("land_plant_action"),{pager:p,getLists:c,resetParams:R,resetPage:S}=ie({fetchFun:re,params:l}),U=async s=>{var o,d;v.value=!0,await Fe(),(o=D.value)==null||o.open("edit"),(d=D.value)==null||d.setFormData(s)},$=async s=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:s}),c()};return c(),(s,o)=>{const d=K,m=O,w=z,N=G,A=le,f=H,M=W,E=X,i=Y,k=Z,j=oe,q=ee,Q=ae,B=fe("perms"),J=te;return u(),x("div",null,[t(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(M,{class:"mb-[-16px]",model:l,inline:""},{default:a(()=>[t(m,{label:"\u7528\u6237ID",prop:"user_id"},{default:a(()=>[t(d,{class:"w-[280px]",modelValue:l.user_id,"onUpdate:modelValue":o[0]||(o[0]=e=>l.user_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),t(m,{label:"\u79CD\u690DID",prop:"plant_id"},{default:a(()=>[t(d,{class:"w-[280px]",modelValue:l.plant_id,"onUpdate:modelValue":o[1]||(o[1]=e=>l.plant_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79CD\u690DID"},null,8,["modelValue"])]),_:1}),t(m,{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"type"},{default:a(()=>[t(N,{class:"w-[280px]",modelValue:l.type,"onUpdate:modelValue":o[2]||(o[2]=e=>l.type=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"},{default:a(()=>[t(w,{label:"\u5168\u90E8",value:""}),(u(!0),x(De,null,ve(n(F).land_plant_action,(e,b)=>(u(),_(w,{key:b,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(m,{label:"\u79CD\u690D\u64CD\u4F5C\u65F6\u95F4",prop:"create_time"},{default:a(()=>[t(A,{startTime:l.start_time,"onUpdate:startTime":o[3]||(o[3]=e=>l.start_time=e),endTime:l.end_time,"onUpdate:endTime":o[4]||(o[4]=e=>l.end_time=e)},null,8,["startTime","endTime"])]),_:1}),t(m,null,{default:a(()=>[t(f,{type:"primary",onClick:n(S)},{default:a(()=>[be]),_:1},8,["onClick"]),t(f,{onClick:n(R)},{default:a(()=>[ge]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),g((u(),_(E,{class:"!border-none",shadow:"never"},{default:a(()=>[h("div",he,[t(q,{data:n(p).lists,onSelectionChange:P,style:{width:"100%"}},{default:a(()=>[t(i,{type:"selection",width:"55"}),t(i,{label:"ID",prop:"id",width:"80","show-overflow-tooltip":""}),t(i,{label:"\u6240\u5C5E\u571F\u5730\u79CD\u690D",width:"200"},{default:a(({row:e})=>[t(k,{class:"mr-2",type:"info"},{default:a(()=>[r("ID: "+C(e.plant_id),1)]),_:2},1024),t(k,{class:"mr-2",type:"info"},{default:a(()=>[r("\u7C7B\u578B: "+C(e.kind)+" \u54C1\u724C: "+C(e.breed),1)]),_:2},1024)]),_:1}),t(i,{label:"\u79CD\u690D\u64CD\u4F5C\u7C7B\u578B",align:"center",prop:"type"},{default:a(({row:e})=>[t(j,{options:n(F).land_plant_action,value:e.type},null,8,["options","value"])]),_:1}),t(i,{label:"\u79CD\u690D\u64CD\u4F5C",prop:"type_text","show-overflow-tooltip":""}),t(i,{label:"\u79CD\u690D\u64CD\u4F5C\u8BE6\u60C5",prop:"detail","show-overflow-tooltip":""}),t(i,{label:"\u79CD\u690D\u64CD\u4F5C\u65F6\u95F4",width:"180",align:"center",prop:"plant_date"},{default:a(({row:e})=>[h("span",null,C(e.create_time?n(de)(e.create_time,"yyyy-mm-dd hh:MM:ss"):""),1)]),_:1}),t(i,{label:"\u64CD\u4F5C",width:"120",align:"center",fixed:"right"},{default:a(({row:e})=>[g((u(),_(f,{type:"primary",link:"",onClick:b=>U(e)},{default:a(()=>[we]),_:2},1032,["onClick"])),[[B,["land.land_plant_action/edit"]]]),g((u(),_(f,{type:"danger",link:"",onClick:b=>$(e.id)},{default:a(()=>[Ee]),_:2},1032,["onClick"])),[[B,["land.land_plant_action/delete"]]])]),_:1})]),_:1},8,["data"])]),h("div",ke,[t(Q,{modelValue:n(p),"onUpdate:modelValue":o[5]||(o[5]=e=>ye(p)?p.value=e:null),onChange:n(c)},null,8,["modelValue","onChange"])])]),_:1})),[[J,n(p).loading]]),v.value?(u(),_(se,{key:0,ref_key:"editRef",ref:D,"dict-data":n(F),onSuccess:n(c),onClose:o[6]||(o[6]=e=>v.value=!1)},null,8,["dict-data","onSuccess"])):Ce("",!0)])}}});export{Ct as default};