@wp1001/ui 2.9.13 → 3.0.0

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 (105) 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/screenlock/index.js +1 -129
  74. package/packages/layout/sidebar/item.js +1 -16
  75. package/packages/layout/sidebar/menu.js +1 -72
  76. package/packages/layout/tagsview/ScrollPane.js +1 -65
  77. package/packages/layout/tagsview/index.js +1 -169
  78. package/packages/plop/actions/make-fill-admin-partials-action.js +1 -95
  79. package/packages/plop/generators/make-admin-page.js +1 -39
  80. package/packages/plop/generators/make-database-admin-pages.js +1 -84
  81. package/packages/plop/generators/make-page-generator.js +1 -52
  82. package/packages/plop/generators/make-simple-page.js +1 -20
  83. package/packages/plop/plopfile.js +1 -24
  84. package/packages/plop/utils/index.js +1 -168
  85. package/packages/plop/utils/plop-utils.js +1 -86
  86. package/packages/utils/crypt.js +1 -24
  87. package/packages/utils/decorators.js +1 -67
  88. package/packages/utils/disallowDevtools.js +1 -53
  89. package/packages/utils/effects.js +1 -173
  90. package/packages/utils/funcs.js +1 -78
  91. package/packages/utils/index.js +1 -95
  92. package/packages/utils/message.js +1 -110
  93. package/packages/utils/middlewares.js +1 -86
  94. package/packages/utils/model.js +1 -71
  95. package/packages/utils/modelUtils.js +1 -203
  96. package/packages/utils/request.js +1 -57
  97. package/packages/utils/site.js +1 -33
  98. package/packages/vite-plugins.js +1 -141
  99. package/src/App.vue +134 -0
  100. package/src/main.js +1 -0
  101. package/src/request.js +1 -0
  102. package/style.css +1 -0
  103. package/vite.config.js +1 -0
  104. package/vite.lib.config.js +1 -0
  105. package/.env +0 -6
@@ -1,108 +1 @@
1
- import utils from './utils.js'
2
- import Searcher from './searcher.vue'
3
-
4
- export default {
5
- name: 'MobileXTable',
6
- inheritAttrs: false,
7
- props: {
8
- ...utils.props(),
9
- platform: String,
10
- labelWidth: {
11
- type: String,
12
- default: '80px'
13
- }
14
- },
15
- emits: [
16
- ...utils.emits()
17
- ],
18
- components: { Searcher },
19
- data () {
20
- return {
21
- scope: {},
22
- selected: [],
23
- settings: {},
24
- checked: null,
25
- operatesVisible: false
26
- }
27
- },
28
- computed: {
29
- ...utils.computed,
30
- hasIndex () {
31
- return this._visibleColumns.some(col => col.type === 'index' || col.type === '_index')
32
- },
33
- hasSelection () {
34
- return this._visibleColumns.some(col => col.type === 'selection')
35
- },
36
- hasRadio () {
37
- return this._visibleColumns.some(col => col.type === 'radio')
38
- },
39
- cols () {
40
- return this._visibleColumns.filter(col => {
41
- return !['index', 'selection', 'expand', 'radio', '_index'].includes(col.type)
42
- })
43
- },
44
- _mobileColumns () {
45
- return this._visibleColumns.filter(col => !['_index', 'index', 'selection'].includes(col.type))
46
- }
47
- },
48
- watch: {
49
- selected: {
50
- handler (value) {
51
- const rows = []
52
- value.forEach((ele, index) => {
53
- if (ele) rows.push(this._data[index])
54
- })
55
- this.handleSelectionChange(rows)
56
- },
57
- deep: true
58
- }
59
- },
60
- created () {
61
- this.initSettings()
62
- },
63
- mounted () {
64
- if (this.table) {
65
- this.table.tableRef = this
66
- this.table.ref = this
67
- }
68
- this.$emit('update:tref', this)
69
- },
70
- methods: {
71
- ...utils.methods,
72
- handleClickCard (index) {
73
- if (this.hasSelection) {
74
- this.selected[index] = !this.selected[index]
75
- } else if (this.hasRadio) {
76
- this.handleCheckedChange({ target: { value: index } })
77
- }
78
- },
79
- handleShowActionSheet (row, $index) {
80
- this.scope = { row, $index }
81
- this.operatesVisible = true
82
- },
83
- handleSelectAction (action, index) {
84
- const { handler } = this._actions[index]
85
- if (typeof handler === 'function') {
86
- return handler(this.scope)
87
- } else if (typeof handler === 'string') {
88
- return this.controller[handler]?.(this.scope)
89
- }
90
- if (action.name === '编辑') {
91
- this._emit('edit', this.scope)
92
- } else if (action.name === '删除') {
93
- this._emit('delete', this.scope)
94
- }
95
- },
96
- clearSelection () {
97
- this.selected = []
98
- this.checked = null
99
- },
100
- calcScope (row, $index) {
101
- this._scopes ||= new WeakMap()
102
- if (!this._scopes.get(row)) {
103
- this._scopes.set(row, { row, $index })
104
- }
105
- return this._scopes.get(row)
106
- }
107
- }
108
- }
1
+ const a47_0x39e3ae=a47_0x58ba;(function(_0x160518,_0x1717f8){const _0x99f613=a47_0x58ba,_0x36dd72=_0x160518();while(!![]){try{const _0x187d05=parseInt(_0x99f613(0x80))/0x1*(parseInt(_0x99f613(0x6b))/0x2)+parseInt(_0x99f613(0x8a))/0x3+-parseInt(_0x99f613(0x82))/0x4*(parseInt(_0x99f613(0x89))/0x5)+parseInt(_0x99f613(0x84))/0x6+-parseInt(_0x99f613(0x76))/0x7+-parseInt(_0x99f613(0x87))/0x8*(-parseInt(_0x99f613(0x72))/0x9)+parseInt(_0x99f613(0x6f))/0xa*(parseInt(_0x99f613(0x91))/0xb);if(_0x187d05===_0x1717f8)break;else _0x36dd72['push'](_0x36dd72['shift']());}catch(_0x94d36e){_0x36dd72['push'](_0x36dd72['shift']());}}}(a47_0xb710,0x555cd));import a47_0x34fee5 from'./utils.js';import a47_0x3f65f3 from'./searcher.vue';function a47_0xb710(){const _0x36a765=['operatesVisible','2583496zXynHU','includes','3198132Xdwbbd','get','push','4448mqeOBE','80px','5hsIwbZ','1132530KgEpSP','hasRadio','props','table','type','scope','index','4015ycMYfN','delete','selection','_data','forEach','some','name','computed','expand','selected','4BatWUh','set','_actions','edit','4190DWEOlr','handleSelectionChange','emits','1251JKBYgL','_visibleColumns','checked','_index','3700522zcrQIW','hasSelection','MobileXTable','methods','controller','_scopes','$emit','function','radio','_emit','191707iWCaWp'];a47_0xb710=function(){return _0x36a765;};return a47_0xb710();}function a47_0x58ba(_0x21bea9,_0x42497c){const _0xb710a1=a47_0xb710();return a47_0x58ba=function(_0x58ba29,_0x49189d){_0x58ba29=_0x58ba29-0x69;let _0xee5259=_0xb710a1[_0x58ba29];return _0xee5259;},a47_0x58ba(_0x21bea9,_0x42497c);}export default{'name':a47_0x39e3ae(0x78),'inheritAttrs':![],'props':{...a47_0x34fee5[a47_0x39e3ae(0x8c)](),'platform':String,'labelWidth':{'type':String,'default':a47_0x39e3ae(0x88)}},'emits':[...a47_0x34fee5[a47_0x39e3ae(0x71)]()],'components':{'Searcher':a47_0x3f65f3},'data'(){return{'scope':{},'selected':[],'settings':{},'checked':null,'operatesVisible':![]};},'computed':{...a47_0x34fee5[a47_0x39e3ae(0x98)],'hasIndex'(){const _0x202da3=a47_0x39e3ae;return this['_visibleColumns'][_0x202da3(0x96)](_0x506b95=>_0x506b95[_0x202da3(0x8e)]===_0x202da3(0x90)||_0x506b95[_0x202da3(0x8e)]===_0x202da3(0x75));},'hasSelection'(){const _0x2891f4=a47_0x39e3ae;return this[_0x2891f4(0x73)]['some'](_0x4a22dc=>_0x4a22dc[_0x2891f4(0x8e)]===_0x2891f4(0x93));},'hasRadio'(){const _0x56bb60=a47_0x39e3ae;return this['_visibleColumns']['some'](_0x15513c=>_0x15513c[_0x56bb60(0x8e)]==='radio');},'cols'(){return this['_visibleColumns']['filter'](_0x243cb6=>{const _0x5682f6=a47_0x58ba;return![_0x5682f6(0x90),_0x5682f6(0x93),_0x5682f6(0x69),_0x5682f6(0x7e),_0x5682f6(0x75)][_0x5682f6(0x83)](_0x243cb6[_0x5682f6(0x8e)]);});},'_mobileColumns'(){const _0x2ad9da=a47_0x39e3ae;return this[_0x2ad9da(0x73)]['filter'](_0x30895b=>![_0x2ad9da(0x75),_0x2ad9da(0x90),_0x2ad9da(0x93)][_0x2ad9da(0x83)](_0x30895b['type']));}},'watch':{'selected':{'handler'(_0x179b4f){const _0x29e409=a47_0x39e3ae,_0x48e4db=[];_0x179b4f[_0x29e409(0x95)]((_0xd93d6c,_0x5b7f03)=>{const _0x3b5137=_0x29e409;if(_0xd93d6c)_0x48e4db[_0x3b5137(0x86)](this[_0x3b5137(0x94)][_0x5b7f03]);}),this[_0x29e409(0x70)](_0x48e4db);},'deep':!![]}},'created'(){this['initSettings']();},'mounted'(){const _0x4a6968=a47_0x39e3ae;this[_0x4a6968(0x8d)]&&(this[_0x4a6968(0x8d)]['tableRef']=this,this['table']['ref']=this),this[_0x4a6968(0x7c)]('update:tref',this);},'methods':{...a47_0x34fee5[a47_0x39e3ae(0x79)],'handleClickCard'(_0x4305f5){const _0x4f739b=a47_0x39e3ae;if(this[_0x4f739b(0x77)])this['selected'][_0x4305f5]=!this[_0x4f739b(0x6a)][_0x4305f5];else this[_0x4f739b(0x8b)]&&this['handleCheckedChange']({'target':{'value':_0x4305f5}});},'handleShowActionSheet'(_0x24a682,_0x7843b9){const _0x399e96=a47_0x39e3ae;this[_0x399e96(0x8f)]={'row':_0x24a682,'$index':_0x7843b9},this[_0x399e96(0x81)]=!![];},'handleSelectAction'(_0x2dd7e7,_0x1ca084){const _0x1167dd=a47_0x39e3ae,{handler:_0x2eb724}=this[_0x1167dd(0x6d)][_0x1ca084];if(typeof _0x2eb724===_0x1167dd(0x7d))return _0x2eb724(this[_0x1167dd(0x8f)]);else{if(typeof _0x2eb724==='string')return this[_0x1167dd(0x7a)][_0x2eb724]?.(this[_0x1167dd(0x8f)]);}if(_0x2dd7e7[_0x1167dd(0x97)]==='编辑')this[_0x1167dd(0x7f)](_0x1167dd(0x6e),this[_0x1167dd(0x8f)]);else _0x2dd7e7[_0x1167dd(0x97)]==='删除'&&this[_0x1167dd(0x7f)](_0x1167dd(0x92),this[_0x1167dd(0x8f)]);},'clearSelection'(){const _0xa53d46=a47_0x39e3ae;this[_0xa53d46(0x6a)]=[],this[_0xa53d46(0x74)]=null;},'calcScope'(_0x29fddc,_0x56fc72){const _0xba636a=a47_0x39e3ae;return this[_0xba636a(0x7b)]||=new WeakMap(),!this[_0xba636a(0x7b)][_0xba636a(0x85)](_0x29fddc)&&this[_0xba636a(0x7b)][_0xba636a(0x6c)](_0x29fddc,{'row':_0x29fddc,'$index':_0x56fc72}),this['_scopes'][_0xba636a(0x85)](_0x29fddc);}}};
@@ -1,143 +1 @@
1
- import utils from './utils.js'
2
- import { baseDialog } from '../../utils/model.js'
3
- import Searcher from './searcher.vue'
4
- import Settings from './settings.vue'
5
-
6
- const { funcs, highdict } = StardustJs
7
-
8
- export default {
9
- name: 'PcXTable',
10
- inheritAttrs: false,
11
- props: {
12
- ...utils.props()
13
- },
14
- emits: [
15
- ...utils.emits()
16
- ],
17
- components: { Searcher, Settings },
18
- data () {
19
- return {
20
- searcher: null,
21
- isMinus: false,
22
- isFullscreen: false,
23
- zoom: 1,
24
- checked: null,
25
- activeNames: ['name'],
26
- settings: {},
27
- params: {},
28
- _useCollapse: false,
29
- dialog: {
30
- ...baseDialog()
31
- }
32
- }
33
- },
34
- computed: {
35
- ...utils.computed,
36
- hasQrcodeColumns () {
37
- return this._visibleColumns.some(c => c.slot === '$qrcode' || c.tableAttrs?.slot === '$qrcode')
38
- }
39
- },
40
- watch: {
41
- ...utils.watch,
42
- settings: 'saveSettings'
43
- },
44
- watch: {
45
- _uid: 'initSettings',
46
- _columns: {
47
- deep: true,
48
- immediate: true,
49
- handler: 'initSettings'
50
- },
51
- _loading: {
52
- immediate: true,
53
- async handler (loading) {
54
- if (window.QRCode && !loading && this.hasQrcodeColumns) {
55
- await funcs.sleep(0)
56
- window.$all('img[data-qrcodeid]').forEach(async img => {
57
- const [_, colIndex, rowIndex] = img.dataset.qrcodeid.split('-').map(Number)
58
- const column = this._visibleColumns[colIndex]
59
- if (column?.prop) {
60
- const value = this.table.list[rowIndex]?.[column.prop]
61
- if (!value) return
62
- this.qrcodeDict ||= {}
63
- this.qrcodeDict[value] ||= new Promise(resolve => {
64
- QRCode.toDataURL(value, {
65
- width: 128, height: 128, margin: 1, ...(column.tableAttrs || column)
66
- }).then(src => {
67
- this.qrcodeDict[value] = src
68
- resolve(src)
69
- })
70
- })
71
- img.src = await this.qrcodeDict[value]
72
- }
73
- })
74
- }
75
- }
76
- }
77
- },
78
- created () {
79
- this._useCollapse = this.useCollapse
80
- },
81
- mounted () {
82
- if (this.table) {
83
- this.table.tableRef = this.$refs.tableRef
84
- this.table.ref = this
85
- }
86
- this.$emit('update:tref', this.$refs.tableRef)
87
- },
88
- methods: {
89
- ...utils.methods,
90
- async handleShowPieDialog () {
91
- this.dialog.visible = true
92
- await this.$nextTick()
93
- if (this.table) {
94
- this.table.chartRef = this.$refs.chartRef
95
- }
96
- await this.$refs.chartRef.init()
97
- this.$refs.chartRef.initDatasource()
98
- },
99
- async handleChartDialogFullscreen () {
100
- await this.$nextTick()
101
- this.$refs.chartRef.chart.resize()
102
- },
103
- async search (params = {}) {
104
- const { remote, maxLimit, query, remoteMethod, search } = this._chartOption
105
- if (search) {
106
- return search()
107
- } else if (this.controller[remoteMethod]) {
108
- return this.controller[remoteMethod]()
109
- } else if (remote && this.controller.getSearchParams) {
110
- let searchParams = this.controller.getSearchParams({ page: 1, limit: 100, ...query }, false)
111
- if (typeof params === 'function') {
112
- searchParams = params(searchParams)
113
- } else {
114
- Object.assign(searchParams, params)
115
- }
116
- const paramsJson = JSON.stringify(searchParams)
117
- if (paramsJson === this._lastSearchParams) return this._lastList
118
- this._lastSearchParams = paramsJson
119
- const data = await this.controller.dbTable.search(searchParams)
120
- if (maxLimit && maxLimit > query.limit && data.total > query.limit) {
121
- const numPages = Math.ceil(Math.min(maxLimit, data.total) / query.limit)
122
- const left = await this.controller.dbTable.batch({
123
- transaction: false,
124
- operations: Array.from({ length: numPages - 1 }).map((_, i) => ({
125
- type: 'search',
126
- data: { ...searchParams, page: i + 2 }
127
- }))
128
- }, 'data')
129
- left.forEach(ele => data.data = data.data.concat(ele.data))
130
- }
131
- let list = highdict.get(data, this.controller.listProp)
132
- list = this.controller.formatList(this.controller._defaultFormatList(list, data), data)
133
- this._lastList = list
134
- return list
135
- }
136
- return this._data
137
- },
138
- onPaging () {
139
- if (this.params.page) delete this.params.page
140
- this._emit('search', this.params)
141
- }
142
- }
143
- }
1
+ function a48_0x1fc7(_0x2d7e9e,_0x33aecc){const _0x414692=a48_0x4146();return a48_0x1fc7=function(_0x1fc750,_0x30b859){_0x1fc750=_0x1fc750-0x144;let _0x83837c=_0x414692[_0x1fc750];return _0x83837c;},a48_0x1fc7(_0x2d7e9e,_0x33aecc);}const a48_0x21f201=a48_0x1fc7;(function(_0xea1a4d,_0x563b24){const _0x4ded11=a48_0x1fc7,_0x4c80b2=_0xea1a4d();while(!![]){try{const _0x554be5=-parseInt(_0x4ded11(0x175))/0x1+parseInt(_0x4ded11(0x185))/0x2*(parseInt(_0x4ded11(0x183))/0x3)+-parseInt(_0x4ded11(0x14c))/0x4*(parseInt(_0x4ded11(0x184))/0x5)+-parseInt(_0x4ded11(0x16a))/0x6+-parseInt(_0x4ded11(0x163))/0x7*(-parseInt(_0x4ded11(0x170))/0x8)+-parseInt(_0x4ded11(0x144))/0x9*(-parseInt(_0x4ded11(0x156))/0xa)+-parseInt(_0x4ded11(0x15f))/0xb;if(_0x554be5===_0x563b24)break;else _0x4c80b2['push'](_0x4c80b2['shift']());}catch(_0x36c02b){_0x4c80b2['push'](_0x4c80b2['shift']());}}}(a48_0x4146,0xa9338));import a48_0x295604 from'./utils.js';import{baseDialog}from'../../utils/model.js';import a48_0xfc7955 from'./searcher.vue';import a48_0x3d7563 from'./settings.vue';const {funcs,highdict}=StardustJs;function a48_0x4146(){const _0x1660d4=['$all','23252FYvXcs','_visibleColumns','list','prop','hasQrcodeColumns','chartRef','resize','sleep','concat','tableRef','10ryJwpU','PcXTable','$refs','_useCollapse','data','dbTable','name','table','toDataURL','12821380YiZjQJ','listProp','methods','_data','147klBCix','page','forEach','emits','assign','initDatasource','$qrcode','1219326jzyyRI','tableAttrs','formatList','_defaultFormatList','qrcodeid','then','399352RuRQYX','initSettings','qrcodeDict','batch','some','627326WLCLDs','from','function','params','dataset','controller','getSearchParams','_chartOption','$emit','ref','dialog','saveSettings','_lastSearchParams','chart','105033VMSDJz','305PVcFGG','54YqVgjm','map','init','_lastList','limit','9451548VTSTed','watch','slot','split','total','search','min'];a48_0x4146=function(){return _0x1660d4;};return a48_0x4146();}export default{'name':a48_0x21f201(0x157),'inheritAttrs':![],'props':{...a48_0x295604['props']()},'emits':[...a48_0x295604[a48_0x21f201(0x166)]()],'components':{'Searcher':a48_0xfc7955,'Settings':a48_0x3d7563},'data'(){const _0x21eaf0=a48_0x21f201;return{'searcher':null,'isMinus':![],'isFullscreen':![],'zoom':0x1,'checked':null,'activeNames':[_0x21eaf0(0x15c)],'settings':{},'params':{},'_useCollapse':![],'dialog':{...baseDialog()}};},'computed':{...a48_0x295604['computed'],'hasQrcodeColumns'(){const _0x54f02a=a48_0x21f201;return this[_0x54f02a(0x14d)][_0x54f02a(0x174)](_0x791a2=>_0x791a2[_0x54f02a(0x146)]===_0x54f02a(0x169)||_0x791a2['tableAttrs']?.['slot']==='$qrcode');}},'watch':{...a48_0x295604[a48_0x21f201(0x145)],'settings':a48_0x21f201(0x180)},'watch':{'_uid':a48_0x21f201(0x171),'_columns':{'deep':!![],'immediate':!![],'handler':'initSettings'},'_loading':{'immediate':!![],async 'handler'(_0x4d0872){const _0x55f10e=a48_0x21f201;window['QRCode']&&!_0x4d0872&&this[_0x55f10e(0x150)]&&(await funcs[_0x55f10e(0x153)](0x0),window[_0x55f10e(0x14b)]('img[data-qrcodeid]')[_0x55f10e(0x165)](async _0x5c95da=>{const _0x227e25=_0x55f10e,[_0x35b0e1,_0x513c22,_0x32172f]=_0x5c95da[_0x227e25(0x179)][_0x227e25(0x16e)][_0x227e25(0x147)]('-')[_0x227e25(0x186)](Number),_0x2e102e=this[_0x227e25(0x14d)][_0x513c22];if(_0x2e102e?.['prop']){const _0x2c1a5c=this[_0x227e25(0x15d)][_0x227e25(0x14e)][_0x32172f]?.[_0x2e102e[_0x227e25(0x14f)]];if(!_0x2c1a5c)return;this[_0x227e25(0x172)]||={},this[_0x227e25(0x172)][_0x2c1a5c]||=new Promise(_0x285856=>{const _0x2e2958=_0x227e25;QRCode[_0x2e2958(0x15e)](_0x2c1a5c,{'width':0x80,'height':0x80,'margin':0x1,..._0x2e102e[_0x2e2958(0x16b)]||_0x2e102e})[_0x2e2958(0x16f)](_0xc3a935=>{const _0x580376=_0x2e2958;this[_0x580376(0x172)][_0x2c1a5c]=_0xc3a935,_0x285856(_0xc3a935);});}),_0x5c95da['src']=await this[_0x227e25(0x172)][_0x2c1a5c];}}));}}},'created'(){const _0x335517=a48_0x21f201;this[_0x335517(0x159)]=this['useCollapse'];},'mounted'(){const _0x19dd30=a48_0x21f201;this[_0x19dd30(0x15d)]&&(this[_0x19dd30(0x15d)][_0x19dd30(0x155)]=this['$refs'][_0x19dd30(0x155)],this['table'][_0x19dd30(0x17e)]=this),this[_0x19dd30(0x17d)]('update:tref',this[_0x19dd30(0x158)]['tableRef']);},'methods':{...a48_0x295604[a48_0x21f201(0x161)],async 'handleShowPieDialog'(){const _0x4b7803=a48_0x21f201;this[_0x4b7803(0x17f)]['visible']=!![],await this['$nextTick'](),this[_0x4b7803(0x15d)]&&(this['table'][_0x4b7803(0x151)]=this[_0x4b7803(0x158)][_0x4b7803(0x151)]),await this[_0x4b7803(0x158)][_0x4b7803(0x151)][_0x4b7803(0x187)](),this['$refs'][_0x4b7803(0x151)][_0x4b7803(0x168)]();},async 'handleChartDialogFullscreen'(){const _0x2dfe84=a48_0x21f201;await this['$nextTick'](),this[_0x2dfe84(0x158)][_0x2dfe84(0x151)][_0x2dfe84(0x182)][_0x2dfe84(0x152)]();},async 'search'(_0x303031={}){const _0x465006=a48_0x21f201,{remote:_0x560df9,maxLimit:_0x537767,query:_0x2c8133,remoteMethod:_0x37f22e,search:_0x1e4bb0}=this[_0x465006(0x17c)];if(_0x1e4bb0)return _0x1e4bb0();else{if(this['controller'][_0x37f22e])return this['controller'][_0x37f22e]();else{if(_0x560df9&&this[_0x465006(0x17a)][_0x465006(0x17b)]){let _0x15a152=this[_0x465006(0x17a)]['getSearchParams']({'page':0x1,'limit':0x64,..._0x2c8133},![]);typeof _0x303031===_0x465006(0x177)?_0x15a152=_0x303031(_0x15a152):Object[_0x465006(0x167)](_0x15a152,_0x303031);const _0x22d9a3=JSON['stringify'](_0x15a152);if(_0x22d9a3===this[_0x465006(0x181)])return this[_0x465006(0x188)];this[_0x465006(0x181)]=_0x22d9a3;const _0x2ba04e=await this[_0x465006(0x17a)][_0x465006(0x15b)][_0x465006(0x149)](_0x15a152);if(_0x537767&&_0x537767>_0x2c8133[_0x465006(0x189)]&&_0x2ba04e[_0x465006(0x148)]>_0x2c8133[_0x465006(0x189)]){const _0x401fdc=Math['ceil'](Math[_0x465006(0x14a)](_0x537767,_0x2ba04e['total'])/_0x2c8133[_0x465006(0x189)]),_0x14aac8=await this[_0x465006(0x17a)][_0x465006(0x15b)][_0x465006(0x173)]({'transaction':![],'operations':Array[_0x465006(0x176)]({'length':_0x401fdc-0x1})[_0x465006(0x186)]((_0x2a4ec2,_0x45db7a)=>({'type':_0x465006(0x149),'data':{..._0x15a152,'page':_0x45db7a+0x2}}))},_0x465006(0x15a));_0x14aac8['forEach'](_0x46a50e=>_0x2ba04e[_0x465006(0x15a)]=_0x2ba04e[_0x465006(0x15a)][_0x465006(0x154)](_0x46a50e['data']));}let _0x25d4ea=highdict['get'](_0x2ba04e,this['controller'][_0x465006(0x160)]);return _0x25d4ea=this['controller'][_0x465006(0x16c)](this[_0x465006(0x17a)][_0x465006(0x16d)](_0x25d4ea,_0x2ba04e),_0x2ba04e),this[_0x465006(0x188)]=_0x25d4ea,_0x25d4ea;}}}return this[_0x465006(0x162)];},'onPaging'(){const _0x5f31ed=a48_0x21f201;if(this[_0x5f31ed(0x178)]['page'])delete this[_0x5f31ed(0x178)][_0x5f31ed(0x164)];this['_emit'](_0x5f31ed(0x149),this[_0x5f31ed(0x178)]);}}};