2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
|
import{B as j,C as K,Q as O,R as Q,w as z,D as G,I as H,L as J,M as W,N as X}from"./element-plus.fbdc16f2.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.c1bd7115.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{a as oe}from"./useDictOptions.cd3e70ae.js";import{_ as ae,a as le,b as ne}from"./edit.vue_vue_type_script_setup_true_name_landPlantActionEdit_lang.e6ccaf27.js";import"./lodash.e154233a.js";import{f as ie}from"./index.eedb7e65.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.03adc6f0.js";import"./axios.3eae2260.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.06948c5a.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.c495a36d.js";import"./vue-clipboard3.d4154da9.js";import"./clipboard.7105729c.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}),$=async u=>{var a,m;C.value=!0,await _e(),(a=f.value)==null||a.open("edit"),(m=f.value)==null||m.setFormData(u)},S=async u=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:u}),d()};return d(),(u,a)=>{const m=j,b=K,y=O,N=Q,c=z,A=G,F=H,l=J,T=Z,U=W,q=Y,k=re("perms"),M=X;return i(),B("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{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(N,{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\
|