lcny-vue3-antd-admin/dist/assets/index.c497b838.js

2 lines
6.5 KiB
JavaScript

var O=Object.defineProperty,W=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var M=(t,e,a)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,S=(t,e)=>{for(var a in e||(e={}))U.call(e,a)&&M(t,a,e[a]);if(k)for(var a of k(e))z.call(e,a)&&M(t,a,e[a]);return t},N=(t,e)=>W(t,J(e));var h=(t,e,a)=>new Promise((n,u)=>{var s=o=>{try{r(a.next(o))}catch(c){u(c)}},p=o=>{try{r(a.throw(o))}catch(c){u(c)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(s,p);r((a=a.apply(t,e)).next())});import{P as L}from"./index.d126553b.js";import{a as I,a3 as j,V as P,c7 as x,p as i,ai as T,f as q,J as H,r as K,G as Q,aA as m,bN as X,o as w,j as F,x as v,w as E,y as Y,h as R,F as Z,aD as tt,v as et,i as at,l as rt,cr as ot,cs as B,ct as st}from"./index.e8334860.js";import{C as d}from"./index.a270b4aa.js";import"./index.a6c93adc.js";import"./index.42fbabf5.js";import nt from"./CountItem.c85fd44c.js";import it from"./DeviceDrawer.08f8e295.js";import ct from"./CensusDrawer.91ad7105.js";import{g as lt}from"./other.c802c5e4.js";import{c as ut,s as pt}from"./city.data.40803418.js";import{B as mt,u as dt}from"./useTable.726cedca.js";import{T as _t}from"./useForm.9d0d441f.js";import{u as $}from"./index.8ccae3ed.js";import"./index.fc024032.js";import"./index.e041c452.js";import"./useSize.92fbd2f8.js";import"./eagerComputed.adae050c.js";import"./onMountedOrActivated.4c1704ee.js";import"./useWindowSizeFn.5c267a15.js";import"./useContentViewHeight.3536ea8e.js";import"./ArrowLeftOutlined.f2be462a.js";import"./transButton.cea6a464.js";import"./index.111d9261.js";import"./index.8e80d52e.js";import"./useRefs.b991dc76.js";import"./PlusOutlined.dfc75c0d.js";import"./index.30cd36bd.js";import"./index.b76a94e8.js";import"./index.fec3f6c7.js";import"./index.e37f5ae4.js";import"./_baseIteratee.4870654f.js";import"./get.52047041.js";import"./MinusCircleOutlined.f5f2dd84.js";import"./concat.ba1780ce.js";import"./index.67d8bc63.js";import"./Checkbox.c94ebf2a.js";import"./index.654bd783.js";import"./index.4526dbe2.js";import"./dateUtil.467657dd.js";import"./_baseMerge.22415503.js";import"./_isIterateeCall.66083dc8.js";import"./_baseEach.df97c1a2.js";import"./index.bf8785c8.js";import"./FullscreenOutlined.3bdb2bd5.js";import"./index.9c00a044.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.65c2a124.js";import"./index.b1ecf113.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.59f5a1af.js";import"./scrollTo.30b0f8c1.js";import"./index.41d25c86.js";import"./index.0a92451f.js";import"./download.a620ba48.js";import"./uniqBy.022010e0.js";import"./index.8e270752.js";var vt=function(){return{prefixCls:String,title:T.any,description:T.any,avatar:T.any}},A=I({compatConfig:{MODE:3},name:"ACardMeta",props:vt(),slots:["title","description","avatar"],setup:function(e,a){var n=a.slots,u=j("card",e),s=u.prefixCls;return function(){var p=P({},"".concat(s.value,"-meta"),!0),r=x(n,e,"avatar"),o=x(n,e,"title"),c=x(n,e,"description"),y=r?i("div",{class:"".concat(s.value,"-meta-avatar")},[r]):null,f=o?i("div",{class:"".concat(s.value,"-meta-title")},[o]):null,C=c?i("div",{class:"".concat(s.value,"-meta-description")},[c]):null,D=f||C?i("div",{class:"".concat(s.value,"-meta-detail")},[f,C]):null;return i("div",{class:p},[y,D])}}}),ft=function(){return{prefixCls:String,hoverable:{type:Boolean,default:!0}}},G=I({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:ft(),setup:function(e,a){var n=a.slots,u=j("card",e),s=u.prefixCls,p=q(function(){var r;return r={},P(r,"".concat(s.value,"-grid"),!0),P(r,"".concat(s.value,"-grid-hoverable"),e.hoverable),r});return function(){var r;return i("div",{class:p.value},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}});d.Meta=A;d.Grid=G;d.install=function(t){return t.component(d.name,d),t.component(A.name,A),t.component(G.name,G),t};const Ct=I({components:{[d.name]:d,[d.Grid.name]:d.Grid,CountItem:nt,PageWrapper:L,BasicTable:mt,TableAction:_t,DeviceDrawer:it,CensusDrawer:ct},setup(){const t=K([]),e=["city_data_chart_nongye","city_data_chart_yuye","city_data_chart_xumuye","city_data_chart_lingye","city_data_chart_activity"],[a,{openDrawer:n}]=$(),[u,{openDrawer:s}]=$(),[p,{reload:r}]=dt({api:l=>h(this,null,function*(){const{data:g,meta:_}=yield st(S({type:2},l));return{items:g,total:_==null?void 0:_.total}}),columns:ut,useSearchForm:!0,showTableSetting:!1,bordered:!0,showIndexColumn:!1,formConfig:{labelWidth:120,schemas:pt}}),o=()=>{n(!0,{isUpdate:!1})},c=l=>{n(!0,N(S({},l),{isUpdate:!0}))},y=l=>h(this,null,function*(){yield ot(l.id),B.success("\u5220\u9664\u6210\u529F"),r()}),f=()=>{B.success("\u64CD\u4F5C\u6210\u529F"),r()},C=()=>{s(!0,{isUpdate:!0,data:JSON.parse(JSON.stringify(t.value))})},D=()=>{B.success("\u64CD\u4F5C\u6210\u529F"),b()},b=()=>h(this,null,function*(){let l=yield lt();t.value=l});return Q(()=>h(this,null,function*(){b()})),{CityDate:t,registerTable:p,handleCreate:o,handleEdit:c,handleDelete:y,registerDrawer:a,handleSuccess:f,handleCensus:C,registerDrawer1:u,handleSuccess1:D,filterCityData:e}}}),gt={key:0,class:"flex items-center justify-center"};function yt(t,e,a,n,u,s){const p=m("a-button"),r=m("CountItem"),o=m("a-card-grid"),c=m("a-card"),y=m("TableAction"),f=m("BasicTable"),C=m("DeviceDrawer"),D=m("CensusDrawer"),b=m("PageWrapper"),l=X("auth");return w(),F(b,{contentStyle:{margin:"16px 0"}},{default:v(()=>[i(c,{title:"\u5168\u5E02\u6570\u636E\u7EDF\u8BA1",class:"px-16px"},{extra:v(()=>[E((w(),F(p,{size:"small",onClick:t.handleCensus},{default:v(()=>[Y("\u7F16\u8F91")]),_:1},8,["onClick"])),[[l,"endpoint.town_street.base_statistics_edit"]])]),default:v(()=>[(w(!0),R(Z,null,tt(t.CityDate,(g,_)=>E((w(),F(o,{class:"!md:w-1/3 !xl:w-1/7 !w-full !py-24px !px-10px",key:_},{default:v(()=>[i(r,{data:g},null,8,["data"])]),_:2},1024)),[[l,"endpoint.town_street.base_statistics"],[et,t.filterCityData.findIndex(V=>V===g.slug)<0]])),128))]),_:1}),at("div",null,[i(f,{onRegister:t.registerTable},{toolbar:v(()=>[]),bodyCell:v(({column:g,record:_})=>[g.key==="action"?(w(),R("div",gt,[i(y,{actions:[{label:"\u7F16\u8F91",onClick:t.handleEdit.bind(null,_),auth:"endpoint.town_street.edit"}]},null,8,["actions"])])):rt("",!0)]),_:1},8,["onRegister"])]),i(C,{onRegister:t.registerDrawer,onSuccess:t.handleSuccess},null,8,["onRegister","onSuccess"]),i(D,{onRegister:t.registerDrawer1,onSuccess:t.handleSuccess1},null,8,["onRegister","onSuccess"])]),_:1})}var be=H(Ct,[["render",yt],["__scopeId","data-v-63fe7cd0"]]);export{be as default};