3 lines
7.3 KiB
Java
3 lines
7.3 KiB
Java
var j=Object.defineProperty,J=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var S=(i,r,e)=>r in i?j(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,N=(i,r)=>{for(var e in r||(r={}))X.call(r,e)&&S(i,e,r[e]);if(A)for(var e of A(r))Y.call(r,e)&&S(i,e,r[e]);return i},R=(i,r)=>J(i,W(r));var L=(i,r,e)=>new Promise((y,d)=>{var U=m=>{try{s(e.next(m))}catch(f){d(f)}},h=m=>{try{s(e.throw(m))}catch(f){d(f)}},s=m=>m.done?y(m.value):Promise.resolve(m.value).then(U,h);s((e=e.apply(i,r)).next())});import Z from"./BasicTable-C6eG0bgK.js";import tt from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{aR as ot,aS as et}from"./index-X7Y8jykP.js";import{u as rt}from"./useListPage-CK9oQ-1O.js";import{C as it,s as nt,c as pt,l as at,b as st,g as mt,d as lt}from"./CgreportModal-E8Knx2UK.js";import"./index-BDvqZ5j4.js";import ct from"./CgreportAigcModal-BeijQ5Yz.js";import{C as M}from"./clipboard-C1txhjxe.js";import{e as P,C as ut,z as D,f as a,A as l,B as dt,u,p as ft,K as T,y as gt,H as _t,E as b}from"./vue-vendor-DNhG1Cve.js";import{buildUUID as bt}from"./uuid-CODpppBC.js";import{u as B}from"./useModal-DaJ3Bflg.js";import"./index-CfNJyBRj.js";import{D as yt}from"./dropdown-jkliuVyN.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4wlWO_T.js";import"./useJvxeMethods-DzISusCM.js";import"./vxeUtils-CIcTfSYH.js";import"./JVxeTypes-C-gX5UoZ.js";import"./user.api-M95RuX7p.js";const ht=P({name:"online-cgreport"}),te=P(R(N({},ht),{setup(i,{expose:r}){let e=ft();const[y,{openModal:d}]=B(),{prefixCls:U,tableContext:h,createMessage:s,createConfirm:m}=rt({designScope:"online-cgreport-list",pagination:!0,tableProps:{title:"Online报表",api:at,rowKey:"id",columns:pt,formConfig:{autoSubmitOnEnter:!0,showAdvancedButton:!0,schemas:nt}}}),[f,{reload:w},{rowSelection:$,selectedRowKeys:C}]=h,[I,O]=B();function k(){d(!0,{isUpdate:!1,showFooter:!0})}function v(t){d(!0,{record:t,isUpdate:!0,showFooter:!0})}function E(){O.openModal(!0,{})}function F(t){return L(this,null,function*(){yield lt({id:t.id},w)})}function V(){return L(this,null,function*(){yield st({ids:C.value},()=>{w(),C.value=[]})})}function q(){w()}function K(t){d(!0,{isUpdate:!1,showFooter:!0,aigc:t})}function G(t){return[{label:"编辑",onClick:v.bind(null,t)}]}function H(t){return[{label:"功能测试",class:["low-app-hide"],onClick:()=>Q(t.id)},{label:"配置地址",class:["low-app-hide"],onClick:()=>z(t)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:F.bind(null,t)}}]}function Q(t){e.push({path:"/online/cgreport/"+t})}function z(t){let n=t.id,c=`/online/cgreport/${n}`,g=`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 ('${bt()}', NULL, '${t.name}', '${c}', '1', 'OnlineAutoList', NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;mt(n).then(p=>{let o="";if(p&&p.length>0)for(let _ of p)o+=_.paramName+"=${"+_.paramName+"}&";o.length>0&&(o=o.substring(0,o.length-1),c+="?"+o)}).catch(()=>{s.warning("获取参数失败!")}).finally(()=>{m({iconType:"info",width:500,title:`菜单链接【${t.name}】`,content:c,closable:!0,maskClosable:!0,cancelText:"复制SQL",okText:"复制URL",cancelButtonProps:{class:"copy-this-sql","data-clipboard-text":g},okButtonProps:{class:"copy-this-text","data-clipboard-text":c},onOk(){return new Promise(p=>{const o=new M(".copy-this-text");o.on("success",()=>{o.destroy(),s.success("复制URL成功"),p()}),o.on("error",()=>{s.error("该浏览器不支持自动复制"),o.destroy(),p()})})},onCancel(){return new Promise(p=>{const o=new M(".copy-this-sql");o.on("success",()=>{o.destroy(),s.success("复制插入菜单SQL成功"),p()}),o.on("error",()=>{s.error("该浏览器不支持自动复制"),o.destroy(),p()})})}})})}return r({handleAdd:k}),(t,n)=>{const c=T("a-button"),g=T("Icon"),p=et,o=ot,_=yt;return D(),ut("div",null,[a(u(Z),dt({onRegister:u(f),rowSelection:u($)},t.$attrs),{tableTitle:l(()=>[a(c,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:k,style:{"margin-right":"5px"}},{default:l(()=>[...n[0]||(n[0]=[b("录入",-1)])]),_:1}),a(c,{preIcon:"bxs:bot",type:"primary",style:{"margin-right":"5px"},onClick:E},{default:l(()=>[...n[1]||(n[1]=[b("AI生成报表",-1)])]),_:1}),u(C).length>0?(D(),gt(_,{key:0},{overlay:l(()=>[a(o,null,{default:l(()=>[a(p,{key:"1",onClick:V},{default:l(()=>[a(g,{icon:"ant-design:delete-outlined"}),n[2]||(n[2]=b(" 删除 ",-1))]),_:1})]),_:1})]),default:l(()=>[a(c,null,{default:l(()=>[n[3]||(n[3]=b("批量操作 ",-1)),a(g,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):_t("",!0)]),action:l(({record:x})=>[a(u(tt),{actions:G(x),dropDownActions:H(x)},null,8,["actions","dropDownActions"])]),_:1},16,["onRegister","rowSelection"]),a(it,{onRegister:u(y),onSuccess:q},null,8,["onRegister"]),a(ct,{onRegister:u(I),onGenerate:K},null,8,["onRegister"])])}}}));export{te as default};
|