2 lines
8.6 KiB
JavaScript
2 lines
8.6 KiB
JavaScript
|
import{B as ee,C as te,Q as le,R as ae,w as oe,D as ue,I as ne,L as se,_ as ie,b as re,M as de,J as pe,N as me}from"./element-plus.f958bb38.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.2a805e45.js";import{u as De}from"./vue-router.12d45bc3.js";import{u as Ce}from"./usePaging.160b82b8.js";import{t as Fe,k as be,f as ve}from"./index.79566453.js";import{a as ye}from"./useDictOptions.a1641d27.js";import{_ as ke,a as ge,b as he}from"./edit.vue_vue_type_script_setup_true_name_landPlantEdit_lang.ece1627f.js";import{d as R,s as Ee,r as x,$ as P,a4 as we,af as Ve,o as i,c as v,a as y,U as t,L as l,M as k,u as n,K as c,R as Be,V as T,a7 as $,S as r,T as D,k as xe,n as Te}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.28da70ce.js";import"./index.ace66c08.js";import"./index.785464a4.js";import"./index.aa34dee3.js";import"./index.bc054a49.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";const Ie=r("\u67E5\u8BE2"),Ue=r("\u91CD\u7F6E"),Le={class:"mt-4"},Pe=r(" \u7F16\u8F91 "),$e=r(" \u79CD\u690D\u56FE\u7247 "),Re=r(" \u79CD\u690D\u64CD\u4F5C "),Se=r(" \u5220\u9664 "),Ae={class:"flex mt-4 justify-end"},Ne=R({name:"landPlantLists"}),St=R({...Ne,setup(qe){const{query:S}=De(),g=Ee(),h=x(!1);let E=S.land_id;typeof E>"u"&&(E="");const o=P({user_id:"",land_id:E,kind:"",breed:"",user:"",status:"",plant_date:"",start_time:"",end_time:""}),A=x([]),N=d=>{A.value=d.map(({id:a})=>a)},{dictData:w}=ye("plant_status"),{pager:_,getLists:C,resetParams:q,resetPage:M}=Ce({fetchFun:ge,params:o}),V=x(!1),f=P({picData:[]}),z=d=>{f.picData=[];const a=JSON.parse(d.pic);for(const s in a)f.picData.unshift(a[s]);console.log(f.picData),V.value=!0},J=async d=>{var a,s;h.value=!0,await Te(),(a=g.value)==null||a.open("edit"),(s=g.value)==null||s.setFormData(d)},O=async d=>{await ve.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:d}),C()};return C(),(d,a)=>{const s=ee,p=te,I=le,j=ae,K=fe,m=oe,Q=ue,U=ne,u=se,F=ie,G=_e,L=re,H=we("router-link"),W=de,X=ce,Y=pe,B=Ve("perms"),Z=me;return i(),v(T,null,[y("div",null,[t(U,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(Q,{class:"mb-[-16px]",model:o,inline:""},{default:l(()=>[t(p,{label:"\u7528\u6237ID",prop:"user_id"},{default:l(()=>[t(s,{class:"w-[280px]",modelValue:o.user_id,"onUpdate:modelValue":a[0]||(a[0]=e=>o.user_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID"},null,8,["modelValue"])]),_:1}),t(p,{label:"\u571F\u5730ID",prop:"land_id"},{default:l(()=>[t(s,{class:"w-[280px]",modelValue:o.land_id,"onUpdate:modelValue":a[1]||(a[1]=e=>o.land_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730ID"},null,8,["modelValue"])]),_:1}),t(p,{label:"\u79CD\u690D\u79CD\u7C7B",prop:"kind"},{default:l(()=>[t(s,{class:"w-[280px]",modelValue:o.kind,"onUpdate:modelValue":a[2]||(a[2]=e=>o.kind=e),clearable:"",placeholder:"\u8
|