Files
qhmes/deploy-qhmes/frontend/js/index-ClcEPtNS-TQA__nnt.js
2026-05-15 11:34:12 +08:00

3 lines
6.1 KiB
Java

import{d as G,aq as K,ah as u,ar as Q,as as v,k as i,u as p,aG as z,aF as s,aC as J,ag as Y,G as g}from"./vue-vendor-C7Zq48Yl.js";import"./index-BgJbdjPf.js";import{useListPage as Z}from"./useListPage-BWia52we.js";import{s as j,c as H,l as W,d as X,b as tt,g as et,C as ot}from"./CgreportModal-GXyoH79T-ChawwXI9.js";import"./index-Du0A3ksf.js";import rt from"./CgreportAigcModal-g925RtBH-VC9T9WVp.js";import{R as N}from"./clipboard-DU2Z9JaX.js";import{al as R,a8 as it}from"./index-BI6CMai0.js";import nt from"./BasicTable-DfLkrEeh.js";import{J as at}from"./componentMap-BBZeqR-K.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./useMethods-DVip17X8.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./index-DeEq83Ov.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useTimeout-DDl4l82I.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useWindowSizeFn-PRZSD86C.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"./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";import"./useJvxeMethods-JQtX-_a1.js";import"./vxeUtils-DQ1rq-ie.js";import"./user.api-C1eRtqao.js";import"./main.index-Cs5ETdXF.js";var P=(x,y,m)=>new Promise((w,c)=>{var C=a=>{try{n(m.next(a))}catch(d){c(d)}},_=a=>{try{n(m.throw(a))}catch(d){c(d)}},n=a=>a.done?w(a.value):Promise.resolve(a.value).then(C,_);n((m=m.apply(x,y)).next())});const ge=G({__name:"index",setup(x,{expose:y}){let m=K();const[w,{openModal:c}]=R(),{prefixCls:C,tableContext:_,createMessage:n,createConfirm:a}=Z({designScope:"online-cgreport-list",pagination:!0,tableProps:{title:"Online报表",api:W,rowKey:"id",columns:H,formConfig:{autoSubmitOnEnter:!0,showAdvancedButton:!0,schemas:j}}}),[d,{reload:b},{rowSelection:S,selectedRowKeys:L}]=_,[B,I]=R();function k(){c(!0,{isUpdate:!1,showFooter:!0})}function T(t){c(!0,{record:t,isUpdate:!0,showFooter:!0})}function $(){I.openModal(!0,{})}function A(t){return P(this,null,function*(){yield X({id:t.id},b)})}function O(){return P(this,null,function*(){yield tt({ids:L.value},()=>{b(),L.value=[]})})}function E(){b()}function F(t){c(!0,{isUpdate:!1,showFooter:!0,aigc:t})}function M(t){return[{label:"编辑",onClick:T.bind(null,t)}]}function V(t){return[{label:"功能测试",class:["low-app-hide"],onClick:()=>q(t.id)},{label:"配置地址",class:["low-app-hide"],onClick:()=>D(t)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:A.bind(null,t)}}]}function q(t){m.push({path:"/online/cgreport/"+t})}function D(t){let o=t.id,l=`/online/cgreport/${o}`,f=`INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('${it()}', NULL, '${t.name}', '${l}', '1', 'OnlineAutoList', NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;et(o).then(r=>{let e="";if(r&&r.length>0)for(let h of r)e+=h.paramName+"=${"+h.paramName+"}&";e.length>0&&(e=e.substring(0,e.length-1),l+="?"+e)}).catch(()=>{n.warning("获取参数失败!")}).finally(()=>{a({iconType:"info",width:500,title:`菜单链接【${t.name}】`,content:l,closable:!0,maskClosable:!0,cancelText:"复制SQL",okText:"复制URL",cancelButtonProps:{class:"copy-this-sql","data-clipboard-text":f},okButtonProps:{class:"copy-this-text","data-clipboard-text":l},onOk(){return new Promise(r=>{const e=new N(".copy-this-text");e.on("success",()=>{e.destroy(),n.success("复制URL成功"),r()}),e.on("error",()=>{n.error("该浏览器不支持自动复制"),e.destroy(),r()})})},onCancel(){return new Promise(r=>{const e=new N(".copy-this-sql");e.on("success",()=>{e.destroy(),n.success("复制插入菜单SQL成功"),r()}),e.on("error",()=>{n.error("该浏览器不支持自动复制"),e.destroy(),r()})})}})})}return y({handleAdd:k}),(t,o)=>{const l=u("a-button"),f=u("Icon"),r=u("a-menu-item"),e=u("a-menu"),h=u("a-dropdown");return v(),Q("div",null,[i(p(nt),z({onRegister:p(d),rowSelection:p(S)},t.$attrs),{tableTitle:s(()=>[i(l,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:k,style:{"margin-right":"5px"}},{default:s(()=>[...o[0]||(o[0]=[g("录入",-1)])]),_:1}),i(l,{preIcon:"bxs:bot",type:"primary",style:{"margin-right":"5px"},onClick:$},{default:s(()=>[...o[1]||(o[1]=[g("AI生成报表",-1)])]),_:1}),p(L).length>0?(v(),J(h,{key:0},{overlay:s(()=>[i(e,null,{default:s(()=>[i(r,{key:"1",onClick:O},{default:s(()=>[i(f,{icon:"ant-design:delete-outlined"}),o[2]||(o[2]=g(" 删除 ",-1))]),_:1})]),_:1})]),default:s(()=>[i(l,null,{default:s(()=>[o[3]||(o[3]=g("批量操作 ",-1)),i(f,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):Y("",!0)]),action:s(({record:U})=>[i(p(at),{actions:M(U),dropDownActions:V(U)},null,8,["actions","dropDownActions"])]),_:1},16,["onRegister","rowSelection"]),i(ot,{onRegister:p(w),onSuccess:E},null,8,["onRegister"]),i(rt,{onRegister:p(B),onGenerate:F},null,8,["onRegister"])])}}});export{ge as default};