suyuan-breed/public/admin/assets/index.1e2dd0d5.js

2 lines
6.1 KiB
JavaScript
Raw Normal View History

2024-02-03 17:46:05 +08:00
import{B as W,C as X,w as Y,D as Z,J as ee,K as te,L as oe,M as ae,N as ne}from"./element-plus.ae8e286c.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.4acf6c9d.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{t as ie,k as ue,f as re,b as de}from"./index.fccb4ef5.js";import{u as ce}from"./vue-router.ed788fee.js";import{u as me}from"./usePaging.2a59f422.js";import{u as pe}from"./useDictOptions.7b4b6189.js";import{h as _e,i as fe}from"./product.4bf02582.js";import ve from"./edit.8728b75f.js";import{_ as he}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.a0fbc8c6.js";import{d as L,s as S,r as D,_ as ye,a3 as Ce,ae as ke,o as l,c as Ee,T as o,K as e,L as m,u as n,J as i,Q as C,a as B,R as u,S as w,j as be,n as A}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"./lodash.e92d81a1.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.0d3bed35.js";import"./monitor_threshold.2ed91bce.js";const Fe=u("\u67E5\u8BE2"),ge=u("\u91CD\u7F6E"),De=u(" \u65B0\u589E "),Be=u(" \u5220\u9664 "),we={class:"mt-4"},Ae=u(" \u7F16\u8F91 "),Ve=u(" \u7ED1\u5B9A\u8BBE\u5907 "),$e=u(" \u8BBE\u5907\u7BA1\u7406 "),xe=u(" \u5220\u9664 "),Pe={class:"flex mt-4 justify-end"},Re=L({name:"productLists"}),gt=L({...Re,setup(Se){const{query:T}=ce(),v=S(),k=S(),h=D(!1),E=D(!1);let b=T.land_id;typeof b>"u"&&(b="");const y=ye({user_id:"",land_id:b,code:"",name:"",status:"",create_time:"",start_time:"",end_time:""}),F=D([]),N=s=>{F.value=s.map(({id:a})=>a)},{dictData:g}=pe("product_status"),{pager:_,getLists:f,resetParams:I,resetPage:q}=me({fetchFun:_e,params:y}),M=async()=>{var s;h.value=!0,await A(),(s=v.value)==null||s.open("add")},j=async s=>{var a,c;h.value=!0,await A(),(a=v.value)==null||a.open("edit"),(c=v.value)==null||c.setFormData(s)},H=async s=>{var a,c;E.value=!0,await A(),(a=k.value)==null||a.open("bind"),(c=k.value)==null||c.setFormData(s)},V=async s=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),f()};return f(),(s,a)=>{const c=W,$=X,r=Y,J=Z,x=ee,K=de,d=te,P=oe,U=se,Q=Ce("router-link"),z=ae,G=le,p=ke("perms"),O=ne;return l(),Ee("div",null,[o(x,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(J,{class:"mb-[-16px]",model:y,inline:""},{default:e(()=>[o($,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"name"},{default:e(()=>[o(c,{class:"w-[280px]",modelValue:y.name,"onUpdate:modelValue":a[0]||(a[0]=t=>y.name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o($,null,{default:e(()=>[o(r,{type:"primary",onClick:n(q)},{default:e(()=>[Fe]),_:1},8,["onClick"]),o(r,{onClick:n(I)},{default:e(()=>[ge]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((l(),i(x,{class:"!border-none",shadow:"never"},{default:e(()=>[m((l(),i(r,{type:"primary",onClick:M},{icon:e(()=>[o(K,{name:"el-icon-Plus"})]),default:e(()=>[De]),_:1})),[[p,["land.product/add"]]]),m((l(),i(r,{disabled:!F.value.length,onClick:a[1]||(a[1]=t=>V(F.value))},{default:e(()=>[Be]),_:1},8,["disabled"])),[[p,["land.product/delete"]]]),B("div",we,[o(z,{data:n(_).lists,onSelectionChange:N,style:{width:"100%"}},{default:e(()=>[o(d,{type:"selection",width:"55"}),o(d,{label:"ID",pro