cloud-web-corejs-haier 1.0.5 → 1.0.6
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/package.json +7 -4
- package/src/App.vue +30 -34
- package/src/api/user.js +8 -0
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +6 -2
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/filterDialog.vue +45 -21
- package/src/components/fileLibrary/index.vue +579 -238
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +12 -12
- package/src/components/tempStorage/index.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/wf/content.vue +32 -36
- package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
- package/src/components/wf/setCandidateDialog2.vue +76 -66
- package/src/components/wf/wf.js +2176 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
- package/src/components/wf/wfStartDialog.vue +6 -10
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/index.vue +8 -0
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3496 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/index.js +215 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/Sidebar/default.vue +1423 -1266
- package/src/layout/components/TagsView/index.vue +37 -11
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/table/index.js +151 -0
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +3 -8
- package/src/store/getters.js +24 -23
- package/src/store/modules/user.js +1 -30
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +36 -19
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +29 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +667 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
- package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/table_model/edit.vue +345 -304
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
- package/src/views/bd/setting/table_model/mixins/list.js +428 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/common_attribute/list.vue +4 -1
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +6 -5
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +2 -6
- package/src/views/user/outLink/index.vue +57 -18
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/list.vue +652 -582
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +137 -28
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
- package/src/views/user/wf/wf_obj_config/list.vue +84 -78
- package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
- package/src/views/user/login/index2.vue +0 -131
|
@@ -1,349 +1,418 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
-
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
-
<editView
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
this.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
initTableList()
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
title:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
+
<editView
|
|
6
|
+
v-if="showEdit"
|
|
7
|
+
visible-key="showEdit"
|
|
8
|
+
:_dataId.sync="dataId"
|
|
9
|
+
:parent-target="_self"
|
|
10
|
+
@reload="$reloadHandle"
|
|
11
|
+
></editView>
|
|
12
|
+
</el-tab-pane>
|
|
13
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
14
|
+
<div class="tree-box fl">
|
|
15
|
+
<div class="tit">
|
|
16
|
+
<b>{{ $t1("操作类型") }}</b>
|
|
17
|
+
</div>
|
|
18
|
+
<el-tree
|
|
19
|
+
:props="defaultProps"
|
|
20
|
+
:load="loadNode"
|
|
21
|
+
node-key="id"
|
|
22
|
+
ref="tree"
|
|
23
|
+
highlight-current
|
|
24
|
+
lazy
|
|
25
|
+
:expand-on-click-node="false"
|
|
26
|
+
@node-click="handleNodeClick"
|
|
27
|
+
class="tree-list"
|
|
28
|
+
icon-class="el-icon-arrow-down"
|
|
29
|
+
></el-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<label id="labBtn">
|
|
32
|
+
<div class="icon">
|
|
33
|
+
<i class="el-icon-more"></i>
|
|
34
|
+
<i class="el-icon-more"></i>
|
|
35
|
+
</div>
|
|
36
|
+
</label>
|
|
37
|
+
<div class="main-right fr" style="padding-left: 6px">
|
|
38
|
+
<div class="grid-height">
|
|
39
|
+
<vxe-grid
|
|
40
|
+
ref="table-m1"
|
|
41
|
+
v-bind="vxeOption"
|
|
42
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
43
|
+
@custom="$vxeTableUtil.customHandle"
|
|
44
|
+
>
|
|
45
|
+
<template #form>
|
|
46
|
+
<tableForm
|
|
47
|
+
:formData.sync="formData"
|
|
48
|
+
@searchEvent="searchEvent"
|
|
49
|
+
@resetEvent="resetEvent"
|
|
50
|
+
>
|
|
51
|
+
<template #buttonLeft>
|
|
52
|
+
<base-table-export
|
|
53
|
+
:option="{ title: $t1('访问统计导出'), targetRef: 'table-m1' }"
|
|
54
|
+
:parent-target="_self"
|
|
55
|
+
/>
|
|
56
|
+
</template>
|
|
57
|
+
<template #buttonRight>
|
|
58
|
+
<vxe-button
|
|
59
|
+
icon="el-icon-brush"
|
|
60
|
+
class="button-sty"
|
|
61
|
+
@click="resetEvent"
|
|
62
|
+
type="text"
|
|
63
|
+
status="primary"
|
|
64
|
+
plain
|
|
65
|
+
>{{ $t1("重置") }}
|
|
66
|
+
</vxe-button>
|
|
67
|
+
<vxe-button
|
|
68
|
+
status="warning"
|
|
69
|
+
icon="el-icon-search"
|
|
70
|
+
class="button-sty"
|
|
71
|
+
@click="searchEvent"
|
|
72
|
+
>
|
|
73
|
+
{{ $t1("搜索") }}
|
|
74
|
+
</vxe-button>
|
|
75
|
+
</template>
|
|
76
|
+
<template #operateType>
|
|
77
|
+
<vxe-form-item :title="$t1('操作类型') + ':'">
|
|
78
|
+
<template v-slot>
|
|
79
|
+
<el-input v-model="checkNode.label" :disabled="true"></el-input>
|
|
80
|
+
</template>
|
|
81
|
+
</vxe-form-item>
|
|
82
|
+
</template>
|
|
83
|
+
</tableForm>
|
|
84
|
+
<!-- <vxe-form
|
|
85
|
+
ref="form"
|
|
86
|
+
class="screen-box"
|
|
87
|
+
title-width="92px"
|
|
88
|
+
title-align="right"
|
|
89
|
+
:data="formData"
|
|
90
|
+
@submit="searchEvent"
|
|
91
|
+
@reset="searchEvent"
|
|
92
|
+
>
|
|
93
|
+
<vxe-form-item :title="$t1('操作类型') + ':'">
|
|
94
|
+
<template v-slot>
|
|
95
|
+
<el-input v-model="checkNode.label" :disabled="true"></el-input>
|
|
96
|
+
</template>
|
|
97
|
+
</vxe-form-item>
|
|
98
|
+
<vxe-form-item :title="$t1('访问日期') + ':'">
|
|
99
|
+
<template v-slot>
|
|
100
|
+
<el-date-picker
|
|
101
|
+
v-model="formData.startTime"
|
|
102
|
+
type="date"
|
|
103
|
+
placeholder=""
|
|
104
|
+
size="small"
|
|
105
|
+
clearable
|
|
106
|
+
value-format="yyyy-MM-dd"
|
|
107
|
+
:picker-options="$baseStartPickerOptions(formData.endTime)"
|
|
108
|
+
></el-date-picker>
|
|
109
|
+
<span>-</span>
|
|
110
|
+
<el-date-picker
|
|
111
|
+
v-model="formData.endTime"
|
|
112
|
+
type="date"
|
|
113
|
+
placeholder=""
|
|
114
|
+
size="small"
|
|
115
|
+
clearable
|
|
116
|
+
value-format="yyyy-MM-dd"
|
|
117
|
+
:picker-options="$baseEndPickerOptions(formData.startTime)"
|
|
118
|
+
></el-date-picker>
|
|
119
|
+
</template>
|
|
120
|
+
</vxe-form-item>
|
|
121
|
+
</vxe-form> -->
|
|
122
|
+
</template>
|
|
123
|
+
</vxe-grid>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</el-tab-pane>
|
|
127
|
+
<el-tab-pane :label="$t1('统计')" name="third">
|
|
128
|
+
<statistics_list v-if="showStatisticsList"></statistics_list>
|
|
129
|
+
</el-tab-pane>
|
|
130
|
+
</el-tabs>
|
|
131
|
+
</div>
|
|
132
|
+
</template>
|
|
133
|
+
|
|
134
|
+
<script>
|
|
135
|
+
import { treeScollx } from "@base/utils/global.js";
|
|
136
|
+
import editView from "./edit.vue";
|
|
137
|
+
import statistics_list from "./statistics_list.vue";
|
|
138
|
+
import tableForm from "@base/components/table/tableForm";
|
|
139
|
+
|
|
140
|
+
export default {
|
|
141
|
+
name: "access_log:list",
|
|
142
|
+
components: { tableForm, editView, statistics_list },
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
activeName: "second",
|
|
146
|
+
dataId: 0,
|
|
147
|
+
showEdit: false,
|
|
148
|
+
vxeOption: {},
|
|
149
|
+
formData: {
|
|
150
|
+
startTime: null,
|
|
151
|
+
endTime: null,
|
|
152
|
+
},
|
|
153
|
+
checkNode: {},
|
|
154
|
+
defaultProps: {
|
|
155
|
+
label: "label", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
156
|
+
children: [],
|
|
157
|
+
isLeaf: "leaf",
|
|
158
|
+
},
|
|
159
|
+
showWfDialog: false,
|
|
160
|
+
wfContentOption: {},
|
|
161
|
+
showAdvancedSearch: false,
|
|
162
|
+
advancedFormData: {},
|
|
163
|
+
showStatisticsList: false,
|
|
164
|
+
logTypeMap: {},
|
|
165
|
+
};
|
|
166
|
+
},
|
|
167
|
+
watch: {
|
|
168
|
+
activeName(val) {
|
|
169
|
+
if (this.showStatisticsList === false && val === "third") {
|
|
170
|
+
this.showStatisticsList = true;
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
computed: {
|
|
175
|
+
checkNodeData() {
|
|
176
|
+
return this.checkNode && this.checkNode.data ? this.checkNode.data : {};
|
|
177
|
+
},
|
|
178
|
+
logType() {
|
|
179
|
+
let checkNodeData =
|
|
180
|
+
this.checkNode && this.checkNode.data ? this.checkNode.data : {};
|
|
181
|
+
return checkNodeData.value ?? null;
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
async mounted() {
|
|
185
|
+
treeScollx({ target: this, type: "default" });
|
|
186
|
+
this.initTableList();
|
|
187
|
+
},
|
|
188
|
+
methods: {
|
|
189
|
+
searchEvent() {
|
|
190
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
191
|
+
},
|
|
192
|
+
resetEvent() {
|
|
193
|
+
this.formData = {};
|
|
194
|
+
this.advancedFormData = {};
|
|
195
|
+
this.checkFirstNode();
|
|
196
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
197
|
+
},
|
|
198
|
+
openEditDialog(id) {
|
|
199
|
+
this.dataId = !id || typeof id == "object" ? 0 : id;
|
|
200
|
+
this.activeName = "first";
|
|
201
|
+
this.$openEditView("showEdit");
|
|
202
|
+
},
|
|
203
|
+
initTableList() {
|
|
204
|
+
let that = this;
|
|
205
|
+
let logTypeMap = this.logTypeMap;
|
|
206
|
+
let tableOption = {
|
|
207
|
+
vue: this,
|
|
208
|
+
tableRef: "table-m1",
|
|
209
|
+
tableName: "user_access_log_list-m1",
|
|
210
|
+
path: USER_PREFIX + "/access_log/listPage",
|
|
211
|
+
param: () => {
|
|
212
|
+
return {
|
|
213
|
+
...this.formData,
|
|
214
|
+
// ...this.advancedFormData,
|
|
215
|
+
logType: this.logType,
|
|
216
|
+
// ...checkParam
|
|
217
|
+
};
|
|
218
|
+
},
|
|
219
|
+
columns: [
|
|
220
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
221
|
+
{
|
|
222
|
+
title: this.$t1("操作类型"),
|
|
223
|
+
field: "logTypeName",
|
|
224
|
+
fixed: "left",
|
|
225
|
+
width: 150,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
title: this.$t1("操作内容"),
|
|
229
|
+
field: "content",
|
|
230
|
+
width: 200,
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
title: this.$t1("请求地址"),
|
|
234
|
+
field: "path",
|
|
235
|
+
width: 200,
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
title: this.$t1("客户端"),
|
|
239
|
+
field: "client",
|
|
240
|
+
width: 150,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
title: this.$t1("冗余字段1"),
|
|
244
|
+
field: "param1",
|
|
245
|
+
width: 150,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
title: this.$t1("冗余字段2"),
|
|
249
|
+
field: "param2",
|
|
250
|
+
width: 150,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
title: this.$t1("操作人"),
|
|
254
|
+
field: "nickName",
|
|
255
|
+
width: 150,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
title: this.$t1("服务名"),
|
|
259
|
+
field: "serverName",
|
|
260
|
+
width: 250,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
title: this.$t1("请求IP"),
|
|
264
|
+
field: "ip",
|
|
265
|
+
width: 150,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
title: this.$t1("创建时间"),
|
|
269
|
+
field: "createDate",
|
|
270
|
+
width: 150,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
width: 47,
|
|
274
|
+
fixed: "right",
|
|
275
|
+
title: "",
|
|
276
|
+
sortable: false,
|
|
277
|
+
slots: {
|
|
278
|
+
default: ({ row, rowIndex }) => {
|
|
279
|
+
return [
|
|
280
|
+
<div>
|
|
281
|
+
<a
|
|
282
|
+
href="javascript:void(0);"
|
|
283
|
+
class="a-link"
|
|
284
|
+
onclick={() => {
|
|
285
|
+
this.openEditDialog(row.id);
|
|
286
|
+
}}
|
|
287
|
+
>
|
|
288
|
+
<el-tooltip
|
|
289
|
+
enterable={false}
|
|
290
|
+
effect="dark"
|
|
291
|
+
content={this.$t1("查看")}
|
|
292
|
+
placement="top"
|
|
293
|
+
popper-class="tooltip-skin"
|
|
294
|
+
>
|
|
295
|
+
<i class="el-icon-edit" />
|
|
296
|
+
</el-tooltip>
|
|
297
|
+
</a>
|
|
298
|
+
</div>,
|
|
299
|
+
];
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
searchColumns: [
|
|
305
|
+
{
|
|
306
|
+
title: this.$t1("操作类型"),
|
|
307
|
+
field: "operateType",
|
|
308
|
+
type: "input",
|
|
309
|
+
common: true,
|
|
310
|
+
slot: "operateType",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
title: this.$t1("访问日期"),
|
|
314
|
+
field: "startTime",
|
|
315
|
+
field2: "endTime",
|
|
316
|
+
type: "dateRange",
|
|
317
|
+
common: true,
|
|
318
|
+
widgetType: "date",
|
|
319
|
+
valueFormat: "yyyy-MM-dd",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
title: this.$t1("操作人"),
|
|
323
|
+
field: "nickName",
|
|
324
|
+
type: "input",
|
|
325
|
+
common: true,
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
title: this.$t1("操作内容"),
|
|
329
|
+
field: "content",
|
|
330
|
+
type: "input",
|
|
331
|
+
common: false,
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
title: this.$t1("请求IP"),
|
|
335
|
+
field: "ip",
|
|
336
|
+
type: "input",
|
|
337
|
+
common: false,
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
title: this.$t1("冗余字段1"),
|
|
341
|
+
field: "param1",
|
|
342
|
+
type: "input",
|
|
343
|
+
common: false,
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
title: this.$t1("冗余字段2"),
|
|
347
|
+
field: "param2",
|
|
348
|
+
type: "input",
|
|
349
|
+
common: false,
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
};
|
|
353
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
354
|
+
this.vxeOption = opts;
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
clearNodeClick() {
|
|
358
|
+
this.checkNode = null;
|
|
359
|
+
this.formData.startTime = null;
|
|
360
|
+
this.formData.endTime = null;
|
|
361
|
+
this.$refs.tree.setCurrentKey();
|
|
362
|
+
this.searchEvent();
|
|
363
|
+
},
|
|
364
|
+
handleNodeClick(data, node, v) {
|
|
365
|
+
this.checkNode = node;
|
|
366
|
+
this.formData.startTime = data.all ? null : data.logDate;
|
|
367
|
+
this.formData.endTime = data.all ? null : data.logDate;
|
|
368
|
+
this.$forceUpdate();
|
|
369
|
+
this.searchEvent();
|
|
370
|
+
},
|
|
371
|
+
// 异步树叶子节点懒加载逻辑
|
|
372
|
+
loadNode(node, resolve) {
|
|
373
|
+
this.$http({
|
|
374
|
+
url: USER_PREFIX + `/user_log_classify/listPage`,
|
|
375
|
+
method: `post`,
|
|
376
|
+
data: {
|
|
377
|
+
enabled: true,
|
|
378
|
+
},
|
|
379
|
+
success: (res) => {
|
|
380
|
+
let logTypeMap = {};
|
|
381
|
+
let rows = res.objx?.records || [];
|
|
382
|
+
let items = rows.map((item) => {
|
|
383
|
+
logTypeMap[item.classifyCode] = item.classifyName;
|
|
384
|
+
return {
|
|
385
|
+
label: item.classifyName,
|
|
386
|
+
value: item.classifyCode,
|
|
387
|
+
id: item.classifyCode,
|
|
388
|
+
leaf: true,
|
|
389
|
+
};
|
|
390
|
+
});
|
|
391
|
+
this.logTypeMap = logTypeMap;
|
|
392
|
+
let data = [
|
|
393
|
+
{
|
|
394
|
+
label: this.$t1("全部类型"),
|
|
395
|
+
all: true,
|
|
396
|
+
id: -1,
|
|
397
|
+
leaf: true,
|
|
398
|
+
},
|
|
399
|
+
...items,
|
|
400
|
+
];
|
|
401
|
+
resolve(data);
|
|
402
|
+
this.$nextTick(() => {
|
|
403
|
+
if (node.childNodes.length) {
|
|
404
|
+
this.checkFirstNode();
|
|
405
|
+
this.$forceUpdate();
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
},
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
checkFirstNode() {
|
|
412
|
+
let node = this.$refs.tree.getNode(-1);
|
|
413
|
+
this.$refs.tree.setCurrentKey(node);
|
|
414
|
+
this.checkNode = node;
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
};
|
|
418
|
+
</script>
|