vome-core 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.d.ts +22 -0
- package/dist/admin/crud/export-fetch.js +1 -0
- package/dist/admin/crud/export-fetch.test.d.ts +1 -0
- package/dist/admin/crud/export-fetch.test.js +1 -0
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-export-btn.vue +10 -40
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/theme-color-options.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe0b7de=_0x4903;(function(_0x399cf1,_0x193fed){const _0x5187fd=_0x4903,_0x673046=_0x399cf1();while(!![]){try{const _0x353089=parseInt(_0x5187fd(0x19d))/0x1*(parseInt(_0x5187fd(0x191))/0x2)+parseInt(_0x5187fd(0x198))/0x3*(-parseInt(_0x5187fd(0x190))/0x4)+-parseInt(_0x5187fd(0x189))/0x5*(parseInt(_0x5187fd(0x195))/0x6)+parseInt(_0x5187fd(0x18d))/0x7*(-parseInt(_0x5187fd(0x183))/0x8)+parseInt(_0x5187fd(0x19b))/0x9*(parseInt(_0x5187fd(0x196))/0xa)+parseInt(_0x5187fd(0x187))/0xb*(-parseInt(_0x5187fd(0x18a))/0xc)+parseInt(_0x5187fd(0x188))/0xd*(parseInt(_0x5187fd(0x185))/0xe);if(_0x353089===_0x193fed)break;else _0x673046['push'](_0x673046['shift']());}catch(_0x263af9){_0x673046['push'](_0x673046['shift']());}}}(_0xff3b,0x1e907));const ORG=_0xe0b7de(0x184);export function serviceUrlFromDocs(_0x2d1a40){const _0x53f2c1=_0xe0b7de,_0x5f30e5=new URL(_0x2d1a40),_0x5ef807=_0x5f30e5['hostname'][_0x53f2c1(0x19f)](/^www\./,'')[_0x53f2c1(0x19f)](/^service\./,'');return _0x5f30e5[_0x53f2c1(0x197)]+_0x53f2c1(0x192)+_0x5ef807;}function _0x4903(_0x5c3c9c,_0x17b9ee){_0x5c3c9c=_0x5c3c9c-0x181;const _0xff3b0b=_0xff3b();let _0x49032e=_0xff3b0b[_0x5c3c9c];if(_0x4903['BnbjQl']===undefined){var _0x2f1087=function(_0x6a624e){const _0x191fe4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d1a40='',_0x5f30e5='';for(let _0x5ef807=0x0,_0x559472,_0x5c9bf1,_0x3b0095=0x0;_0x5c9bf1=_0x6a624e['charAt'](_0x3b0095++);~_0x5c9bf1&&(_0x559472=_0x5ef807%0x4?_0x559472*0x40+_0x5c9bf1:_0x5c9bf1,_0x5ef807++%0x4)?_0x2d1a40+=String['fromCharCode'](0xff&_0x559472>>(-0x2*_0x5ef807&0x6)):0x0){_0x5c9bf1=_0x191fe4['indexOf'](_0x5c9bf1);}for(let _0x4683d2=0x0,_0x4c7668=_0x2d1a40['length'];_0x4683d2<_0x4c7668;_0x4683d2++){_0x5f30e5+='%'+('00'+_0x2d1a40['charCodeAt'](_0x4683d2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f30e5);};_0x4903['AaRRqA']=_0x2f1087,_0x4903['GeqdgC']={},_0x4903['BnbjQl']=!![];}const _0x595964=_0xff3b0b[0x0],_0x1998e7=_0x5c3c9c+_0x595964,_0x578864=_0x4903['GeqdgC'][_0x1998e7];return!_0x578864?(_0x49032e=_0x4903['AaRRqA'](_0x49032e),_0x4903['GeqdgC'][_0x1998e7]=_0x49032e):_0x49032e=_0x578864,_0x49032e;}export function seatApiBaseFromDocs(_0x559472){const _0x7a73dc=_0xe0b7de;return serviceUrlFromDocs(_0x559472)+_0x7a73dc(0x18c);}export function licenseIssueUrlFromDocs(_0x5c9bf1){return serviceUrlFromDocs(_0x5c9bf1)+'/app/pluginStore/wallet/license/issue';}function giteeArchive(_0x3b0095){return'https://gitee.com/'+ORG+'/'+_0x3b0095+'/repository/archive/master.zip';}function githubArchive(_0x4683d2){const _0x37a556=_0xe0b7de;return _0x37a556(0x18b)+ORG+'/'+_0x4683d2+_0x37a556(0x19a);}function _0xff3b(){const _0x3d15cc=['mta2meLkAxvYBa','ChjVDg9JB2W','ndjeyvjRz0q','DM9Tzs1WBhvNAw4TzNjVBNq','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','mtu0odLmAvHWAKG','DM9Tzs1WBhvNAw4TC2vYDMLJzq','n2HWAe95yq','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','CMvWBgfJzq','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','5yMn56UVicSG5zco56UV','nty4D0LjAhfv','DM9TzwTQ','ndjQywvhyxu','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','mJjHC25ir1y','mti0mZCYm2zlsM1SEq','nvDLvgjmBa','nZu4oty0v0rqtg1I','Ahr0Chm6lY9NAxrODwiUy29TlW','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','mti1mZDfqu15yLq','zNjVBNrLBMq','DM9Tzs1WBhvNAw4TzNvSBa','nde4mtzuDLzkDxe','ndu1mtjczxnUD1m','lY9Zzxj2AwnLlG','Ahr0Chm6lY9NAxrLzs5JB20V','Ahr0Chm6lY92B21LA2OUy29T','nJiXmtC0quniEKvz'];_0xff3b=function(){return _0x3d15cc;};return _0xff3b();}function giteeRepo(_0x4c7668){return'https://gitee.com/'+ORG+'/'+_0x4c7668;}function githubRepo(_0x322e92){return'https://github.com/'+ORG+'/'+_0x322e92;}const docsUrl=_0xe0b7de(0x194);export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+'/plugins/upload','mirrors':{'prefer':'gitee','giteeOrg':_0xe0b7de(0x193)+ORG,'githubOrg':_0xe0b7de(0x18b)+ORG},'scaffolds':{'full':{'key':'full','title':_0xe0b7de(0x182),'desc':_0xe0b7de(0x181),'repo':_0xe0b7de(0x18f),'repoUrl':giteeRepo(_0xe0b7de(0x18f)),'githubRepoUrl':githubRepo('vome-plugin-full'),'downloadUrl':giteeArchive(_0xe0b7de(0x18f)),'githubDownloadUrl':githubArchive(_0xe0b7de(0x18f))},'backend':{'key':'backend','title':'纯后端','desc':_0xe0b7de(0x186),'repo':'vome-plugin-service','repoUrl':giteeRepo(_0xe0b7de(0x19c)),'githubRepoUrl':githubRepo('vome-plugin-service'),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive(_0xe0b7de(0x19c))},'frontend':{'key':_0xe0b7de(0x18e),'title':'纯前端','desc':_0xe0b7de(0x19e),'repo':_0xe0b7de(0x199),'repoUrl':giteeRepo(_0xe0b7de(0x199)),'githubRepoUrl':githubRepo(_0xe0b7de(0x199)),'downloadUrl':giteeArchive('vome-plugin-front'),'githubDownloadUrl':githubArchive(_0xe0b7de(0x199))}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3708(){const _0x155b4c=['nti1nZK0nuTyyNDWAW','mtbtzgXrC2K','mJK0nJa2z0XPsKX2','8j+qU+kaJEkDHo+4JW','mtqYmJK4ze5nAwLZ','Aw5Zzxj0q29UDgvUDa','mtm1ndj1Dvb2zxG','mta0wwz6D29b','BMfTzq','mZG0me5TC1HtrG','yMXVy2S','mtq2mJeZnfH2EMriEG','mJHiv2HAENC','nZaXndK5n1jQsurVsW','ntqXndC0EgHpwKLO','Bwf4lxDPzhrOoJeWmcu7yM9YzgvYlxjHzgL1CZO4ChG','mtzKA0LjEgi','DMLKzw8','nuDMsMnYDq'];_0x3708=function(){return _0x155b4c;};return _0x3708();}const _0x17a68d=_0x1dfe;(function(_0x49ea67,_0x24a917){const _0x26b911=_0x1dfe,_0x1e6df0=_0x49ea67();while(!![]){try{const _0xa9cb22=parseInt(_0x26b911(0x79))/0x1*(parseInt(_0x26b911(0x75))/0x2)+parseInt(_0x26b911(0x80))/0x3*(-parseInt(_0x26b911(0x77))/0x4)+parseInt(_0x26b911(0x7a))/0x5+parseInt(_0x26b911(0x85))/0x6*(parseInt(_0x26b911(0x86))/0x7)+parseInt(_0x26b911(0x81))/0x8*(parseInt(_0x26b911(0x7c))/0x9)+-parseInt(_0x26b911(0x7b))/0xa*(-parseInt(_0x26b911(0x74))/0xb)+-parseInt(_0x26b911(0x83))/0xc*(parseInt(_0x26b911(0x7e))/0xd);if(_0xa9cb22===_0x24a917)break;else _0x1e6df0['push'](_0x1e6df0['shift']());}catch(_0x4c746d){_0x1e6df0['push'](_0x1e6df0['shift']());}}}(_0x3708,0xe139b));import{Node,mergeAttributes}from'@tiptap/core';export const VmRichtextVideo=Node['create']({'name':_0x17a68d(0x78),'group':_0x17a68d(0x84),'atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){return[{'tag':'video[src]'}];},'renderHTML'({HTMLAttributes:_0x266f58}){const _0x5f4233=_0x17a68d;return['video',mergeAttributes(_0x266f58,{'controls':!![],'style':_0x5f4233(0x76)})];},'addCommands'(){const _0x49bb51=_0x17a68d;return{'setVideo':_0x2d01b4=>({commands:_0x1dd80f})=>_0x1dd80f[_0x49bb51(0x7f)]({'type':this[_0x49bb51(0x82)],'attrs':_0x2d01b4})};}});function _0x1dfe(_0x547ffb,_0x222b5b){_0x547ffb=_0x547ffb-0x74;const _0x37083d=_0x3708();let _0x1dfe43=_0x37083d[_0x547ffb];if(_0x1dfe['qnEOiE']===undefined){var _0x455310=function(_0x395700){const _0x50d50c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x266f58='',_0x2d01b4='';for(let _0x1dd80f=0x0,_0x572892,_0x52ab7c,_0x2f38cd=0x0;_0x52ab7c=_0x395700['charAt'](_0x2f38cd++);~_0x52ab7c&&(_0x572892=_0x1dd80f%0x4?_0x572892*0x40+_0x52ab7c:_0x52ab7c,_0x1dd80f++%0x4)?_0x266f58+=String['fromCharCode'](0xff&_0x572892>>(-0x2*_0x1dd80f&0x6)):0x0){_0x52ab7c=_0x50d50c['indexOf'](_0x52ab7c);}for(let _0x4adcfc=0x0,_0x48e0b3=_0x266f58['length'];_0x4adcfc<_0x48e0b3;_0x4adcfc++){_0x2d01b4+='%'+('00'+_0x266f58['charCodeAt'](_0x4adcfc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d01b4);};_0x1dfe['VnWRsv']=_0x455310,_0x1dfe['lKWAxv']={},_0x1dfe['qnEOiE']=!![];}const _0x325719=_0x37083d[0x0],_0x160b27=_0x547ffb+_0x325719,_0x20fae1=_0x1dfe['lKWAxv'][_0x160b27];return!_0x20fae1?(_0x1dfe43=_0x1dfe['VnWRsv'](_0x1dfe43),_0x1dfe['lKWAxv'][_0x160b27]=_0x1dfe43):_0x1dfe43=_0x20fae1,_0x1dfe43;}export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE03','\uD83D\uDE04','\uD83D\uDE01','\uD83D\uDE06','\uD83D\uDE05','\uD83E\uDD23','\uD83D\uDE02','\uD83D\uDE42','\uD83D\uDE43','\uD83D\uDE09','\uD83D\uDE0A','\uD83D\uDE07','\uD83E\uDD70','\uD83D\uDE0D','\uD83E\uDD29','\uD83D\uDE18','\uD83D\uDE17','\uD83D\uDE1A','\uD83D\uDE19','\uD83D\uDE0B','\uD83D\uDE1B','\uD83D\uDE1C','\uD83E\uDD2A','\uD83D\uDE1D','\uD83E\uDD11','\uD83E\uDD17','\uD83E\uDD2D','\uD83E\uDD2B','\uD83E\uDD14','\uD83E\uDD10','\uD83E\uDD28','\uD83D\uDE10','\uD83D\uDE11','\uD83D\uDE36','\uD83D\uDE0F','\uD83D\uDE12','\uD83D\uDE44','\uD83D\uDE2C','\uD83E\uDD25','\uD83D\uDE0C','\uD83D\uDE14','\uD83D\uDE2A','\uD83E\uDD24','\uD83D\uDE34','\uD83D\uDE37','\uD83E\uDD12','\uD83E\uDD15','\uD83E\uDD22','\uD83E\uDD2E','\uD83E\uDD75','\uD83E\uDD76','\uD83E\uDD74','\uD83D\uDE35','\uD83E\uDD2F','\uD83E\uDD20','\uD83E\uDD73','\uD83D\uDE0E','\uD83E\uDD13','\uD83E\uDDD0','\uD83D\uDE15','\uD83D\uDE1F','\uD83D\uDE41','☹️','\uD83D\uDE2E','\uD83D\uDE2F','\uD83D\uDE32','\uD83D\uDE33','\uD83E\uDD7A','\uD83D\uDE26','\uD83D\uDE27','\uD83D\uDE28','\uD83D\uDE30','\uD83D\uDE25','\uD83D\uDE22','\uD83D\uDE2D','\uD83D\uDE31','\uD83D\uDE16','\uD83D\uDE23','\uD83D\uDE1E','\uD83D\uDE13','\uD83D\uDE29','\uD83D\uDE2B','\uD83E\uDD71','\uD83D\uDE24','\uD83D\uDE21','\uD83D\uDE20','\uD83E\uDD2C','\uD83D\uDE08','\uD83D\uDC7F','\uD83D\uDC4B','\uD83E\uDD1A','\uD83D\uDD90','✋','\uD83D\uDD96','\uD83D\uDC4C','\uD83E\uDD0C','\uD83E\uDD0F','✌️','\uD83E\uDD1E','\uD83E\uDD1F','\uD83E\uDD18','\uD83E\uDD19','\uD83D\uDC48','\uD83D\uDC49','\uD83D\uDC46','\uD83D\uDD95','\uD83D\uDC47','☝️','\uD83D\uDC4D','\uD83D\uDC4E','✊','\uD83D\uDC4A','\uD83E\uDD1B','\uD83E\uDD1C','\uD83D\uDC4F','\uD83D\uDE4C','\uD83D\uDC50','\uD83E\uDD32','\uD83E\uDD1D','\uD83D\uDE4F','\uD83D\uDCAA','\uD83E\uDDBE','✍️','\uD83D\uDC85','\uD83E\uDD33','❤️','\uD83E\uDDE1','\uD83D\uDC9B','\uD83D\uDC9A','\uD83D\uDC99','\uD83D\uDC9C','\uD83D\uDDA4','\uD83E\uDD0D','\uD83E\uDD0E','\uD83D\uDC94','❣️','\uD83D\uDC95','\uD83D\uDC9E','\uD83D\uDC93','\uD83D\uDC97','\uD83D\uDC96','\uD83D\uDC98','\uD83D\uDC9D','\uD83D\uDC9F','☮️','✝️','☪️','\uD83D\uDD49','☸️','✡️','\uD83D\uDD2F','\uD83D\uDD4E','☯️','☦️','\uD83D\uDED0','⭐','\uD83C\uDF1F','✨','⚡','\uD83D\uDD25','\uD83D\uDCA5','☀️','\uD83C\uDF19','⭐️','\uD83C\uDF08','✅','❌','⭕','❗','❓','‼️','⁉️','\uD83D\uDCAF','\uD83D\uDD14','\uD83D\uDD15','\uD83D\uDCCC','\uD83D\uDCCD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDD12','\uD83D\uDD13','\uD83D\uDD11','\uD83D\uDDDD','\uD83D\uDCA1','\uD83D\uDD26','\uD83D\uDCDD','✏️','✒️','\uD83D\uDD8A','\uD83D\uDD8B','\uD83D\uDD8C','\uD83D\uDD8D','\uD83D\uDCBC','\uD83D\uDCC1','\uD83D\uDCC2','\uD83D\uDCC5','\uD83D\uDCC6','\uD83D\uDDD3','\uD83D\uDCC7','\uD83D\uDCC8','\uD83D\uDCC9','\uD83D\uDCCA','\uD83D\uDCCB','\uD83D\uDCE4','\uD83D\uDCE5','\uD83D\uDCE6','\uD83D\uDCEB','\uD83D\uDCEC','\uD83D\uDCED','\uD83D\uDCEE','\uD83D\uDCEF','\uD83D\uDCDC','\uD83D\uDCC3','\uD83D\uDCC4','\uD83D\uDCD1','☕','\uD83C\uDF75','\uD83E\uDDC3','\uD83E\uDD64','\uD83E\uDDCB','\uD83C\uDF7A','\uD83C\uDF7B','\uD83E\uDD42','\uD83C\uDF77','\uD83C\uDF78','\uD83C\uDF55','\uD83C\uDF54','\uD83C\uDF5F','\uD83C\uDF2D','\uD83C\uDF7F','\uD83C\uDF69','\uD83C\uDF6A','\uD83C\uDF82','\uD83C\uDF70','\uD83E\uDDC1','\uD83C\uDF4E','\uD83C\uDF4A','\uD83C\uDF4B','\uD83C\uDF4C','\uD83C\uDF49','\uD83C\uDF47','\uD83C\uDF53','\uD83E\uDED0','\uD83C\uDF52','\uD83C\uDF51','⚽','\uD83C\uDFC0','\uD83C\uDFC8','⚾','\uD83C\uDFBE','\uD83C\uDFD0','\uD83C\uDFC9','\uD83C\uDFB1','\uD83C\uDFD3','\uD83C\uDFF8','\uD83C\uDFAE','\uD83D\uDD79','\uD83C\uDFB2','\uD83E\uDDE9','\uD83C\uDFAF','\uD83C\uDFB3','\uD83C\uDFB0','\uD83C\uDFB8','\uD83C\uDFB9','\uD83E\uDD41','\uD83C\uDFA4','\uD83C\uDFA7','\uD83C\uDFAC','\uD83C\uDFA5','\uD83D\uDCF7','\uD83D\uDCF8','\uD83D\uDCF9','\uD83D\uDCFA','\uD83D\uDCFB','\uD83C\uDF99','\uD83D\uDE80','✈️','\uD83D\uDEE9','\uD83D\uDEEB','\uD83D\uDEEC','\uD83D\uDEF0','\uD83D\uDCBA','\uD83D\uDEF8','\uD83D\uDE81','\uD83D\uDEF6','\uD83D\uDE97','\uD83D\uDE95','\uD83D\uDE99','\uD83D\uDE8C','\uD83D\uDE8E','\uD83C\uDFCE','\uD83D\uDE93','\uD83D\uDE91','\uD83D\uDE92','\uD83D\uDE90','\uD83C\uDFE0','\uD83C\uDFE1','\uD83C\uDFE2','\uD83C\uDFE3','\uD83C\uDFE4','\uD83C\uDFE5','\uD83C\uDFE6','\uD83C\uDFE8','\uD83C\uDFE9','\uD83C\uDFEA','\uD83D\uDC36','\uD83D\uDC31','\uD83D\uDC2D','\uD83D\uDC39','\uD83D\uDC30','\uD83E\uDD8A','\uD83D\uDC3B','\uD83D\uDC3C',_0x17a68d(0x7d),'\uD83D\uDC28','\uD83D\uDC2F','\uD83E\uDD81','\uD83D\uDC2E','\uD83D\uDC37','\uD83D\uDC38','\uD83D\uDC35','\uD83D\uDE48','\uD83D\uDE49','\uD83D\uDE4A','\uD83D\uDC12','\uD83D\uDC14','\uD83D\uDC27','\uD83D\uDC26','\uD83D\uDC24','\uD83D\uDC23','\uD83D\uDC25','\uD83E\uDD86','\uD83E\uDD85','\uD83E\uDD89','\uD83E\uDD87','\uD83C\uDF89','\uD83C\uDF8A','\uD83C\uDF88','\uD83C\uDF81','\uD83C\uDF80','\uD83C\uDF97','\uD83C\uDFAB','\uD83C\uDF9F','\uD83C\uDFC6','\uD83C\uDFC5'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53cf24,_0x7993b7){const _0x669fa=_0x5db7,_0x2c4b4b=_0x53cf24();while(!![]){try{const _0x3008a3=-parseInt(_0x669fa(0xd1))/0x1+parseInt(_0x669fa(0xd0))/0x2+-parseInt(_0x669fa(0xd2))/0x3+-parseInt(_0x669fa(0xd8))/0x4+parseInt(_0x669fa(0xda))/0x5*(parseInt(_0x669fa(0xd6))/0x6)+parseInt(_0x669fa(0xdc))/0x7+parseInt(_0x669fa(0xd4))/0x8;if(_0x3008a3===_0x7993b7)break;else _0x2c4b4b['push'](_0x2c4b4b['shift']());}catch(_0xdbd3cf){_0x2c4b4b['push'](_0x2c4b4b['shift']());}}}(_0x3d3d,0x50834));function _0x5db7(_0x2be1b5,_0x3c909c){_0x2be1b5=_0x2be1b5-0xcf;const _0x3d3d96=_0x3d3d();let _0x5db77f=_0x3d3d96[_0x2be1b5];if(_0x5db7['nWmPJK']===undefined){var _0xc0989=function(_0x4bd37f){const _0x234252='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2be227='',_0x1226fc='';for(let _0x1411e2=0x0,_0x344036,_0x185b02,_0xb63beb=0x0;_0x185b02=_0x4bd37f['charAt'](_0xb63beb++);~_0x185b02&&(_0x344036=_0x1411e2%0x4?_0x344036*0x40+_0x185b02:_0x185b02,_0x1411e2++%0x4)?_0x2be227+=String['fromCharCode'](0xff&_0x344036>>(-0x2*_0x1411e2&0x6)):0x0){_0x185b02=_0x234252['indexOf'](_0x185b02);}for(let _0x47d2a9=0x0,_0xe97e74=_0x2be227['length'];_0x47d2a9<_0xe97e74;_0x47d2a9++){_0x1226fc+='%'+('00'+_0x2be227['charCodeAt'](_0x47d2a9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1226fc);};_0x5db7['tEXxmB']=_0xc0989,_0x5db7['GqQALV']={},_0x5db7['nWmPJK']=!![];}const _0x364354=_0x3d3d96[0x0],_0x57d465=_0x2be1b5+_0x364354,_0x5e3278=_0x5db7['GqQALV'][_0x57d465];return!_0x5e3278?(_0x5db77f=_0x5db7['tEXxmB'](_0x5db77f),_0x5db7['GqQALV'][_0x57d465]=_0x5db77f):_0x5db77f=_0x5e3278,_0x5db77f;}import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export{CRUD_LABELS,DEFAULT_CRUD_DICT};const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':![],'delete':![],'update':![],'restore':![]};export function mergeDict(_0x2be227){const _0xf5f2a4=_0x5db7,_0x1226fc=getCrudConfig()[_0xf5f2a4(0xd9)];if(!_0x2be227)return{..._0x1226fc,'label':{..._0x1226fc[_0xf5f2a4(0xd5)]}};return{..._0x1226fc,..._0x2be227,'api':{..._0x1226fc[_0xf5f2a4(0xd7)],..._0x2be227['api']},'pagination':{..._0x1226fc[_0xf5f2a4(0xd3)],..._0x2be227[_0xf5f2a4(0xd3)]},'search':{..._0x1226fc['search'],..._0x2be227[_0xf5f2a4(0xcf)]},'sort':{..._0x1226fc[_0xf5f2a4(0xdb)],..._0x2be227[_0xf5f2a4(0xdb)]},'label':{..._0x1226fc[_0xf5f2a4(0xd5)],..._0x2be227[_0xf5f2a4(0xd5)]}};}export function mergePermission(_0x1411e2,_0x344036){return{...DEFAULT_CRUD_PERMISSION,..._0x344036,..._0x1411e2};}function _0x3d3d(){const _0x1acd9e=['mJe2mtG4qNPgv2Tu','zgLJDa','nuDhwLPJsW','C29YDa','mZaXmJi2muHdDhnJtq','C2vHCMnO','nJy3nZiWrhbQsLze','ntaYmtm1yuPJDfrV','mtm3mZq1mvbbq2Dxqq','CgfNAw5HDgLVBG','nteZndu2rLPHrhbi','BgfIzwW','mZa5mJq4ng1nv0LUEa','yxbP'];_0x3d3d=function(){return _0x1acd9e;};return _0x3d3d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37bcd3=_0x27f6;(function(_0x4038f2,_0x122466){const _0x4522cd=_0x27f6,_0x73275=_0x4038f2();while(!![]){try{const _0x226639=parseInt(_0x4522cd(0x19e))/0x1*(parseInt(_0x4522cd(0x183))/0x2)+parseInt(_0x4522cd(0x19a))/0x3*(-parseInt(_0x4522cd(0x18c))/0x4)+parseInt(_0x4522cd(0x18b))/0x5*(parseInt(_0x4522cd(0x19c))/0x6)+-parseInt(_0x4522cd(0x181))/0x7*(-parseInt(_0x4522cd(0x199))/0x8)+parseInt(_0x4522cd(0x19f))/0x9*(parseInt(_0x4522cd(0x194))/0xa)+parseInt(_0x4522cd(0x19d))/0xb+-parseInt(_0x4522cd(0x185))/0xc*(parseInt(_0x4522cd(0x188))/0xd);if(_0x226639===_0x122466)break;else _0x73275['push'](_0x73275['shift']());}catch(_0x11ba4e){_0x73275['push'](_0x73275['shift']());}}}(_0x196a,0xc1ab6));import{createApp,h,ref}from'vue';import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';function _0x196a(){const _0x2e253e=['z2v0rwXLBwvUDej5swq','y3jLyxrLrwXLBwvUDa','y2fUy2vSvgv4Da','yxbWzw5Kq2HPBgq','nJqXmJDWsMHxvvi','Dgv4DenVBNrLBNq','mtqXnJmWmNvZz0vWAG','DM0Ty29UzMLYBs1ZDhLSzq','mtC0nJu1mdHuqwTyt08','C3r5Bgu','C3rYAw5N','mJztrNLTt0O','CMvTB3zL','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','mJuZmdblv3v5sva','ndy1mJuZnLPqwKP5wa','yNv0Dg9U','y29UzMLYBvrLEhq','BwvZC2fNzq','zgL2','yM9KEq','Dw5KzwzPBMvK','DM0Ty29UzMLYBv9FDgL0Bgu','mtmWwvrpAhzH','DM0Ty29UzMLYBv9FAgvHza','Dw5TB3vUDa','AgvHza','Bw91BNq','mta0ofvoEgrPva','m0rVvgDLtW','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','mti3mM9ouMDKqq','mtq1mdi0mZnjyK5lzwS','muPgzfDrzG','mZKZmJaXqvDRBhfh'];_0x196a=function(){return _0x2e253e;};return _0x196a();}function _0x27f6(_0x1e9d65,_0x3281ea){_0x1e9d65=_0x1e9d65-0x181;const _0x196ad0=_0x196a();let _0x27f657=_0x196ad0[_0x1e9d65];if(_0x27f6['syRues']===undefined){var _0x128c41=function(_0xa79d6c){const _0x34a90d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cfe7f='',_0x569fa4='';for(let _0x58e0fe=0x0,_0x158a0a,_0x568848,_0x252e51=0x0;_0x568848=_0xa79d6c['charAt'](_0x252e51++);~_0x568848&&(_0x158a0a=_0x58e0fe%0x4?_0x158a0a*0x40+_0x568848:_0x568848,_0x58e0fe++%0x4)?_0x4cfe7f+=String['fromCharCode'](0xff&_0x158a0a>>(-0x2*_0x58e0fe&0x6)):0x0){_0x568848=_0x34a90d['indexOf'](_0x568848);}for(let _0x3c5564=0x0,_0x223220=_0x4cfe7f['length'];_0x3c5564<_0x223220;_0x3c5564++){_0x569fa4+='%'+('00'+_0x4cfe7f['charCodeAt'](_0x3c5564)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x569fa4);};_0x27f6['KZuxYM']=_0x128c41,_0x27f6['YdmqPF']={},_0x27f6['syRues']=!![];}const _0x5a563d=_0x196ad0[0x0],_0x56c721=_0x1e9d65+_0x5a563d,_0x13ef98=_0x27f6['YdmqPF'][_0x56c721];return!_0x13ef98?(_0x27f657=_0x27f6['KZuxYM'](_0x27f657),_0x27f6['YdmqPF'][_0x56c721]=_0x27f657):_0x27f657=_0x13ef98,_0x27f657;}export function vmConfirm(_0x4cfe7f){const _0x9e88e9=_0x27f6,_0x569fa4=typeof _0x4cfe7f===_0x9e88e9(0x187)?{'message':_0x4cfe7f}:_0x4cfe7f;return new Promise(_0x58e0fe=>{const _0x23c813=_0x9e88e9,_0x158a0a=ref(!![]),_0x568848=document[_0x23c813(0x1a1)](_0x23c813(0x190));document[_0x23c813(0x191)]['appendChild'](_0x568848);const _0x252e51=createApp({'setup'(){const _0x259db3=_0x23c813;function _0x3c5564(_0x223220){_0x158a0a['value']=![],_0x58e0fe(_0x223220),setTimeout(()=>{const _0x2cd144=_0x27f6;_0x252e51[_0x2cd144(0x196)](),_0x568848[_0x2cd144(0x189)]();},0xc8);}return()=>h(Dialog,{'open':_0x158a0a['value'],'onUpdate:open':_0x2f1852=>{if(!_0x2f1852)_0x3c5564(![]);}},{'default':()=>h(DialogContent,{'class':'vm-confirm','showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x259db3(0x195)},()=>h(DialogTitle,{'class':_0x259db3(0x193)},()=>_0x569fa4['title']||'提示')),h('div',{'class':'vm-confirm__body'},_0x569fa4[_0x259db3(0x18f)]),h(DialogFooter,{'class':'vm-confirm__foot'},()=>[h(_0x259db3(0x18d),{'type':_0x259db3(0x18d),'class':_0x259db3(0x19b),'onClick':()=>_0x3c5564(![])},_0x569fa4[_0x259db3(0x1a2)]||'取消'),h(_0x259db3(0x18d),{'type':_0x259db3(0x18d),'class':_0x259db3(0x18a),'onClick':()=>_0x3c5564(!![])},_0x569fa4[_0x259db3(0x18e)]||'确定')])]})});}});_0x252e51[_0x23c813(0x198)](_0x568848);});}if(typeof document!==_0x37bcd3(0x192)&&!document[_0x37bcd3(0x1a0)](_0x37bcd3(0x184))){const style=document[_0x37bcd3(0x1a1)](_0x37bcd3(0x186));style['id']='vm-confirm-style',style[_0x37bcd3(0x182)]='\x0a.vm-confirm[data-slot=\x27dialog-content\x27]\x20{\x0a\x20\x20width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20max-width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20gap:\x200\x20!important;\x0a\x20\x20padding:\x200\x20!important;\x0a\x20\x20border:\x20none\x20!important;\x0a\x20\x20border-radius:\x2024px\x20!important;\x0a\x20\x20box-shadow:\x20var(--shadow-soft)\x20!important;\x0a}\x0a.vm-confirm__head\x20{\x20padding:\x2018px\x2022px\x200;\x20border-bottom:\x20none;\x20}\x0a.vm-confirm__title\x20{\x20font-size:\x2016px;\x20font-weight:\x20650;\x20}\x0a.vm-confirm__body\x20{\x0a\x20\x20padding:\x2012px\x2022px\x208px;\x0a\x20\x20color:\x20var(--foreground);\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.6;\x0a}\x0a.vm-confirm__foot\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20justify-content:\x20flex-end;\x0a\x20\x20gap:\x208px;\x0a\x20\x20padding:\x2014px\x2022px;\x0a}\x0a.vm-confirm__btn\x20{\x0a\x20\x20height:\x2036px;\x0a\x20\x20padding:\x200\x2016px;\x0a\x20\x20border:\x20none;\x0a\x20\x20border-radius:\x2012px;\x0a\x20\x20font-size:\x2013px;\x0a\x20\x20font-weight:\x20600;\x0a\x20\x20cursor:\x20pointer;\x0a}\x0a.vm-confirm__btn.is-primary\x20{\x20background:\x20var(--brand);\x20color:\x20#fff;\x20}\x0a.vm-confirm__btn.is-primary:hover\x20{\x20background:\x20var(--brand-deep);\x20}\x0a.vm-confirm__btn.is-ghost\x20{\x20background:\x20var(--muted);\x20color:\x20var(--foreground);\x20}\x0a',document[_0x37bcd3(0x197)][_0x37bcd3(0x1a3)](style);}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x232e(){const _0x57f907=['A2v5v29Yza','6AUy57QN5PcC57sI','5BEY5yIG6zMK','6k+36l6t5ywL','5ywXihSWFsdMNAe','zgvSzxrL','5lIk5lIa6Ag1','CxvLCNK','B3jKzxi','5zUE5Ps256Uz','CgfNzq','5ywZ6zsU5A2x','5lIl5lIa6Ag1','mZm2nZm0nhPKBxLgzq','DxbKyxrL','5Q2K5Pon5l2C5Bcg5PwW5O2U5Qch6k6W5lI65BEY5yIG6zMK77Ym5PIV5zcM57UN57UT77YF','C2L6zq','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','5yIG6zMK5OIq5yQF','5PcC57sIEZb9','5lIn6io95lI656M6','otqZntCWEePoqvjn','BgLZDa','5y+w5RAi6ycj5OUP','ntq2mZiYy1rLDNrZ','mtm0mde2mezuBMHrtq','6zQq6jEp5yAf5A65','5BEY5B275BQv5yIG6zMK','mZz2qvvTC1y','5P+L55Yl5PU05AsA','mta1otK1nNbxBfDPzW','5PcC57sI5ywZ6zsU5A2x','ywrK','5B275BQv5yIG6zMK','nxLxEvvpCW','Aw5MBW','mtyYuxPZBxve','EZb9ic8G6Ag1','nduWndeXEhznBNbU','nJaWnJa4CNb5vKrJ','5PYa5Bcp5yc8','C29YDa'];_0x232e=function(){return _0x57f907;};return _0x232e();}const _0x4a138b=_0x102c;(function(_0x2de175,_0x4a3b16){const _0x58398f=_0x102c,_0x292efe=_0x2de175();while(!![]){try{const _0x242da4=parseInt(_0x58398f(0x99))/0x1+-parseInt(_0x58398f(0x9a))/0x2+-parseInt(_0x58398f(0x8c))/0x3+parseInt(_0x58398f(0x91))/0x4*(-parseInt(_0x58398f(0x95))/0x5)+parseInt(_0x58398f(0x8f))/0x6*(-parseInt(_0x58398f(0x8b))/0x7)+-parseInt(_0x58398f(0x80))/0x8+-parseInt(_0x58398f(0x97))/0x9*(-parseInt(_0x58398f(0x88))/0xa);if(_0x242da4===_0x4a3b16)break;else _0x292efe['push'](_0x292efe['shift']());}catch(_0x5f56f3){_0x292efe['push'](_0x292efe['shift']());}}}(_0x232e,0x3c74e));function _0x102c(_0x4180e4,_0x54c909){_0x4180e4=_0x4180e4-0x75;const _0x232ec5=_0x232e();let _0x102c3a=_0x232ec5[_0x4180e4];if(_0x102c['OMWmjZ']===undefined){var _0x3c9676=function(_0x6eb554){const _0x436167='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfa6c6e='',_0x5b0cbb='';for(let _0x12c72d=0x0,_0x4aebb1,_0x162d87,_0x29b7a2=0x0;_0x162d87=_0x6eb554['charAt'](_0x29b7a2++);~_0x162d87&&(_0x4aebb1=_0x12c72d%0x4?_0x4aebb1*0x40+_0x162d87:_0x162d87,_0x12c72d++%0x4)?_0xfa6c6e+=String['fromCharCode'](0xff&_0x4aebb1>>(-0x2*_0x12c72d&0x6)):0x0){_0x162d87=_0x436167['indexOf'](_0x162d87);}for(let _0x72a9e6=0x0,_0x11f9a8=_0xfa6c6e['length'];_0x72a9e6<_0x11f9a8;_0x72a9e6++){_0x5b0cbb+='%'+('00'+_0xfa6c6e['charCodeAt'](_0x72a9e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b0cbb);};_0x102c['MyxQxv']=_0x3c9676,_0x102c['UsJazQ']={},_0x102c['OMWmjZ']=!![];}const _0x212b33=_0x232ec5[0x0],_0x296644=_0x4180e4+_0x212b33,_0xa1bfa4=_0x102c['UsJazQ'][_0x296644];return!_0xa1bfa4?(_0x102c3a=_0x102c['MyxQxv'](_0x102c3a),_0x102c['UsJazQ'][_0x296644]=_0x102c3a):_0x102c3a=_0xa1bfa4,_0x102c3a;}export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x4a138b(0x9e),'searchKey':_0x4a138b(0x92),'placeholder':_0x4a138b(0x76),'tips':'提示','saveSuccess':'保存成功','deleteSuccess':_0x4a138b(0x85),'deleteConfirm':_0x4a138b(0x82),'forceDeleteConfirm':_0x4a138b(0x84),'empty':'暂无数据','desc':'降序','asc':'升序','select':'选择','deselect':_0x4a138b(0x8a),'seeMore':_0x4a138b(0x90),'hideContent':_0x4a138b(0x8d),'nonEmpty':_0x4a138b(0x87),'list':'列表','trash':_0x4a138b(0x7c),'searchNamed':_0x4a138b(0x86),'selectNamed':'选择{0}','keyword':_0x4a138b(0x7e),'range':'区间','min':_0x4a138b(0x9b),'max':'最大值','start':'开始','end':'结束','total':_0x4a138b(0x77),'pageSize':_0x4a138b(0x98),'prevPage':_0x4a138b(0x79),'nextPage':_0x4a138b(0x7f),'jumpPage':'页码','forceDeleted':_0x4a138b(0x8e),'deleted':_0x4a138b(0x75),'restore':'恢复','forceDelete':_0x4a138b(0x94),'loading':'加载中…'};export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x4a138b(0x89),'add':_0x4a138b(0x93),'update':_0x4a138b(0x81),'delete':_0x4a138b(0x78),'info':_0x4a138b(0x96),'page':'page'},'pagination':{'page':_0x4a138b(0x7d),'size':_0x4a138b(0x83)},'search':{'keyWord':_0x4a138b(0x9d),'query':_0x4a138b(0x7a)},'sort':{'prop':_0x4a138b(0x7b),'order':_0x4a138b(0x9c)},'label':CRUD_LABELS};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ExportPageFetcher = (body: Record<string, unknown>, options?: {
|
|
2
|
+
timeoutMs?: number;
|
|
3
|
+
}) => Promise<{
|
|
4
|
+
list: Record<string, unknown>[];
|
|
5
|
+
pagination?: {
|
|
6
|
+
page?: number;
|
|
7
|
+
size?: number;
|
|
8
|
+
total?: number;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
/** page 自动翻页拉全量(与 vm-export-btn 同源逻辑,可单测) */
|
|
12
|
+
export declare function fetchExportRowsByPage(opts: {
|
|
13
|
+
buildQuery: (extra: Record<string, unknown>) => Record<string, unknown>;
|
|
14
|
+
pageKey: string;
|
|
15
|
+
sizeKey: string;
|
|
16
|
+
page: ExportPageFetcher;
|
|
17
|
+
maxExportLimit: number;
|
|
18
|
+
totalHint?: number;
|
|
19
|
+
requestOpts?: {
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
};
|
|
22
|
+
}): Promise<Record<string, unknown>[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xf3ccbb,_0x158b59){const _0x6e6a3d=_0x12a3,_0x4fe4d4=_0xf3ccbb();while(!![]){try{const _0x20acce=-parseInt(_0x6e6a3d(0xd4))/0x1+-parseInt(_0x6e6a3d(0xd1))/0x2*(parseInt(_0x6e6a3d(0xcb))/0x3)+-parseInt(_0x6e6a3d(0xce))/0x4*(parseInt(_0x6e6a3d(0xd0))/0x5)+-parseInt(_0x6e6a3d(0xd2))/0x6+-parseInt(_0x6e6a3d(0xc9))/0x7+parseInt(_0x6e6a3d(0xcf))/0x8+-parseInt(_0x6e6a3d(0xcd))/0x9*(-parseInt(_0x6e6a3d(0xd5))/0xa);if(_0x20acce===_0x158b59)break;else _0x4fe4d4['push'](_0x4fe4d4['shift']());}catch(_0xa59f08){_0x4fe4d4['push'](_0x4fe4d4['shift']());}}}(_0x44dc,0x6fe7e));function _0x12a3(_0x27040e,_0x8b49d8){_0x27040e=_0x27040e-0xc5;const _0x44dc8b=_0x44dc();let _0x12a36c=_0x44dc8b[_0x27040e];if(_0x12a3['zWEZPY']===undefined){var _0x276baf=function(_0x196048){const _0xc6cbdf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x67194c='',_0x1ea759='';for(let _0x344051=0x0,_0x2e3001,_0x2374c0,_0x26a507=0x0;_0x2374c0=_0x196048['charAt'](_0x26a507++);~_0x2374c0&&(_0x2e3001=_0x344051%0x4?_0x2e3001*0x40+_0x2374c0:_0x2374c0,_0x344051++%0x4)?_0x67194c+=String['fromCharCode'](0xff&_0x2e3001>>(-0x2*_0x344051&0x6)):0x0){_0x2374c0=_0xc6cbdf['indexOf'](_0x2374c0);}for(let _0x543640=0x0,_0x54f61b=_0x67194c['length'];_0x543640<_0x54f61b;_0x543640++){_0x1ea759+='%'+('00'+_0x67194c['charCodeAt'](_0x543640)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ea759);};_0x12a3['BMFoky']=_0x276baf,_0x12a3['rEJMZO']={},_0x12a3['zWEZPY']=!![];}const _0x50f782=_0x44dc8b[0x0],_0x1bea1f=_0x27040e+_0x50f782,_0x557171=_0x12a3['rEJMZO'][_0x1bea1f];return!_0x557171?(_0x12a36c=_0x12a3['BMFoky'](_0x12a36c),_0x12a3['rEJMZO'][_0x1bea1f]=_0x12a36c):_0x12a36c=_0x557171,_0x12a36c;}function _0x44dc(){const _0x12922f=['Dg90ywW','mZy5DwnTDuLY','mZG0oePUweXfDG','nti1ode2mgLAB2fUra','mJy2nvPpswHjyG','mK1eweD5rG','nti1ntm4ohbNqLDAEG','ChvZAa','nZC5ndKXBhDLtK9h','odmXmJaWu01ft3L3','ue9tsvrjvKvFsu5gsu5jvfK','BwLU','CgfNAw5HDgLVBG','BgLZDa','ndK1ntu4n0DqtvDQCW','BgvUz3rO','mJe5mJi0nfjSz1HYAa'];_0x44dc=function(){return _0x12922f;};return _0x44dc();}import{CRUD_BACKEND_PAGE_MAX}from'./paging';export async function fetchExportRowsByPage(_0x67194c){const _0x4c491c=_0x12a3,{buildQuery:_0x1ea759,pageKey:_0x344051,sizeKey:_0x2e3001,page:_0x2374c0,maxExportLimit:_0x26a507,totalHint:totalHint=0x0,requestOpts:_0x543640}=_0x67194c,_0x54f61b=_0x26a507>0x0?_0x26a507:Number[_0x4c491c(0xc5)],_0x2d6c94=[];let _0x3b8fe1=0x1,_0x7f1d1f=totalHint||0x0;while(_0x2d6c94[_0x4c491c(0xca)]<_0x54f61b){const _0x5501a7=_0x54f61b-_0x2d6c94['length'],_0x3f9bd6=Math[_0x4c491c(0xc6)](CRUD_BACKEND_PAGE_MAX,_0x5501a7),_0x5aff32=_0x1ea759({[_0x344051]:_0x3b8fe1,[_0x2e3001]:_0x3f9bd6}),_0x1df67f=await _0x2374c0(_0x5aff32,_0x543640),_0x421f15=_0x1df67f[_0x4c491c(0xc8)]||[];if(_0x1df67f[_0x4c491c(0xc7)]?.[_0x4c491c(0xcc)]!=null)_0x7f1d1f=_0x1df67f[_0x4c491c(0xc7)][_0x4c491c(0xcc)];if(!_0x421f15[_0x4c491c(0xca)])break;_0x2d6c94[_0x4c491c(0xd3)](..._0x421f15);const _0x1b0d00=_0x7f1d1f>0x0?Math[_0x4c491c(0xc6)](_0x7f1d1f,_0x54f61b):_0x54f61b;if(_0x7f1d1f>0x0&&_0x2d6c94[_0x4c491c(0xca)]>=_0x1b0d00)break;if(_0x421f15[_0x4c491c(0xca)]<_0x3f9bd6)break;_0x3b8fe1++;}if(_0x26a507>0x0&&_0x2d6c94[_0x4c491c(0xca)]>_0x26a507)return _0x2d6c94['slice'](0x0,_0x26a507);return _0x2d6c94;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xf03329=_0x1681;function _0x1681(_0x3f226d,_0x389ba8){_0x3f226d=_0x3f226d-0x113;const _0x2c9cbe=_0x2c9c();let _0x1681c8=_0x2c9cbe[_0x3f226d];if(_0x1681['KXMccd']===undefined){var _0x640671=function(_0x3cd01b){const _0x347863='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b5849='',_0x18a6a2='';for(let _0x5b27b5=0x0,_0x1b4c24,_0x23dce6,_0x22f56d=0x0;_0x23dce6=_0x3cd01b['charAt'](_0x22f56d++);~_0x23dce6&&(_0x1b4c24=_0x5b27b5%0x4?_0x1b4c24*0x40+_0x23dce6:_0x23dce6,_0x5b27b5++%0x4)?_0x1b5849+=String['fromCharCode'](0xff&_0x1b4c24>>(-0x2*_0x5b27b5&0x6)):0x0){_0x23dce6=_0x347863['indexOf'](_0x23dce6);}for(let _0x5b33e5=0x0,_0x39aee3=_0x1b5849['length'];_0x5b33e5<_0x39aee3;_0x5b33e5++){_0x18a6a2+='%'+('00'+_0x1b5849['charCodeAt'](_0x5b33e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18a6a2);};_0x1681['hJRuOI']=_0x640671,_0x1681['NYErjF']={},_0x1681['KXMccd']=!![];}const _0x235f7d=_0x2c9cbe[0x0],_0x40f204=_0x3f226d+_0x235f7d,_0x1d9712=_0x1681['NYErjF'][_0x40f204];return!_0x1d9712?(_0x1681c8=_0x1681['hJRuOI'](_0x1681c8),_0x1681['NYErjF'][_0x40f204]=_0x1681c8):_0x1681c8=_0x1d9712,_0x1681c8;}(function(_0x79a20c,_0x2cf24c){const _0x4c9f76=_0x1681,_0x459e52=_0x79a20c();while(!![]){try{const _0x3ef376=parseInt(_0x4c9f76(0x114))/0x1+-parseInt(_0x4c9f76(0x121))/0x2+-parseInt(_0x4c9f76(0x127))/0x3*(-parseInt(_0x4c9f76(0x126))/0x4)+parseInt(_0x4c9f76(0x11b))/0x5+-parseInt(_0x4c9f76(0x116))/0x6+parseInt(_0x4c9f76(0x120))/0x7+-parseInt(_0x4c9f76(0x12d))/0x8*(-parseInt(_0x4c9f76(0x12c))/0x9);if(_0x3ef376===_0x2cf24c)break;else _0x459e52['push'](_0x459e52['shift']());}catch(_0x4e4845){_0x459e52['push'](_0x459e52['shift']());}}}(_0x2c9c,0x87838));import{describe,expect,test}from'bun:test';import{fetchExportRowsByPage}from'./export-fetch';function buildListQuery(_0x1b5849,_0x18a6a2,_0x5b27b5={}){const _0x362aa9=_0x1681,_0x1b4c24={..._0x1b5849,..._0x5b27b5};if(_0x5b27b5['page']==null)_0x1b4c24[_0x362aa9(0x115)]=_0x18a6a2['page'];if(_0x5b27b5[_0x362aa9(0x113)]==null)_0x1b4c24[_0x362aa9(0x113)]=_0x18a6a2[_0x362aa9(0x113)];return _0x1b4c24[_0x362aa9(0x11c)]='id',_0x1b4c24[_0x362aa9(0x118)]=_0x362aa9(0x125),_0x1b4c24;}function _0x2c9c(){const _0x331c0a=['zMv0y2HfEhbVCNrsB3DZqNLqywDL','C3rHCNrZv2L0Aa','yxnJ','otK3mJi4EhvrExnb','nKXRqw9AwG','D3jVBMCT','zNjVBq','Dg9czq','5PEGigjVEeLKioAxTUAlV+wiSoACQUETM+MaIEwfQoMhJ++8IdeWmo+8IE+8Jos4JUAxPYbSAxn0ioIVR+EuQowVUEAVLa','mtC5mtLUA1jssey','mtm2AujtrM10','C2L6zq','ntaYnJK4BuzIsuDd','CgfNzq','nJm4nZi4ohfxt3DlEa','zxzLCNK','C29YDa','5BIMigjVEeLKioETM+MaIE+8MJiZioADOEwiHIaYioMHTEwfQoMdQowVVowhUG','6k+35Rgc5l2t5B+f6Ag75BIMigjVEeLK77Yi5lIo6kgO5Qc8ihjLzNjLC2GG5zcm5RQq77Yj','mJi0nJe1nwz1B3fhBG','B3jKzxi','Bwf4','BgvUz3rO','ChvZAa','ndCZota4nhfttwTZra','mta4mZu4me1cAw1qwG','yM94swq'];_0x2c9c=function(){return _0x331c0a;};return _0x2c9c();}function mockPageFilteredByBoxId(_0x23dce6){return async _0x22f56d=>{const _0x449809=_0x1681;if(_0x22f56d['boxId']!==_0x23dce6)return{'list':Array[_0x449809(0x129)]({'length':0x64},(_0x11c2cf,_0x1833fd)=>({'id':_0x449809(0x128)+_0x1833fd})),'pagination':{'total':0x64}};const _0x5b33e5=Number(_0x22f56d[_0x449809(0x115)]??0x1),_0x39aee3=Number(_0x22f56d[_0x449809(0x113)]??0x14),_0x2aa72b=0x17,_0x58a6a8=(_0x5b33e5-0x1)*_0x39aee3;if(_0x58a6a8>=_0x2aa72b)return{'list':[],'pagination':{'total':_0x2aa72b}};const _0x1d2933=Math['min'](_0x39aee3,_0x2aa72b-_0x58a6a8),_0x4daf67=Array[_0x449809(0x129)]({'length':_0x1d2933},(_0x342eae,_0x5ebd4f)=>({'id':_0x58a6a8+_0x5ebd4f+0x1,'boxId':_0x23dce6}));return{'list':_0x4daf67,'pagination':{'total':_0x2aa72b}};};}describe(_0xf03329(0x123),()=>{const _0x355b4e=_0xf03329;test(_0x355b4e(0x119),async()=>{const _0x490fe3=_0x355b4e,_0xdcf288={'boxId':0x31},_0x332bdc=await fetchExportRowsByPage({'buildQuery':_0x36d9a9=>buildListQuery(_0xdcf288,{'page':0x1,'size':0x14},_0x36d9a9),'pageKey':_0x490fe3(0x115),'sizeKey':_0x490fe3(0x113),'page':mockPageFilteredByBoxId(0x31),'maxExportLimit':0x1388,'totalHint':0x17});expect(_0x332bdc['length'])['toBe'](0x17),expect(_0x332bdc[_0x490fe3(0x117)](_0x201019=>_0x201019[_0x490fe3(0x122)]===0x31))[_0x490fe3(0x12a)](!![]),expect(_0x332bdc[0x0]?.['id'])[_0x490fe3(0x12a)](0x1),expect(_0x332bdc[0x16]?.['id'])['toBe'](0x17);}),test(_0x355b4e(0x11a),async()=>{const _0x2db662=_0x355b4e,_0x4b7bc0=[],_0x3f452f=async _0xfba661=>{const _0x5c03da=_0x1681;return _0x4b7bc0[_0x5c03da(0x11f)]({..._0xfba661}),mockPageFilteredByBoxId(0x31)(_0xfba661);};await fetchExportRowsByPage({'buildQuery':_0xa78879=>buildListQuery({'boxId':0x31},{'page':0x1,'size':0x14},_0xa78879),'pageKey':'page','sizeKey':_0x2db662(0x113),'page':_0x3f452f,'maxExportLimit':0x1388}),expect(_0x4b7bc0[_0x2db662(0x11e)])[_0x2db662(0x12a)](0x1),expect(_0x4b7bc0[0x0]?.[_0x2db662(0x122)])[_0x2db662(0x12a)](0x31),expect(_0x4b7bc0[0x0]?.[_0x2db662(0x115)])[_0x2db662(0x12a)](0x1),expect(_0x4b7bc0[0x0]?.[_0x2db662(0x113)])[_0x2db662(0x12a)](0x64),expect(_0x4b7bc0[0x0]?.['order'])[_0x2db662(0x12a)]('id'),expect(_0x4b7bc0[0x0]?.[_0x2db662(0x118)])['toBe'](_0x2db662(0x125));}),test(_0x355b4e(0x12b),async()=>{const _0x45452d=_0x355b4e,_0x26503c=await fetchExportRowsByPage({'buildQuery':_0x2c52eb=>buildListQuery({},{'page':0x1,'size':0x14},_0x2c52eb),'pageKey':_0x45452d(0x115),'sizeKey':_0x45452d(0x113),'page':mockPageFilteredByBoxId(0x31),'maxExportLimit':0x1388});expect(_0x26503c[_0x45452d(0x11e)])[_0x45452d(0x12a)](0x64),expect(String(_0x26503c[0x0]?.['id'])[_0x45452d(0x124)](_0x45452d(0x128)))['toBe'](!![]);}),test('250\x20条自动翻\x203\x20页',async()=>{const _0x138977=_0x355b4e,_0x36fa13=async _0x2c837b=>{const _0x5640dc=_0x1681,_0x2d1253=Number(_0x2c837b[_0x5640dc(0x115)]??0x1),_0xfc4e1c=Number(_0x2c837b[_0x5640dc(0x113)]??0x14),_0x211019=0xfa,_0x32080d=(_0x2d1253-0x1)*_0xfc4e1c,_0x76a80e=Math['min'](_0xfc4e1c,Math[_0x5640dc(0x11d)](0x0,_0x211019-_0x32080d));return{'list':Array[_0x5640dc(0x129)]({'length':_0x76a80e},(_0x2fc8d5,_0xed1bb2)=>({'id':_0x32080d+_0xed1bb2+0x1})),'pagination':{'total':_0x211019}};},_0x3fb7ea=await fetchExportRowsByPage({'buildQuery':_0x3f44dc=>buildListQuery({'boxId':0x1},{'page':0x1,'size':0x14},_0x3f44dc),'pageKey':'page','sizeKey':_0x138977(0x113),'page':_0x36fa13,'maxExportLimit':0x1388,'totalHint':0xfa});expect(_0x3fb7ea[_0x138977(0x11e)])[_0x138977(0x12a)](0xfa);});});
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5dad(_0x3730a8,_0x484b12){_0x3730a8=_0x3730a8-0x109;const _0x115706=_0x1157();let _0x5dade=_0x115706[_0x3730a8];if(_0x5dad['AqUrXA']===undefined){var _0x5487cb=function(_0x5941ce){const _0x73d30f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4bb4a='',_0x380746='';for(let _0x889b1a=0x0,_0x2c6e62,_0x565e66,_0x1e1836=0x0;_0x565e66=_0x5941ce['charAt'](_0x1e1836++);~_0x565e66&&(_0x2c6e62=_0x889b1a%0x4?_0x2c6e62*0x40+_0x565e66:_0x565e66,_0x889b1a++%0x4)?_0x4bb4a+=String['fromCharCode'](0xff&_0x2c6e62>>(-0x2*_0x889b1a&0x6)):0x0){_0x565e66=_0x73d30f['indexOf'](_0x565e66);}for(let _0xdd520a=0x0,_0x2c1b7e=_0x4bb4a['length'];_0xdd520a<_0x2c1b7e;_0xdd520a++){_0x380746+='%'+('00'+_0x4bb4a['charCodeAt'](_0xdd520a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x380746);};_0x5dad['AtpycV']=_0x5487cb,_0x5dad['nbxILT']={},_0x5dad['AqUrXA']=!![];}const _0x587473=_0x115706[0x0],_0xa6b8b9=_0x3730a8+_0x587473,_0x59ffb0=_0x5dad['nbxILT'][_0xa6b8b9];return!_0x59ffb0?(_0x5dade=_0x5dad['AtpycV'](_0x5dade),_0x5dad['nbxILT'][_0xa6b8b9]=_0x5dade):_0x5dade=_0x59ffb0,_0x5dade;}const _0x37c809=_0x5dad;(function(_0x570b1e,_0x3cd607){const _0x5c2b93=_0x5dad,_0x52f83f=_0x570b1e();while(!![]){try{const _0x2f3d56=parseInt(_0x5c2b93(0x110))/0x1+-parseInt(_0x5c2b93(0x10d))/0x2+-parseInt(_0x5c2b93(0x111))/0x3+-parseInt(_0x5c2b93(0x109))/0x4*(-parseInt(_0x5c2b93(0x113))/0x5)+-parseInt(_0x5c2b93(0x114))/0x6*(parseInt(_0x5c2b93(0x10c))/0x7)+-parseInt(_0x5c2b93(0x10f))/0x8*(parseInt(_0x5c2b93(0x117))/0x9)+parseInt(_0x5c2b93(0x10a))/0xa;if(_0x2f3d56===_0x3cd607)break;else _0x52f83f['push'](_0x52f83f['shift']());}catch(_0xe6dcd8){_0x52f83f['push'](_0x52f83f['shift']());}}}(_0x1157,0x1912d));import{inject}from'vue';export const CRUD_KEY=Symbol(_0x37c809(0x10e));export const CRUD_OPTIONS_KEY=Symbol(_0x37c809(0x118));export const TABLE_OPTIONS_KEY=Symbol(_0x37c809(0x112));export const UPSERT_OPTIONS_KEY=Symbol(_0x37c809(0x115));function _0x1157(){const _0x4d535a=['DxnLq3j1zf9FB3b0Aw9UCW','neTJt0zKrW','mZa0ndC5mfflr2PusW','DxnLu2vHCMnOx19VChrPB25Z','nJuXvg95C1rk','mZm3mZi0EhvAD0X6','DM0Ty3j1za','mti1nMz5sgrIra','mZu5mJLNzMncD2e','ndiWotLTwgLQD1m','DxnLvgfIBgvFx29WDgLVBNm','odmZmtGWChbVu0TT','ndG5mhH4q1fuyq','DxnLvxbZzxj0x19VChrPB25Z','DM0TDgfIBguTyxbP','odm2mwPUtwfguG'];_0x1157=function(){return _0x4d535a;};return _0x1157();}export const SEARCH_OPTIONS_KEY=Symbol(_0x37c809(0x10b));export const TABLE_API_KEY=Symbol(_0x37c809(0x116));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3006ba,_0x334e62){const _0x19c8a0=_0x3827,_0x14904b=_0x3006ba();while(!![]){try{const _0x2625df=-parseInt(_0x19c8a0(0x10f))/0x1+parseInt(_0x19c8a0(0x10a))/0x2+parseInt(_0x19c8a0(0x142))/0x3*(-parseInt(_0x19c8a0(0x140))/0x4)+-parseInt(_0x19c8a0(0x11c))/0x5*(-parseInt(_0x19c8a0(0x10d))/0x6)+-parseInt(_0x19c8a0(0x12a))/0x7*(parseInt(_0x19c8a0(0x135))/0x8)+parseInt(_0x19c8a0(0x11f))/0x9+parseInt(_0x19c8a0(0x14b))/0xa;if(_0x2625df===_0x334e62)break;else _0x14904b['push'](_0x14904b['shift']());}catch(_0xf16e0f){_0x14904b['push'](_0x14904b['shift']());}}}(_0x20f6,0x60bcc));import{findEpsEntity}from'../lib/eps';import{getCrudStyle}from'./style';export function toTree(_0x1a8ba2={}){const _0x53330c=_0x3827;return{'__plugin':_0x53330c(0x12f),'tree':!![],'lazy':_0x1a8ba2['lazy']??![]};}export function setFocus(_0x5f958a){const _0x5b76e0=_0x3827;return{'__plugin':_0x5b76e0(0x138),'prop':_0x5f958a??''};}export function setRules(){const _0x8d81db=_0x3827;return{'__plugin':_0x8d81db(0x132)};}export function setAuto(_0x2f8479={'hideLabel':!![]}){const _0x2e23e0=_0x3827;return{'__plugin':_0x2e23e0(0x13c),..._0x2f8479};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0x5445b1){const _0x406bb5=_0x3827,_0x5d19e1=getCrudStyle()[_0x406bb5(0x149)],_0x4cf7ac={'border':_0x5d19e1[_0x406bb5(0x13d)],'autoHeight':_0x5d19e1[_0x406bb5(0x125)],'contextMenu':_0x5d19e1[_0x406bb5(0x116)],..._0x5445b1},_0x231aad=[..._0x5d19e1[_0x406bb5(0x122)],..._0x5445b1?.[_0x406bb5(0x122)]||[]],_0xcda94b={..._0x4cf7ac};delete _0xcda94b[_0x406bb5(0x122)];for(const _0x1544e7 of _0x231aad){if(!_0x1544e7||typeof _0x1544e7!==_0x406bb5(0x12c))continue;_0x1544e7[_0x406bb5(0x10e)]===_0x406bb5(0x12f)&&(_0xcda94b['tree']=!![],_0xcda94b[_0x406bb5(0x120)]=Boolean(_0x1544e7[_0x406bb5(0x147)]));}return _0xcda94b;}function stripAlias(_0x2c77df){const _0x4fbd92=_0x3827;return _0x2c77df[_0x4fbd92(0x12d)]('.')?_0x2c77df[_0x4fbd92(0x11a)]('.')['pop']():_0x2c77df;}function _0x3827(_0x17713f,_0x20e37d){_0x17713f=_0x17713f-0x105;const _0x20f6c3=_0x20f6();let _0x38272b=_0x20f6c3[_0x17713f];if(_0x3827['NZtBPx']===undefined){var _0x166bd1=function(_0x2849a9){const _0x45c4c0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a8ba2='',_0x5f958a='';for(let _0x2f8479=0x0,_0x5445b1,_0x5d19e1,_0x4cf7ac=0x0;_0x5d19e1=_0x2849a9['charAt'](_0x4cf7ac++);~_0x5d19e1&&(_0x5445b1=_0x2f8479%0x4?_0x5445b1*0x40+_0x5d19e1:_0x5d19e1,_0x2f8479++%0x4)?_0x1a8ba2+=String['fromCharCode'](0xff&_0x5445b1>>(-0x2*_0x2f8479&0x6)):0x0){_0x5d19e1=_0x45c4c0['indexOf'](_0x5d19e1);}for(let _0x231aad=0x0,_0xcda94b=_0x1a8ba2['length'];_0x231aad<_0xcda94b;_0x231aad++){_0x5f958a+='%'+('00'+_0x1a8ba2['charCodeAt'](_0x231aad)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f958a);};_0x3827['auMcpn']=_0x166bd1,_0x3827['tdNUBi']={},_0x3827['NZtBPx']=!![];}const _0x6457ed=_0x20f6c3[0x0],_0xe6638f=_0x17713f+_0x6457ed,_0x309eb7=_0x3827['tdNUBi'][_0xe6638f];return!_0x309eb7?(_0x38272b=_0x3827['auMcpn'](_0x38272b),_0x3827['tdNUBi'][_0xe6638f]=_0x38272b):_0x38272b=_0x309eb7,_0x38272b;}function toSource(_0x52a2d2){const _0x39206a=_0x3827,_0x1406ec=_0x52a2d2[_0x39206a(0x143)]()['replace'](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x39206a(0x143)]();return _0x1406ec[_0x39206a(0x12d)]('.')?_0x1406ec:'a.'+_0x1406ec;}function parseRef(_0x1d68f0){const _0x1064b3=_0x3827,_0x582bc3=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x52885d=_0x237c10=>{const _0xbd75e3=_0x3827,_0xc435f8=_0x237c10[_0xbd75e3(0x143)](),_0xa247b5=_0xc435f8[_0xbd75e3(0x11b)](_0x582bc3);if(_0xa247b5)return{'expr':_0xa247b5[0x1][_0xbd75e3(0x143)](),'asName':_0xa247b5[0x2]};return{'expr':_0xc435f8,'asName':undefined};};if(typeof _0x1d68f0===_0x1064b3(0x144)){const {expr:_0x1d4def,asName:_0x1408c1}=_0x52885d(_0x1d68f0),_0x5b100a=toSource(_0x1d4def),_0x194849=stripAlias(_0x5b100a);return{'column':_0x194849,'source':_0x5b100a,'param':_0x1408c1??_0x194849,'multiple':!![],'none':![]};}if(!_0x1d68f0||typeof _0x1d68f0!=='object')return null;const _0x441717=_0x1d68f0;if(!_0x441717[_0x1064b3(0x136)])return null;const {expr:_0x34c165,asName:_0x3a9533}=_0x52885d(_0x441717[_0x1064b3(0x136)]),_0x3509b0=toSource(_0x34c165),_0xa279f2=stripAlias(_0x3509b0);return{'column':_0xa279f2,'source':_0x3509b0,'param':_0x3a9533??_0xa279f2,'label':_0x441717[_0x1064b3(0x115)],'dict':_0x441717[_0x1064b3(0x127)],'multiple':_0x441717['multiple']!==![],'none':Boolean(_0x441717[_0x1064b3(0x118)])};}function _0x20f6(){const _0x1fc4ee=['zMLLBgrmAwTL','yxv0B0HLAwDODa','AgLKzuXHyMvS','zgLJDa','y29TBwvUDa','C3rHCNrZv2L0Aa','n1f0D0f3rW','BMfTzxnWywnL','B2jQzwn0','Aw5JBhvKzxm','Aw5WDxq','Dg9uCMvL','BxvSDgLWBgu','BgvUz3rO','C2v0uNvSzxm','C2vHCMnO','A2v5D29Yza','mJeZotj0tgL1u0m','y29SDw1U','zMLLBgrfCq','C2v0rM9JDxm','Bwf4','DM0Tzgf0zs1Yyw5Nzq','zMLLBgrsyw5Nzq','C2v0qxv0BW','yM9YzgvY','BwfW','DhLWzq','mJbvqKXlvNG','BwLU','ndaZntm5sxv1Bwjn','DhjPBq','C3rYAw5N','DM0TBNvTyMvYlxjHBMDL','x19Yyw5Nzv8','Bgf6Eq','AM9PBG','DgfIBgu','zMXVyxq','mtG1nZmXmg9oAw1Nrq','ChjVCa','zgf0zxjHBMDL','AxnbCNjHEq','zMLUza','AwDUB3jLrMLLBgrZ','nJGXnZC0sePWs0fp','5ywZ6zsU5A2x','AgfZ','mJeXndGZogffCuPeBq','x19WBhvNAw4','mtq0mZqYtuzqChL0','ChvZAa','CgfYyw0','CgfNzunVBhvTBNm','A2v5v29YzeXPA2vgAwvSzhm','ChjVCgvYDhLoyw1L','BgfIzwW','y29UDgv4De1LBNu','zMLLBgrbCNjHEq','BM9Uzq','CMfUz2u','C3bSAxq','Bwf0y2G','nvH0Dfjbra','CgfNzvf1zxj5t3a','C291CMnL','mZaZmduZnfrHuxDvCq','DhjLzuXHENK','5PYa5Bcp5yc8','CgX1z2LUCW','C2vSzwn0'];_0x20f6=function(){return _0x1fc4ee;};return _0x20f6();}function displayName(_0x1ebba2,_0x58c563){const _0x70391b=_0x3827;return _0x1ebba2[_0x70391b(0x115)]||_0x58c563?.[_0x70391b(0x128)]||_0x1ebba2[_0x70391b(0x136)];}function fieldKeyOf(_0x29e7d0,_0x46bff2){const _0x3d5f51=_0x3827,_0x5b0841=_0x46bff2?.['table']?.['trim'](),_0x20ef85=(_0x46bff2?.['propertyName']||_0x29e7d0['column']||'')[_0x3d5f51(0x143)]();if(!_0x5b0841||!_0x20ef85)return;return _0x5b0841+'.'+_0x20ef85;}export function buildAutoSearchItems(_0x9dc15f,_0x346dc9={}){const _0x4ec09f=_0x3827,_0x361324=new Set(_0x346dc9[_0x4ec09f(0x109)]||[]),_0x1ff23c=_0x9dc15f['search']||{};let _0x182898=_0x1ff23c[_0x4ec09f(0x137)]||[],_0x263bc4=_0x1ff23c[_0x4ec09f(0x124)]||[],_0x4f756c=_0x1ff23c[_0x4ec09f(0x117)]||[],_0x51b70d=_0x1ff23c['fieldRange']||[],_0x16c2e8=_0x1ff23c[_0x4ec09f(0x113)]||[],_0x63d8af=[];const _0x3493c7=!_0x182898[_0x4ec09f(0x131)]&&!_0x263bc4[_0x4ec09f(0x131)]&&!_0x4f756c[_0x4ec09f(0x131)]&&!_0x51b70d[_0x4ec09f(0x131)]&&!_0x16c2e8['length'],_0xe85df2=_0x9dc15f['namespace']?findEpsEntity('/'+_0x9dc15f[_0x4ec09f(0x12b)]):undefined;if(_0xe85df2){_0x63d8af=[..._0xe85df2['columns']||[],..._0xe85df2[_0x4ec09f(0x112)]||[]];if(!_0x9dc15f[_0x4ec09f(0x133)]||_0x3493c7){const _0xe06444=_0xe85df2[_0x4ec09f(0x11d)];_0xe06444&&(_0x182898=_0xe06444[_0x4ec09f(0x137)]||[],_0x263bc4=_0xe06444[_0x4ec09f(0x124)]||[],_0x4f756c=_0xe06444['fieldArray']||[],_0x51b70d=_0xe06444[_0x4ec09f(0x13b)]||[],_0x16c2e8=_0xe06444['keyWordLikeFields']||[]);}}const _0x5d49a6=(_0x14fd6a,_0x11d2eb)=>{const _0x5648bc=_0x4ec09f,_0x2f1e99=_0x14fd6a['includes']('.')?_0x14fd6a:'a.'+_0x14fd6a,_0x595c1a=_0x11d2eb??stripAlias(_0x2f1e99);return _0x63d8af[_0x5648bc(0x108)](_0x372003=>_0x372003[_0x5648bc(0x11e)]===_0x2f1e99)||_0x63d8af[_0x5648bc(0x108)](_0xb24cc4=>_0xb24cc4[_0x5648bc(0x114)]===_0x595c1a&&(!_0xb24cc4['source']||_0xb24cc4[_0x5648bc(0x11e)][_0x5648bc(0x129)]('a.')))||_0x63d8af[_0x5648bc(0x108)](_0x26be04=>_0x26be04['propertyName']===_0x595c1a);},_0x3c1802=[],_0x37d90e=new Set(),_0x531862=_0x140941=>{const _0xefe3e6=_0x4ec09f;if(!_0x140941[_0xefe3e6(0x105)]||_0x37d90e[_0xefe3e6(0x10c)](_0x140941[_0xefe3e6(0x105)]))return;_0x37d90e['add'](_0x140941[_0xefe3e6(0x105)]),_0x3c1802[_0xefe3e6(0x110)](_0x140941);};for(const _0x1991b1 of _0x263bc4){const _0x4d8c99=parseRef(_0x1991b1);if(!_0x4d8c99||_0x4d8c99[_0x4ec09f(0x118)]||_0x361324['has'](_0x4d8c99[_0x4ec09f(0x111)]))continue;const _0x3cd202=_0x5d49a6(_0x4d8c99[_0x4ec09f(0x11e)],_0x4d8c99['column']),_0x38677a=displayName(_0x4d8c99,_0x3cd202),_0x28527d=fieldKeyOf(_0x4d8c99,_0x3cd202);_0x531862({'prop':_0x4d8c99[_0x4ec09f(0x111)],'label':_0x346dc9[_0x4ec09f(0x126)]?'':_0x38677a,'nameFallback':_0x38677a,'fieldKey':_0x28527d,'phMode':_0x4ec09f(0x133),'placeholder':'搜索'+_0x38677a,'type':_0x4ec09f(0x12e)});}for(const _0x120b87 of _0x4f756c){const _0x5242d7=parseRef(_0x120b87);if(!_0x5242d7||_0x5242d7[_0x4ec09f(0x118)]||_0x361324[_0x4ec09f(0x10c)](_0x5242d7[_0x4ec09f(0x111)]))continue;const _0xf9c4d1=_0x5d49a6(_0x5242d7[_0x4ec09f(0x11e)],_0x5242d7['column']),_0x2323b8=displayName(_0x5242d7,_0xf9c4d1),_0x3ff40e=fieldKeyOf(_0x5242d7,_0xf9c4d1);_0x531862({'prop':_0x5242d7[_0x4ec09f(0x111)],'label':_0x346dc9[_0x4ec09f(0x126)]?'':_0x2323b8,'nameFallback':_0x2323b8,'fieldKey':_0x3ff40e,'phMode':_0x4ec09f(0x133),'placeholder':'搜索'+_0x2323b8,'type':_0x4ec09f(0x12e)});}for(const _0x51afd6 of _0x182898){const _0x1b9ad5=parseRef(_0x51afd6);if(!_0x1b9ad5||_0x1b9ad5[_0x4ec09f(0x118)]||_0x361324[_0x4ec09f(0x10c)](_0x1b9ad5[_0x4ec09f(0x111)]))continue;const _0x468add=_0x5d49a6(_0x1b9ad5[_0x4ec09f(0x11e)],_0x1b9ad5[_0x4ec09f(0x136)]),_0x428687=_0x1b9ad5['dict']||(typeof _0x468add?.[_0x4ec09f(0x127)]===_0x4ec09f(0x144)?_0x468add['dict']:Array[_0x4ec09f(0x107)](_0x468add?.[_0x4ec09f(0x127)])?_0x468add[_0x4ec09f(0x127)][0x0]:undefined),_0x4c7c70=displayName(_0x1b9ad5,_0x468add),_0x1e9b92=fieldKeyOf(_0x1b9ad5,_0x468add),_0x551cdb=_0x346dc9[_0x4ec09f(0x126)]?'':_0x4c7c70;_0x428687?_0x531862({'prop':_0x1b9ad5[_0x4ec09f(0x111)],'label':_0x551cdb,'nameFallback':_0x4c7c70,'fieldKey':_0x1e9b92,'phMode':_0x4ec09f(0x123),'placeholder':'选择'+_0x4c7c70,'type':_0x4ec09f(0x123),'dict':_0x428687,'multiple':_0x1b9ad5[_0x4ec09f(0x130)]}):_0x531862({'prop':_0x1b9ad5[_0x4ec09f(0x111)],'label':_0x551cdb,'nameFallback':_0x4c7c70,'fieldKey':_0x1e9b92,'phMode':_0x4ec09f(0x133),'placeholder':'搜索'+_0x4c7c70,'type':_0x4ec09f(0x12e)});}for(const _0x47b8a8 of _0x51b70d){if(!_0x47b8a8?.[_0x4ec09f(0x136)]||_0x47b8a8[_0x4ec09f(0x118)])continue;if(_0x361324[_0x4ec09f(0x10c)](_0x47b8a8['min'])||_0x361324[_0x4ec09f(0x10c)](_0x47b8a8['max']))continue;const _0x372ed7=toSource(_0x47b8a8[_0x4ec09f(0x136)]),_0xd293cc=stripAlias(_0x47b8a8[_0x4ec09f(0x136)]),_0x3b3744=_0x5d49a6(_0x372ed7,_0xd293cc),_0x1a2f93=_0x47b8a8[_0x4ec09f(0x115)]||_0x3b3744?.['comment']||_0xd293cc,_0x4c2a49=fieldKeyOf({'column':_0xd293cc},_0x3b3744),_0xf6b069=_0x346dc9['hideLabel']?'':_0x1a2f93,_0x3ce7c4=_0x47b8a8[_0x4ec09f(0x13f)]==='int'||_0x47b8a8['type']===_0x4ec09f(0x14a),_0xaafb8d=_0x3ce7c4?_0x4ec09f(0x121):'开始',_0x291d81=_0x3ce7c4?'最大值':'结束';_0x531862({'prop':_0x4ec09f(0x146)+_0x47b8a8['min']+'_'+_0x47b8a8[_0x4ec09f(0x139)],'label':_0xf6b069,'nameFallback':_0x1a2f93,'fieldKey':_0x4c2a49,'phMode':_0x4ec09f(0x119),'placeholder':_0x1a2f93||'区间','type':_0x3ce7c4?'number-range':_0x4ec09f(0x106),'range':{'min':_0x47b8a8[_0x4ec09f(0x141)],'max':_0x47b8a8[_0x4ec09f(0x139)],'rangeType':_0x47b8a8['type']},'component':{'name':_0x3ce7c4?_0x4ec09f(0x145):_0x4ec09f(0x13a),'props':_0x3ce7c4?{'mode':_0x47b8a8[_0x4ec09f(0x13f)],'startPlaceholder':''+_0x1a2f93+_0xaafb8d,'endPlaceholder':''+_0x1a2f93+_0x291d81}:{'precision':_0x47b8a8[_0x4ec09f(0x13f)],'startPlaceholder':''+_0x1a2f93+_0xaafb8d,'endPlaceholder':''+_0x1a2f93+_0x291d81}}});}if(_0x16c2e8[_0x4ec09f(0x131)]){const _0x169ca7=[],_0x5b638e=_0x16c2e8[_0x4ec09f(0x13e)](_0xa1fc9e=>{const _0x595a1f=_0x4ec09f,_0x5c5852=parseRef(_0xa1fc9e);if(!_0x5c5852)return typeof _0xa1fc9e==='string'?stripAlias(_0xa1fc9e):'';const _0x3dfded=_0x5d49a6(_0x5c5852[_0x595a1f(0x11e)],_0x5c5852[_0x595a1f(0x136)]),_0x3d7470=fieldKeyOf(_0x5c5852,_0x3dfded);if(_0x3d7470)_0x169ca7[_0x595a1f(0x110)](_0x3d7470);return displayName(_0x5c5852,_0x3dfded);})['filter'](Boolean);_0x531862({'prop':'keyWord','label':_0x346dc9[_0x4ec09f(0x126)]?'':_0x4ec09f(0x10b),'nameFallback':_0x5b638e[_0x4ec09f(0x148)]('、')||_0x4ec09f(0x10b),'phMode':_0x4ec09f(0x134),'keywordParts':_0x169ca7,'placeholder':'搜索'+(_0x5b638e[_0x4ec09f(0x148)]('、')||_0x4ec09f(0x10b)),'type':_0x4ec09f(0x12e)});}return _0x3c1802;}
|
|
1
|
+
(function(_0x1770af,_0x2b2eba){const _0x4779d0=_0x1939,_0x6d11b3=_0x1770af();while(!![]){try{const _0x41bd7f=parseInt(_0x4779d0(0x110))/0x1+-parseInt(_0x4779d0(0x100))/0x2+-parseInt(_0x4779d0(0x127))/0x3+-parseInt(_0x4779d0(0xfa))/0x4+parseInt(_0x4779d0(0x120))/0x5*(parseInt(_0x4779d0(0x11f))/0x6)+parseInt(_0x4779d0(0xee))/0x7+-parseInt(_0x4779d0(0xfd))/0x8*(-parseInt(_0x4779d0(0xfb))/0x9);if(_0x41bd7f===_0x2b2eba)break;else _0x6d11b3['push'](_0x6d11b3['shift']());}catch(_0x430f64){_0x6d11b3['push'](_0x6d11b3['shift']());}}}(_0xbfce,0x8cfb8));function _0x1939(_0x42d406,_0x32c5b2){_0x42d406=_0x42d406-0xe4;const _0xbfce11=_0xbfce();let _0x193935=_0xbfce11[_0x42d406];if(_0x1939['mWnLJe']===undefined){var _0xdc542b=function(_0x59b89c){const _0x5ab2ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1154b4='',_0x63bed0='';for(let _0x1a36aa=0x0,_0xe4ebfe,_0x4ac9df,_0x51da3a=0x0;_0x4ac9df=_0x59b89c['charAt'](_0x51da3a++);~_0x4ac9df&&(_0xe4ebfe=_0x1a36aa%0x4?_0xe4ebfe*0x40+_0x4ac9df:_0x4ac9df,_0x1a36aa++%0x4)?_0x1154b4+=String['fromCharCode'](0xff&_0xe4ebfe>>(-0x2*_0x1a36aa&0x6)):0x0){_0x4ac9df=_0x5ab2ce['indexOf'](_0x4ac9df);}for(let _0x3d3252=0x0,_0x5e0afa=_0x1154b4['length'];_0x3d3252<_0x5e0afa;_0x3d3252++){_0x63bed0+='%'+('00'+_0x1154b4['charCodeAt'](_0x3d3252)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x63bed0);};_0x1939['VRDlxs']=_0xdc542b,_0x1939['Mewcpc']={},_0x1939['mWnLJe']=!![];}const _0x4c17af=_0xbfce11[0x0],_0x435a1b=_0x42d406+_0x4c17af,_0x2562b7=_0x1939['Mewcpc'][_0x435a1b];return!_0x2562b7?(_0x193935=_0x1939['VRDlxs'](_0x193935),_0x1939['Mewcpc'][_0x435a1b]=_0x193935):_0x193935=_0x2562b7,_0x193935;}import{findEpsEntity}from'../lib/eps';import{getCrudStyle}from'./style';export function toTree(_0x1154b4={}){const _0x2cb8f9=_0x1939;return{'__plugin':_0x2cb8f9(0x103),'tree':!![],'lazy':_0x1154b4[_0x2cb8f9(0x123)]??![]};}export function setFocus(_0x63bed0){const _0x419f20=_0x1939;return{'__plugin':_0x419f20(0x101),'prop':_0x63bed0??''};}export function setRules(){const _0x2ad435=_0x1939;return{'__plugin':_0x2ad435(0xf9)};}function _0xbfce(){const _0x576494=['y29SDw1U','DhjLzuXHENK','zMLLBgrsyw5Nzq','C2vSzwn0','A2v5v29YzeXPA2vgAwvSzhm','B2jQzwn0','DhjPBq','zMLLBgrbCNjHEq','DM0Tzgf0zs1Yyw5Nzq','AwDUB3jLrMLLBgrZ','C2vHCMnO','ywrK','x19WBhvNAw4','zMXVyxq','Aw5JBhvKzxm','ntuWmtK2nwrIv2nUBW','Cg9W','CgfNzunVBhvTBNm','5PYa5Bcp5yc8','5ywZ6zsU5A2x','CgX1z2LUCW','Aw5WDxq','Bwf0y2G','yxv0B0HLAwDODa','zMLLBgrmAwTL','zMLLBgrfCq','C2v0uNvSzxm','mJe5otmXmKPjs05HtG','mtq0mZiXm210tufNAW','BwLU','odbgtuXxreO','DhjLzq','AxnbCNjHEq','mJiWmdu0nLjtqKrSsa','C2v0rM9JDxm','y29TBwvUDa','Dg9uCMvL','C3rHCNrZv2L0Aa','yM9YzgvY','zgf0zxjHBMDL','C3bSAxq','AgLKzuXHyMvS','BgfIzwW','CMvWBgfJzq','AgfZ','CgfNzvf1zxj5t3a','BxvSDgLWBgu','A2v5v29Yza','y29UDgv4De1LBNu','mZK5nJq5yMPMvhHp','CgfYyw0','zMLUza','Aw50','ChvZAa','y29SDw1UCW','DhLWzq','zgLJDa','C291CMnL','BNvTyMvYlxjHBMDL','5PYa5AsN5yc8','BwfW','ChjVCa','Bwf4','DM0TBNvTyMvYlxjHBMDL','mZe4ntrJs2H0tMm','ntq1su9mC2LZ','AM9PBG','C3rYAw5N','Bgf6Eq','BgvUz3rO','BM9Uzq','CMfUz2u','mZqYmdK5meL0zKftvW','C2v0qxv0BW','ChjVCgvYDhLoyw1L'];_0xbfce=function(){return _0x576494;};return _0xbfce();}export function setAuto(_0x1a36aa={'hideLabel':!![]}){const _0x1c2c93=_0x1939;return{'__plugin':_0x1c2c93(0x128),..._0x1a36aa};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0xe4ebfe){const _0x1b20c1=_0x1939,_0x4ac9df=getCrudStyle()['table'],_0x51da3a={'border':_0x4ac9df[_0x1b20c1(0x105)],'autoHeight':_0x4ac9df[_0x1b20c1(0xf6)],'contextMenu':_0x4ac9df[_0x1b20c1(0x10f)],..._0xe4ebfe},_0x3d3252=[..._0x4ac9df[_0x1b20c1(0xf3)],..._0xe4ebfe?.[_0x1b20c1(0xf3)]||[]],_0x5e0afa={..._0x51da3a};delete _0x5e0afa[_0x1b20c1(0xf3)];for(const _0x426d94 of _0x3d3252){if(!_0x426d94||typeof _0x426d94!=='object')continue;_0x426d94[_0x1b20c1(0xeb)]===_0x1b20c1(0x103)&&(_0x5e0afa[_0x1b20c1(0xfe)]=!![],_0x5e0afa[_0x1b20c1(0x12b)]=Boolean(_0x426d94['lazy']));}return _0x5e0afa;}function stripAlias(_0x4163d7){const _0x3d5321=_0x1939;return _0x4163d7[_0x3d5321(0xed)]('.')?_0x4163d7[_0x3d5321(0x107)]('.')[_0x3d5321(0xef)]():_0x4163d7;}function toSource(_0x22c1a1){const _0x28bcda=_0x1939,_0x310396=_0x22c1a1[_0x28bcda(0xe5)]()[_0x28bcda(0x10a)](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x28bcda(0xe5)]();return _0x310396[_0x28bcda(0xed)]('.')?_0x310396:'a.'+_0x310396;}function parseRef(_0x2b0fdb){const _0x3ff96b=_0x1939,_0x22b056=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x5219f7=_0x555128=>{const _0x27ea46=_0x1939,_0x4384af=_0x555128[_0x27ea46(0xe5)](),_0x540535=_0x4384af[_0x27ea46(0xf5)](_0x22b056);if(_0x540535)return{'expr':_0x540535[0x1][_0x27ea46(0xe5)](),'asName':_0x540535[0x2]};return{'expr':_0x4384af,'asName':undefined};};if(typeof _0x2b0fdb===_0x3ff96b(0x122)){const {expr:_0x17a51a,asName:_0x3c4b34}=_0x5219f7(_0x2b0fdb),_0x2ef15a=toSource(_0x17a51a),_0x22afa6=stripAlias(_0x2ef15a);return{'column':_0x22afa6,'source':_0x2ef15a,'param':_0x3c4b34??_0x22afa6,'multiple':!![],'none':![]};}if(!_0x2b0fdb||typeof _0x2b0fdb!==_0x3ff96b(0xe4))return null;const _0x3cbada=_0x2b0fdb;if(!_0x3cbada[_0x3ff96b(0x12a)])return null;const {expr:_0x360149,asName:_0x8d537a}=_0x5219f7(_0x3cbada[_0x3ff96b(0x12a)]),_0x48b733=toSource(_0x360149),_0x514cb8=stripAlias(_0x48b733);return{'column':_0x514cb8,'source':_0x48b733,'param':_0x8d537a??_0x514cb8,'label':_0x3cbada[_0x3ff96b(0x109)],'dict':_0x3cbada['dict'],'multiple':_0x3cbada['multiple']!==![],'none':Boolean(_0x3cbada['none'])};}function displayName(_0x1b2b76,_0x2aa8dd){const _0x5a7b3e=_0x1939;return _0x1b2b76['label']||_0x2aa8dd?.[_0x5a7b3e(0x102)]||_0x1b2b76[_0x5a7b3e(0x12a)];}function fieldKeyOf(_0x4b756d,_0x284931){const _0x4d6c51=_0x1939,_0x161ff5=_0x284931?.['table']?.[_0x4d6c51(0xe5)](),_0x4ca6e0=(_0x284931?.[_0x4d6c51(0x129)]||_0x4b756d['column']||'')[_0x4d6c51(0xe5)]();if(!_0x161ff5||!_0x4ca6e0)return;return _0x161ff5+'.'+_0x4ca6e0;}export function buildAutoSearchItems(_0x26f9d7,_0x27a891={}){const _0x1346f7=_0x1939,_0x1c1f38=new Set(_0x27a891[_0x1346f7(0xe8)]||[]),_0x558b92=_0x26f9d7[_0x1346f7(0xe9)]||{};let _0x20fabd=_0x558b92[_0x1346f7(0xf8)]||[],_0x5d5db7=_0x558b92[_0x1346f7(0xf7)]||[],_0x35f966=_0x558b92[_0x1346f7(0xe6)]||[],_0x245f80=_0x558b92['fieldRange']||[],_0x1e7edb=_0x558b92[_0x1346f7(0x12e)]||[],_0x1c0d70=[];const _0x2158d4=!_0x20fabd[_0x1346f7(0x124)]&&!_0x5d5db7[_0x1346f7(0x124)]&&!_0x35f966['length']&&!_0x245f80[_0x1346f7(0x124)]&&!_0x1e7edb[_0x1346f7(0x124)],_0x33d1ab=_0x26f9d7['namespace']?findEpsEntity('/'+_0x26f9d7['namespace']):undefined;if(_0x33d1ab){_0x1c0d70=[..._0x33d1ab[_0x1346f7(0x115)]||[],..._0x33d1ab[_0x1346f7(0xf0)]||[]];if(!_0x26f9d7['search']||_0x2158d4){const _0x338f31=_0x33d1ab[_0x1346f7(0x10c)];_0x338f31&&(_0x20fabd=_0x338f31[_0x1346f7(0xf8)]||[],_0x5d5db7=_0x338f31[_0x1346f7(0xf7)]||[],_0x35f966=_0x338f31[_0x1346f7(0xe6)]||[],_0x245f80=_0x338f31[_0x1346f7(0x12c)]||[],_0x1e7edb=_0x338f31[_0x1346f7(0x12e)]||[]);}}const _0x4bcf21=(_0x2de30c,_0x140a7d)=>{const _0x84e54c=_0x1346f7,_0x5d7e2a=_0x2de30c[_0x84e54c(0xed)]('.')?_0x2de30c:'a.'+_0x2de30c,_0x245f95=_0x140a7d??stripAlias(_0x5d7e2a);return _0x1c0d70[_0x84e54c(0x112)](_0x920db1=>_0x920db1[_0x84e54c(0x118)]===_0x5d7e2a)||_0x1c0d70[_0x84e54c(0x112)](_0x4242f1=>_0x4242f1[_0x84e54c(0x129)]===_0x245f95&&(!_0x4242f1[_0x84e54c(0x118)]||_0x4242f1[_0x84e54c(0x118)][_0x84e54c(0x104)]('a.')))||_0x1c0d70['find'](_0x529719=>_0x529719['propertyName']===_0x245f95);},_0x5a375e=[],_0x228949=new Set(),_0x3a2014=_0x24bf94=>{const _0x26d819=_0x1346f7;if(!_0x24bf94[_0x26d819(0x11c)]||_0x228949[_0x26d819(0x10b)](_0x24bf94['prop']))return;_0x228949[_0x26d819(0xea)](_0x24bf94[_0x26d819(0x11c)]),_0x5a375e[_0x26d819(0x114)](_0x24bf94);};for(const _0x229122 of _0x5d5db7){const _0x5b3de8=parseRef(_0x229122);if(!_0x5b3de8||_0x5b3de8[_0x1346f7(0x125)]||_0x1c1f38[_0x1346f7(0x10b)](_0x5b3de8[_0x1346f7(0x111)]))continue;const _0x58d62d=_0x4bcf21(_0x5b3de8[_0x1346f7(0x118)],_0x5b3de8['column']),_0x3563bd=displayName(_0x5b3de8,_0x58d62d),_0x47c4c8=fieldKeyOf(_0x5b3de8,_0x58d62d);_0x3a2014({'prop':_0x5b3de8[_0x1346f7(0x111)],'label':_0x27a891[_0x1346f7(0x108)]?'':_0x3563bd,'nameFallback':_0x3563bd,'fieldKey':_0x47c4c8,'phMode':_0x1346f7(0xe9),'placeholder':'搜索'+_0x3563bd,'type':_0x1346f7(0xf4)});}for(const _0x20a119 of _0x35f966){const _0x165039=parseRef(_0x20a119);if(!_0x165039||_0x165039[_0x1346f7(0x125)]||_0x1c1f38[_0x1346f7(0x10b)](_0x165039[_0x1346f7(0x111)]))continue;const _0x56fe2d=_0x4bcf21(_0x165039[_0x1346f7(0x118)],_0x165039[_0x1346f7(0x12a)]),_0x4579b2=displayName(_0x165039,_0x56fe2d),_0x513431=fieldKeyOf(_0x165039,_0x56fe2d);_0x3a2014({'prop':_0x165039[_0x1346f7(0x111)],'label':_0x27a891[_0x1346f7(0x108)]?'':_0x4579b2,'nameFallback':_0x4579b2,'fieldKey':_0x513431,'phMode':_0x1346f7(0xe9),'placeholder':'搜索'+_0x4579b2,'type':_0x1346f7(0xf4)});}for(const _0xa15462 of _0x20fabd){const _0xf84c99=parseRef(_0xa15462);if(!_0xf84c99||_0xf84c99['none']||_0x1c1f38['has'](_0xf84c99['param']))continue;const _0x29c122=_0x4bcf21(_0xf84c99[_0x1346f7(0x118)],_0xf84c99[_0x1346f7(0x12a)]),_0x559174=_0xf84c99[_0x1346f7(0x117)]||(typeof _0x29c122?.[_0x1346f7(0x117)]===_0x1346f7(0x122)?_0x29c122[_0x1346f7(0x117)]:Array[_0x1346f7(0xff)](_0x29c122?.['dict'])?_0x29c122[_0x1346f7(0x117)][0x0]:undefined),_0x434a4d=displayName(_0xf84c99,_0x29c122),_0x159dfc=fieldKeyOf(_0xf84c99,_0x29c122),_0x59cf73=_0x27a891[_0x1346f7(0x108)]?'':_0x434a4d;_0x559174?_0x3a2014({'prop':_0xf84c99[_0x1346f7(0x111)],'label':_0x59cf73,'nameFallback':_0x434a4d,'fieldKey':_0x159dfc,'phMode':_0x1346f7(0x12d),'placeholder':'选择'+_0x434a4d,'type':_0x1346f7(0x12d),'dict':_0x559174,'multiple':_0xf84c99[_0x1346f7(0x10d)]}):_0x3a2014({'prop':_0xf84c99[_0x1346f7(0x111)],'label':_0x59cf73,'nameFallback':_0x434a4d,'fieldKey':_0x159dfc,'phMode':_0x1346f7(0xe9),'placeholder':'搜索'+_0x434a4d,'type':_0x1346f7(0xf4)});}for(const _0x2994be of _0x245f80){if(!_0x2994be?.[_0x1346f7(0x12a)]||_0x2994be['none'])continue;if(_0x1c1f38[_0x1346f7(0x10b)](_0x2994be[_0x1346f7(0xfc)])||_0x1c1f38[_0x1346f7(0x10b)](_0x2994be[_0x1346f7(0x11d)]))continue;const _0x59880c=toSource(_0x2994be['column']),_0x58d031=stripAlias(_0x2994be[_0x1346f7(0x12a)]),_0x198801=_0x4bcf21(_0x59880c,_0x58d031),_0x489f88=_0x2994be[_0x1346f7(0x109)]||_0x198801?.[_0x1346f7(0x102)]||_0x58d031,_0x49fe3a=fieldKeyOf({'column':_0x58d031},_0x198801),_0x54bd0d=_0x27a891[_0x1346f7(0x108)]?'':_0x489f88,_0x370366=_0x2994be[_0x1346f7(0x116)]===_0x1346f7(0x113)||_0x2994be[_0x1346f7(0x116)]===_0x1346f7(0xec),_0x376d88=_0x370366?_0x1346f7(0xf1):'开始',_0x362042=_0x370366?_0x1346f7(0x11a):'结束';_0x3a2014({'prop':'__range_'+_0x2994be[_0x1346f7(0xfc)]+'_'+_0x2994be[_0x1346f7(0x11d)],'label':_0x54bd0d,'nameFallback':_0x489f88,'fieldKey':_0x49fe3a,'phMode':_0x1346f7(0x126),'placeholder':_0x489f88||'区间','type':_0x370366?_0x1346f7(0x119):_0x1346f7(0x106),'range':{'min':_0x2994be['min'],'max':_0x2994be[_0x1346f7(0x11d)],'rangeType':_0x2994be[_0x1346f7(0x116)]},'component':{'name':_0x370366?_0x1346f7(0x11e):_0x1346f7(0xe7),'props':_0x370366?{'mode':_0x2994be['type'],'startPlaceholder':''+_0x489f88+_0x376d88,'endPlaceholder':''+_0x489f88+_0x362042}:{'precision':_0x2994be[_0x1346f7(0x116)],'startPlaceholder':''+_0x489f88+_0x376d88,'endPlaceholder':''+_0x489f88+_0x362042}}});}if(_0x1e7edb[_0x1346f7(0x124)]){const _0x1d5030=[],_0x18e16f=_0x1e7edb[_0x1346f7(0x11b)](_0x1eacd8=>{const _0x1d332f=_0x1346f7,_0x2684be=parseRef(_0x1eacd8);if(!_0x2684be)return typeof _0x1eacd8===_0x1d332f(0x122)?stripAlias(_0x1eacd8):'';const _0x584c68=_0x4bcf21(_0x2684be['source'],_0x2684be[_0x1d332f(0x12a)]),_0x464d98=fieldKeyOf(_0x2684be,_0x584c68);if(_0x464d98)_0x1d5030['push'](_0x464d98);return displayName(_0x2684be,_0x584c68);})['filter'](Boolean);_0x3a2014({'prop':_0x1346f7(0x10e),'label':_0x27a891[_0x1346f7(0x108)]?'':'关键字','nameFallback':_0x18e16f['join']('、')||'关键字','phMode':'keyword','keywordParts':_0x1d5030,'placeholder':'搜索'+(_0x18e16f[_0x1346f7(0x121)]('、')||_0x1346f7(0xf2)),'type':_0x1346f7(0xf4)});}return _0x5a375e;}
|
package/dist/admin/crud/span.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x7edc82=_0x3158;(function(_0x5afb2a,_0x5c5586){const _0xaf36c0=_0x3158,_0xbc8d9=_0x5afb2a();while(!![]){try{const _0x20e219=parseInt(_0xaf36c0(0xec))/0x1*(parseInt(_0xaf36c0(0xea))/0x2)+parseInt(_0xaf36c0(0xfb))/0x3*(parseInt(_0xaf36c0(0xf0))/0x4)+-parseInt(_0xaf36c0(0xf4))/0x5*(parseInt(_0xaf36c0(0xf6))/0x6)+parseInt(_0xaf36c0(0xfd))/0x7+-parseInt(_0xaf36c0(0xf1))/0x8+-parseInt(_0xaf36c0(0xed))/0x9*(parseInt(_0xaf36c0(0xf8))/0xa)+-parseInt(_0xaf36c0(0xf3))/0xb*(parseInt(_0xaf36c0(0xeb))/0xc);if(_0x20e219===_0x5c5586)break;else _0xbc8d9['push'](_0xbc8d9['shift']());}catch(_0x2f6e3d){_0xbc8d9['push'](_0xbc8d9['shift']());}}}(_0x8a93,0x7612e));function _0x8a93(){const _0x1088ed=['mZeWCur1vwz3','nZC0nZGWqxPVEen5','nJeWn1z6CvzkBa','ndGWmJiYseX4EfjT','y2HHBMDL','BwLU','nduZndm2ELrxq1PR','ntKWntG3mKr6DMjJAa','kg1HEc13Awr0AdOGnZy4ChGP','mtiXtw1TDMzo','otiXndvlsMzxwNC','ywrKrxzLBNrmAxn0zw5LCG','mtHkueXHAwy','zM9YBq','mtb4zfbdwve','C3bHBG','Bwf0y2HLCW','mtHTvw1jDuy','Dw5KzwzPBMvK','mJG5nZG5nxHxueD6uW','CMvTB3zLrxzLBNrmAxn0zw5LCG','Bwf4','Bwf0y2HnzwrPyq'];_0x8a93=function(){return _0x1088ed;};return _0x8a93();}function _0x3158(_0x5a282a,_0x2007b5){_0x5a282a=_0x5a282a-0xe9;const _0x8a935=_0x8a93();let _0x315875=_0x8a935[_0x5a282a];if(_0x3158['JRJwyf']===undefined){var _0x4f11f0=function(_0x256b3b){const _0x44e33d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x449036='',_0x48ea2e='';for(let _0x4b1179=0x0,_0x97bfbb,_0x3e9e70,_0x574511=0x0;_0x3e9e70=_0x256b3b['charAt'](_0x574511++);~_0x3e9e70&&(_0x97bfbb=_0x4b1179%0x4?_0x97bfbb*0x40+_0x3e9e70:_0x3e9e70,_0x4b1179++%0x4)?_0x449036+=String['fromCharCode'](0xff&_0x97bfbb>>(-0x2*_0x4b1179&0x6)):0x0){_0x3e9e70=_0x44e33d['indexOf'](_0x3e9e70);}for(let _0x16afc5=0x0,_0x28a807=_0x449036['length'];_0x16afc5<_0x28a807;_0x16afc5++){_0x48ea2e+='%'+('00'+_0x449036['charCodeAt'](_0x16afc5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48ea2e);};_0x3158['gzhcEd']=_0x4f11f0,_0x3158['JKMfYS']={},_0x3158['JRJwyf']=!![];}const _0x33ee69=_0x8a935[0x0],_0x4fba4c=_0x5a282a+_0x33ee69,_0x39c625=_0x3158['JKMfYS'][_0x4fba4c];return!_0x39c625?(_0x315875=_0x3158['gzhcEd'](_0x315875),_0x3158['JKMfYS'][_0x4fba4c]=_0x315875):_0x315875=_0x39c625,_0x315875;}import{onMounted,onUnmounted,ref}from'vue';import{getCrudStyle}from'./style';export const FORM_COLS_DESKTOP=0x18;export const FORM_COLS_MOBILE=0xc;export const FORM_SPAN_FULL=0x18;export const FORM_MQ_MOBILE=_0x7edc82(0xf2);export function getFormCols(){const _0x304354=_0x7edc82;if(typeof window!==_0x304354(0xfc)&&window['matchMedia'](FORM_MQ_MOBILE)[_0x304354(0xfa)])return FORM_COLS_MOBILE;return FORM_COLS_DESKTOP;}export function resolveFormSpan(_0x449036,_0x48ea2e=getFormCols()){const _0x4e225b=_0x7edc82,_0x4b1179=_0x449036??getCrudStyle()[_0x4e225b(0xf7)][_0x4e225b(0xf9)]??FORM_SPAN_FULL,_0x97bfbb=Math[_0x4e225b(0xef)](FORM_SPAN_FULL,Math[_0x4e225b(0xff)](0x1,_0x4b1179));if(_0x48ea2e===FORM_COLS_DESKTOP)return _0x97bfbb;return Math['max'](0x1,Math['round'](_0x97bfbb/FORM_COLS_DESKTOP*FORM_COLS_MOBILE));}export function useFormCols(){const _0x3e9e70=ref(getFormCols());let _0x574511=null;const _0x16afc5=()=>{_0x3e9e70['value']=getFormCols();};return onMounted(()=>{const _0x5e1fef=_0x3158;_0x574511=window[_0x5e1fef(0xe9)](FORM_MQ_MOBILE),_0x574511[_0x5e1fef(0xf5)](_0x5e1fef(0xee),_0x16afc5),_0x16afc5();}),onUnmounted(()=>{const _0x116fc8=_0x3158;_0x574511?.[_0x116fc8(0xfe)](_0x116fc8(0xee),_0x16afc5);}),_0x3e9e70;}
|
package/dist/admin/crud/style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5f243a=_0x368c;(function(_0x137d5a,_0x103638){const _0x150004=_0x368c,_0x2acde8=_0x137d5a();while(!![]){try{const _0x1b602b=-parseInt(_0x150004(0x160))/0x1+-parseInt(_0x150004(0x14e))/0x2*(parseInt(_0x150004(0x156))/0x3)+parseInt(_0x150004(0x14d))/0x4+-parseInt(_0x150004(0x167))/0x5+parseInt(_0x150004(0x142))/0x6*(parseInt(_0x150004(0x15c))/0x7)+parseInt(_0x150004(0x15a))/0x8+-parseInt(_0x150004(0x14f))/0x9*(-parseInt(_0x150004(0x164))/0xa);if(_0x1b602b===_0x103638)break;else _0x2acde8['push'](_0x2acde8['shift']());}catch(_0x2ce70e){_0x2acde8['push'](_0x2acde8['shift']());}}}(_0x4088,0xad68b));import{ref}from'vue';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export const DEFAULT_CRUD_STYLE={'form':{'labelPosition':'top','labelWidth':_0x5f243a(0x151),'span':0x18,'plugins':[]},'table':{'border':![],'highlightCurrentRow':!![],'autoHeight':!![],'contextMenu':[_0x5f243a(0x143),'check','edit',_0x5f243a(0x170),_0x5f243a(0x159),_0x5f243a(0x174)],'column':{'align':'left','opWidth':0xb4},'plugins':[]},'search':{'plugins':[]},'colors':[_0x5f243a(0x144),'#06b31c',_0x5f243a(0x16f),_0x5f243a(0x14a),'#6d17c3',_0x5f243a(0x14c),_0x5f243a(0x16d),'#1c109d']};let globalConfig={'dict':{...DEFAULT_CRUD_DICT,'label':{...CRUD_LABELS}},'style':structuredClone(DEFAULT_CRUD_STYLE)};export const crudLocaleRev=ref(0x0);let translateFn=null;export function setCrudTranslator(_0x45ff7f){const _0x3a8181=_0x5f243a;translateFn=_0x45ff7f,crudLocaleRev[_0x3a8181(0x15b)]++;}export function crudT(_0x594f6e,_0x15e3b2){if(translateFn){const _0x410756=translateFn(_0x594f6e,_0x15e3b2);if(_0x410756!=null&&_0x410756!==''&&_0x410756!==_0x594f6e)return _0x410756;}return _0x15e3b2??_0x594f6e;}export function crudLabel(_0x4eda02,_0xb0171f){const _0x305ac5=_0x5f243a;crudLocaleRev['value'];const _0x59ce20=_0xb0171f?.[_0x4eda02]??globalConfig[_0x305ac5(0x148)][_0x305ac5(0x157)][_0x4eda02]??CRUD_LABELS[_0x4eda02]??_0x4eda02;return crudT('crud.'+_0x4eda02,_0x59ce20);}export function crudFormat(_0xb6b272,..._0x1fac58){const _0x34905c=_0x5f243a;let _0x15f455=String(_0xb6b272??'');for(let _0xbeee3e=0x0;_0xbeee3e<_0x1fac58['length'];_0xbeee3e++){_0x15f455=_0x15f455[_0x34905c(0x15d)](new RegExp('\x5c{'+_0xbeee3e+'\x5c}','g'),String(_0x1fac58[_0xbeee3e]));}return _0x15f455;}function _0x368c(_0xa7332f,_0x533cc3){_0xa7332f=_0xa7332f-0x142;const _0x40882c=_0x4088();let _0x368c75=_0x40882c[_0xa7332f];if(_0x368c['WcCpcg']===undefined){var _0x2e5704=function(_0x227b13){const _0x156640='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45ff7f='',_0x594f6e='';for(let _0x15e3b2=0x0,_0x410756,_0x4eda02,_0xb0171f=0x0;_0x4eda02=_0x227b13['charAt'](_0xb0171f++);~_0x4eda02&&(_0x410756=_0x15e3b2%0x4?_0x410756*0x40+_0x4eda02:_0x4eda02,_0x15e3b2++%0x4)?_0x45ff7f+=String['fromCharCode'](0xff&_0x410756>>(-0x2*_0x15e3b2&0x6)):0x0){_0x4eda02=_0x156640['indexOf'](_0x4eda02);}for(let _0x59ce20=0x0,_0xb6b272=_0x45ff7f['length'];_0x59ce20<_0xb6b272;_0x59ce20++){_0x594f6e+='%'+('00'+_0x45ff7f['charCodeAt'](_0x59ce20)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x594f6e);};_0x368c['VrFTZc']=_0x2e5704,_0x368c['wjKPRh']={},_0x368c['WcCpcg']=!![];}const _0x392db3=_0x40882c[0x0],_0x76ef38=_0xa7332f+_0x392db3,_0x4dca33=_0x368c['wjKPRh'][_0x76ef38];return!_0x4dca33?(_0x368c75=_0x368c['VrFTZc'](_0x368c75),_0x368c['wjKPRh'][_0x76ef38]=_0x368c75):_0x368c75=_0x4dca33,_0x368c75;}function _0x4088(){const _0x5e4c59=['C29YDa','A2v5D29YzfbHCNrZ','C2vHCMnOtMfTzwq','B3jKzxiTzgvZyW','CgfNAw5HDgLVBG','C3bSAxq','mJq2suHzuNv0','CMvMCMvZAa','iZrfnurgrG','zM9YBq','AM9PBG','CMfUz2u','zgLJDa','C3r5Bgu','i2q1nZeYmq','DhLWzq','iZa0yZi3mW','ntiYmtG0nfHLy1jtBW','ngH3Ee1gzq','mtHdzwfRwNO','yxbP','mtaWChG','BMfTzuzHBgXIywnR','C2vSzwn0','BNvTyMvYlxjHBMDL','y29SDw1U','mtGXotKYowf4q3HzAq','BgfIzwW','C2vHCMnO','B3jKzxiTyxnJ','nJCZmJmWnfnwtu1Lva','DMfSDwu','mtq1mdmZuwP2rw1l','CMvWBgfJzq','C3rHCNq','Bwf4','otq3mtm4BxrqB0P3','BwfW','DgfIBgu','Aw50','mJa0mZa2mgLVC3PtAa','BwLU','zMLLBgrlzxK','mJy3mtKXnufbshjyAa','zMLLBgqU','BgLZDfrOzw1Lq29SB3jpChrPB25Z','CMfUz2vuExbL','CgHnB2rL','CgXHy2vOB2XKzxi','i2fHn2eYna','y29SB3jZ','i2u5m2y0za','zgvSzxrL'];_0x4088=function(){return _0x5e4c59;};return _0x4088();}export function resolveSearchPlaceholder(_0x6ad69c){const _0x4dbf2e=_0x5f243a;crudLocaleRev['value'];if(_0x6ad69c[_0x4dbf2e(0x16c)])return _0x6ad69c[_0x4dbf2e(0x16c)];const _0x43ae97=(_0x48ccf7,_0x4688b4)=>_0x48ccf7?crudT(_0x4dbf2e(0x168)+_0x48ccf7,_0x4688b4||_0x48ccf7):_0x4688b4||'';if(_0x6ad69c[_0x4dbf2e(0x16b)]==='keyword'){const _0x2f8fc4=(_0x6ad69c[_0x4dbf2e(0x172)]||[])[_0x4dbf2e(0x161)](_0x5d4cad=>_0x43ae97(_0x5d4cad,_0x5d4cad[_0x4dbf2e(0x176)]('.')['pop']()))['filter'](Boolean),_0x2ad96c=_0x2f8fc4[_0x4dbf2e(0x146)]('、')||_0x6ad69c['nameFallback']||crudLabel('keyword');return crudFormat(crudLabel(_0x4dbf2e(0x173)),_0x2ad96c);}const _0x22ff20=_0x43ae97(_0x6ad69c[_0x4dbf2e(0x166)],_0x6ad69c[_0x4dbf2e(0x152)]||_0x6ad69c['label'])||_0x6ad69c[_0x4dbf2e(0x152)]||_0x6ad69c[_0x4dbf2e(0x157)]||'';if(_0x6ad69c[_0x4dbf2e(0x16b)]===_0x4dbf2e(0x153))return crudFormat(crudLabel('selectNamed'),_0x22ff20);if(_0x6ad69c[_0x4dbf2e(0x16b)]===_0x4dbf2e(0x147))return _0x22ff20||crudLabel(_0x4dbf2e(0x147));if(_0x6ad69c['phMode']===_0x4dbf2e(0x158)||_0x6ad69c['fieldKey'])return crudFormat(crudLabel('searchNamed'),_0x22ff20);return _0x6ad69c[_0x4dbf2e(0x16c)]||_0x6ad69c['label']||'';}export function resolveRangePlaceholders(_0x58e2e7){const _0x3bb94c=_0x5f243a;crudLocaleRev[_0x3bb94c(0x15b)];const _0x339c83=(_0x58e2e7[_0x3bb94c(0x166)]?crudT(_0x3bb94c(0x168)+_0x58e2e7['fieldKey'],_0x58e2e7[_0x3bb94c(0x152)]||_0x58e2e7[_0x3bb94c(0x157)]||''):_0x58e2e7[_0x3bb94c(0x152)]||_0x58e2e7[_0x3bb94c(0x157)]||'')||'',_0x53dd03=_0x58e2e7[_0x3bb94c(0x14b)]===_0x3bb94c(0x154)||_0x58e2e7['range']?.[_0x3bb94c(0x16a)]===_0x3bb94c(0x163)||_0x58e2e7[_0x3bb94c(0x147)]?.['rangeType']==='float',_0x55c6ba=_0x53dd03?crudLabel(_0x3bb94c(0x165)):crudLabel(_0x3bb94c(0x15e)),_0x2345b4=_0x53dd03?crudLabel(_0x3bb94c(0x15f)):crudLabel('end');return{'startPlaceholder':''+_0x339c83+_0x55c6ba,'endPlaceholder':''+_0x339c83+_0x2345b4};}export function setCrudConfig(_0x545d14){const _0x18a6ac=_0x5f243a;if(!_0x545d14)return globalConfig;return globalConfig={'dict':{...globalConfig[_0x18a6ac(0x148)],..._0x545d14[_0x18a6ac(0x148)],'api':{...globalConfig[_0x18a6ac(0x148)]['api'],..._0x545d14[_0x18a6ac(0x148)]?.[_0x18a6ac(0x150)]},'pagination':{...globalConfig[_0x18a6ac(0x148)]['pagination'],..._0x545d14['dict']?.[_0x18a6ac(0x175)]},'search':{...globalConfig[_0x18a6ac(0x148)][_0x18a6ac(0x158)],..._0x545d14[_0x18a6ac(0x148)]?.[_0x18a6ac(0x158)]},'sort':{...globalConfig['dict'][_0x18a6ac(0x171)],..._0x545d14['dict']?.[_0x18a6ac(0x171)]},'label':{...globalConfig[_0x18a6ac(0x148)][_0x18a6ac(0x157)],..._0x545d14['dict']?.['label']}},'style':{...globalConfig[_0x18a6ac(0x149)],..._0x545d14[_0x18a6ac(0x149)],'form':{...globalConfig[_0x18a6ac(0x149)][_0x18a6ac(0x145)],..._0x545d14[_0x18a6ac(0x149)]?.[_0x18a6ac(0x145)]},'table':{...globalConfig[_0x18a6ac(0x149)][_0x18a6ac(0x162)],..._0x545d14[_0x18a6ac(0x149)]?.[_0x18a6ac(0x162)],'column':{...globalConfig[_0x18a6ac(0x149)][_0x18a6ac(0x162)][_0x18a6ac(0x155)],..._0x545d14['style']?.[_0x18a6ac(0x162)]?.[_0x18a6ac(0x155)]}},'search':{...globalConfig['style']['search'],..._0x545d14[_0x18a6ac(0x149)]?.[_0x18a6ac(0x158)]},'colors':_0x545d14[_0x18a6ac(0x149)]?.[_0x18a6ac(0x16e)]||globalConfig[_0x18a6ac(0x149)]['colors']},'listThemeColorOptions':_0x545d14['listThemeColorOptions']??globalConfig[_0x18a6ac(0x169)]},globalConfig;}export function getCrudConfig(){return globalConfig;}export function getCrudStyle(){return globalConfig['style'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4fd2(){const _0x3f30cf=['BgvUz3rO','5lIn6io95lI656M6','BwvZC2fNzq','CNvSzxm','mJm5qu9mD2ve','zNvUy3rPB24','BwfW','Bwf4','5QcH6AQm5AsX6lsL','AxnbCNjHEq','BgfIzwW','ogfWvuPMDa','mtKWndCWmtb0qMz3z3u','odm2mgDlzgjuqq','nteZmdCYCfPVBvzi','B2jQzwn0','nwvhEevHCW','mZqZmdq2mMz2B1rTrq','ntq2nZa4A2DYtenU','CMvXDwLYzwq','5Qc85BYp5lIn5Q2J56gU','mZy5nti0sKfVwxj6','BwLU','ChjVCa','DhjPBq','C3rYAw5N','5PYa5AsAia','DMfSAwrHDg9Y','6iEZ5Bcria','Cgf0DgvYBG','AgLKzgvU','ChvZAa','odaZntmXnerTALvtzG'];_0x4fd2=function(){return _0x3f30cf;};return _0x4fd2();}(function(_0x2f2b6c,_0x44651c){const _0x337ee5=_0x8c02,_0x152781=_0x2f2b6c();while(!![]){try{const _0x18ec4a=parseInt(_0x337ee5(0x95))/0x1*(parseInt(_0x337ee5(0x9e))/0x2)+-parseInt(_0x337ee5(0xa3))/0x3+parseInt(_0x337ee5(0xa6))/0x4*(-parseInt(_0x337ee5(0xa1))/0x5)+-parseInt(_0x337ee5(0x90))/0x6+-parseInt(_0x337ee5(0xa2))/0x7*(parseInt(_0x337ee5(0x9c))/0x8)+-parseInt(_0x337ee5(0x9f))/0x9+parseInt(_0x337ee5(0x9d))/0xa;if(_0x18ec4a===_0x44651c)break;else _0x152781['push'](_0x152781['shift']());}catch(_0x5f0bbf){_0x152781['push'](_0x152781['shift']());}}}(_0x4fd2,0xb559b));function isEmpty(_0x27ae39){const _0x5f035a=_0x8c02;if(_0x27ae39==null||_0x27ae39==='')return!![];if(typeof _0x27ae39===_0x5f035a(0xaa)&&_0x27ae39[_0x5f035a(0xa9)]()==='')return!![];if(Array[_0x5f035a(0x9a)](_0x27ae39)&&_0x27ae39[_0x5f035a(0x91)]===0x0)return!![];return![];}function _0x8c02(_0x2c028d,_0x2c5180){_0x2c028d=_0x2c028d-0x90;const _0x4fd256=_0x4fd2();let _0x8c026f=_0x4fd256[_0x2c028d];if(_0x8c02['nWNKsD']===undefined){var _0x4338d7=function(_0x20e1a8){const _0x5e9144='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27ae39='',_0x3ea431='';for(let _0x58bca8=0x0,_0x56689b,_0x4a1c50,_0x323f19=0x0;_0x4a1c50=_0x20e1a8['charAt'](_0x323f19++);~_0x4a1c50&&(_0x56689b=_0x58bca8%0x4?_0x56689b*0x40+_0x4a1c50:_0x4a1c50,_0x58bca8++%0x4)?_0x27ae39+=String['fromCharCode'](0xff&_0x56689b>>(-0x2*_0x58bca8&0x6)):0x0){_0x4a1c50=_0x5e9144['indexOf'](_0x4a1c50);}for(let _0x324a8c=0x0,_0x4fbb85=_0x27ae39['length'];_0x324a8c<_0x4fbb85;_0x324a8c++){_0x3ea431+='%'+('00'+_0x27ae39['charCodeAt'](_0x324a8c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ea431);};_0x8c02['SHncnS']=_0x4338d7,_0x8c02['lIKwdU']={},_0x8c02['nWNKsD']=!![];}const _0x2f22ae=_0x4fd256[0x0],_0x4dd778=_0x2c028d+_0x2f22ae,_0x4fde3e=_0x8c02['lIKwdU'][_0x4dd778];return!_0x4fde3e?(_0x8c026f=_0x8c02['SHncnS'](_0x8c026f),_0x8c02['lIKwdU'][_0x4dd778]=_0x8c026f):_0x8c026f=_0x4fde3e,_0x8c026f;}function normalizeRules(_0x3ea431){const _0x57c3bf=_0x8c02,_0x58bca8=[];_0x3ea431['required']&&_0x58bca8[_0x57c3bf(0xb0)]({'required':!![],'message':_0x3ea431[_0x57c3bf(0x9b)]+'不能为空'});const _0x56689b=_0x3ea431[_0x57c3bf(0x94)];if(!_0x56689b)return _0x58bca8;if(Array['isArray'](_0x56689b))for(const _0x4a1c50 of _0x56689b){if(_0x4a1c50&&typeof _0x4a1c50===_0x57c3bf(0xa0))_0x58bca8[_0x57c3bf(0xb0)](_0x4a1c50);}else typeof _0x56689b===_0x57c3bf(0xa0)&&_0x58bca8[_0x57c3bf(0xb0)](_0x56689b);return _0x58bca8;}function isItemHidden(_0x323f19,_0x324a8c){const _0x3a931f=_0x8c02;if(typeof _0x323f19[_0x3a931f(0xaf)]===_0x3a931f(0x96))return _0x323f19[_0x3a931f(0xaf)](_0x324a8c);return Boolean(_0x323f19[_0x3a931f(0xaf)]);}async function validateItem(_0x4fbb85,_0x3209ce){const _0x3e4d07=_0x8c02,_0x32738e=_0x3209ce[_0x4fbb85[_0x3e4d07(0xa8)]];for(const _0x92b5a0 of normalizeRules(_0x4fbb85)){if(_0x92b5a0[_0x3e4d07(0xa4)]&&isEmpty(_0x32738e))return _0x92b5a0[_0x3e4d07(0x93)]||_0x4fbb85[_0x3e4d07(0x9b)]+_0x3e4d07(0x92);if(isEmpty(_0x32738e))continue;const _0x508cb6=String(_0x32738e);if(_0x92b5a0['min']!=null&&_0x508cb6[_0x3e4d07(0x91)]<_0x92b5a0[_0x3e4d07(0xa7)])return _0x92b5a0[_0x3e4d07(0x93)]||_0x4fbb85[_0x3e4d07(0x9b)]+_0x3e4d07(0xad)+_0x92b5a0['min']+'\x20个字符';if(_0x92b5a0[_0x3e4d07(0x98)]!=null&&_0x508cb6[_0x3e4d07(0x91)]>_0x92b5a0[_0x3e4d07(0x98)])return _0x92b5a0[_0x3e4d07(0x93)]||_0x4fbb85['label']+_0x3e4d07(0xab)+_0x92b5a0[_0x3e4d07(0x98)]+'\x20个字符';if(_0x92b5a0[_0x3e4d07(0xae)]&&!_0x92b5a0[_0x3e4d07(0xae)]['test'](_0x508cb6))return _0x92b5a0[_0x3e4d07(0x93)]||_0x4fbb85['label']+_0x3e4d07(0xa5);if(_0x92b5a0[_0x3e4d07(0xac)]){const _0x4c948c=await _0x92b5a0['validator'](_0x32738e,_0x3209ce);if(_0x4c948c!==!![])return _0x4c948c||_0x4fbb85[_0x3e4d07(0x9b)]+_0x3e4d07(0x99);}}return null;}export async function validateFormFields(_0x137753,_0x5220a6){const _0x441d12={};for(const _0x38b9eb of _0x137753){if(isItemHidden(_0x38b9eb,_0x5220a6))continue;const _0x901de3=await validateItem(_0x38b9eb,_0x5220a6);if(_0x901de3)_0x441d12[_0x38b9eb['prop']]=_0x901de3;}return _0x441d12;}export function applySetRules(_0x2fcd8c){const _0x4eb440=_0x8c02;return _0x2fcd8c[_0x4eb440(0x97)](_0x2a7598=>{const _0x1fb308=_0x4eb440;if(!_0x2a7598['required']||_0x2a7598[_0x1fb308(0x94)])return _0x2a7598;return{..._0x2a7598,'rules':[{'required':!![],'message':_0x2a7598['label']+'不能为空'}]};});}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
TABLE_API_KEY,
|
|
25
25
|
type TableApi,
|
|
26
26
|
} from './key'
|
|
27
|
-
import {
|
|
27
|
+
import { fetchExportRowsByPage } from './export-fetch'
|
|
28
28
|
import { useCrud } from './useCrud'
|
|
29
29
|
import { crudLabel } from './style'
|
|
30
30
|
import type {
|
|
@@ -85,17 +85,6 @@ function resolveFilename() {
|
|
|
85
85
|
return name || '导出'
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
function capRows(rows: Record<string, unknown>[]) {
|
|
89
|
-
if (props.maxExportLimit > 0 && rows.length > props.maxExportLimit) {
|
|
90
|
-
return rows.slice(0, props.maxExportLimit)
|
|
91
|
-
}
|
|
92
|
-
return rows
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 与表格 refresh 同源(buildListQuery → pageQueryOp),仅改 page/size 自动翻页。
|
|
97
|
-
* 不用 list:list 走 listQueryOp,常与 pageQueryOp 不一致导致筛选项丢失。
|
|
98
|
-
*/
|
|
99
88
|
async function fetchRowsByPage(): Promise<Record<string, unknown>[]> {
|
|
100
89
|
const svc = crud.service
|
|
101
90
|
if (!svc.page) {
|
|
@@ -104,35 +93,16 @@ async function fetchRowsByPage(): Promise<Record<string, unknown>[]> {
|
|
|
104
93
|
|
|
105
94
|
const pageKey = crud.dict.pagination.page
|
|
106
95
|
const sizeKey = crud.dict.pagination.size
|
|
107
|
-
const maxRows =
|
|
108
|
-
props.maxExportLimit > 0 ? props.maxExportLimit : Number.POSITIVE_INFINITY
|
|
109
|
-
|
|
110
|
-
const all: Record<string, unknown>[] = []
|
|
111
|
-
let page = 1
|
|
112
|
-
let remoteTotal = crud.pagination.value.total || 0
|
|
113
|
-
|
|
114
|
-
while (all.length < maxRows) {
|
|
115
|
-
const remain = maxRows - all.length
|
|
116
|
-
const size = Math.min(CRUD_BACKEND_PAGE_MAX, remain)
|
|
117
|
-
const body = crud.buildListQuery({
|
|
118
|
-
[pageKey]: page,
|
|
119
|
-
[sizeKey]: size,
|
|
120
|
-
})
|
|
121
|
-
const res = await svc.page(body, EXPORT_REQUEST_OPTS)
|
|
122
|
-
const list = res.list || []
|
|
123
|
-
if (res.pagination?.total != null) remoteTotal = res.pagination.total
|
|
124
|
-
|
|
125
|
-
if (!list.length) break
|
|
126
|
-
all.push(...list)
|
|
127
|
-
|
|
128
|
-
const target =
|
|
129
|
-
remoteTotal > 0 ? Math.min(remoteTotal, maxRows) : maxRows
|
|
130
|
-
if (remoteTotal > 0 && all.length >= target) break
|
|
131
|
-
if (list.length < size) break
|
|
132
|
-
page++
|
|
133
|
-
}
|
|
134
96
|
|
|
135
|
-
return
|
|
97
|
+
return fetchExportRowsByPage({
|
|
98
|
+
buildQuery: (extra) => crud.buildListQuery(extra),
|
|
99
|
+
pageKey,
|
|
100
|
+
sizeKey,
|
|
101
|
+
page: (body, opts) => svc.page!(body, opts),
|
|
102
|
+
maxExportLimit: props.maxExportLimit,
|
|
103
|
+
totalHint: crud.pagination.value.total,
|
|
104
|
+
requestOpts: EXPORT_REQUEST_OPTS,
|
|
105
|
+
})
|
|
136
106
|
}
|
|
137
107
|
|
|
138
108
|
async function fetchRows(): Promise<Record<string, unknown>[]> {
|