hd-idevvue3 3.0.5 → 3.0.8

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 (155) hide show
  1. package/dist/static/css/index-DRHIlcVU.css +1 -0
  2. package/dist/static/js/index-DbUA6jg0.js +184 -0
  3. package/dist/static/js/index-Dl4O91nB.js +73768 -0
  4. package/package.json +16 -16
  5. package/.env.development +0 -5
  6. package/.env.production +0 -5
  7. package/.eslintrc.js +0 -151
  8. package/dist/assets/index.431f21ca.css +0 -1
  9. package/dist/hd-idevvue3.mjs +0 -45878
  10. package/dist/hd-idevvue3.umd.js +0 -153
  11. package/index.html +0 -18
  12. package/npminstall-debug.log +0 -200
  13. package/pnpm-lock.yaml +0 -2813
  14. package/src/App.vue +0 -11
  15. package/src/assets/sound/notify.wav +0 -0
  16. package/src/demo/demo.vue +0 -42
  17. package/src/demo/dropdemo.vue +0 -42
  18. package/src/demo/extsets.vue +0 -208
  19. package/src/demo/formedit.vue +0 -157
  20. package/src/demo/hightquery.vue +0 -366
  21. package/src/demo/inlineedit.vue +0 -182
  22. package/src/demo/selfdrop.vue +0 -58
  23. package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
  24. package/src/directive/el-dragDialog/drag.js +0 -124
  25. package/src/directive/el-dragDialog/index.js +0 -13
  26. package/src/errorLog.js +0 -16
  27. package/src/hdcom/BigGrid.js +0 -179
  28. package/src/hdcom/BillShow.vue +0 -111
  29. package/src/hdcom/BillUpload.vue +0 -311
  30. package/src/hdcom/BtnRight.vue +0 -101
  31. package/src/hdcom/ErrHint.vue +0 -42
  32. package/src/hdcom/ExtendColumn.vue +0 -115
  33. package/src/hdcom/ExtendCommon.js +0 -40
  34. package/src/hdcom/ExtendForm.vue +0 -141
  35. package/src/hdcom/FacePicUpload.vue +0 -80
  36. package/src/hdcom/FaceRecTest.vue +0 -114
  37. package/src/hdcom/GridChart.vue +0 -207
  38. package/src/hdcom/GridExField.vue +0 -375
  39. package/src/hdcom/GridShow.vue +0 -288
  40. package/src/hdcom/HdAside.vue +0 -225
  41. package/src/hdcom/HdBtn.vue +0 -125
  42. package/src/hdcom/HdButton.vue +0 -161
  43. package/src/hdcom/HdComFaceRec.vue +0 -106
  44. package/src/hdcom/HdComGrid.vue +0 -876
  45. package/src/hdcom/HdComQuery.vue +0 -362
  46. package/src/hdcom/HdComQueryDetail.vue +0 -205
  47. package/src/hdcom/HdComSortDetail.vue +0 -161
  48. package/src/hdcom/HdDatePicker.vue +0 -94
  49. package/src/hdcom/HdDialog.vue +0 -81
  50. package/src/hdcom/HdDrop.vue +0 -188
  51. package/src/hdcom/HdFileUpload.vue +0 -167
  52. package/src/hdcom/HdFilterBox.vue +0 -90
  53. package/src/hdcom/HdFooter.vue +0 -182
  54. package/src/hdcom/HdForm.vue +0 -351
  55. package/src/hdcom/HdFormBtn.vue +0 -131
  56. package/src/hdcom/HdFormItem.vue +0 -39
  57. package/src/hdcom/HdGctosGrid +0 -0
  58. package/src/hdcom/HdGrid.vue +0 -1022
  59. package/src/hdcom/HdGridEditBtn.vue +0 -58
  60. package/src/hdcom/HdGridExt.js +0 -250
  61. package/src/hdcom/HdGridSel.vue +0 -257
  62. package/src/hdcom/HdHeader.vue +0 -180
  63. package/src/hdcom/HdHotKey.vue +0 -84
  64. package/src/hdcom/HdInputHint.vue +0 -53
  65. package/src/hdcom/HdMain.vue +0 -41
  66. package/src/hdcom/HdMessage.vue +0 -201
  67. package/src/hdcom/HdNum.vue +0 -79
  68. package/src/hdcom/HdPopSel.vue +0 -80
  69. package/src/hdcom/HdRightMenu.vue +0 -63
  70. package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
  71. package/src/hdcom/HdTableColumn.vue +0 -381
  72. package/src/hdcom/HdTempSave.vue +0 -162
  73. package/src/hdcom/HdTree.vue +0 -103
  74. package/src/hdcom/HdTreeTable/eval.js +0 -39
  75. package/src/hdcom/HdTreeTable/index.vue +0 -229
  76. package/src/hdcom/ImportExcel.vue +0 -178
  77. package/src/hdcom/index.js +0 -75
  78. package/src/idev.common.js +0 -79
  79. package/src/index.js +0 -11
  80. package/src/utils/HdQuery.js +0 -65
  81. package/src/utils/comutils.js +0 -120
  82. package/src/utils/gogocodeTransfer.js +0 -59
  83. package/src/utils/utils.js +0 -116
  84. package/src/vendor/Blob.js +0 -187
  85. package/src/vendor/Export2Excel.js +0 -231
  86. package/src/vendor/Export2Zip.js +0 -25
  87. package/src/views/layout/AppMain.vue +0 -34
  88. package/src/views/layout/HdLayout.vue +0 -90
  89. package/src/views/layout/header/ElasticSearch.vue +0 -262
  90. package/src/views/layout/header/HZRecorder.js +0 -259
  91. package/src/views/layout/header/HeaderSearch.vue +0 -218
  92. package/src/views/layout/header/Levelbar.vue +0 -55
  93. package/src/views/layout/header/MainHeader.vue +0 -315
  94. package/src/views/layout/header/Navbar.vue +0 -101
  95. package/src/views/layout/header/ScrollPane.vue +0 -103
  96. package/src/views/layout/header/TagsView.vue +0 -215
  97. package/src/views/layout/header/VocRec.vue +0 -105
  98. package/src/views/layout/header/changepswform.vue +0 -130
  99. package/src/views/layout/index.js +0 -10
  100. package/src/views/layout/menu/Hamburger.vue +0 -63
  101. package/src/views/layout/menu/HdMenu.vue +0 -204
  102. package/src/views/layout/menu/css/menu.css +0 -288
  103. package/src/views/layout/menu/index.vue +0 -27
  104. package/src/views/privilege/commsg/commsg.vue +0 -152
  105. package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
  106. package/src/views/privilege/commsg/commsgRole.vue +0 -220
  107. package/src/views/privilege/commsg/commsgform.vue +0 -184
  108. package/src/views/privilege/commsg/commsgiframe.vue +0 -40
  109. package/src/views/privilege/commsg/commsgto.vue +0 -199
  110. package/src/views/privilege/commsg/commsgtoform.vue +0 -114
  111. package/src/views/privilege/commsg/commsgtrans.vue +0 -227
  112. package/src/views/privilege/exfield/comexcolumn.vue +0 -161
  113. package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
  114. package/src/views/privilege/exfield/comexfield.vue +0 -29
  115. package/src/views/privilege/exfield/comexfieldform.vue +0 -112
  116. package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
  117. package/src/views/privilege/index.js +0 -41
  118. package/src/views/privilege/menu/comMenu.vue +0 -49
  119. package/src/views/privilege/menu/menu.vue +0 -250
  120. package/src/views/privilege/menu/menuinfo.vue +0 -63
  121. package/src/views/privilege/menu/rolelist.vue +0 -92
  122. package/src/views/privilege/menu/userlist.vue +0 -92
  123. package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
  124. package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
  125. package/src/views/privilege/orgDept/authOrgn.vue +0 -188
  126. package/src/views/privilege/orgDept/authorgnform.vue +0 -157
  127. package/src/views/privilege/orgDept/orgDept.vue +0 -38
  128. package/src/views/privilege/orgDept/orgTree.vue +0 -99
  129. package/src/views/privilege/orgDept/orgnselect.vue +0 -155
  130. package/src/views/privilege/personDept/authuser.vue +0 -229
  131. package/src/views/privilege/personDept/authuserform.vue +0 -206
  132. package/src/views/privilege/personDept/facerec.vue +0 -162
  133. package/src/views/privilege/personDept/orgncascader.vue +0 -144
  134. package/src/views/privilege/personDept/personDept.vue +0 -33
  135. package/src/views/privilege/quartz/comquartzjob.vue +0 -150
  136. package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
  137. package/src/views/privilege/quartz/comquartzlog.vue +0 -143
  138. package/src/views/privilege/role/btnRole.vue +0 -173
  139. package/src/views/privilege/role/menuRole.vue +0 -84
  140. package/src/views/privilege/role/orgnRole.vue +0 -78
  141. package/src/views/privilege/role/role.vue +0 -84
  142. package/src/views/privilege/role/rolelist.vue +0 -136
  143. package/src/views/privilege/role/roleselect.vue +0 -74
  144. package/src/views/privilege/search/comsearch.vue +0 -196
  145. package/src/views/privilege/search/menu.vue +0 -68
  146. package/src/views/privilege/syscode/syscode.vue +0 -191
  147. package/src/views/privilege/syscode/sysfield.vue +0 -119
  148. package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
  149. package/src/views/privilege/syslog/menulog.vue +0 -68
  150. package/src/views/privilege/syslog/syslog.vue +0 -182
  151. package/src/views/privilege/syslog/syslogconfig.vue +0 -128
  152. package/src/views/privilege/syslog/syslogform.vue +0 -85
  153. package/src/views/privilege/syslog/syslogframe.vue +0 -26
  154. package/src/views/privilege/userRole/userRole.vue +0 -220
  155. package/vite.config.js +0 -103
@@ -1,187 +0,0 @@
1
- /* eslint-disable */
2
- /* Blob.js
3
- * A Blob implementation.
4
- * 2014-05-27
5
- *
6
- * By Eli Grey, http://eligrey.com
7
- * By Devin Samarin, https://github.com/eboyjr
8
- * License: X11/MIT
9
- * See LICENSE.md
10
- */
11
-
12
- /*global self, unescape */
13
- /*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true,
14
- plusplus: true */
15
-
16
- /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
17
-
18
- ;(function (view) {
19
- 'use strict'
20
-
21
- view.URL = view.URL || view.webkitURL
22
-
23
- if (view.Blob && view.URL) {
24
- try {
25
- new Blob()
26
- return
27
- } catch (e) {}
28
- }
29
-
30
- // Internally we use a BlobBuilder implementation to base Blob off of
31
- // in order to support older browsers that only have BlobBuilder
32
- var BlobBuilder =
33
- view.BlobBuilder ||
34
- view.WebKitBlobBuilder ||
35
- view.MozBlobBuilder ||
36
- (function (view) {
37
- var get_class = function (object) {
38
- return Object.prototype.toString
39
- .call(object)
40
- .match(/^\[object\s(.*)\]$/)[1]
41
- },
42
- FakeBlobBuilder = function BlobBuilder() {
43
- this.data = []
44
- },
45
- FakeBlob = function Blob(data, type, encoding) {
46
- this.data = data
47
- this.size = data.length
48
- this.type = type
49
- this.encoding = encoding
50
- },
51
- FBB_proto = FakeBlobBuilder.prototype,
52
- FB_proto = FakeBlob.prototype,
53
- FileReaderSync = view.FileReaderSync,
54
- FileException = function (type) {
55
- this.code = this[(this.name = type)]
56
- },
57
- file_ex_codes = (
58
- 'NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR ' +
59
- 'NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR'
60
- ).split(' '),
61
- file_ex_code = file_ex_codes.length,
62
- real_URL = view.URL || view.webkitURL || view,
63
- real_create_object_URL = real_URL.createObjectURL,
64
- real_revoke_object_URL = real_URL.revokeObjectURL,
65
- URL = real_URL,
66
- btoa = view.btoa,
67
- atob = view.atob,
68
- ArrayBuffer = view.ArrayBuffer,
69
- Uint8Array = view.Uint8Array
70
- FakeBlob.fake = FB_proto.fake = true
71
- while (file_ex_code--) {
72
- FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1
73
- }
74
- if (!real_URL.createObjectURL) {
75
- URL = view.URL = {}
76
- }
77
- URL.createObjectURL = function (blob) {
78
- var type = blob.type,
79
- data_URI_header
80
- if (type === null) {
81
- type = 'application/octet-stream'
82
- }
83
- if (blob instanceof FakeBlob) {
84
- data_URI_header = 'data:' + type
85
- if (blob.encoding === 'base64') {
86
- return data_URI_header + ';base64,' + blob.data
87
- } else if (blob.encoding === 'URI') {
88
- return data_URI_header + ',' + decodeURIComponent(blob.data)
89
- }
90
- if (btoa) {
91
- return data_URI_header + ';base64,' + btoa(blob.data)
92
- } else {
93
- return data_URI_header + ',' + encodeURIComponent(blob.data)
94
- }
95
- } else if (real_create_object_URL) {
96
- return real_create_object_URL.call(real_URL, blob)
97
- }
98
- }
99
- URL.revokeObjectURL = function (object_URL) {
100
- if (object_URL.substring(0, 5) !== 'data:' && real_revoke_object_URL) {
101
- real_revoke_object_URL.call(real_URL, object_URL)
102
- }
103
- }
104
- FBB_proto.append = function (data /*, endings*/) {
105
- var bb = this.data
106
- // decode data to a binary string
107
- if (
108
- Uint8Array &&
109
- (data instanceof ArrayBuffer || data instanceof Uint8Array)
110
- ) {
111
- var str = '',
112
- buf = new Uint8Array(data),
113
- i = 0,
114
- buf_len = buf.length
115
- for (; i < buf_len; i++) {
116
- str += String.fromCharCode(buf[i])
117
- }
118
- bb.push(str)
119
- } else if (get_class(data) === 'Blob' || get_class(data) === 'File') {
120
- if (FileReaderSync) {
121
- var fr = new FileReaderSync()
122
- bb.push(fr.readAsBinaryString(data))
123
- } else {
124
- // async FileReader won't work as BlobBuilder is sync
125
- throw new FileException('NOT_READABLE_ERR')
126
- }
127
- } else if (data instanceof FakeBlob) {
128
- if (data.encoding === 'base64' && atob) {
129
- bb.push(atob(data.data))
130
- } else if (data.encoding === 'URI') {
131
- bb.push(decodeURIComponent(data.data))
132
- } else if (data.encoding === 'raw') {
133
- bb.push(data.data)
134
- }
135
- } else {
136
- if (typeof data !== 'string') {
137
- data += '' // convert unsupported types to strings
138
- }
139
- // decode UTF-16 to binary string
140
- bb.push(unescape(encodeURIComponent(data)))
141
- }
142
- }
143
- FBB_proto.getBlob = function (type) {
144
- if (!arguments.length) {
145
- type = null
146
- }
147
- return new FakeBlob(this.data.join(''), type, 'raw')
148
- }
149
- FBB_proto.toString = function () {
150
- return '[object BlobBuilder]'
151
- }
152
- FB_proto.slice = function (start, end, type) {
153
- var args = arguments.length
154
- if (args < 3) {
155
- type = null
156
- }
157
- return new FakeBlob(
158
- this.data.slice(start, args > 1 ? end : this.data.length),
159
- type,
160
- this.encoding
161
- )
162
- }
163
- FB_proto.toString = function () {
164
- return '[object Blob]'
165
- }
166
- FB_proto.close = function () {
167
- this.size = this.data.length = 0
168
- }
169
- return FakeBlobBuilder
170
- })(view)
171
-
172
- view.Blob = function Blob(blobParts, options) {
173
- var type = options ? options.type || '' : ''
174
- var builder = new BlobBuilder()
175
- if (blobParts) {
176
- for (var i = 0, len = blobParts.length; i < len; i++) {
177
- builder.append(blobParts[i])
178
- }
179
- }
180
- return builder.getBlob(type)
181
- }
182
- })(
183
- (typeof self !== 'undefined' && self) ||
184
- (typeof window !== 'undefined' && window) ||
185
- this.content ||
186
- this
187
- )
@@ -1,231 +0,0 @@
1
- /* eslint-disable */
2
- import * as saveAs from 'file-saver'
3
- import * as XLSX from 'xlsx'
4
-
5
- function generateArray(table) {
6
- var out = []
7
- var rows = table.querySelectorAll('tr')
8
- var ranges = []
9
- for (var R = 0; R < rows.length; ++R) {
10
- var outRow = []
11
- var row = rows[R]
12
- var columns = row.querySelectorAll('td')
13
- for (var C = 0; C < columns.length; ++C) {
14
- var cell = columns[C]
15
- var colspan = cell.getAttribute('colspan')
16
- var rowspan = cell.getAttribute('rowspan')
17
- var cellValue = cell.innerText
18
- if (cellValue !== '' && cellValue == +cellValue) cellValue = +cellValue
19
-
20
- //Skip ranges
21
- ranges.forEach(function (range) {
22
- if (
23
- R >= range.s.r &&
24
- R <= range.e.r &&
25
- outRow.length >= range.s.c &&
26
- outRow.length <= range.e.c
27
- ) {
28
- for (var i = 0; i <= range.e.c - range.s.c; ++i) outRow.push(null)
29
- }
30
- })
31
-
32
- //Handle Row Span
33
- if (rowspan || colspan) {
34
- rowspan = rowspan || 1
35
- colspan = colspan || 1
36
- ranges.push({
37
- s: {
38
- r: R,
39
- c: outRow.length,
40
- },
41
- e: {
42
- r: R + rowspan - 1,
43
- c: outRow.length + colspan - 1,
44
- },
45
- })
46
- }
47
-
48
- //Handle Value
49
- outRow.push(cellValue !== '' ? cellValue : null)
50
-
51
- //Handle Colspan
52
- if (colspan) for (var k = 0; k < colspan - 1; ++k) outRow.push(null)
53
- }
54
- out.push(outRow)
55
- }
56
- return [out, ranges]
57
- }
58
-
59
- function datenum(v, date1904) {
60
- if (date1904) v += 1462
61
- var epoch = Date.parse(v)
62
- return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000)
63
- }
64
-
65
- function sheet_from_array_of_arrays(data, opts) {
66
- var ws = {}
67
- var range = {
68
- s: {
69
- c: 10000000,
70
- r: 10000000,
71
- },
72
- e: {
73
- c: 0,
74
- r: 0,
75
- },
76
- }
77
- for (var R = 0; R != data.length; ++R) {
78
- for (var C = 0; C != data[R].length; ++C) {
79
- if (range.s.r > R) range.s.r = R
80
- if (range.s.c > C) range.s.c = C
81
- if (range.e.r < R) range.e.r = R
82
- if (range.e.c < C) range.e.c = C
83
- var cell = {
84
- v: data[R][C],
85
- }
86
- if (cell.v == null) continue
87
- var cell_ref = XLSX.utils.encode_cell({
88
- c: C,
89
- r: R,
90
- })
91
-
92
- if (typeof cell.v === 'number') cell.t = 'n'
93
- else if (typeof cell.v === 'boolean') cell.t = 'b'
94
- else if (cell.v instanceof Date) {
95
- cell.t = 'n'
96
- cell.z = XLSX.SSF._table[14]
97
- cell.v = datenum(cell.v)
98
- } else cell.t = 's'
99
-
100
- ws[cell_ref] = cell
101
- }
102
- }
103
- if (range.s.c < 10000000) ws['!ref'] = XLSX.utils.encode_range(range)
104
- return ws
105
- }
106
-
107
- function Workbook() {
108
- if (!(this instanceof Workbook)) return new Workbook()
109
- this.SheetNames = []
110
- this.Sheets = {}
111
- }
112
-
113
- function s2ab(s) {
114
- var buf = new ArrayBuffer(s.length)
115
- var view = new Uint8Array(buf)
116
- for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xff
117
- return buf
118
- }
119
-
120
- export function export_table_to_excel(id) {
121
- var theTable = document.getElementById(id)
122
- var oo = generateArray(theTable)
123
- var ranges = oo[1]
124
-
125
- /* original data */
126
- var data = oo[0]
127
- var ws_name = 'SheetJS'
128
-
129
- var wb = new Workbook(),
130
- ws = sheet_from_array_of_arrays(data)
131
-
132
- /* add ranges to worksheet */
133
- // ws['!cols'] = ['apple', 'banan'];
134
- ws['!merges'] = ranges
135
-
136
- /* add worksheet to workbook */
137
- wb.SheetNames.push(ws_name)
138
- wb.Sheets[ws_name] = ws
139
-
140
- var wbout = XLSX.write(wb, {
141
- bookType: 'xlsx',
142
- bookSST: false,
143
- type: 'binary',
144
- })
145
-
146
- saveAs(
147
- new Blob([s2ab(wbout)], {
148
- type: 'application/octet-stream',
149
- }),
150
- 'test.xlsx'
151
- )
152
- }
153
-
154
- export function export_json_to_excel({
155
- multiHeader = [],
156
- header,
157
- data,
158
- filename,
159
- merges = [],
160
- autoWidth = true,
161
- bookType = 'xlsx',
162
- } = {}) {
163
- /* original data */
164
- filename = filename || 'excel-list'
165
- data = [...data]
166
- data.unshift(header)
167
-
168
- for (let i = multiHeader.length - 1; i > -1; i--) {
169
- data.unshift(multiHeader[i])
170
- }
171
-
172
- var ws_name = 'SheetJS'
173
- var wb = new Workbook(),
174
- ws = sheet_from_array_of_arrays(data)
175
-
176
- if (merges.length > 0) {
177
- if (!ws['!merges']) ws['!merges'] = []
178
- merges.forEach((item) => {
179
- ws['!merges'].push(XLSX.utils.decode_range(item))
180
- })
181
- }
182
-
183
- if (autoWidth) {
184
- /*设置worksheet每列的最大宽度*/
185
- const colWidth = data.map((row) =>
186
- row.map((val) => {
187
- /*先判断是否为null/undefined*/
188
- if (val == null) {
189
- return {
190
- wch: 10,
191
- }
192
- } else if (val.toString().charCodeAt(0) > 255) {
193
- /*再判断是否为中文*/
194
- return {
195
- wch: val.toString().length * 2,
196
- }
197
- } else {
198
- return {
199
- wch: val.toString().length,
200
- }
201
- }
202
- })
203
- )
204
- /*以第一行为初始值*/
205
- let result = colWidth[0]
206
- for (let i = 1; i < colWidth.length; i++) {
207
- for (let j = 0; j < colWidth[i].length; j++) {
208
- if (result[j]['wch'] < colWidth[i][j]['wch']) {
209
- result[j]['wch'] = colWidth[i][j]['wch']
210
- }
211
- }
212
- }
213
- ws['!cols'] = result
214
- }
215
-
216
- /* add worksheet to workbook */
217
- wb.SheetNames.push(ws_name)
218
- wb.Sheets[ws_name] = ws
219
-
220
- var wbout = XLSX.write(wb, {
221
- bookType: bookType,
222
- bookSST: false,
223
- type: 'binary',
224
- })
225
- saveAs(
226
- new Blob([s2ab(wbout)], {
227
- type: 'application/octet-stream',
228
- }),
229
- `${filename}.${bookType}`
230
- )
231
- }
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- require('script-loader!file-saver')
3
- import JSZip from 'jszip'
4
-
5
- export function export_txt_to_zip(th, jsonData, txtName, zipName) {
6
- const zip = new JSZip()
7
- const txt_name = txtName || 'file'
8
- const zip_name = zipName || 'file'
9
- const data = jsonData
10
- let txtData = `${th}\r\n`
11
- data.forEach((row) => {
12
- let tempStr = ''
13
- tempStr = row.toString()
14
- txtData += `${tempStr}\r\n`
15
- })
16
- zip.file(`${txt_name}.txt`, txtData)
17
- zip.generateAsync({ type: 'blob' }).then(
18
- (blob) => {
19
- saveAs(blob, `${zip_name}.zip`)
20
- },
21
- (err) => {
22
- alert('导出失败')
23
- }
24
- )
25
- }
@@ -1,34 +0,0 @@
1
- <template>
2
- <div class="app-main">
3
- <transition mode="out-in" name="fade">
4
- <keep-alive :include="cachedViews">
5
- <router-view :key="key" v-if="reload" />
6
- </keep-alive>
7
- </transition>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- export default {
13
- name: 'AppMain',
14
- computed: {
15
- cachedViews() {
16
- return this.$store.state.app.cachedViews
17
- },
18
- key() {
19
- return this.$route.name
20
- },
21
- reload() {
22
- // 刷新页面
23
- return this.$store.state.app.refreshPage !== true
24
- },
25
- },
26
- }
27
- </script>
28
-
29
- <style lang="scss" rel="stylesheet/scss">
30
- .app-main {
31
- height: 100%;
32
- overflow: auto;
33
- }
34
- </style>
@@ -1,90 +0,0 @@
1
- <template>
2
- <div
3
- :class="[{ hideSidebar: !sidebar.opened }, $store.state.user.skin]"
4
- class="hd-layout app-wrapper"
5
- v-if="!onlyContent"
6
- >
7
- <main-header
8
- class="hd-header mainHeader"
9
- v-if="$store.state.app.headerShow != false"
10
- ></main-header>
11
- <div class="hd-content">
12
- <hdmenu class="hd-menu sidebar-container"></hdmenu>
13
- <div class="hd-main main-container">
14
- <Navbar></Navbar>
15
- <AppMain style="flex: 1"></AppMain>
16
- <slot></slot>
17
- </div>
18
- </div>
19
- </div>
20
- <app-main
21
- :class="[{ hideSidebar: !sidebar.opened }, $store.state.user.skin]"
22
- class="app-wrapper"
23
- v-else
24
- ></app-main>
25
- </template>
26
-
27
- <script>
28
- import Navbar from './header/Navbar'
29
- import TagsView from './header/TagsView'
30
- import MainHeader from './header/MainHeader'
31
- import AppMain from './AppMain'
32
- import hdmenu from './menu'
33
-
34
- export default {
35
- name: 'layout',
36
- components: {
37
- MainHeader,
38
- Navbar,
39
- hdmenu,
40
- AppMain,
41
- TagsView,
42
- },
43
- computed: {
44
- sidebar() {
45
- return this.$store.state.app.sidebar
46
- },
47
- onlyContent() {
48
- return this.$route.query.onlycontent == 1
49
- },
50
- },
51
- watch: {
52
- '$store.state.user.skin': {
53
- //弹窗的因为和#app平级,无法换肤
54
- handler: function (newVal, oldVal) {
55
- document.getElementsByTagName('body')[0].className = 'body-' + newVal
56
- this.$emit('chgTheme', newVal)
57
- },
58
- immediate: true,
59
- },
60
- },
61
- }
62
- </script>
63
-
64
- <style lang="scss" rel="stylesheet/scss" scoped>
65
- .hd-layout {
66
- display: flex;
67
- flex-direction: column;
68
-
69
- .hd-header {
70
- height: 52px;
71
- width: 100%;
72
- }
73
-
74
- .hd-content {
75
- flex: 1;
76
- display: flex;
77
- flex-direction: row;
78
-
79
- .hd-menu {
80
- width: 50px;
81
- }
82
-
83
- .hd-main {
84
- flex: 1;
85
- display: flex;
86
- flex-direction: column;
87
- }
88
- }
89
- }
90
- </style>