2 lines
4.6 KiB
Java
2 lines
4.6 KiB
Java
var j=Object.defineProperty,z=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var w=(e,o,t)=>o in e?j(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,D=(e,o)=>{for(var t in o||(o={}))F.call(o,t)&&w(e,t,o[t]);if(x)for(var t of x(o))L.call(o,t)&&w(e,t,o[t]);return e},S=(e,o)=>z(e,A(o));var b=(e,o,t)=>new Promise((d,f)=>{var _=a=>{try{u(t.next(a))}catch(p){f(p)}},g=a=>{try{u(t.throw(a))}catch(p){f(p)}},u=a=>a.done?d(a.value):Promise.resolve(a.value).then(_,g);u((t=t.apply(e,o)).next())});import{d as I,ah as s,ar as P,as as M,k as i,aF as n,u as m,aC as X,ag as q,G as c}from"./vue-vendor-C7Zq48Yl.js";import"./index-BgJbdjPf.js";import"./index-Du0A3ksf.js";import{_ as G,d as J,b as K,g as W,a as $,s as O,c as Q,e as Z}from"./DataSourceModal-OoWCB8Fn.js";import{al as tt,u as ot}from"./index-BI6CMai0.js";import{useListPage as et}from"./useListPage-BWia52we.js";import{J as it}from"./componentMap-BBZeqR-K.js";import rt from"./BasicTable-DfLkrEeh.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./TreeIcon-DE4jdeZV.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./index-CNkz_PUv.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./useMethods-DVip17X8.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./injectionKey-DPVn4AgL.js";const nt=I({name:"monitor-datasource"}),so=I(S(D({},nt),{setup(e){const{createMessage:o}=ot(),[t,{openModal:d}]=tt(),{prefixCls:f,tableContext:_,onImportXls:g,onExportXls:u}=et({designScope:"quartz-template",tableProps:{title:"任务列表",api:Z,columns:Q,formConfig:{labelWidth:120,schemas:O,fieldMapToTime:[["fieldTime",["beginDate","endDate"],"YYYY-MM-DD HH:mm:ss"]]}},exportConfig:{name:"数据源列表",url:$},importConifg:{url:W}}),[a,{reload:p},{rowSelection:T,selectedRowKeys:k}]=_;function h(l){return[{label:"编辑",onClick:R.bind(null,l)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:E.bind(null,l)}}]}function v(){d(!0,{isUpdate:!1})}function R(l){d(!0,{record:l,isUpdate:!0})}function E(l){return b(this,null,function*(){yield J({id:l.id},p)})}function U(){return b(this,null,function*(){yield K({ids:k.value},p)})}return(l,r)=>{const C=s("a-button"),Y=s("j-upload-button"),y=s("Icon"),B=s("a-menu-item"),H=s("a-menu"),N=s("a-dropdown");return M(),P("div",null,[i(m(rt),{onRegister:m(a),rowSelection:m(T)},{tableTitle:n(()=>[i(C,{type:"primary",preIcon:"ant-design:plus-outlined",onClick:v,style:{"margin-right":"5px"}},{default:n(()=>[...r[0]||(r[0]=[c("新增",-1)])]),_:1}),i(C,{type:"primary",preIcon:"ant-design:export-outlined",onClick:m(u)},{default:n(()=>[...r[1]||(r[1]=[c(" 导出",-1)])]),_:1},8,["onClick"]),i(Y,{type:"primary",preIcon:"ant-design:import-outlined",onClick:m(g)},{default:n(()=>[...r[2]||(r[2]=[c("导入",-1)])]),_:1},8,["onClick"]),m(k).length>0?(M(),X(N,{key:0},{overlay:n(()=>[i(H,null,{default:n(()=>[i(B,{key:"1",onClick:U},{default:n(()=>[i(y,{icon:"ant-design:delete-outlined"}),r[3]||(r[3]=c(" 删除 ",-1))]),_:1})]),_:1})]),default:n(()=>[i(C,null,{default:n(()=>[r[4]||(r[4]=c("批量操作 ",-1)),i(y,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):q("",!0)]),action:n(({record:V})=>[i(m(it),{actions:h(V)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),i(G,{onRegister:m(t),onSuccess:m(p)},null,8,["onRegister","onSuccess"])])}}}));export{so as default};
|