cloud-web-corejs 1.0.54-dev.93 → 1.0.54-dev.95
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 +1 -1
- package/src/components/fileLibrary/filterDialog.vue +434 -0
- package/src/components/fileLibrary/index.vue +25 -14
- package/src/components/fileLibrary/mixins/indexMixins.js +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +2 -2
- package/src/utils/pddLog.js +102 -1
package/package.json
CHANGED
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
title="高级筛选"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
:modal-append-to-body="true"
|
|
6
|
+
:close-on-click-modal="falseValue"
|
|
7
|
+
:visible.sync="showDialog"
|
|
8
|
+
:modal="falseValue"
|
|
9
|
+
custom-class="dialog-style proList-dialog"
|
|
10
|
+
width="1200px"
|
|
11
|
+
@close="dialogClose"
|
|
12
|
+
v-el-drag-dialog
|
|
13
|
+
v-el-dialog-center
|
|
14
|
+
>
|
|
15
|
+
<div class="cont">
|
|
16
|
+
<div id="containt" style="height:550px">
|
|
17
|
+
<div class="tree-box fl" style="width:15%;height:100%;padding: 10px;">
|
|
18
|
+
<div class="tit"><b>文件属性</b></div>
|
|
19
|
+
<div style="height: calc(100% - 35px);padding-top: 10px;">
|
|
20
|
+
<el-form>
|
|
21
|
+
<el-form-item label="文件类型">
|
|
22
|
+
<el-select v-model="fileTypeSn" @change="getAttributeList">
|
|
23
|
+
<el-option v-for="(item,index) in fileTypes" :key="index" :label="item.fileTypeName"
|
|
24
|
+
:value="item.fileTypeSn"></el-option>
|
|
25
|
+
</el-select>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
<el-form-item v-for="(item,index) in fileAttributes" :key="index" :label="item.attributeName">
|
|
28
|
+
<el-input v-model="item.formValue" clearable></el-input>
|
|
29
|
+
</el-form-item>
|
|
30
|
+
</el-form>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<label id="labBtn" class="labBtn1">
|
|
34
|
+
<div class="icon">
|
|
35
|
+
<i class="el-icon-more"></i>
|
|
36
|
+
<i class="el-icon-more"></i>
|
|
37
|
+
</div>
|
|
38
|
+
</label>
|
|
39
|
+
<div class="main-right fr" style="width:85%;padding-left: 6px;">
|
|
40
|
+
<div style="height:100%">
|
|
41
|
+
<vxe-grid
|
|
42
|
+
ref="table-m1"
|
|
43
|
+
v-bind="vxeOption"
|
|
44
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
45
|
+
@custom="$vxeTableUtil.customHandle"
|
|
46
|
+
>
|
|
47
|
+
<template #form>
|
|
48
|
+
<div class="clearfix screen-btns">
|
|
49
|
+
<div class="fl">
|
|
50
|
+
|
|
51
|
+
</div>
|
|
52
|
+
<div class="fr">
|
|
53
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text"
|
|
54
|
+
status="primary"
|
|
55
|
+
plain>重置
|
|
56
|
+
</vxe-button>
|
|
57
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
|
|
58
|
+
</vxe-button>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
62
|
+
@submit="searchEvent"
|
|
63
|
+
@reset="resetEvent">
|
|
64
|
+
<vxe-form-item title="文件名:" field="fileName">
|
|
65
|
+
<template v-slot>
|
|
66
|
+
<el-input v-model="formData.fileName" size="small" clearable/>
|
|
67
|
+
</template>
|
|
68
|
+
</vxe-form-item>
|
|
69
|
+
<vxe-form-item title="所属对象描述:" field="note">
|
|
70
|
+
<template v-slot>
|
|
71
|
+
<base-input-batch v-model="formData.note"/>
|
|
72
|
+
</template>
|
|
73
|
+
</vxe-form-item>
|
|
74
|
+
<vxe-form-item title="创建时间:">
|
|
75
|
+
<template v-slot>
|
|
76
|
+
<el-date-picker
|
|
77
|
+
v-model="formData.startTime"
|
|
78
|
+
type="date"
|
|
79
|
+
placeholder=""
|
|
80
|
+
size="small"
|
|
81
|
+
clearable
|
|
82
|
+
value-format="yyyy-MM-dd"
|
|
83
|
+
:picker-options="$baseStartPickerOptions(formData.endTime)"
|
|
84
|
+
></el-date-picker>
|
|
85
|
+
<span>-</span>
|
|
86
|
+
<el-date-picker
|
|
87
|
+
v-model="formData.endTime"
|
|
88
|
+
type="date"
|
|
89
|
+
placeholder=""
|
|
90
|
+
size="small"
|
|
91
|
+
clearable
|
|
92
|
+
value-format="yyyy-MM-dd"
|
|
93
|
+
:picker-options="$baseEndPickerOptions(formData.startTime)"
|
|
94
|
+
></el-date-picker>
|
|
95
|
+
</template>
|
|
96
|
+
</vxe-form-item>
|
|
97
|
+
</vxe-form>
|
|
98
|
+
</template>
|
|
99
|
+
</vxe-grid>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</el-dialog>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script>
|
|
108
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
109
|
+
|
|
110
|
+
import {treeScollx, treeScolly} from '@base/utils/global.js';
|
|
111
|
+
|
|
112
|
+
export default {
|
|
113
|
+
name: 'productDialog',
|
|
114
|
+
props: ['visiable', 'multi', 'rows', 'treeNodeArr', 'currentFileCategory'],
|
|
115
|
+
mixins: [selectDialogMixins],
|
|
116
|
+
inject: ['current_prefix', 'storeAreaCode', 'getObjectForeignId', 'getIsPrivate'],
|
|
117
|
+
created() {
|
|
118
|
+
this.initSetting({treeScolly: false});
|
|
119
|
+
setTimeout(() => {
|
|
120
|
+
treeScollx({target: this, type: 'default', dragBtn: '.labBtn1'});
|
|
121
|
+
treeScolly({target: this, type: 'selectDialog', dragBtn: '.labBtn2'});
|
|
122
|
+
}, 200);
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
mounted() {
|
|
126
|
+
this.getFileTypeList();
|
|
127
|
+
this.initTableM1();
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
computed: {},
|
|
131
|
+
data() {
|
|
132
|
+
return {
|
|
133
|
+
showDialog: true,
|
|
134
|
+
falseValue: false,
|
|
135
|
+
selectMulti: true,
|
|
136
|
+
formData: {},
|
|
137
|
+
vxeOption: {},
|
|
138
|
+
|
|
139
|
+
fileTypes: [],
|
|
140
|
+
fileAttributes: [],
|
|
141
|
+
fileTypeSn: null,
|
|
142
|
+
fileAttachAttributeCDTos: []
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
methods: {
|
|
146
|
+
initTableM1() {
|
|
147
|
+
// debugger
|
|
148
|
+
let that = this;
|
|
149
|
+
|
|
150
|
+
let tableOption = {
|
|
151
|
+
vue: that,
|
|
152
|
+
tableRef: 'table-m1',
|
|
153
|
+
tableName: 'fileLigraryFilterDialog-m1',
|
|
154
|
+
path: this.current_prefix + "/file_obj/listAuthAttachPage",
|
|
155
|
+
param: () => {
|
|
156
|
+
/* let parents = this.currentFileCategory &&
|
|
157
|
+
this.currentFileCategory.id &&
|
|
158
|
+
this.currentFileCategory.id > 0
|
|
159
|
+
? [this.currentFileCategory.id]
|
|
160
|
+
: [];*/
|
|
161
|
+
let fileAttachAttributeCDTOs = [];
|
|
162
|
+
this.fileAttributes.map(item => {
|
|
163
|
+
if (item.formValue !== "" && item.formValue !== null) {
|
|
164
|
+
fileAttachAttributeCDTOs.push({attributeSn: item.attributeSn, attributeValue: item.formValue});
|
|
165
|
+
}
|
|
166
|
+
})
|
|
167
|
+
|
|
168
|
+
let objectForeignId = this.getObjectForeignId();
|
|
169
|
+
let isPrivate = this.getIsPrivate();
|
|
170
|
+
return {
|
|
171
|
+
// parents,
|
|
172
|
+
objectForeignId: objectForeignId,
|
|
173
|
+
// privateDir: isPrivate ? 1 : 0,
|
|
174
|
+
fileAttachAttributeCDTOs,
|
|
175
|
+
storeAreaCode: this.storeAreaCode,
|
|
176
|
+
...this.formData,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
columns: [
|
|
180
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
181
|
+
{
|
|
182
|
+
title: this.$t2('文件名称', 'components.fileLibrary.fileName'),
|
|
183
|
+
field: "fileName",
|
|
184
|
+
width: 250,
|
|
185
|
+
fixed: "left",
|
|
186
|
+
slots: {
|
|
187
|
+
default: ({row, $rowIndex}) => {
|
|
188
|
+
let h = this.$createElement;
|
|
189
|
+
if (!row.dirs) {
|
|
190
|
+
let showUrl = that.getShowUrl(row, "thumbnail");
|
|
191
|
+
return [
|
|
192
|
+
h(
|
|
193
|
+
"a",
|
|
194
|
+
{
|
|
195
|
+
staticClass: "a-link img",
|
|
196
|
+
on: {
|
|
197
|
+
click: (event) => {
|
|
198
|
+
event.stopPropagation();
|
|
199
|
+
that.$baseFilePreview(row);
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
[
|
|
204
|
+
h(
|
|
205
|
+
"el-tooltip",
|
|
206
|
+
{
|
|
207
|
+
props: {
|
|
208
|
+
enterable: false,
|
|
209
|
+
effect: "dark",
|
|
210
|
+
content: this.$t2('预览', 'components.fileLibrary.preview'),
|
|
211
|
+
placement: "top",
|
|
212
|
+
"popper-class": "tooltip-skin",
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
[
|
|
216
|
+
h("el-image", {
|
|
217
|
+
props: {
|
|
218
|
+
src: showUrl,
|
|
219
|
+
},
|
|
220
|
+
}),
|
|
221
|
+
]
|
|
222
|
+
),
|
|
223
|
+
]
|
|
224
|
+
),
|
|
225
|
+
h("span", row.fileName),
|
|
226
|
+
];
|
|
227
|
+
} else {
|
|
228
|
+
return [
|
|
229
|
+
h(
|
|
230
|
+
"a",
|
|
231
|
+
{
|
|
232
|
+
staticClass: "a-link img",
|
|
233
|
+
on: {
|
|
234
|
+
click: (event) => {
|
|
235
|
+
event.stopPropagation();
|
|
236
|
+
that.changeCategory(row);
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
[
|
|
241
|
+
h(
|
|
242
|
+
"div",
|
|
243
|
+
{
|
|
244
|
+
staticClass: "img",
|
|
245
|
+
},
|
|
246
|
+
[
|
|
247
|
+
h("svg-icon", {
|
|
248
|
+
props: {"icon-class": "ico-wenjianjia"},
|
|
249
|
+
}),
|
|
250
|
+
h("span", row.fileName),
|
|
251
|
+
]
|
|
252
|
+
),
|
|
253
|
+
]
|
|
254
|
+
),
|
|
255
|
+
];
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
title: this.$t2('文件大小', 'components.fileLibrary.fileSize'),
|
|
262
|
+
field: "fileSize",
|
|
263
|
+
width: 150,
|
|
264
|
+
slots: {
|
|
265
|
+
default: ({row, $rowIndex}) => {
|
|
266
|
+
if (!row.dirs) {
|
|
267
|
+
return this.formatFileSize(row.fileSize);
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: this.$t2('版本号', 'components.fileLibrary.fileRev'),
|
|
274
|
+
field: "rev",
|
|
275
|
+
width: 150,
|
|
276
|
+
slots: {
|
|
277
|
+
default: ({row, $rowIndex}) => {
|
|
278
|
+
if (!row.dirs) {
|
|
279
|
+
return row.rev;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
|
|
285
|
+
{title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
|
|
286
|
+
{
|
|
287
|
+
title: '状态',
|
|
288
|
+
field: 'status',
|
|
289
|
+
width: 150,
|
|
290
|
+
slots: {
|
|
291
|
+
default: ({row, $rowIndex}) => {
|
|
292
|
+
if (!row.dirs) {
|
|
293
|
+
return row.status == 1 ? '已归档' : '未归档';
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
title: this.$t2('文件编码', 'components.fileLibrary.fileSn'),
|
|
300
|
+
field: "fileSn",
|
|
301
|
+
width: 150
|
|
302
|
+
},
|
|
303
|
+
// ...customColumns,
|
|
304
|
+
{title: this.$t2('创建人', 'components.fileLibrary.createBy'), field: "createBy", width: 150},
|
|
305
|
+
{
|
|
306
|
+
field: "createDate",
|
|
307
|
+
title: this.$t2('创建时间', 'components.fileLibrary.createDate'),
|
|
308
|
+
width: 150,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
width: 47,
|
|
312
|
+
fixed: 'right',
|
|
313
|
+
title: '',
|
|
314
|
+
sortable: false,
|
|
315
|
+
slots: {
|
|
316
|
+
default: ({row, rowIndex}) => {
|
|
317
|
+
return [
|
|
318
|
+
<div>
|
|
319
|
+
<a
|
|
320
|
+
href="javascript:void(0);"
|
|
321
|
+
class="a-link"
|
|
322
|
+
onclick={() => {
|
|
323
|
+
this.openFileDirs(row);
|
|
324
|
+
}}
|
|
325
|
+
>
|
|
326
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('在文件夹中显示')} placement="top"
|
|
327
|
+
popper-class="tooltip-skin">
|
|
328
|
+
<i class="el-icon-edit"/>
|
|
329
|
+
</el-tooltip>
|
|
330
|
+
</a>
|
|
331
|
+
</div>
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
};
|
|
338
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
339
|
+
that.vxeOption = opts;
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
openFileDirs(row) {
|
|
343
|
+
this.dialogClose();
|
|
344
|
+
this.$emit("openFileDirs", row)
|
|
345
|
+
},
|
|
346
|
+
getShowUrl(attachment, field) {
|
|
347
|
+
if (!field) field = "medium";
|
|
348
|
+
return this.$commonFileUtil.getShowUrl(
|
|
349
|
+
attachment.domain +
|
|
350
|
+
(attachment[field] ? attachment[field] : attachment.url)
|
|
351
|
+
);
|
|
352
|
+
},
|
|
353
|
+
formatFileSize(fileSize) {
|
|
354
|
+
fileSize = fileSize || 0;
|
|
355
|
+
if (fileSize < 1024) {
|
|
356
|
+
return fileSize + "B";
|
|
357
|
+
} else if (fileSize < 1024 * 1024) {
|
|
358
|
+
var temp = fileSize / 1024;
|
|
359
|
+
temp = temp.toFixed(2);
|
|
360
|
+
return temp + "KB";
|
|
361
|
+
} else if (fileSize < 1024 * 1024 * 1024) {
|
|
362
|
+
var temp = fileSize / (1024 * 1024);
|
|
363
|
+
temp = temp.toFixed(2);
|
|
364
|
+
return temp + "MB";
|
|
365
|
+
} else {
|
|
366
|
+
var temp = fileSize / (1024 * 1024 * 1024);
|
|
367
|
+
temp = temp.toFixed(2);
|
|
368
|
+
return temp + "GB";
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
searchEvent() {
|
|
372
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
373
|
+
},
|
|
374
|
+
resetEvent() {
|
|
375
|
+
this.formData = {};
|
|
376
|
+
this.clearFileAttributeFormValue();
|
|
377
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
378
|
+
},
|
|
379
|
+
clearFileAttributeFormValue() {
|
|
380
|
+
this.fileTypeSn = null;
|
|
381
|
+
this.fileAttributes.forEach(item => {
|
|
382
|
+
item.formValue = null;
|
|
383
|
+
})
|
|
384
|
+
},
|
|
385
|
+
getFileTypeList() {
|
|
386
|
+
this.$http({
|
|
387
|
+
url: this.current_prefix + `/file_type/listPage`,
|
|
388
|
+
method: `post`,
|
|
389
|
+
data: {
|
|
390
|
+
enabled: true
|
|
391
|
+
},
|
|
392
|
+
// isLoading: true,
|
|
393
|
+
// modalStrictly: true,
|
|
394
|
+
success: (res) => {
|
|
395
|
+
this.fileTypes = res.objx?.records || [];
|
|
396
|
+
},
|
|
397
|
+
});
|
|
398
|
+
},
|
|
399
|
+
getAttributeList() {
|
|
400
|
+
this.$http({
|
|
401
|
+
url: this.current_prefix + `/file_type/listAttribute`,
|
|
402
|
+
method: `post`,
|
|
403
|
+
data: {
|
|
404
|
+
stringOne: this.fileTypeSn
|
|
405
|
+
},
|
|
406
|
+
// isLoading: true,
|
|
407
|
+
// modalStrictly: true,
|
|
408
|
+
success: (res) => {
|
|
409
|
+
let rows = res.objx || [];
|
|
410
|
+
rows.forEach(row => {
|
|
411
|
+
row.formValue = null;
|
|
412
|
+
})
|
|
413
|
+
this.fileAttributes = rows;
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
</script>
|
|
421
|
+
<style scoped lang="scss">
|
|
422
|
+
.dialog-style.proList-dialog .el-dialog__body #containt {
|
|
423
|
+
height: 100%;
|
|
424
|
+
|
|
425
|
+
.main-right {
|
|
426
|
+
height: 100%
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
#labBtn.transverse {
|
|
431
|
+
margin-bottom: 0;
|
|
432
|
+
margin-left: -8px;
|
|
433
|
+
}
|
|
434
|
+
</style>
|
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)">
|
|
109
109
|
{{ $t2('删除', 'components.fileLibrary.delete') }}
|
|
110
110
|
</el-button>
|
|
111
|
+
<el-button icon="iconfont icon-shaixuan" class="button-sty" @click="showFilterDialog = true">
|
|
112
|
+
{{ $t1('高级筛选') }}
|
|
113
|
+
</el-button>
|
|
111
114
|
|
|
112
115
|
<template v-for="(fileButton,customToobarButtonIndex) in customToobarButtons">
|
|
113
116
|
<template
|
|
@@ -483,7 +486,7 @@
|
|
|
483
486
|
</el-breadcrumb>
|
|
484
487
|
</el-form-item>
|
|
485
488
|
<el-form-item :label="$t2('文件夹编码','components.fileLibrary.fileCategorySn')">
|
|
486
|
-
<span>{{editCategory.fileSn}}</span>
|
|
489
|
+
<span>{{ editCategory.fileSn }}</span>
|
|
487
490
|
</el-form-item>
|
|
488
491
|
<el-form-item :label="$t2('文件夹名称','components.fileLibrary.fileCategoryName')">
|
|
489
492
|
<el-input v-model="editCategory.fileName" clearable class="all-width"/>
|
|
@@ -522,16 +525,16 @@
|
|
|
522
525
|
:formData.sync="advancedFormData" @confirm="searchEvent">
|
|
523
526
|
<template #form>
|
|
524
527
|
<vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">
|
|
525
|
-
<!-- <vxe-form-item title="属性名称:">
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
<!-- <vxe-form-item title="属性名称:">
|
|
529
|
+
<template v-slot>
|
|
530
|
+
<el-input v-model="advancedFormData.attributeName" clearable/>
|
|
531
|
+
</template>
|
|
532
|
+
</vxe-form-item>
|
|
533
|
+
<vxe-form-item title="属性值:">
|
|
534
|
+
<template v-slot>
|
|
535
|
+
<el-input v-model="advancedFormData.attributeValue" clearable/>
|
|
536
|
+
</template>
|
|
537
|
+
</vxe-form-item>-->
|
|
535
538
|
<!-- <vxe-form-item title="状态:">
|
|
536
539
|
<template v-slot>
|
|
537
540
|
<el-select v-model="advancedFormData.status" clearable>
|
|
@@ -581,6 +584,9 @@
|
|
|
581
584
|
<videoDialog v-if="showVideoDialog" :visiable.sync="showVideoDialog" :option="videoOption"></videoDialog>
|
|
582
585
|
<fileObjAuthDialog v-if="showFileObjAuthDialog" :visiable.sync="showFileObjAuthDialog"
|
|
583
586
|
:fileObjId="currentFileCategory ? currentFileCategory.id:0" :treeNodeArr="treeNodeArr"/>
|
|
587
|
+
|
|
588
|
+
<filterDialog v-if="showFilterDialog" :visiable.sync="showFilterDialog" queryType="pcp" :treeNodeArr="treeNodeArr"
|
|
589
|
+
:currentFileCategory="currentFileCategory" @openFileDirs="openFileDirs"></filterDialog>
|
|
584
590
|
</div>
|
|
585
591
|
</template>
|
|
586
592
|
|
|
@@ -588,16 +594,18 @@
|
|
|
588
594
|
|
|
589
595
|
import mixins from './mixins/indexMixins';
|
|
590
596
|
import fileObjAuthDialog from "../../components/fileLibrary/fileObjAuthDialog";
|
|
597
|
+
import filterDialog from "./filterDialog.vue";
|
|
591
598
|
|
|
592
599
|
export default {
|
|
593
600
|
name: 'ledgerLibrary',
|
|
594
601
|
mixins: [mixins],
|
|
595
|
-
components: {fileObjAuthDialog},
|
|
602
|
+
components: {fileObjAuthDialog, filterDialog},
|
|
596
603
|
data() {
|
|
597
604
|
return {
|
|
598
605
|
showFileObjAuthDialog: false,
|
|
599
606
|
fileObjAuth: {},
|
|
600
|
-
popAnnexFilter: false
|
|
607
|
+
popAnnexFilter: false,
|
|
608
|
+
showFilterDialog: false
|
|
601
609
|
}
|
|
602
610
|
}
|
|
603
611
|
}
|
|
@@ -683,5 +691,8 @@ export default {
|
|
|
683
691
|
height: calc(100vh - 215px);
|
|
684
692
|
}
|
|
685
693
|
}
|
|
686
|
-
|
|
694
|
+
|
|
695
|
+
#labBtn {
|
|
696
|
+
height: calc(100vh - 34px)
|
|
697
|
+
}
|
|
687
698
|
</style>
|
|
@@ -262,6 +262,34 @@ modules = {
|
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
methods: {
|
|
265
|
+
openFileDirs(row) {
|
|
266
|
+
let keys = row.treePath.split(',').filter(item => !!item);
|
|
267
|
+
let size = keys.length
|
|
268
|
+
let tree = this.$refs.tree
|
|
269
|
+
|
|
270
|
+
let parent = null;
|
|
271
|
+
let loopDo = (index) => {
|
|
272
|
+
if (size <= index) return
|
|
273
|
+
let key = keys[index]
|
|
274
|
+
let node = tree.getNode(key + "");
|
|
275
|
+
let data = node.data;
|
|
276
|
+
if (size == index + 1) {
|
|
277
|
+
tree.setCurrentKey(data);
|
|
278
|
+
this.handleNodeClick(data, node, this);
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (!data.leaf) {
|
|
283
|
+
node.expand(() => {
|
|
284
|
+
loopDo(index + 1)
|
|
285
|
+
})
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
this.getTopNode().expand(() => {
|
|
289
|
+
loopDo(0)
|
|
290
|
+
})
|
|
291
|
+
|
|
292
|
+
},
|
|
265
293
|
getTopNode() {
|
|
266
294
|
return this.$refs.tree.root.childNodes[0];
|
|
267
295
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</a>
|
|
17
17
|
</el-form-item>
|
|
18
18
|
|
|
19
|
-
<el-form-item :label="i18nt('特定流程节点显隐')">
|
|
19
|
+
<!-- <el-form-item :label="i18nt('特定流程节点显隐')">
|
|
20
20
|
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
|
21
21
|
</el-form-item>
|
|
22
22
|
<el-form-item :label="i18nt('流程节点信息')">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<span>{{ optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : "" }}</span>
|
|
25
25
|
<i class="el-icon-edit"></i>
|
|
26
26
|
</a>
|
|
27
|
-
</el-form-item
|
|
27
|
+
</el-form-item>-->
|
|
28
28
|
<el-dialog
|
|
29
29
|
v-if="dialogVisible"
|
|
30
30
|
custom-class="dialog-style list-dialog"
|
package/src/utils/pddLog.js
CHANGED
|
@@ -1,2 +1,103 @@
|
|
|
1
1
|
import settingConfig from "@/settings";
|
|
2
|
-
(function(_0x44c767,_0x587e5c){function _0x231ad8(_0x11bd1d,_0xe4683a,_0x111be3,_0x1ac41c,_0x205db1){return _0xba12(_0x1ac41c- -0xb0,_0x205db1);}function _0x28f146(_0xe4a000,_0x434acb,_0x470d0f,_0x29f496,_0x1df28b){return _0xba12(_0x1df28b- -0x3bc,_0x434acb);}function _0x5e4d8e(_0xedb825,_0x52f345,_0x57721b,_0x4a0ba2,_0x4bfafa){return _0x3e5c(_0x57721b- -0x3cf,_0x52f345);}function _0x4eddd9(_0x7eb6dd,_0x5ee47c,_0x464f6a,_0x17299f,_0x2d1f6d){return _0x3e5c(_0x7eb6dd- -0x2c8,_0x5ee47c);}const _0x1f4d32=_0x44c767();function _0x15dfdd(_0x4fdf55,_0x33bb27,_0x4b4397,_0x5c3c42,_0x4aa9c1){return _0x3e5c(_0x33bb27- -0x9b,_0x4fdf55);}function _0x1e5538(_0x345614,_0x4e6644,_0x2d07cc,_0x459773,_0x37e30f){return _0x3e5c(_0x2d07cc-0x2dc,_0x459773);}function _0xc58caf(_0x5d3685,_0x1e4bbe,_0x66dbe0,_0x16521e,_0x303807){return _0xba12(_0x66dbe0-0xe3,_0x1e4bbe);}function _0x4ca598(_0x6f19e6,_0x1efeab,_0x491d09,_0x1f83bb,_0x234ece){return _0xba12(_0x234ece- -0x228,_0x491d09);}function _0x5004c9(_0x528c44,_0x574a4f,_0x142d58,_0x194593,_0x562e2f){return _0x3e5c(_0x194593-0x1ae,_0x562e2f);}do{try{const _0x5d02d9=-parseInt(_0xc58caf(0x129,0x141,0x122,0x142,0x144))/0x1*(-parseInt(_0x5004c9(0x1e0,0x1ce,0x1e8,0x1de,"pyCF".split("").reverse().join("")))/0x2)+-parseInt(_0xc58caf(0x111,0xfe,0xfd,0x10f,0xdf))/0x3+parseInt(_0x15dfdd("v#14".split("").reverse().join(""),-0x49,-0x28,-0x3d,-0x6b))/0x4*(parseInt(_0x231ad8(-0x7b,-0x97,-0x7f,-0x8c,-0x7d))/0x5)+parseInt(_0xc58caf(0xf5,0xfd,0xf8,0x111,0x123))/0x6+-parseInt(_0x5004c9(0x1d5,0x1de,0x1b6,0x1c4,"28N#".split("").reverse().join("")))/0x7*(-parseInt(_0x1e5538(0x308,0x2cb,0x2e0,"6xP5".split("").reverse().join(""),0x2d0))/0x8)+parseInt(_0x4eddd9(-0x2c1,"\u0068\u0030\u0077\u0064",-0x2e5,-0x2dd,-0x2db))/0x9+-parseInt(_0x1e5538(0x334,0x30a,0x31d,"\u0023\u0053\u0055\u0050",0x345))/0xa;if(_0x5d02d9===_0x587e5c){break;}else{_0x1f4d32["\u0070\u0075\u0073\u0068"](_0x1f4d32['shift']());}}catch(_0x55ea89){_0x1f4d32["\u0070\u0075\u0073\u0068"](_0x1f4d32["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x5794,0xb8e5c);export function initPddLog(){const _0x12579b={'QhVkO':function(_0x2feed0){return _0x2feed0();}};if(!settingConfig["\u0070\u0064\u0064\u004c\u006f\u0067\u0045\u006e\u0061\u0062\u006c\u0065\u0064"]||!window['PDD_OPEN_init'])return;_0x12579b["\u0051\u0068\u0056\u006b\u004f"](_0x5b41cc);}function _0x4ba2cf(_0x4b552c){function _0x1a36b8(_0x3105ec,_0x1151b8,_0x17f63c,_0x180b94,_0x3e10bb){return _0x3e5c(_0x3e10bb- -0x171,_0x180b94);}function _0x575997(_0x5234e9,_0x2d17fa,_0x35fc85,_0x51a7c7,_0x558b7e){return _0xba12(_0x2d17fa-0x3,_0x35fc85);}function _0x3d309d(_0x2d1561,_0x5411b6,_0x58ded,_0x3bb0d8,_0x599f54){return _0x3e5c(_0x5411b6-0x38e,_0x2d1561);}const _0x18fe44={"\u0065\u0056\u0050\u004c\u0069":function(_0x32747c,_0x1b70f3){return _0x32747c+_0x1b70f3;}};var _0x40bb1f=0x7+0x3;let _0x1fcdd7=window["\u0024\u0076\u0075\u0065\u0052\u006f\u006f\u0074"];function _0x69dcc2(_0x550473,_0x1d8c85,_0x237e0f,_0x31b6e9,_0x285886){return _0xba12(_0x31b6e9-0x1dd,_0x285886);}_0x40bb1f=_0x1a36b8(-0x12f,-0x13a,-0x161,"\u0023\u0053\u0055\u0050",-0x13f);return _0x1fcdd7["\u0024\u0068\u0074\u0074\u0070"]({"\u0075\u0072\u006c":_0x18fe44["\u0065\u0056\u0050\u004c\u0069"](USER_PREFIX,_0x575997(0x41,0x54,0x44,0x41,0x6d)),"\u006d\u0065\u0074\u0068\u006f\u0064":_0x575997(0x3c,0x1f,0x36,-0x3,0x34),"\u0064\u0061\u0074\u0061":{'id':_0x3d309d("\u0056\u0043\u0043\u0056",0x3b7,0x3c0,0x3ae,0x3c4)},"\u006d\u006f\u0064\u0061\u006c":![],"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":_0x5f63fd=>{const _0x3c8133={"\u0064\u0077\u0061\u0068\u007a":function(_0x78b6c5,_0x43268b){return _0x18fe44['eVPLi'](_0x78b6c5,_0x43268b);}};function _0x2d3fe7(_0x1fdc41,_0x34dfe1,_0x5da89b,_0x47d6ed,_0x4431a6){return _0x3e5c(_0x34dfe1- -0x42,_0x47d6ed);}function _0x335f77(_0xd57e1b,_0x4ab9ff,_0x935b77,_0x42cd0f,_0x3624f9){return _0xba12(_0x42cd0f-0x307,_0x935b77);}if(_0x335f77(0x339,0x309,0x337,0x313,0x30d)===_0x2d3fe7(0x1f,-0x9,-0xa,"\u006a\u005d\u0074\u002a",0x20)){if(_0x5f63fd["\u006f\u0062\u006a\u0078"]?.["esnopser".split("").reverse().join("")]){var _0x5737b0=0x6+0x1;let _0x98db81=_0x5f63fd["\u006f\u0062\u006a\u0078"]['response'];_0x5737b0=_0x18fe44['eVPLi'](0x2,0x9);if(!_0x98db81['success']){_0x1fcdd7["\u0024\u0062\u0061\u0073\u0065\u0041\u006c\u0065\u0072\u0074"](_0x98db81['errorMessage']);return;}let _0x36f0ac=_0x98db81["\u0070\u0061\u0067\u0065\u0043\u006f\u0064\u0065"];_0x4b552c(_0x36f0ac);}}else{var _0x53a4f6=_0x3c8133['dwahz'](0x6,0x1);let _0x40c416=_0x530a53["\u006f\u0062\u006a\u0078"]['response'];_0x53a4f6=0x2+0x9;if(!_0x40c416["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"]){_0x16f57a["\u0024\u0062\u0061\u0073\u0065\u0041\u006c\u0065\u0072\u0074"](_0x40c416["\u0065\u0072\u0072\u006f\u0072\u004d\u0065\u0073\u0073\u0061\u0067\u0065"]);return;}let _0x1ce5f7=_0x40c416["\u0070\u0061\u0067\u0065\u0043\u006f\u0064\u0065"];_0x3325ab(_0x1ce5f7);}}});}function _0xba12(_0x5dd9dc,_0x579459){const _0xba128a=_0x5794();_0xba12=function(_0x2430f8,_0x37dec2){_0x2430f8=_0x2430f8-0x0;let _0x56667f=_0xba128a[_0x2430f8];if(_0xba12['dcSLjm']===undefined){var _0x26befc=function(_0x93dbcb){const _0x31038f="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x4ceb05='';let _0x760b8a='';for(let _0x4e3798=0x0,_0x396dcb,_0x5ad500,_0x8da20f=0x0;_0x5ad500=_0x93dbcb["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x8da20f++);~_0x5ad500&&(_0x396dcb=_0x4e3798%0x4?_0x396dcb*0x40+_0x5ad500:_0x5ad500,_0x4e3798++%0x4)?_0x4ceb05+=String['fromCharCode'](0xff&_0x396dcb>>(-0x2*_0x4e3798&0x6)):0x0){_0x5ad500=_0x31038f["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x5ad500);}for(let _0x5d8b79=0x0,_0x4dee8e=_0x4ceb05["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x5d8b79<_0x4dee8e;_0x5d8b79++){_0x760b8a+="\u0025"+("00".split("").reverse().join("")+_0x4ceb05['charCodeAt'](_0x5d8b79)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x760b8a);};_0xba12["\u0076\u0078\u0074\u0065\u0053\u004b"]=_0x26befc;_0x5dd9dc=arguments;_0xba12["\u0064\u0063\u0053\u004c\u006a\u006d"]=!![];}const _0xee2ca9=_0xba128a[0x0];const _0x2cec36=_0x2430f8+_0xee2ca9;const _0x3e5cfc=_0x5dd9dc[_0x2cec36];if(!_0x3e5cfc){_0x56667f=_0xba12["\u0076\u0078\u0074\u0065\u0053\u004b"](_0x56667f);_0x5dd9dc[_0x2cec36]=_0x56667f;}else{_0x56667f=_0x3e5cfc;}return _0x56667f;};return _0xba12(_0x5dd9dc,_0x579459);}function tEVviy(_0x3b714e,_0x141c9f){if(!![]!=![])return;tEVviy=function(_0x46e595,_0x5580e1){_0x46e595=_0x46e595-(0x973c9^0x973c9);var _0x40a940=_0x5e50e6[_0x46e595];return _0x40a940;};return tEVviy(_0x3b714e,_0x141c9f);}tEVviy();function _0x58fe65(_0x2c8b8f,_0x4ad814){const _0x354ed1={'JqldW':function(_0x67f378,_0x1c51f1){return _0x67f378*_0x1c51f1;},"\u0057\u004c\u0055\u0050\u0068":function(_0x2aebd7,_0x1f9779){return _0x2aebd7^_0x1f9779;}};_0x2c8b8f=Math["\u0063\u0065\u0069\u006c"](_0x2c8b8f);_0x4ad814=Math['floor'](_0x4ad814);return Math["\u0066\u006c\u006f\u006f\u0072"](_0x354ed1["\u004a\u0071\u006c\u0064\u0057"](Math["\u0072\u0061\u006e\u0064\u006f\u006d"](),_0x4ad814-_0x2c8b8f+_0x354ed1['WLUPh'](0x1c1a5,0x1c1a4)))+_0x2c8b8f;}function _0x5f48e0(_0xe2bb54,_0x2f1060){const _0xf7d27d={'DVFbv':function(_0x2ce48f,_0x2d7e64){return _0x2ce48f^_0x2d7e64;},'ZGlxb':_0x11e8e8(-0x229,-0x224,"\u0035\u0050\u0078\u0036",-0x22e,-0x235),'xgiea':function(_0x1c469f,_0x331a18){return _0x1c469f*_0x331a18;}};if(!_0xe2bb54)return;_0x411fd6(_0xe2bb54);function _0x1addef(_0x27c423,_0x186962,_0x1b68d6,_0x31f0b6,_0x4762bc){return _0xba12(_0x186962- -0x3c5,_0x27c423);}let _0x23f23c=_0x58fe65(0x61f03^0x61f02,_0xf7d27d['DVFbv'](0x5d7ca,0x5d7cf));function _0x11e8e8(_0x65612f,_0x41b5a7,_0x5ac57,_0x393c20,_0x3c5417){return _0x3e5c(_0x41b5a7- -0x25f,_0x5ac57);}_0x2f1060=0xd0869^0xd0869;for(let _0x54d207=0x3c198^0x3c198;_0x54d207<_0x23f23c;_0x54d207++){if(_0xf7d27d["\u005a\u0047\u006c\u0078\u0062"]!==_0x1addef(-0x3d7,-0x3c2,-0x3b3,-0x3aa,-0x3c1)){_0x2a6c85["\u0024\u0062\u0061\u0073\u0065\u0041\u006c\u0065\u0072\u0074"](_0x37629a['errorMessage']);return;}else{let _0x4a10bb=_0xf7d27d["\u0078\u0067\u0069\u0065\u0061"](_0x58fe65(0x3939c^0x39399,_0xf7d27d["\u0044\u0056\u0046\u0062\u0076"](0x8d905,0x8d90a)),0xef707^0xef4ef);_0x2f1060=_0x2f1060+_0x4a10bb;setTimeout(function(){_0xc982a0(_0xe2bb54);},_0x2f1060);}}}function _0x3e5c(_0x5dd9dc,_0x579459){const _0xba128a=_0x5794();_0x3e5c=function(_0x2430f8,_0x37dec2){_0x2430f8=_0x2430f8-0x0;let _0x56667f=_0xba128a[_0x2430f8];if(_0x3e5c['ZjcYcr']===undefined){var _0x26befc=function(_0x31038f){const _0x4ceb05="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x760b8a='';let _0x4e3798='';for(let _0x396dcb=0x0,_0x5ad500,_0x8da20f,_0x5d8b79=0x0;_0x8da20f=_0x31038f['charAt'](_0x5d8b79++);~_0x8da20f&&(_0x5ad500=_0x396dcb%0x4?_0x5ad500*0x40+_0x8da20f:_0x8da20f,_0x396dcb++%0x4)?_0x760b8a+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x5ad500>>(-0x2*_0x396dcb&0x6)):0x0){_0x8da20f=_0x4ceb05["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x8da20f);}for(let _0x4dee8e=0x0,_0x3b714e=_0x760b8a["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x4dee8e<_0x3b714e;_0x4dee8e++){_0x4e3798+="\u0025"+("00".split("").reverse().join("")+_0x760b8a['charCodeAt'](_0x4dee8e)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e3798);};const _0x93dbcb=function(_0x141c9f,_0x46e595){let _0x5580e1=[],_0x40a940=0x0,_0x1d0e31,_0x1b1d0c='';_0x141c9f=_0x26befc(_0x141c9f);let _0x5dfd3c;for(_0x5dfd3c=0x0;_0x5dfd3c<0x100;_0x5dfd3c++){_0x5580e1[_0x5dfd3c]=_0x5dfd3c;}for(_0x5dfd3c=0x0;_0x5dfd3c<0x100;_0x5dfd3c++){_0x40a940=(_0x40a940+_0x5580e1[_0x5dfd3c]+_0x46e595['charCodeAt'](_0x5dfd3c%_0x46e595["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x1d0e31=_0x5580e1[_0x5dfd3c];_0x5580e1[_0x5dfd3c]=_0x5580e1[_0x40a940];_0x5580e1[_0x40a940]=_0x1d0e31;}_0x5dfd3c=0x0;_0x40a940=0x0;for(let _0x2d368d=0x0;_0x2d368d<_0x141c9f['length'];_0x2d368d++){_0x5dfd3c=(_0x5dfd3c+0x1)%0x100;_0x40a940=(_0x40a940+_0x5580e1[_0x5dfd3c])%0x100;_0x1d0e31=_0x5580e1[_0x5dfd3c];_0x5580e1[_0x5dfd3c]=_0x5580e1[_0x40a940];_0x5580e1[_0x40a940]=_0x1d0e31;_0x1b1d0c+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x141c9f['charCodeAt'](_0x2d368d)^_0x5580e1[(_0x5580e1[_0x5dfd3c]+_0x5580e1[_0x40a940])%0x100]);}return _0x1b1d0c;};_0x3e5c["\u0076\u004c\u0050\u0044\u0053\u0054"]=_0x93dbcb;_0x5dd9dc=arguments;_0x3e5c["\u005a\u006a\u0063\u0059\u0063\u0072"]=!![];}const _0xee2ca9=_0xba128a[0x0];const _0x2cec36=_0x2430f8+_0xee2ca9;const _0x3e5cfc=_0x5dd9dc[_0x2cec36];if(!_0x3e5cfc){if(_0x3e5c["\u0056\u007a\u004d\u0063\u0042\u0041"]===undefined){_0x3e5c["\u0056\u007a\u004d\u0063\u0042\u0041"]=!![];}_0x56667f=_0x3e5c["\u0076\u004c\u0050\u0044\u0053\u0054"](_0x56667f,_0x37dec2);_0x5dd9dc[_0x2cec36]=_0x56667f;}else{_0x56667f=_0x3e5cfc;}return _0x56667f;};return _0x3e5c(_0x5dd9dc,_0x579459);}function fAPeQF(_0x5e7c38,_0x4e2202){if(!![]!=![])return;fAPeQF=function(_0x531a9a,_0x182278){_0x531a9a=_0x531a9a-(0x973c9^0x973c9);var _0x472e23=_0x5e50e6[_0x531a9a];return _0x472e23;};return fAPeQF(_0x5e7c38,_0x4e2202);}fAPeQF();function _0x34a99c(_0x54bddf,_0x89abf8){function _0x458783(_0x936a6e,_0xffdac6,_0x431b5e,_0x4a292e,_0x217114){return _0x3e5c(_0x936a6e- -0x1c2,_0x4a292e);}function _0x4b0f21(_0x49030d,_0xe85547,_0x330985,_0x2a272d,_0x1e7ad7){return _0x3e5c(_0x1e7ad7-0x303,_0x330985);}const _0x13672e={'TTRzL':_0x2e609b(-0x21f,-0x227,-0x23e,"\u0024\u0078\u0021\u0032",-0x241),"\u004d\u006e\u0069\u0058\u0044":function(_0xed9e71,_0x5e8b98){return _0xed9e71!==_0x5e8b98;},"\u0058\u004d\u0063\u0058\u0076":_0x3bb916("eWdQ".split("").reverse().join(""),0x60,0x6b,0x5d,0x5a),"\u0041\u0056\u0059\u0044\u006d":_0x458783(-0x19d,-0x18b,-0x176,"\u0079\u004f\u0034\u0074",-0x1ba),"\u004a\u0051\u0077\u0078\u0074":_0x3bb916("\u004f\u0061\u0058\u005e",0x59,0x53,0x6f,0x4d)};function _0x2e609b(_0x443825,_0x4ac82a,_0x1d6898,_0x225be2,_0x26ada8){return _0x3e5c(_0x26ada8- -0x26f,_0x225be2);}function _0x3bb916(_0x58217b,_0x59f218,_0x54135b,_0x59f9fc,_0x4e5ccc){return _0x3e5c(_0x59f9fc-0x3c,_0x58217b);}function _0x14182e(_0x11e9ca,_0x5b6dc0,_0x215eab,_0x589146,_0x268a86){return _0xba12(_0x268a86-0xa3,_0x589146);}return window['$vueRoot']["\u0024\u0068\u0074\u0074\u0070"]({"\u0075\u0072\u006c":USER_PREFIX+_0x13672e['JQwxt'],'method':_0x14182e(0xd3,0x98,0xe2,0xb3,0xbf),"\u0064\u0061\u0074\u0061":{'id':_0x54bddf,"\u0070\u0061\u0074\u0069":_0x89abf8},"\u006d\u006f\u0064\u0061\u006c":![],"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":_0xb12c1b=>{function _0x5daf31(_0x2626b7,_0x514e04,_0x52da09,_0x28abd6,_0x429c39){return _0xba12(_0x429c39-0x326,_0x514e04);}function _0x47d2da(_0x279b4d,_0x5c2cbf,_0x483b74,_0x1c0337,_0x19fdda){return _0xba12(_0x19fdda- -0x2ab,_0x5c2cbf);}if(_0x13672e['MniXD'](_0x13672e['XMcXv'],_0x5daf31(0x35f,0x390,0x393,0x33d,0x368))){_0x1cdc06["\u0024\u0062\u0061\u0073\u0065\u0041\u006c\u0065\u0072\u0074"](_0x4892c5['errorMessage']);return;}else{if(_0xb12c1b["\u006f\u0062\u006a\u0078"]?.["esnopser".split("").reverse().join("")]){if(_0x13672e['AVYDm']!==_0x47d2da(-0x281,-0x292,-0x286,-0x28a,-0x2a2)){let _0x561a80=_0xb12c1b['objx']["\u0072\u0065\u0073\u0070\u006f\u006e\u0073\u0065"];if(!_0x561a80["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"]){that["\u0024\u0062\u0061\u0073\u0065\u0041\u006c\u0065\u0072\u0074"](_0x561a80["\u0065\u0072\u0072\u006f\u0072\u004d\u0065\u0073\u0073\u0061\u0067\u0065"]);return;}}else{_0x599407(_0x13672e["\u0054\u0054\u0052\u007a\u004c"],_0x507e96);}}}}});}function _0x411fd6(_0x5332bd){const _0x7a06a={'gCBLm':_0x11e520(-0x37,-0x5,"\u004c\u0070\u0061\u0072",-0x37,-0xd)};function _0x11e520(_0x202644,_0x2d2b08,_0x3aa034,_0x6586e0,_0x26f57f){return _0x3e5c(_0x26f57f- -0xd,_0x3aa034);}_0x34a99c(_0x7a06a["\u0067\u0043\u0042\u004c\u006d"],_0x5332bd);}function _0xc982a0(_0x50d41d){const _0x4f5e32={'twGzj':function(_0x7b7d04,_0x4e6ae3,_0x36a59e){return _0x7b7d04(_0x4e6ae3,_0x36a59e);}};function _0xfb6611(_0x5c1102,_0x37fbc6,_0x331127,_0x31f25c,_0x205fcc){return _0xba12(_0x331127- -0x139,_0x37fbc6);}_0x4f5e32["\u0074\u0077\u0047\u007a\u006a"](_0x34a99c,_0xfb6611(-0xd0,-0xef,-0xf4,-0xf1,-0xdd),_0x50d41d);}function _0x5794(){const _0x4d7b2a=["\u007a\u0076\u007a\u0071\u0074\u0067\u004b","\u0041\u006d\u006b\u0033\u0057\u0050\u0033\u0064\u0047\u0043\u006b\u0062","aDYvgBbv2CHjgj".split("").reverse().join(""),"K1gBVP3s0Cdn4aJm".split("").reverse().join(""),"\u0077\u0065\u0031\u004a\u0077\u0068\u0079","\u0042\u0032\u006a\u0051\u0045\u0061","WCZv2yJv3C".split("").reverse().join(""),"0vvNkSy/kSNdd5WuuXKdRdC".split("").reverse().join(""),"\u006f\u0064\u0065\u0058\u006d\u004a\u0061\u005a\u006e\u004d\u0039\u0072\u007a\u004d\u007a\u0070\u0041\u0071","sCLTcd6Wuomfiomjvkmh6kSu".split("").reverse().join(""),"\u0072\u0066\u007a\u0067\u0079\u004e\u0079","\u0046\u0053\u006b\u0031\u0063\u0030\u0039\u0034\u0057\u0051\u0046\u0064\u004f\u0077\u0031\u0079\u0057\u0050\u0066\u0079\u0069\u0047","\u0041\u0053\u006f\u0038\u0057\u0050\u005a\u0064\u004b\u0066\u006d\u0059\u006c\u0053\u006f\u006f\u0057\u0034\u0031\u0047","\u006d\u005a\u0043\u0057\u006f\u0064\u0069\u0058\u006d\u0032\u0058\u0068\u0071\u0077\u0044\u006f\u007a\u0071","e6W8fPWvy3QdxQWh81oz4xp".split("").reverse().join(""),"\u0043\u0067\u0039\u005a\u0044\u0061","\u007a\u0030\u006e\u0063\u0074\u0067\u0030","\u007a\u0078\u006a\u0059\u0042\u0033\u006a\u006e\u007a\u0078\u006e\u005a\u0079\u0077\u0044\u004c","jTgsfbNsWaJm".split("").reverse().join(""),"\u0046\u0048\u0066\u0074\u0057\u0035\u0037\u0063\u0051\u0066\u004a\u0064\u004e\u0061\u0034","GOcNtFBkmB".split("").reverse().join(""),"i3BVXMz".split("").reverse().join(""),"K7WNkSiNfgPcdQW".split("").reverse().join(""),"\u006d\u0074\u0069\u005a\u006e\u004a\u0071\u0057\u007a\u0030\u004c\u006b\u0044\u004e\u0076\u0078","8hLdtRWioCk".split("").reverse().join(""),"\u0076\u0066\u0072\u0073\u0045\u004b\u0057","\u0057\u0035\u002f\u0064\u0047\u0067\u0068\u0064\u0053\u0043\u006f\u0064","K5WBC4WG46W6kCquomSd7RW".split("").reverse().join(""),"\u0057\u0035\u006d\u0058\u006b\u006d\u006f\u005a\u0057\u0036\u0037\u0063\u0053\u006d\u006b\u0056\u0057\u0052\u0062\u0032\u0057\u0034\u0037\u0064\u004a\u0066\u0065\u0065\u0057\u0051\u0046\u0064\u0056\u0043\u006f\u004a\u0057\u0050\u0068\u0063\u0050\u0047\u0072\u0032\u0057\u0050\u0037\u0064\u0047\u0076\u0043","iNIdtOWPKRWvo8Qc36W".split("").reverse().join(""),"ewzPDgE".split("").reverse().join(""),"\u0076\u0030\u0058\u0076\u0075\u0067\u0047","WrlvfAJfLn".split("").reverse().join(""),"\u0073\u006d\u006f\u0054\u0057\u0050\u0053\u0047\u0057\u0052\u004f\u002f\u0071\u0068\u0065\u0031\u006c\u004a\u002f\u0063\u0054\u004d\u0068\u0064\u0049\u0077\u004a\u0064\u004d\u0062\u006c\u0063\u004f\u004a\u004b\u0074\u0057\u0036\u0057\u0079\u006c\u0053\u006b\u0044\u0057\u004f\u0031\u0045\u0057\u0037\u004a\u0064\u0047\u0038\u006b\u0032\u0057\u0036\u0058\u004d\u0057\u0036\u0068\u0064\u004f\u006d\u006b\u006d\u0057\u0051\u006e\u0066\u0075\u004c\u0070\u0064\u004d\u0061","\u0042\u0067\u0039\u004e","GVdhQWteQWfo8NcNQW".split("").reverse().join(""),"\u0075\u0077\u0048\u0077\u0041\u0030\u0038","qHdlITcx5Wmr5W".split("").reverse().join(""),"\u0057\u0051\u0038\u0073\u0057\u004f\u0062\u0050\u0071\u006d\u006f\u0043\u0057\u004f\u0079\u0046\u0057\u0036\u0078\u0064\u004e\u0043\u006b\u0057\u0057\u0036\u004e\u0063\u004d\u0061\u0068\u0064\u004e\u0038\u006f\u005a\u0069\u0030\u0061\u0068\u0077\u0066\u0031\u0076\u0057\u0036\u0064\u0064\u0053\u0075\u0071","\u0043\u0067\u0066\u004e\u007a\u0075\u006e\u0056\u007a\u0067\u0075","\u0057\u0050\u0074\u0063\u0051\u0043\u006b\u0036\u0043\u0047\u0074\u0063\u0048\u0063\u0042\u0063\u0050\u0038\u006f\u0032\u0045\u0038\u006b\u0030\u0063\u0043\u006b\u004c","CRWdq7WZjHScxRW".split("").reverse().join(""),"qewP5wt".split("").reverse().join(""),"\u006d\u004a\u0071\u0058\u006d\u0064\u0065\u0032\u006f\u0074\u0062\u0057\u0074\u0077\u0031\u0050\u0045\u004b\u0065","\u0057\u0034\u002f\u0063\u0049\u0065\u0031\u004c\u0065\u0057","Wzco8HclNERk8GdxOW".split("").reverse().join(""),"\u0057\u0050\u0078\u0063\u0051\u006d\u006b\u006d\u0057\u004f\u0070\u0064\u0053\u0047","\u007a\u0068\u0044\u0048\u0041\u0068\u004f","\u0057\u0034\u0075\u0077\u0070\u0053\u006f\u004b","\u006f\u0074\u0043\u0057\u006d\u004a\u0069\u0033\u006f\u0076\u0062\u004c\u0073\u0030\u0035\u0072\u0043\u0071","OLLBmvwA3GZn1mJm".split("").reverse().join(""),"u2CU9gCZvMC".split("").reverse().join(""),"\u0057\u004f\u0034\u0045\u0057\u004f\u0068\u0064\u004f\u0068\u0056\u0063\u004d\u0053\u006b\u0070\u0057\u0034\u007a\u006a\u0078\u005a\u006e\u0059\u0044\u0053\u006b\u0058","C3D5fME".split("").reverse().join(""),"3kSKc37Wuo8MdF7W".split("").reverse().join(""),"\u0044\u0068\u0044\u0068\u0045\u004d\u004f","YvgzY9MlOngDHjMlN5wARnwyYrNl05wz2vMl5rxAYv3yLnNlKv3BSnMlKrgC".split("").reverse().join(""),"\u0075\u0065\u0072\u0065\u0078\u0030\u0039\u0071\u0072\u0075\u0035\u0046\u007a\u0032\u0076\u0030\u0075\u0067\u0066\u0030\u0041\u0071","\u0079\u0032\u0076\u0050\u0042\u0061","\u0044\u0038\u006f\u0067\u0046\u0071\u005a\u0064\u0050\u0048\u004c\u0051\u006e\u0071","\u0057\u0051\u005a\u0064\u0055\u0072\u0066\u0058\u0057\u0050\u0061\u0047\u0057\u0052\u0047\u0072","SXHUdpRW".split("").reverse().join(""),"0grzzvq".split("").reverse().join(""),"\u0073\u004e\u0066\u0053\u007a\u0066\u0043","\u007a\u0049\u0068\u0063\u004b\u0038\u006f\u0077\u0057\u0050\u0053","\u006b\u0062\u007a\u0062\u0057\u0035\u0033\u0063\u004f\u004e\u0046\u0064\u0047\u0057\u0035\u0045\u0066\u0071","\u0044\u0067\u0048\u004c\u0042\u0047","\u0079\u0032\u0066\u0030\u0079\u0032\u0047","\u006c\u0032\u006a\u004b\u0078\u0032\u0066\u0057\u0041\u0073\u0039\u0050\u0042\u004e\u0072\u004d\u006c\u0033\u0062\u004b\u007a\u0065\u0066\u0057\u0041\u0076\u006a\u0056\u0044\u0078\u0072\u004c\u0043\u0047","\u0074\u0072\u004f\u006e\u0057\u0050\u006c\u0063\u004d\u0043\u006f\u0062\u0057\u0051\u005a\u0064\u0052\u0061\u006d","\u0064\u0030\u0052\u0063\u0054\u0038\u006f\u006b\u0057\u0050\u002f\u0064\u004d\u0064\u0043","\u0057\u0037\u0074\u0064\u004e\u0066\u0042\u0063\u004a\u0043\u006f\u007a","eeSc7JkEn4Wb5eTch6W".split("").reverse().join(""),"GBUPQWqyeGclvGcdPWfkCAYO0NdRtSch5W9KGMdtQWtoCp2o8gZHOW4rIlg9wF2kSNcFRWEoSNdx7W".split("").reverse().join(""),"\u0073\u004c\u0066\u0033\u0045\u0068\u0071","\u0057\u0036\u0052\u0064\u004d\u006d\u006f\u0071\u0057\u0036\u0065","yMBvfvz".split("").reverse().join(""),"\u0057\u0034\u004a\u0063\u0047\u006d\u006b\u0056\u0057\u0052\u0078\u0064\u0054\u0043\u006b\u0065\u0057\u0035\u0034","\u0057\u0036\u0074\u0064\u0047\u006d\u006b\u002b\u0057\u0050\u004a\u0064\u0048\u0071","\u006a\u0067\u0048\u0030\u0044\u0068\u0061","\u0057\u004f\u0070\u0063\u004f\u0071\u0068\u0063\u004a\u0038\u006b\u0079\u0072\u006d\u006b\u0039\u0066\u006d\u006f\u0071\u0076\u0043\u006b\u0066\u0057\u0051\u004e\u0064\u0053\u0047","\u0061\u0038\u006f\u0030\u0074\u0064\u0042\u0064\u0055\u0059\u007a\u0061\u0064\u0038\u006f\u0056\u007a\u0038\u006b\u0055\u006a\u0058\u006d","ygAw5Mu".split("").reverse().join(""),"\u0070\u0038\u006b\u0058\u0064\u0065\u0076\u0079\u0057\u004f\u0078\u0064\u0051\u0032\u004f","GQdFRWTkmEKo8kYkmqAk8JcdWPclOW".split("").reverse().join(""),"\u0076\u0031\u0076\u0041\u0077\u004c\u0061"];_0x5794=function(){return _0x4d7b2a;};return _0x5794();}async function _0x5b41cc(){_0x4ba2cf(async _0x3baf7a=>{if(!_0x3baf7a)return;PDD_OPEN_init({"\u0063\u006f\u0064\u0065":_0x3baf7a},function(){const _0x4b9d04={'Tjcig':function(_0x39d719,_0x8bec91){return _0x39d719(_0x8bec91);}};window['PDD_OPEN_getPati']()['then'](function(_0x4da178){_0x4b9d04["\u0054\u006a\u0063\u0069\u0067"](_0x5f48e0,_0x4da178);})['catch'](_0x15c560=>console["\u006c\u006f\u0067"](_0x15c560));});});}
|
|
2
|
+
|
|
3
|
+
export function initPddLog() {
|
|
4
|
+
if (!settingConfig.pddLogEnabled || !window.PDD_OPEN_init) return
|
|
5
|
+
excPddIntf();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function getPageCode(callback) {
|
|
9
|
+
let that = window.$vueRoot;
|
|
10
|
+
return that.$http({
|
|
11
|
+
url: USER_PREFIX + "/bd_api/intf/pddApiRouter",
|
|
12
|
+
method: 'post',
|
|
13
|
+
data: {"id": "pdd.cloud.isv.page.code"},
|
|
14
|
+
modal: false,
|
|
15
|
+
success: res => {
|
|
16
|
+
if (res.objx?.response) {
|
|
17
|
+
let response = res.objx.response;
|
|
18
|
+
if (!response.success) {
|
|
19
|
+
that.$baseAlert(response.errorMessage)
|
|
20
|
+
return
|
|
21
|
+
}
|
|
22
|
+
let pageCode = response.pageCode
|
|
23
|
+
callback(pageCode)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getRandomIntInclusive(min, max) {
|
|
30
|
+
min = Math.ceil(min);
|
|
31
|
+
max = Math.floor(max);
|
|
32
|
+
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function excPddIntf() {
|
|
36
|
+
let size = getRandomIntInclusive(1, 5);//随机次数
|
|
37
|
+
let loopDo = function (index) {
|
|
38
|
+
if (index + 1 >= size) return
|
|
39
|
+
let delay = getRandomIntInclusive(5, 30) * 1000;//随机间隔
|
|
40
|
+
setTimeout(function () {
|
|
41
|
+
getPati((pati) => {
|
|
42
|
+
handleOrderLog(pati, () => {
|
|
43
|
+
if (index + 1 < size) {
|
|
44
|
+
loopDo(index + 1)
|
|
45
|
+
}
|
|
46
|
+
});//订单日志
|
|
47
|
+
})
|
|
48
|
+
}, delay)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
getPati((pati) => {
|
|
52
|
+
//登录日志
|
|
53
|
+
handleLoginLog(pati, () => {
|
|
54
|
+
loopDo(0)
|
|
55
|
+
});
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function requestPati(id, pati, callback) {
|
|
60
|
+
return window.$vueRoot.$http({
|
|
61
|
+
url: USER_PREFIX + "/bd_api/intf/pddApiRouter",
|
|
62
|
+
method: 'post',
|
|
63
|
+
data: {id, pati},
|
|
64
|
+
modal: false,
|
|
65
|
+
success: res => {
|
|
66
|
+
callback && callback();
|
|
67
|
+
if (res.objx?.response) {
|
|
68
|
+
let response = res.objx.response;
|
|
69
|
+
if (!response.success) {
|
|
70
|
+
that.$baseAlert(response.errorMessage)
|
|
71
|
+
return
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function handleLoginLog(pati, callback) {
|
|
79
|
+
requestPati("pdd.cloud.security.event.tracking.login", pati, callback)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function handleOrderLog(pati,callback) {
|
|
83
|
+
requestPati("pdd.cloud.security.event.tracking.batch.order", pati, callback)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function getPati(callback) {
|
|
87
|
+
getPageCode(async (pageCode) => {
|
|
88
|
+
if (!pageCode) return
|
|
89
|
+
PDD_OPEN_init({
|
|
90
|
+
code: pageCode
|
|
91
|
+
// 对于获取 code 接口或未登录态,可不传 code:PDD_OPEN_init({}, function () { ... })
|
|
92
|
+
}, function () {
|
|
93
|
+
// 初始化已完成
|
|
94
|
+
window.PDD_OPEN_getPati().then(
|
|
95
|
+
function (pati) {
|
|
96
|
+
// 使用 pati
|
|
97
|
+
callback(pati)
|
|
98
|
+
}).catch(error => console.log(error))
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
|