@wp1001/ui 2.9.13 → 3.0.1

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.
Files changed (106) hide show
  1. package/@vant-D4fmGxs6.js +1 -3891
  2. package/index.html +28 -0
  3. package/index.js +1 -8419
  4. package/lib/tinymce/zh_CN.js +1 -0
  5. package/package.json +1 -1
  6. package/packages/assets/devtools-detector.js +1 -2
  7. package/packages/components/xarray/index.js +1 -64
  8. package/packages/components/xautorows/index.js +1 -35
  9. package/packages/components/xbutton/mobile.js +1 -3
  10. package/packages/components/xbutton/pc.js +1 -3
  11. package/packages/components/xbuttons/mobile.js +1 -51
  12. package/packages/components/xbuttons/pc.js +1 -51
  13. package/packages/components/xchart/constants.js +1 -58
  14. package/packages/components/xchart/index.js +1 -263
  15. package/packages/components/xchart/utils.js +1 -121
  16. package/packages/components/xcheckboxs/mobile.js +1 -58
  17. package/packages/components/xcheckboxs/pc.js +1 -49
  18. package/packages/components/xcol/mobile.js +1 -10
  19. package/packages/components/xcol/pc.js +1 -10
  20. package/packages/components/xdatepicker/mobile.js +1 -71
  21. package/packages/components/xdatepicker/pc.js +1 -9
  22. package/packages/components/xdialog/mobile.js +1 -60
  23. package/packages/components/xdialog/pc.js +1 -64
  24. package/packages/components/xdict/index.js +1 -47
  25. package/packages/components/xdistrictselect/mobile.js +1 -79
  26. package/packages/components/xdistrictselect/pc.js +1 -127
  27. package/packages/components/xform/mobile.js +1 -29
  28. package/packages/components/xform/pc.js +1 -42
  29. package/packages/components/xform/utils.js +1 -95
  30. package/packages/components/xformitem/mobile.js +1 -56
  31. package/packages/components/xformitem/pc.js +1 -72
  32. package/packages/components/xicon/mobile.js +1 -35
  33. package/packages/components/xicon/pc.js +1 -35
  34. package/packages/components/xinfo/index.js +1 -100
  35. package/packages/components/xlooper/index.js +1 -7
  36. package/packages/components/xpagination/mobile.js +1 -21
  37. package/packages/components/xpagination/pc.js +1 -21
  38. package/packages/components/xpicker/index.js +1 -38
  39. package/packages/components/xradios/mobile.js +1 -40
  40. package/packages/components/xradios/pc.js +1 -53
  41. package/packages/components/xrow/mobile.js +1 -9
  42. package/packages/components/xrow/pc.js +1 -9
  43. package/packages/components/xscan/mobile.js +1 -24
  44. package/packages/components/xscan/pc.js +1 -20
  45. package/packages/components/xsearcher/index.js +1 -198
  46. package/packages/components/xselect/mobile.js +1 -86
  47. package/packages/components/xselect/pc.js +1 -114
  48. package/packages/components/xselect/util.js +1 -66
  49. package/packages/components/xselectv2/index.js +1 -91
  50. package/packages/components/xtable/mobile.js +1 -108
  51. package/packages/components/xtable/pc.js +1 -143
  52. package/packages/components/xtable/searcher.js +1 -477
  53. package/packages/components/xtable/settings.js +1 -80
  54. package/packages/components/xtable/utils.js +1 -692
  55. package/packages/components/xtabletools/mobile.js +1 -25
  56. package/packages/components/xtabletools/pc.js +1 -18
  57. package/packages/components/xtablev2/index.js +1 -53
  58. package/packages/components/xtags/mobile.js +1 -17
  59. package/packages/components/xtags/pc.js +1 -17
  60. package/packages/components/xtinymce/index.js +1 -71
  61. package/packages/components/xuploader/xfileuploader.js +1 -48
  62. package/packages/components/xuploader/ximageuploader.js +1 -53
  63. package/packages/comps.js +1 -108
  64. package/packages/controllers/BaseController.js +1 -125
  65. package/packages/controllers/CrudController.js +1 -907
  66. package/packages/controllers/TempCrudController.js +1 -32
  67. package/packages/controllers/index.js +1 -15
  68. package/packages/directives/el-table-infinite-scroll.js +1 -55
  69. package/packages/directives/index.js +1 -5
  70. package/packages/index.js +1 -81
  71. package/packages/layout/breadcrumb/index.js +1 -41
  72. package/packages/layout/header/inner.js +1 -11
  73. package/packages/layout/pc.vue +1 -1
  74. package/packages/layout/screenlock/index.js +1 -129
  75. package/packages/layout/sidebar/item.js +1 -16
  76. package/packages/layout/sidebar/menu.js +1 -72
  77. package/packages/layout/tagsview/ScrollPane.js +1 -65
  78. package/packages/layout/tagsview/index.js +1 -169
  79. package/packages/plop/actions/make-fill-admin-partials-action.js +1 -95
  80. package/packages/plop/generators/make-admin-page.js +1 -39
  81. package/packages/plop/generators/make-database-admin-pages.js +1 -84
  82. package/packages/plop/generators/make-page-generator.js +1 -52
  83. package/packages/plop/generators/make-simple-page.js +1 -20
  84. package/packages/plop/plopfile.js +1 -24
  85. package/packages/plop/utils/index.js +1 -168
  86. package/packages/plop/utils/plop-utils.js +1 -86
  87. package/packages/utils/crypt.js +1 -24
  88. package/packages/utils/decorators.js +1 -67
  89. package/packages/utils/disallowDevtools.js +1 -53
  90. package/packages/utils/effects.js +1 -173
  91. package/packages/utils/funcs.js +1 -78
  92. package/packages/utils/index.js +1 -95
  93. package/packages/utils/message.js +1 -110
  94. package/packages/utils/middlewares.js +1 -86
  95. package/packages/utils/model.js +1 -71
  96. package/packages/utils/modelUtils.js +1 -203
  97. package/packages/utils/request.js +1 -57
  98. package/packages/utils/site.js +1 -33
  99. package/packages/vite-plugins.js +1 -141
  100. package/src/App.vue +134 -0
  101. package/src/main.js +1 -0
  102. package/src/request.js +1 -0
  103. package/style.css +1 -0
  104. package/vite.config.js +1 -0
  105. package/vite.lib.config.js +1 -0
  106. package/.env +0 -6
@@ -1,78 +1 @@
1
- import { toRaw, markRaw } from 'vue'
2
-
3
- export const validateForm = async (model) => {
4
- const ok = await model.formRef?.validate().then(() => true).catch(() => false)
5
- const oks = await Promise.all(model.formItems?.filter(it => {
6
- return it.comp?.endsWith('XForm') || it.comp?.endsWith('x-form')
7
- }).map(it => validateForm(it.form)))
8
- return ok && oks.every(ok => ok)
9
- }
10
-
11
- export const formatPrecision = (number, precision) => {
12
- if (typeof number !== 'number') {
13
- const parsed = parseFloat(number) || null
14
- if (typeof parsed !== 'number') {
15
- return number
16
- }
17
- number = parsed
18
- }
19
- return number.toFixed(precision) * 1
20
- }
21
-
22
- export const formatOptions = (options, vm) => {
23
- const opts = options.__v_isRef ? options.value : toRaw(options)
24
- const { text = 'text', value = 'value' } = vm
25
- const items = opts.map(op => {
26
- if (typeof op === 'object') {
27
- return { text: op[text], value: op[value], disabled: op.disabled, raw: markRaw(op) }
28
- } else {
29
- return { text: op, value: op }
30
- }
31
- })
32
- if (!vm.sort) return items
33
- const field = typeof vm.sort === 'string' ? vm.sort : (vm.text || 'text')
34
- return items.sort((a, b) => {
35
- return a[field].localeCompare(b[field])
36
- })
37
- }
38
-
39
- export const injectVanFieldProvide = (vm) => {
40
- const provides = vm._.provides
41
- const keys = Object.getOwnPropertySymbols(provides)
42
- if (!keys.length) return
43
- vm.provide = provides[keys[0]]
44
- if (!vm.provide?.customValue) {
45
- return vm.provide = null
46
- }
47
- vm.provide.customValue.value = () => vm.modelValue
48
- }
49
-
50
- export const getUrlType = url => {
51
- const extname = url?.split('.').pop().toLowerCase()
52
- if (['png', 'jpg', 'jpeg', 'gif', 'webp'].includes(extname)) return 'image'
53
- else if (['mp4', 'webm', 'ogg', '3gpp', 'avi', 'mov'].includes(extname)) return 'video'
54
- else if (extname === 'pdf') return 'pdf'
55
- else if (extname === 'doc' || extname === 'docx') return 'docx'
56
- else if (extname === 'xls' || extname === 'xlsx') return 'xlsx'
57
- else if (extname === 'ppt' || extname === 'pptx') return 'pptx'
58
- else if (['zip', 'rar', '7z', 'tar', 'gzip'].includes(extname)) return 'zip'
59
- return 'others'
60
- }
61
-
62
- export const getFiletypeIcon = type => {
63
- if (type === 'pdf') return 'iwwa:file-pdf'
64
- if (type === 'docx') return 'file-icons:microsoft-word'
65
- if (type === 'xlsx') return 'file-icons:microsoft-excel'
66
- if (type === 'pptx') return 'file-icons:microsoft-powerpoint'
67
- if (type === 'zip') return 'formkit:zip'
68
- return 'bi:file-pdf-fill'
69
- }
70
-
71
- export default {
72
- validateForm,
73
- formatPrecision,
74
- formatOptions,
75
- injectVanFieldProvide,
76
- getUrlType,
77
- getFiletypeIcon
78
- }
1
+ (function(_0x12c948,_0x434ffa){const _0x40e462=a87_0x3d2b,_0x4d3033=_0x12c948();while(!![]){try{const _0x4b8633=-parseInt(_0x40e462(0x1f2))/0x1*(parseInt(_0x40e462(0x1d0))/0x2)+parseInt(_0x40e462(0x1c7))/0x3+parseInt(_0x40e462(0x1c9))/0x4*(parseInt(_0x40e462(0x1ea))/0x5)+parseInt(_0x40e462(0x1c4))/0x6*(parseInt(_0x40e462(0x1f0))/0x7)+parseInt(_0x40e462(0x1dd))/0x8*(parseInt(_0x40e462(0x1d2))/0x9)+parseInt(_0x40e462(0x1ce))/0xa+parseInt(_0x40e462(0x1dc))/0xb*(-parseInt(_0x40e462(0x1cf))/0xc);if(_0x4b8633===_0x434ffa)break;else _0x4d3033['push'](_0x4d3033['shift']());}catch(_0x384633){_0x4d3033['push'](_0x4d3033['shift']());}}}(a87_0x4b1d,0xdd1b3));function a87_0x3d2b(_0xe03fe0,_0x3f7ea9){const _0x4b1db2=a87_0x4b1d();return a87_0x3d2b=function(_0x3d2b3f,_0x226283){_0x3d2b3f=_0x3d2b3f-0x1be;let _0x289de1=_0x4b1db2[_0x3d2b3f];return _0x289de1;},a87_0x3d2b(_0xe03fe0,_0x3f7ea9);}import{toRaw,markRaw}from'vue';export const validateForm=async _0x499d66=>{const _0x14afd0=a87_0x3d2b,_0x573481=await _0x499d66['formRef']?.[_0x14afd0(0x1e2)]()[_0x14afd0(0x1c6)](()=>!![])[_0x14afd0(0x1c3)](()=>![]),_0x179ffe=await Promise['all'](_0x499d66[_0x14afd0(0x1c8)]?.['filter'](_0x3e827b=>{const _0xf54bea=_0x14afd0;return _0x3e827b[_0xf54bea(0x1e4)]?.[_0xf54bea(0x1d5)]('XForm')||_0x3e827b[_0xf54bea(0x1e4)]?.[_0xf54bea(0x1d5)](_0xf54bea(0x1e9));})[_0x14afd0(0x1c0)](_0x7879ee=>validateForm(_0x7879ee[_0x14afd0(0x1ef)])));return _0x573481&&_0x179ffe['every'](_0x1854a6=>_0x1854a6);};export const formatPrecision=(_0x4e355b,_0x211589)=>{const _0x25ed6c=a87_0x3d2b;if(typeof _0x4e355b!==_0x25ed6c(0x1ec)){const _0x9ce4e1=parseFloat(_0x4e355b)||null;if(typeof _0x9ce4e1!==_0x25ed6c(0x1ec))return _0x4e355b;_0x4e355b=_0x9ce4e1;}return _0x4e355b[_0x25ed6c(0x1de)](_0x211589)*0x1;};export const formatOptions=(_0x159254,_0x103e7d)=>{const _0x21bed3=a87_0x3d2b,_0x491e4a=_0x159254[_0x21bed3(0x1cc)]?_0x159254[_0x21bed3(0x1d6)]:toRaw(_0x159254),{text:text='text',value:value=_0x21bed3(0x1d6)}=_0x103e7d,_0x4ceb0f=_0x491e4a[_0x21bed3(0x1c0)](_0x11b45d=>{const _0x1eb81b=_0x21bed3;return typeof _0x11b45d===_0x1eb81b(0x1e8)?{'text':_0x11b45d[text],'value':_0x11b45d[value],'disabled':_0x11b45d['disabled'],'raw':markRaw(_0x11b45d)}:{'text':_0x11b45d,'value':_0x11b45d};});if(!_0x103e7d['sort'])return _0x4ceb0f;const _0x590a44=typeof _0x103e7d[_0x21bed3(0x1c1)]===_0x21bed3(0x1ee)?_0x103e7d[_0x21bed3(0x1c1)]:_0x103e7d[_0x21bed3(0x1eb)]||_0x21bed3(0x1eb);return _0x4ceb0f['sort']((_0x434590,_0x143d7a)=>{return _0x434590[_0x590a44]['localeCompare'](_0x143d7a[_0x590a44]);});};function a87_0x4b1d(){const _0x1c1df7=['avi','then','1763766FUTXJf','formItems','4prOvGZ','xls','doc','__v_isRef','jpg','11750760wxHUdx','21876GJqPta','10yAcvLC','jpeg','234RjGzJB','ppt','gif','endsWith','value','split','gzip','bi:file-pdf-fill','toLowerCase','pop','10043CECMKq','110008MjKcvk','toFixed','iwwa:file-pdf','mp4','docx','validate','webp','comp','getOwnPropertySymbols','pptx','formkit:zip','object','x-form','2478485RWvRBV','text','number','zip','string','form','21RhOCcE','modelValue','136499wIKPzV','png','pdf','includes','customValue','xlsx','file-icons:microsoft-excel','map','sort','provide','catch','1272648VbQWpn'];a87_0x4b1d=function(){return _0x1c1df7;};return a87_0x4b1d();}export const injectVanFieldProvide=_0x86a481=>{const _0x31963d=a87_0x3d2b,_0x4ca429=_0x86a481['_']['provides'],_0xff1080=Object[_0x31963d(0x1e5)](_0x4ca429);if(!_0xff1080['length'])return;_0x86a481[_0x31963d(0x1c2)]=_0x4ca429[_0xff1080[0x0]];if(!_0x86a481[_0x31963d(0x1c2)]?.['customValue'])return _0x86a481[_0x31963d(0x1c2)]=null;_0x86a481[_0x31963d(0x1c2)][_0x31963d(0x1f6)]['value']=()=>_0x86a481[_0x31963d(0x1f1)];};export const getUrlType=_0x11bfc8=>{const _0x17ff0e=a87_0x3d2b,_0x55726b=_0x11bfc8?.[_0x17ff0e(0x1d7)]('.')[_0x17ff0e(0x1db)]()[_0x17ff0e(0x1da)]();if([_0x17ff0e(0x1f3),_0x17ff0e(0x1cd),_0x17ff0e(0x1d1),_0x17ff0e(0x1d4),_0x17ff0e(0x1e3)][_0x17ff0e(0x1f5)](_0x55726b))return'image';else{if([_0x17ff0e(0x1e0),'webm','ogg','3gpp',_0x17ff0e(0x1c5),'mov']['includes'](_0x55726b))return'video';else{if(_0x55726b===_0x17ff0e(0x1f4))return'pdf';else{if(_0x55726b===_0x17ff0e(0x1cb)||_0x55726b==='docx')return _0x17ff0e(0x1e1);else{if(_0x55726b===_0x17ff0e(0x1ca)||_0x55726b===_0x17ff0e(0x1be))return _0x17ff0e(0x1be);else{if(_0x55726b===_0x17ff0e(0x1d3)||_0x55726b===_0x17ff0e(0x1e6))return _0x17ff0e(0x1e6);else{if([_0x17ff0e(0x1ed),'rar','7z','tar',_0x17ff0e(0x1d8)][_0x17ff0e(0x1f5)](_0x55726b))return _0x17ff0e(0x1ed);}}}}}}return'others';};export const getFiletypeIcon=_0xdfe88e=>{const _0x230b4d=a87_0x3d2b;if(_0xdfe88e==='pdf')return _0x230b4d(0x1df);if(_0xdfe88e===_0x230b4d(0x1e1))return'file-icons:microsoft-word';if(_0xdfe88e==='xlsx')return _0x230b4d(0x1bf);if(_0xdfe88e===_0x230b4d(0x1e6))return'file-icons:microsoft-powerpoint';if(_0xdfe88e===_0x230b4d(0x1ed))return _0x230b4d(0x1e7);return _0x230b4d(0x1d9);};export default{'validateForm':validateForm,'formatPrecision':formatPrecision,'formatOptions':formatOptions,'injectVanFieldProvide':injectVanFieldProvide,'getUrlType':getUrlType,'getFiletypeIcon':getFiletypeIcon};
@@ -1,95 +1 @@
1
- import crypt from './crypt.js'
2
- import decorators from './decorators.js'
3
- import effects from './effects.js'
4
-
5
- import {
6
- validateForm,
7
- formatPrecision,
8
- formatOptions,
9
- getUrlType,
10
- getFiletypeIcon
11
- } from './funcs.js'
12
-
13
- import {
14
- Message,
15
- Notify,
16
- Confirm,
17
- Prompt
18
- } from './message.js'
19
-
20
- import middlewares from './middlewares.js'
21
-
22
- import {
23
- baseForm,
24
- baseTable,
25
- baseDialog,
26
- baseModel
27
- } from './model.js'
28
-
29
- import {
30
- initFields,
31
- initModel,
32
- initTable,
33
- initDialog,
34
- initForm,
35
- initFormRules,
36
- initDefaultForm,
37
- isWhenMatched,
38
- triggers
39
- } from './modelUtils.js'
40
-
41
- export {
42
- crypt,
43
- effects,
44
- validateForm,
45
- formatPrecision,
46
- formatOptions,
47
- getUrlType,
48
- getFiletypeIcon,
49
- Message,
50
- Notify,
51
- Confirm,
52
- Prompt,
53
- baseForm,
54
- baseTable,
55
- baseDialog,
56
- baseModel,
57
- initFields,
58
- initModel,
59
- initTable,
60
- initDialog,
61
- initForm,
62
- initFormRules,
63
- initDefaultForm,
64
- isWhenMatched,
65
- triggers
66
- }
67
-
68
- export default {
69
- crypt,
70
- decorators,
71
- effects,
72
- validateForm,
73
- formatPrecision,
74
- formatOptions,
75
- getUrlType,
76
- getFiletypeIcon,
77
- Message,
78
- Notify,
79
- Confirm,
80
- Prompt,
81
- middlewares,
82
- baseForm,
83
- baseTable,
84
- baseDialog,
85
- baseModel,
86
- initFields,
87
- initModel,
88
- initTable,
89
- initDialog,
90
- initForm,
91
- initFormRules,
92
- initDefaultForm,
93
- isWhenMatched,
94
- triggers
95
- }
1
+ (function(_0x38c9f5,_0x135f2e){var _0x5673b7=a88_0x35fc,_0xbe0c5b=_0x38c9f5();while(!![]){try{var _0x4bf778=-parseInt(_0x5673b7(0x1a6))/0x1*(parseInt(_0x5673b7(0x1a8))/0x2)+parseInt(_0x5673b7(0x1af))/0x3*(parseInt(_0x5673b7(0x1ab))/0x4)+-parseInt(_0x5673b7(0x1a9))/0x5+parseInt(_0x5673b7(0x1b1))/0x6*(-parseInt(_0x5673b7(0x1a7))/0x7)+parseInt(_0x5673b7(0x1ad))/0x8*(-parseInt(_0x5673b7(0x1ae))/0x9)+parseInt(_0x5673b7(0x1a5))/0xa*(-parseInt(_0x5673b7(0x1ac))/0xb)+parseInt(_0x5673b7(0x1aa))/0xc*(parseInt(_0x5673b7(0x1b0))/0xd);if(_0x4bf778===_0x135f2e)break;else _0xbe0c5b['push'](_0xbe0c5b['shift']());}catch(_0x1bcdad){_0xbe0c5b['push'](_0xbe0c5b['shift']());}}}(a88_0x4c37,0x5341b));import a88_0x5af726 from'./crypt.js';function a88_0x35fc(_0x49d2aa,_0x32c8a8){var _0x4c37a9=a88_0x4c37();return a88_0x35fc=function(_0x35fc1f,_0x3ce5e2){_0x35fc1f=_0x35fc1f-0x1a5;var _0x28a5fd=_0x4c37a9[_0x35fc1f];return _0x28a5fd;},a88_0x35fc(_0x49d2aa,_0x32c8a8);}import a88_0x538d61 from'./decorators.js';import a88_0x1c573e from'./effects.js';import{validateForm,formatPrecision,formatOptions,getUrlType,getFiletypeIcon}from'./funcs.js';import{Message,Notify,Confirm,Prompt}from'./message.js';import a88_0x4e2cda from'./middlewares.js';import{baseForm,baseTable,baseDialog,baseModel}from'./model.js';import{initFields,initModel,initTable,initDialog,initForm,initFormRules,initDefaultForm,isWhenMatched,triggers}from'./modelUtils.js';export{a88_0x5af726 as crypt,a88_0x1c573e as effects,validateForm,formatPrecision,formatOptions,getUrlType,getFiletypeIcon,Message,Notify,Confirm,Prompt,baseForm,baseTable,baseDialog,baseModel,initFields,initModel,initTable,initDialog,initForm,initFormRules,initDefaultForm,isWhenMatched,triggers};function a88_0x4c37(){var _0x287f2f=['183wxroDk','2225899VpEIYz','243102ODIAhN','70TGQxXu','3WgDEAj','7ZDoZmX','9838JsWZPh','342715mAeqIE','12WNRMXZ','38040pqhJsv','393239BgQwZJ','290032xTsYYv','9ffNMLt'];a88_0x4c37=function(){return _0x287f2f;};return a88_0x4c37();}export default{'crypt':a88_0x5af726,'decorators':a88_0x538d61,'effects':a88_0x1c573e,'validateForm':validateForm,'formatPrecision':formatPrecision,'formatOptions':formatOptions,'getUrlType':getUrlType,'getFiletypeIcon':getFiletypeIcon,'Message':Message,'Notify':Notify,'Confirm':Confirm,'Prompt':Prompt,'middlewares':a88_0x4e2cda,'baseForm':baseForm,'baseTable':baseTable,'baseDialog':baseDialog,'baseModel':baseModel,'initFields':initFields,'initModel':initModel,'initTable':initTable,'initDialog':initDialog,'initForm':initForm,'initFormRules':initFormRules,'initDefaultForm':initDefaultForm,'isWhenMatched':isWhenMatched,'triggers':triggers};
@@ -1,110 +1 @@
1
- let { ElMessage, ElNotification, ElMessageBox } = window.ElementPlus || {}
2
- let { showToast, showNotify, showConfirmDialog } = window.vant || {}
3
-
4
- export const initMessageUtils = ({ ElementPlus, Vant }) => {
5
- if (ElementPlus) {
6
- ElMessage = ElementPlus.ElMessage
7
- ElNotification = ElementPlus.ElNotification
8
- ElMessageBox = ElementPlus.ElMessageBox
9
- }
10
- if (Vant) {
11
- showToast = Vant.showToast
12
- showNotify = Vant.showNotify
13
- showConfirmDialog = Vant.showConfirmDialog
14
- }
15
- }
16
-
17
- export const Message = options => {
18
- let opts = typeof options !== 'string' ? options : { message: options }
19
- opts = {
20
- type: 'error',
21
- duration: 3000,
22
- ...opts
23
- }
24
- const { isMobile = window.isMobile, type } = opts
25
- if (isMobile) {
26
- if (type === 'error' || type === 'warning') opts.type = 'fail'
27
- opts['z-index'] ||= 1e6
28
- showToast(opts)
29
- } else {
30
- ElMessage({
31
- showClose: true,
32
- grouping: true,
33
- ...opts
34
- })
35
- }
36
- }
37
-
38
- export const Notify = options => {
39
- let opts = typeof options !== 'string' ? options : { message: options }
40
- opts = {
41
- type: 'error',
42
- duration: 3000,
43
- ...opts
44
- }
45
- const { isMobile = window.isMobile, type } = opts
46
- if (isMobile) {
47
- if (type === 'error') opts.type = 'danger'
48
- showNotify(opts)
49
- } else {
50
- ElNotification({
51
- showClose: true,
52
- ...opts
53
- })
54
- }
55
- }
56
-
57
- export const Confirm = options => {
58
- let promise = null
59
- const { isMobile = window.isMobile } = options
60
- if (isMobile) {
61
- promise = showConfirmDialog(options)
62
- } else {
63
- promise = ElMessageBox.confirm(
64
- options.message || '',
65
- options.title || '',
66
- {
67
- draggable: true,
68
- ...options,
69
- type: options.type || 'info',
70
- confirmButtonText: options.confirmButtonText || '确定',
71
- cancelButtonText: options.cancelButtonText || '取消',
72
- }
73
- )
74
- }
75
- return promise.then(() => {
76
- return options.distinguishCancelAndClose ? 'confirm' : true
77
- }).catch(action => {
78
- return options.distinguishCancelAndClose ? action : false
79
- })
80
- }
81
-
82
- export const Prompt = options => {
83
- return ElMessageBox.prompt(options.message, options.title, {
84
- confirmButtonText: '确定',
85
- cancelButtonText: '取消',
86
- inputPattern: /[^\s]+/,
87
- inputErrorMessage: '请输入',
88
- ...options
89
- }).then(({ value }) => value).catch(() => '')
90
- }
91
-
92
- for (let type of ['success', 'warning', 'info', 'error', 'primary', 'loading', 'fail', 'html']) {
93
- Message[type] = Message[type[0]] = options => {
94
- const opts = typeof options !== 'string' ? options : { message: options }
95
- return Message({ type, ...opts })
96
- }
97
- Notify[type] = Notify[type[0]] = options => {
98
- const opts = typeof options !== 'string' ? options : { message: options }
99
- return Notify({ type, ...opts })
100
- }
101
- Confirm[type] = Confirm[type[0]] = options => Confirm({ type, ...options })
102
- }
103
-
104
- export default {
105
- initMessageUtils,
106
- Message,
107
- Notify,
108
- Confirm,
109
- Prompt
110
- }
1
+ const a89_0x457ab9=a89_0x32ba;(function(_0x14b246,_0x2fc8a1){const _0x2d700c=a89_0x32ba,_0x5ec74b=_0x14b246();while(!![]){try{const _0x15f1d7=parseInt(_0x2d700c(0x137))/0x1+-parseInt(_0x2d700c(0x12a))/0x2+-parseInt(_0x2d700c(0x140))/0x3+-parseInt(_0x2d700c(0x132))/0x4+-parseInt(_0x2d700c(0x128))/0x5*(-parseInt(_0x2d700c(0x13a))/0x6)+-parseInt(_0x2d700c(0x125))/0x7*(parseInt(_0x2d700c(0x12e))/0x8)+parseInt(_0x2d700c(0x13f))/0x9;if(_0x15f1d7===_0x2fc8a1)break;else _0x5ec74b['push'](_0x5ec74b['shift']());}catch(_0x1783b9){_0x5ec74b['push'](_0x5ec74b['shift']());}}}(a89_0x3d30,0x2ce16));let {ElMessage,ElNotification,ElMessageBox}=window[a89_0x457ab9(0x141)]||{},{showToast,showNotify,showConfirmDialog}=window[a89_0x457ab9(0x133)]||{};export const initMessageUtils=({ElementPlus:_0x4b92a1,Vant:_0x508c26})=>{const _0x481ee1=a89_0x457ab9;_0x4b92a1&&(ElMessage=_0x4b92a1['ElMessage'],ElNotification=_0x4b92a1[_0x481ee1(0x12b)],ElMessageBox=_0x4b92a1[_0x481ee1(0x139)]),_0x508c26&&(showToast=_0x508c26[_0x481ee1(0x13d)],showNotify=_0x508c26[_0x481ee1(0x142)],showConfirmDialog=_0x508c26[_0x481ee1(0x136)]);};export const Message=_0x320fe7=>{const _0x262f06=a89_0x457ab9;let _0x258613=typeof _0x320fe7!==_0x262f06(0x129)?_0x320fe7:{'message':_0x320fe7};_0x258613={'type':_0x262f06(0x134),'duration':0xbb8,..._0x258613};const {isMobile:isMobile=window[_0x262f06(0x143)],type:_0x37783d}=_0x258613;if(isMobile){if(_0x37783d===_0x262f06(0x134)||_0x37783d==='warning')_0x258613[_0x262f06(0x13c)]='fail';_0x258613[_0x262f06(0x12c)]||=0xf4240,showToast(_0x258613);}else ElMessage({'showClose':!![],'grouping':!![],..._0x258613});};function a89_0x32ba(_0x2b1329,_0x11d6f2){const _0x3d3022=a89_0x3d30();return a89_0x32ba=function(_0x32ba09,_0x2c0876){_0x32ba09=_0x32ba09-0x124;let _0x2e607e=_0x3d3022[_0x32ba09];return _0x2e607e;},a89_0x32ba(_0x2b1329,_0x11d6f2);}function a89_0x3d30(){const _0x55cf81=['721240ghAZBK','vant','error','cancelButtonText','showConfirmDialog','88545QPRZbA','confirmButtonText','ElMessageBox','1362iQqoyj','danger','type','showToast','distinguishCancelAndClose','5148954CGTIqD','599142ucACRw','ElementPlus','showNotify','isMobile','loading','confirm','success','请输入','7okWipU','info','prompt','6505fsskxV','string','527562FYuHdX','ElNotification','z-index','then','1026744ckcjAl','primary','warning','catch'];a89_0x3d30=function(){return _0x55cf81;};return a89_0x3d30();}export const Notify=_0x3bfdb3=>{const _0x15e9e3=a89_0x457ab9;let _0x2db48a=typeof _0x3bfdb3!==_0x15e9e3(0x129)?_0x3bfdb3:{'message':_0x3bfdb3};_0x2db48a={'type':_0x15e9e3(0x134),'duration':0xbb8,..._0x2db48a};const {isMobile:isMobile=window['isMobile'],type:_0x2600bc}=_0x2db48a;if(isMobile){if(_0x2600bc==='error')_0x2db48a[_0x15e9e3(0x13c)]=_0x15e9e3(0x13b);showNotify(_0x2db48a);}else ElNotification({'showClose':!![],..._0x2db48a});};export const Confirm=_0x4170ec=>{const _0x431af3=a89_0x457ab9;let _0xe5f806=null;const {isMobile:isMobile=window['isMobile']}=_0x4170ec;return isMobile?_0xe5f806=showConfirmDialog(_0x4170ec):_0xe5f806=ElMessageBox[_0x431af3(0x145)](_0x4170ec['message']||'',_0x4170ec['title']||'',{'draggable':!![],..._0x4170ec,'type':_0x4170ec['type']||_0x431af3(0x126),'confirmButtonText':_0x4170ec[_0x431af3(0x138)]||'确定','cancelButtonText':_0x4170ec[_0x431af3(0x135)]||'取消'}),_0xe5f806[_0x431af3(0x12d)](()=>{const _0x5224b2=_0x431af3;return _0x4170ec[_0x5224b2(0x13e)]?_0x5224b2(0x145):!![];})[_0x431af3(0x131)](_0x528c4b=>{const _0x1c614=_0x431af3;return _0x4170ec[_0x1c614(0x13e)]?_0x528c4b:![];});};export const Prompt=_0x27f1fb=>{const _0x542718=a89_0x457ab9;return ElMessageBox[_0x542718(0x127)](_0x27f1fb['message'],_0x27f1fb['title'],{'confirmButtonText':'确定','cancelButtonText':'取消','inputPattern':/[^\s]+/,'inputErrorMessage':_0x542718(0x124),..._0x27f1fb})[_0x542718(0x12d)](({value:_0x87c707})=>_0x87c707)[_0x542718(0x131)](()=>'');};for(let type of[a89_0x457ab9(0x146),a89_0x457ab9(0x130),'info','error',a89_0x457ab9(0x12f),a89_0x457ab9(0x144),'fail','html']){Message[type]=Message[type[0x0]]=_0x41b68b=>{const _0x104382=a89_0x457ab9,_0x17aef7=typeof _0x41b68b!==_0x104382(0x129)?_0x41b68b:{'message':_0x41b68b};return Message({'type':type,..._0x17aef7});},Notify[type]=Notify[type[0x0]]=_0x5321ee=>{const _0x3f5a27=a89_0x457ab9,_0x2f5470=typeof _0x5321ee!==_0x3f5a27(0x129)?_0x5321ee:{'message':_0x5321ee};return Notify({'type':type,..._0x2f5470});},Confirm[type]=Confirm[type[0x0]]=_0x5f4fd8=>Confirm({'type':type,..._0x5f4fd8});}export default{'initMessageUtils':initMessageUtils,'Message':Message,'Notify':Notify,'Confirm':Confirm,'Prompt':Prompt};
@@ -1,86 +1 @@
1
- import { watch, nextTick } from 'vue'
2
- import { Message } from './message.js'
3
-
4
- const { funcs } = StardustJs
5
-
6
- export const check404 = (router, store, routes) => {
7
- router.beforeEach(async (to, from) => {
8
- return !!to.matched.length || '/404'
9
- })
10
- }
11
-
12
- export const setTitle = (router, store, routes) => {
13
- router.afterEach((to, from) => {
14
- document.title = to.matched[to.matched.length - 1].meta?.title || store.app.sitename
15
- })
16
- }
17
-
18
- export const checkRolesPages = (router, store, routes) => {
19
- router.beforeEach(async (to, from) => {
20
- const path = to.matched[to.matched.length - 1].path.split('/:')[0]
21
- if (to.meta.acl === false || to.meta?.visitable) return true
22
- while (store.getters.logging) {
23
- await funcs.sleep(20)
24
- }
25
- await nextTick()
26
- if (store.acl.paths.includes(path)) return true
27
- const query = { redirectTo: to.path, ...to.query }
28
- if (store.getters.logined) {
29
- query.error = '受限于您的账号权限,暂时无法访问 ' + to.path + ' 页面,如有需要请联系我们'
30
- Message({ message: query.error, duration: 1e4 })
31
- }
32
- return { path: store.acl.paths[0] || '/404', query }
33
- })
34
- nextTick(() => {
35
- let inited = false
36
- watch(() => store.acl.menus, menus => {
37
- if (!inited) {
38
- if (!menus.length) return
39
- inited = true
40
- }
41
- const paths = store.acl.paths
42
- const update = (route, parents) => {
43
- let path
44
- if (route.redirect && !route.component) {
45
- path = route.redirect
46
- } else {
47
- path = [...parents, route].reduce((path, p) => path + '/' + p.path, '').replace('//', '/')
48
- }
49
- route.meta ||= {}
50
- if (route.meta.acl === false) {
51
- route.children?.forEach(sub => {
52
- sub.meta ||= {}
53
- sub.meta.acl ||= false
54
- update(sub, [...parents, route])
55
- })
56
- } else {
57
- route.meta._hidden = route.meta.hidden
58
- if (parent) {
59
- if (route.meta.hidden == null) {
60
- route.meta.hidden ??= parent.meta?.hidden
61
- route.meta = { ...route.meta }
62
- }
63
- if (route.meta.visitable == null) {
64
- route.meta.visitable ??= parent.meta?.visitable
65
- route.meta = { ...route.meta }
66
- }
67
- }
68
- route.children?.forEach(sub => update(sub, [...parents, route]))
69
- if (route.meta.hidden !== false && route.meta._hidden !== true) {
70
- route.meta.hidden = !paths.includes(path)
71
- if (route.children?.some(sub => sub.meta.hidden === false)) {
72
- route.meta.hidden = false
73
- }
74
- }
75
- }
76
- }
77
- routes.forEach(route => update(route, []))
78
- }, { immediate: true })
79
- })
80
- }
81
-
82
- export default {
83
- check404,
84
- setTitle,
85
- checkRolesPages
86
- }
1
+ (function(_0x218b4f,_0x5bb043){const _0x259383=a90_0x5ba6,_0x516ec5=_0x218b4f();while(!![]){try{const _0x3676b8=-parseInt(_0x259383(0x1b8))/0x1*(-parseInt(_0x259383(0x1c0))/0x2)+-parseInt(_0x259383(0x1be))/0x3*(-parseInt(_0x259383(0x1af))/0x4)+parseInt(_0x259383(0x1a9))/0x5*(parseInt(_0x259383(0x1c1))/0x6)+parseInt(_0x259383(0x1c5))/0x7+parseInt(_0x259383(0x1bd))/0x8*(parseInt(_0x259383(0x1a6))/0x9)+parseInt(_0x259383(0x1b4))/0xa*(parseInt(_0x259383(0x1ab))/0xb)+parseInt(_0x259383(0x1b2))/0xc*(-parseInt(_0x259383(0x1c7))/0xd);if(_0x3676b8===_0x5bb043)break;else _0x516ec5['push'](_0x516ec5['shift']());}catch(_0x4a63e8){_0x516ec5['push'](_0x516ec5['shift']());}}}(a90_0x3f0f,0x92f18));import{watch,nextTick}from'vue';import{Message}from'./message.js';const {funcs}=StardustJs;export const check404=(_0x48fb12,_0x2576ba,_0x2d3d68)=>{_0x48fb12['beforeEach'](async(_0x6529a4,_0x129980)=>{const _0x2eb778=a90_0x5ba6;return!!_0x6529a4['matched'][_0x2eb778(0x1b1)]||'/404';});};export const setTitle=(_0x1907ac,_0x647287,_0x58d7a7)=>{const _0x18f1f9=a90_0x5ba6;_0x1907ac[_0x18f1f9(0x1bc)]((_0x4d8b86,_0x3f6567)=>{const _0x28dbed=_0x18f1f9;document[_0x28dbed(0x1a3)]=_0x4d8b86['matched'][_0x4d8b86[_0x28dbed(0x1b6)]['length']-0x1][_0x28dbed(0x1c9)]?.['title']||_0x647287[_0x28dbed(0x1b9)][_0x28dbed(0x1a2)];});};function a90_0x3f0f(){const _0x4852bb=['getters','forEach','6821339uLfpSV','includes','5809622aYDgir','paths','meta','error','some','hidden','acl','sitename','title','component','_hidden','261kMQfUM','logging','children','1451215krwwjt','reduce','22957zMvSIx','query','menus','受限于您的账号权限,暂时无法访问\x20','2622616oBuqaF','visitable','length','72nBvCWH','split','2990qsyUDj','replace','matched','/404','88195HZVWXD','app','path','logined','afterEach','106504QVuLnX','3WHjliq','\x20页面,如有需要请联系我们','8UEwhVN','6ynDAsI','redirect'];a90_0x3f0f=function(){return _0x4852bb;};return a90_0x3f0f();}export const checkRolesPages=(_0x33ad37,_0x31d2c3,_0x104103)=>{_0x33ad37['beforeEach'](async(_0x4802fc,_0x1d70b9)=>{const _0x374de4=a90_0x5ba6,_0x5ccbd7=_0x4802fc[_0x374de4(0x1b6)][_0x4802fc[_0x374de4(0x1b6)]['length']-0x1]['path'][_0x374de4(0x1b3)]('/:')[0x0];if(_0x4802fc[_0x374de4(0x1c9)]['acl']===![]||_0x4802fc[_0x374de4(0x1c9)]?.[_0x374de4(0x1b0)])return!![];while(_0x31d2c3[_0x374de4(0x1c3)][_0x374de4(0x1a7)]){await funcs['sleep'](0x14);}await nextTick();if(_0x31d2c3[_0x374de4(0x1cd)][_0x374de4(0x1c8)][_0x374de4(0x1c6)](_0x5ccbd7))return!![];const _0x5dde7a={'redirectTo':_0x4802fc[_0x374de4(0x1ba)],..._0x4802fc[_0x374de4(0x1ac)]};return _0x31d2c3[_0x374de4(0x1c3)][_0x374de4(0x1bb)]&&(_0x5dde7a[_0x374de4(0x1ca)]=_0x374de4(0x1ae)+_0x4802fc['path']+_0x374de4(0x1bf),Message({'message':_0x5dde7a[_0x374de4(0x1ca)],'duration':0x2710})),{'path':_0x31d2c3['acl'][_0x374de4(0x1c8)][0x0]||_0x374de4(0x1b7),'query':_0x5dde7a};}),nextTick(()=>{const _0x231b43=a90_0x5ba6;let _0x1a173e=![];watch(()=>_0x31d2c3[_0x231b43(0x1cd)][_0x231b43(0x1ad)],_0x333b01=>{const _0x99f62=_0x231b43;if(!_0x1a173e){if(!_0x333b01[_0x99f62(0x1b1)])return;_0x1a173e=!![];}const _0x16e3dd=_0x31d2c3[_0x99f62(0x1cd)]['paths'],_0x374bb4=(_0x1e437c,_0x577eed)=>{const _0x68ecd5=_0x99f62;let _0x1086b6;_0x1e437c[_0x68ecd5(0x1c2)]&&!_0x1e437c[_0x68ecd5(0x1a4)]?_0x1086b6=_0x1e437c['redirect']:_0x1086b6=[..._0x577eed,_0x1e437c][_0x68ecd5(0x1aa)]((_0x585d3a,_0xe1d47d)=>_0x585d3a+'/'+_0xe1d47d['path'],'')[_0x68ecd5(0x1b5)]('//','/'),_0x1e437c[_0x68ecd5(0x1c9)]||={},_0x1e437c[_0x68ecd5(0x1c9)]['acl']===![]?_0x1e437c[_0x68ecd5(0x1a8)]?.[_0x68ecd5(0x1c4)](_0x19096f=>{const _0x71c72e=_0x68ecd5;_0x19096f[_0x71c72e(0x1c9)]||={},_0x19096f['meta'][_0x71c72e(0x1cd)]||=![],_0x374bb4(_0x19096f,[..._0x577eed,_0x1e437c]);}):(_0x1e437c[_0x68ecd5(0x1c9)][_0x68ecd5(0x1a5)]=_0x1e437c[_0x68ecd5(0x1c9)]['hidden'],parent&&(_0x1e437c[_0x68ecd5(0x1c9)][_0x68ecd5(0x1cc)]==null&&(_0x1e437c['meta'][_0x68ecd5(0x1cc)]??=parent[_0x68ecd5(0x1c9)]?.[_0x68ecd5(0x1cc)],_0x1e437c[_0x68ecd5(0x1c9)]={..._0x1e437c[_0x68ecd5(0x1c9)]}),_0x1e437c[_0x68ecd5(0x1c9)]['visitable']==null&&(_0x1e437c[_0x68ecd5(0x1c9)][_0x68ecd5(0x1b0)]??=parent[_0x68ecd5(0x1c9)]?.['visitable'],_0x1e437c[_0x68ecd5(0x1c9)]={..._0x1e437c[_0x68ecd5(0x1c9)]})),_0x1e437c[_0x68ecd5(0x1a8)]?.[_0x68ecd5(0x1c4)](_0x494ac8=>_0x374bb4(_0x494ac8,[..._0x577eed,_0x1e437c])),_0x1e437c[_0x68ecd5(0x1c9)][_0x68ecd5(0x1cc)]!==![]&&_0x1e437c[_0x68ecd5(0x1c9)]['_hidden']!==!![]&&(_0x1e437c[_0x68ecd5(0x1c9)]['hidden']=!_0x16e3dd['includes'](_0x1086b6),_0x1e437c[_0x68ecd5(0x1a8)]?.[_0x68ecd5(0x1cb)](_0x4ff463=>_0x4ff463[_0x68ecd5(0x1c9)]['hidden']===![])&&(_0x1e437c[_0x68ecd5(0x1c9)][_0x68ecd5(0x1cc)]=![])));};_0x104103[_0x99f62(0x1c4)](_0x57d3c5=>_0x374bb4(_0x57d3c5,[]));},{'immediate':!![]});});};function a90_0x5ba6(_0x2ead3b,_0x222170){const _0x3f0f7d=a90_0x3f0f();return a90_0x5ba6=function(_0x5ba662,_0xa27f13){_0x5ba662=_0x5ba662-0x1a2;let _0x58c085=_0x3f0f7d[_0x5ba662];return _0x58c085;},a90_0x5ba6(_0x2ead3b,_0x222170);}export default{'check404':check404,'setTitle':setTitle,'checkRolesPages':checkRolesPages};
@@ -1,71 +1 @@
1
-
2
- export const baseForm = () => ({
3
- loading: false,
4
- form: {},
5
- initialForm: {},
6
- formItems: [],
7
- formRef: null,
8
- formRules: {},
9
- initialFormRules: {},
10
- _isBaseForm: true,
11
- viewonly: false
12
- })
13
-
14
- export const baseTable = (query = {}) => ({
15
- loading: false,
16
- query: {
17
- page: 1,
18
- limit: 10,
19
- order: [],
20
- ...query
21
- },
22
- total: 0,
23
- moreLoading: false,
24
- finished: false,
25
- isInfinite: false,
26
- list: [],
27
- columns: [],
28
- tableRef: null,
29
- selection: [],
30
- checked: null,
31
- searchFields: [],
32
- _isBaseTable: true
33
- })
34
-
35
- export const baseDialog = () => ({
36
- ...baseForm(),
37
- visible: false,
38
- isEditing: false,
39
- editingIndex: '',
40
- editingRow: {},
41
- _isBaseDialog: true
42
- })
43
-
44
- export const baseModel = ({
45
- table = {},
46
- dialog = {},
47
- columns = [
48
- { fixed: 'left', type: 'selection' },
49
- { type: '_index' }
50
- ],
51
- query = {},
52
- form = {}
53
- } = {}) => ({
54
- table: {
55
- ...baseTable(query),
56
- ...table,
57
- columns
58
- },
59
- dialog: {
60
- ...baseDialog(),
61
- ...dialog,
62
- form
63
- }
64
- })
65
-
66
- export default {
67
- baseForm,
68
- baseTable,
69
- baseDialog,
70
- baseModel
71
- }
1
+ const a91_0x5c39bd=a91_0x5270;(function(_0x510b6a,_0x210706){const _0x47f23d=a91_0x5270,_0x39bd53=_0x510b6a();while(!![]){try{const _0x38ef57=parseInt(_0x47f23d(0x16e))/0x1*(-parseInt(_0x47f23d(0x16d))/0x2)+parseInt(_0x47f23d(0x173))/0x3+parseInt(_0x47f23d(0x170))/0x4+-parseInt(_0x47f23d(0x16f))/0x5+-parseInt(_0x47f23d(0x16c))/0x6+parseInt(_0x47f23d(0x172))/0x7+parseInt(_0x47f23d(0x16b))/0x8;if(_0x38ef57===_0x210706)break;else _0x39bd53['push'](_0x39bd53['shift']());}catch(_0x21bb8f){_0x39bd53['push'](_0x39bd53['shift']());}}}(a91_0x2e39,0x33580));function a91_0x2e39(){const _0x28954c=['891162Qjvagq','2YmURAl','351589CgQJLy','1370735IruDkv','933148VBGslY','selection','1457890eJLkMY','369807KErCbK','left','3357928cihrbX'];a91_0x2e39=function(){return _0x28954c;};return a91_0x2e39();}export const baseForm=()=>({'loading':![],'form':{},'initialForm':{},'formItems':[],'formRef':null,'formRules':{},'initialFormRules':{},'_isBaseForm':!![],'viewonly':![]});function a91_0x5270(_0x4140d0,_0x13b2d2){const _0x2e39ed=a91_0x2e39();return a91_0x5270=function(_0x527016,_0x1eefec){_0x527016=_0x527016-0x16a;let _0x4ef9f5=_0x2e39ed[_0x527016];return _0x4ef9f5;},a91_0x5270(_0x4140d0,_0x13b2d2);}export const baseTable=(_0x29c178={})=>({'loading':![],'query':{'page':0x1,'limit':0xa,'order':[],..._0x29c178},'total':0x0,'moreLoading':![],'finished':![],'isInfinite':![],'list':[],'columns':[],'tableRef':null,'selection':[],'checked':null,'searchFields':[],'_isBaseTable':!![]});export const baseDialog=()=>({...baseForm(),'visible':![],'isEditing':![],'editingIndex':'','editingRow':{},'_isBaseDialog':!![]});export const baseModel=({table:table={},dialog:dialog={},columns:columns=[{'fixed':a91_0x5c39bd(0x16a),'type':a91_0x5c39bd(0x171)},{'type':'_index'}],query:query={},form:form={}}={})=>({'table':{...baseTable(query),...table,'columns':columns},'dialog':{...baseDialog(),...dialog,'form':form}});export default{'baseForm':baseForm,'baseTable':baseTable,'baseDialog':baseDialog,'baseModel':baseModel};