suyuan/public/admin/assets/index.fa5585ae.js

2 lines
7.7 KiB
JavaScript
Raw Normal View History

2023-11-30 17:45:25 +08:00
import{B as Y,C as Z,Q as ee,R as te,w as ue,D as ae,I as le,L as oe,_ as ne,M as ie,J as se,N as re}from"./element-plus.a3f01f50.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.b069f63a.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.6c01626d.js";import{u as _e}from"./vue-router.ed788fee.js";import{u as ce}from"./usePaging.2a59f422.js";import{a as Ce}from"./useDictOptions.432e4dbe.js";import{_ as Ee,a as Fe,b as fe}from"./edit.vue_vue_type_script_setup_true_name_landPlantActionEdit_lang.e67e9945.js";import{t as De,f as Be}from"./index.6a49ad05.js";import{d as U,s as ye,r as k,_ as h,ae as ve,o as d,c as L,a as F,T as e,K as a,L as V,u as o,J as c,Q as be,U as S,a6 as ge,R as p,S as f,j as ke,n as he}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.d15a3945.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 Ve=p("\u67E5\u8BE2"),we=p("\u91CD\u7F6E"),Ae={class:"mt-4"},Te=p(" \u7F16\u8F91 "),xe=p(" \u64CD\u4F5C\u8BE6\u60C5 "),Ie=p(" \u5220\u9664 "),Le={class:"flex mt-4 justify-end"},Se=U({name:"landPlantActionLists"}),bt=U({...Se,setup(Ue){const{query:$}=_e(),D=ye(),B=k(!1);let y=$.plant_id;typeof y>"u"&&(y="");const l=h({user_id:"",plant_id:y,type:"",start_time:"",end_time:""}),P=h({1:{kind:"\u80A5\u6599\u79CD\u7C7B",breed:"\u80A5\u6599\u54C1\u724C",dosage:"\u80A5\u6599\u7528\u91CF",start_date:"\u5F00\u59CB\u65E5\u671F",end_date:"\u7ED3\u675F\u65E5\u671F",area:"\u65BD\u80A5\u9762\u79EF",user:"\u53C2\u4E0E\u4EBA",pic:"\u65BD\u80A5\u56FE\u7247",remark:"\u5907\u6CE8\u4FE1\u606F"},2:{kind:"\u9664\u8349\u5242\u79CD\u7C7B",breed:"\u9664\u8349\u5242\u54C1\u724C",dosage:"\u9664\u8349\u5242\u7528\u91CF",start_date:"\u5F00\u59CB\u65E5\u671F",end_date:"\u7ED3\u675F\u65E5\u671F",area:"\u4F5C\u4E1A\u9762\u79EF",user:"\u53C2\u4E0E\u4EBA",pic:"\u9664\u8349\u56FE\u7247",remark:"\u5907\u6CE8\u4FE1\u606F"},3:{type:"\u704C\u6E89\u7C7B\u578B",start_date:"\u5F00\u59CB\u65E5\u671F",end_date:"\u7ED3\u675F\u65E5\u671F",area:"\u704C\u6E89\u9762\u79EF",user:"\u53C2\u4E0E\u4EBA",pic:"\u704C\u6E89\u56FE\u7247",remark:"\u5907\u6CE8\u4FE1\u606F"},4:{type:"\u6740\u866B\u5242\u79CD\u7C7B",breed:"\u6740\u866B\u5242\u54C1\u724C",dosage:"\u6740\u866B\u5242\u7528\u91CF",start_date:"\u5F00\u59CB\u65E5\u671F",end_date:"\u7ED3\u675F\u65E5\u671F",area:"\u4F5C\u4E1A\u9762\u79EF",user:"\u53C2\u4E0E\u4EBA",pic:"\u6740\u866B\u56FE\u7247",remark:"\u5907\u6CE8\u4FE1\u606F"},5:{user:"\u53C2\u4E0E\u4EBA",pic:"\u6536\u83B7\u56FE\u7247",remark:"\u5907\u6CE8\u4FE1\u606F"}}),R=k([]),N=n=>{R.value=n.map(({id:u})=>u)},{dictData:v}=Ce("land_plant_action"),{pager:m,getLists:C,resetParams:M,resetPage:J}=ce({fetchFun:Fe,params:l}),b=k(!1),g=h({gridData:[{}]}),j=n=>{const u=JSON.parse(n.detail);g.gridData=[{}];for(const s in u){const r=P[n.type][s];g.gridData.unshift({item:r,value:u[s]})}b.value=!0},q=async n=>{var u,s;B.value=!0,await he(),(u=D.value)==null||u.open("edit"),(s=D.value)==null||s.setFormData(n)},O=async n=>{await Be.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:n}),C()};return C(),(n,u)=>{const s=Y,r=Z,w=ee,Q=te,K=me,_=ue,z=ae,A=le,i=oe,T