WokerTask/public/admin/assets/index.c3932cd3.js

2 lines
4.4 KiB
JavaScript

import{C as j,D as q,w as A,F as Q,J,P as W,Q as z,R as G}from"./element-plus.74337649.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import{f as K,b as M}from"./index.59d2be02.js";import{u as O}from"./usePaging.bd7a7dec.js";import{u as X}from"./useDictOptions.649aea57.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_userInformationThresholdEdit_lang.4b5f47ff.js";import"./lodash.3e731b89.js";import{d as D,s as te,r as y,$ as oe,aq as ae,o as s,c as le,W as e,Q as t,u as o,U as r,R as u,P as m,a as E,j as ne,T as se,n as F}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.3b74a81e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const ie={class:"mt-4"},re={class:"flex justify-end mt-4"},me=D({name:"userInformationThresholdLists"}),et=D({...me,setup(de){const p=te(),c=y(!1),_=oe({village_code:"",threshold_value:""}),b=y([]),V=l=>{b.value=l.map(({id:a})=>a)},{dictData:x}=X(""),{pager:d,getLists:f,resetParams:B,resetPage:T}=O({fetchFun:ee,params:_}),$=async()=>{var l;c.value=!0,await F(),(l=p.value)==null||l.open("add")},P=async l=>{var a,h;c.value=!0,await F(),(a=p.value)==null||a.open("edit"),(h=p.value)==null||h.setFormData(l)},k=async l=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:l}),f()};return f(),(l,a)=>{const h=j,g=q,i=A,R=Q,w=J,I=M,v=W,U=z,L=H,C=ae("perms"),N=G;return s(),le("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:o(_),inline:""},{default:t(()=>[e(g,{label:"",prop:"threshold_value"},{default:t(()=>[e(h,{class:"w-[280px]",modelValue:o(_).threshold_value,"onUpdate:modelValue":a[0]||(a[0]=n=>o(_).threshold_value=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1}),e(g,null,{default:t(()=>[e(i,{type:"primary",onClick:o(T)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:o(B)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),u((s(),m(w,{class:"!border-none",shadow:"never"},{default:t(()=>[u((s(),m(i,{type:"primary",onClick:$},{icon:t(()=>[e(I,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[C,["user_information_threshold/add"]]]),u((s(),m(i,{disabled:!o(b).length,onClick:a[1]||(a[1]=n=>k(o(b)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_information_threshold/delete"]]]),E("div",ie,[e(U,{data:o(d).lists,onSelectionChange:V},{default:t(()=>[e(v,{type:"selection",width:"55"}),e(v,{label:"",prop:"village_code","show-overflow-tooltip":""}),e(v,{label:"",prop:"threshold_value","show-overflow-tooltip":""}),e(v,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:n})=>[u((s(),m(i,{type:"primary",link:"",onClick:S=>P(n)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["user_information_threshold/edit"]]]),u((s(),m(i,{type:"danger",link:"",onClick:S=>k(n.id)},{default:t(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["user_information_threshold/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",re,[e(L,{modelValue:o(d),"onUpdate:modelValue":a[2]||(a[2]=n=>ne(d)?d.value=n:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[N,o(d).loading]]),o(c)?(s(),m(Y,{key:0,ref_key:"editRef",ref:p,"dict-data":o(x),onSuccess:o(f),onClose:a[3]||(a[3]=n=>c.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{et as default};