suyuan-breed/public/admin/assets/index.dc1caa3c.js

2 lines
5.3 KiB
JavaScript

import{B as J,C as K,w as U,D as q,J as M,K as Q,L as z,M as G}from"./element-plus.0aa2c80d.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.0cb948f8.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{f as W,b as X}from"./index.7f4be7f1.js";import{u as Y}from"./usePaging.2a59f422.js";import{u as Z}from"./useDictOptions.7337bdf1.js";import{_ as oo,a as eo,b as to}from"./edit.vue_vue_type_script_setup_true_name_animalInfoEdit_lang.e922d1ae.js";import"./lodash.e92d81a1.js";import{d as D,s as ao,r as g,_ as lo,ae as no,o as s,c as io,T as o,K as t,L as _,u as i,J as u,Q as so,a as k,j as ro,R as p,n as B}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.664390f6.js";import"./axios.4ebfdb3f.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"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.2cabc0af.js";const uo=p("\u67E5\u8BE2"),po=p("\u91CD\u7F6E"),mo=p(" \u65B0\u589E "),_o=p(" \u5220\u9664 "),co={class:"mt-4"},fo=p(" \u7F16\u8F91 "),vo=p(" \u5220\u9664 "),ho={class:"flex mt-4 justify-end"},wo=D({name:"animalInfoLists"}),ie=D({...wo,setup(bo){const d=ao(),c=g(!1),f=lo({sn:""}),b=g([]),V=n=>{b.value=n.map(({id:a})=>a)},{dictData:C}=Z("animal_type"),{pager:m,getLists:v,resetParams:x,resetPage:A}=Y({fetchFun:eo,params:f}),$=async()=>{var n;c.value=!0,await B(),(n=d.value)==null||n.open("add")},L=async n=>{var a,h;c.value=!0,await B(),(a=d.value)==null||a.open("edit"),(h=d.value)==null||h.setFormData(n)},F=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await to({id:n}),v()};return v(),(n,a)=>{const h=J,E=K,r=U,I=q,y=M,P=X,e=Q,R=O,T=z,N=H,w=no("perms"),S=G;return s(),io("div",null,[o(y,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(I,{class:"mb-[-16px]",model:f,inline:""},{default:t(()=>[o(E,{label:"\u8033\u53F7",prop:"sn"},{default:t(()=>[o(h,{class:"w-[280px]",modelValue:f.sn,"onUpdate:modelValue":a[0]||(a[0]=l=>f.sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8033\u53F7"},null,8,["modelValue"])]),_:1}),o(E,null,{default:t(()=>[o(r,{type:"primary",onClick:i(A)},{default:t(()=>[uo]),_:1},8,["onClick"]),o(r,{onClick:i(x)},{default:t(()=>[po]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),u(y,{class:"!border-none",shadow:"never"},{default:t(()=>[_((s(),u(r,{type:"primary",onClick:$},{icon:t(()=>[o(P,{name:"el-icon-Plus"})]),default:t(()=>[mo]),_:1})),[[w,["animal_info.animal_info/add"]]]),_((s(),u(r,{disabled:!b.value.length,onClick:a[1]||(a[1]=l=>F(b.value))},{default:t(()=>[_o]),_:1},8,["disabled"])),[[w,["animal_info.animal_info/delete"]]]),k("div",co,[o(T,{data:i(m).lists,onSelectionChange:V},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u680F\u820Did",prop:"fence_house_id","show-overflow-tooltip":""}),o(e,{label:"\u8033\u53F7",prop:"sn","show-overflow-tooltip":""}),o(e,{label:"\u54C1\u7C7B",prop:"animal_type"},{default:t(({row:l})=>[o(R,{options:i(C).animal_type,value:l.animal_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u54C1\u79CD",prop:"brand","show-overflow-tooltip":""}),o(e,{label:"\u751F\u7406\u9636\u6BB5",prop:"physi_stage","show-overflow-tooltip":""}),o(e,{label:"\u6027\u522B",prop:"gender","show-overflow-tooltip":""}),o(e,{label:"\u8840\u7EDF\u7EAF\u5EA6",prop:"blood_purity","show-overflow-tooltip":""}),o(e,{label:"\u6765\u6E90",prop:"animal_source","show-overflow-tooltip":""}),o(e,{label:"\u73B0\u4F30\u91CF",prop:"current_estimation","show-overflow-tooltip":""}),o(e,{label:"\u4EE3\u6570",prop:"algebra","show-overflow-tooltip":""}),o(e,{label:"\u51FA\u751F\u65E5\u671F",prop:"birth","show-overflow-tooltip":""}),o(e,{label:"\u5165\u573A\u65E5\u671F",prop:"entry_date","show-overflow-tooltip":""}),o(e,{label:"\u51FA\u751F\u4F53\u91CD",prop:"birth_estimation","show-overflow-tooltip":""}),o(e,{label:"\u5065\u5EB7\u72B6\u51B5",prop:"health_condition","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[_((s(),u(r,{type:"primary",link:"",onClick:j=>L(l)},{default:t(()=>[fo]),_:2},1032,["onClick"])),[[w,["animal_info.animal_info/edit"]]]),_((s(),u(r,{type:"danger",link:"",onClick:j=>F(l.id)},{default:t(()=>[vo]),_:2},1032,["onClick"])),[[w,["animal_info.animal_info/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ho,[o(N,{modelValue:i(m),"onUpdate:modelValue":a[2]||(a[2]=l=>ro(m)?m.value=l:null),onChange:i(v)},null,8,["modelValue","onChange"])])]),_:1})),[[S,i(m).loading]]),c.value?(s(),u(oo,{key:0,ref_key:"editRef",ref:d,"dict-data":i(C),onSuccess:i(v),onClose:a[3]||(a[3]=l=>c.value=!1)},null,8,["dict-data","onSuccess"])):so("",!0)])}}});export{ie as default};