cloud-web-corejs 1.0.239 → 1.0.241
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
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
<div class="tree-form" v-if="option.showCategoryFilterArea !== false">
|
|
8
8
|
<el-input
|
|
9
9
|
:placeholder="
|
|
10
|
-
$t2(
|
|
10
|
+
$t2(
|
|
11
|
+
'请输入文件夹名称',
|
|
12
|
+
'components.fileLibrary.categoryPlaceholder'
|
|
13
|
+
)
|
|
11
14
|
"
|
|
12
15
|
v-model="filterText"
|
|
13
16
|
class="txt"
|
|
@@ -59,15 +62,23 @@
|
|
|
59
62
|
class="tree-list"
|
|
60
63
|
icon-class="el-icon-arrow-down"
|
|
61
64
|
:style="
|
|
62
|
-
option.showCategoryFilterArea === false
|
|
65
|
+
option.showCategoryFilterArea === false
|
|
66
|
+
? 'height: calc(100vh - 113px)'
|
|
67
|
+
: ''
|
|
63
68
|
"
|
|
64
69
|
>
|
|
65
|
-
<span
|
|
70
|
+
<span
|
|
71
|
+
class="el-tree-node__label"
|
|
72
|
+
slot-scope="{ node }"
|
|
73
|
+
v-if="!node.data.moreBtn"
|
|
74
|
+
>
|
|
66
75
|
<i class="ico-wenjian"></i>
|
|
67
76
|
<span>{{ node.label }}</span>
|
|
68
77
|
</span>
|
|
69
78
|
<span v-else class="el-tree-node__label">
|
|
70
|
-
<el-button type="primary" plain class="button-sty">{{
|
|
79
|
+
<el-button type="primary" plain class="button-sty">{{
|
|
80
|
+
node.label
|
|
81
|
+
}}</el-button>
|
|
71
82
|
</span>
|
|
72
83
|
</el-tree>
|
|
73
84
|
</div>
|
|
@@ -79,7 +90,11 @@
|
|
|
79
90
|
</label>
|
|
80
91
|
<div class="main-right file-library fr" style="overflow: hidden">
|
|
81
92
|
<div class="pop-annex-filter" v-if="popAnnexFilter">
|
|
82
|
-
<div
|
|
93
|
+
<div
|
|
94
|
+
class="item"
|
|
95
|
+
v-for="(checkBillData, index) in checkBillDatas"
|
|
96
|
+
:key="index"
|
|
97
|
+
>
|
|
83
98
|
<span>{{ getBillLabel(checkBillData) }}</span
|
|
84
99
|
><i class="el-icon-close" @click="deleteBillData(index)"></i>
|
|
85
100
|
</div>
|
|
@@ -100,7 +115,11 @@
|
|
|
100
115
|
}}
|
|
101
116
|
</el-button>
|
|
102
117
|
<div class="abox">
|
|
103
|
-
<div
|
|
118
|
+
<div
|
|
119
|
+
class="item"
|
|
120
|
+
v-for="(checkBillData, index) in checkBillDatas"
|
|
121
|
+
:key="index"
|
|
122
|
+
>
|
|
104
123
|
<span>{{ getBillLabel(checkBillData) }}</span
|
|
105
124
|
><i class="el-icon-close" @click="deleteBillData(index)"></i>
|
|
106
125
|
</div>
|
|
@@ -210,7 +229,9 @@
|
|
|
210
229
|
{{ $t1("搜索") }}
|
|
211
230
|
</el-button>
|
|
212
231
|
|
|
213
|
-
<template
|
|
232
|
+
<template
|
|
233
|
+
v-for="(fileButton, customToobarButtonIndex) in customToobarButtons"
|
|
234
|
+
>
|
|
214
235
|
<template
|
|
215
236
|
v-if="
|
|
216
237
|
fileButton.dirs === null ||
|
|
@@ -276,7 +297,10 @@
|
|
|
276
297
|
<template v-if="currentFileCategory && currentFileCategory.id">
|
|
277
298
|
<el-input
|
|
278
299
|
:placeholder="
|
|
279
|
-
$t2(
|
|
300
|
+
$t2(
|
|
301
|
+
'请输入文件名',
|
|
302
|
+
'components.fileLibrary.filePlaceholder'
|
|
303
|
+
)
|
|
280
304
|
"
|
|
281
305
|
v-model="formData.fileName"
|
|
282
306
|
clearable
|
|
@@ -337,13 +361,17 @@
|
|
|
337
361
|
class="item"
|
|
338
362
|
:class="checkList.includes(attachment.id) ? 'on' : ''"
|
|
339
363
|
>
|
|
340
|
-
<el-checkbox :label="attachment.id"
|
|
364
|
+
<el-checkbox :label="attachment.id"
|
|
365
|
+
><span></span
|
|
366
|
+
></el-checkbox>
|
|
341
367
|
<div class="oper">
|
|
342
368
|
<el-tooltip
|
|
343
369
|
effect="dark"
|
|
344
370
|
content="详情"
|
|
345
371
|
placement="top"
|
|
346
|
-
v-if="
|
|
372
|
+
v-if="
|
|
373
|
+
!attachment.dirs && isEdit && fileObjAuth.editAuth
|
|
374
|
+
"
|
|
347
375
|
><i
|
|
348
376
|
class="el-tooltip iconfont icon-shuxing ico"
|
|
349
377
|
@click="openPropertiesDialog(attachment)"
|
|
@@ -383,7 +411,9 @@
|
|
|
383
411
|
><i class="el-icon-share"></i>分享
|
|
384
412
|
</el-dropdown-item>
|
|
385
413
|
<el-dropdown-item
|
|
386
|
-
@click.native="
|
|
414
|
+
@click.native="
|
|
415
|
+
replaceFile(attachment, index, page.records)
|
|
416
|
+
"
|
|
387
417
|
v-if="
|
|
388
418
|
!attachment.dirs &&
|
|
389
419
|
isEdit &&
|
|
@@ -398,7 +428,6 @@
|
|
|
398
428
|
v-if="
|
|
399
429
|
!attachment.dirs &&
|
|
400
430
|
isEdit &&
|
|
401
|
-
attachment.status != 1 &&
|
|
402
431
|
fileObjAuth.historyAuth
|
|
403
432
|
"
|
|
404
433
|
>
|
|
@@ -417,12 +446,18 @@
|
|
|
417
446
|
</el-dropdown-item>
|
|
418
447
|
<el-dropdown-item
|
|
419
448
|
@click.native="deleteCategory(attachment)"
|
|
420
|
-
v-if="
|
|
449
|
+
v-if="
|
|
450
|
+
attachment.dirs &&
|
|
451
|
+
isEdit &&
|
|
452
|
+
fileObjAuth.deleteDirAuth
|
|
453
|
+
"
|
|
421
454
|
>
|
|
422
455
|
<i class="el-icon-delete"></i>删除
|
|
423
456
|
</el-dropdown-item>
|
|
424
457
|
<template
|
|
425
|
-
v-for="(
|
|
458
|
+
v-for="(
|
|
459
|
+
fileButton, fileButtonIndex
|
|
460
|
+
) in customFileButtons"
|
|
426
461
|
>
|
|
427
462
|
<template
|
|
428
463
|
v-if="
|
|
@@ -432,15 +467,24 @@
|
|
|
432
467
|
"
|
|
433
468
|
>
|
|
434
469
|
<template
|
|
435
|
-
v-if="
|
|
470
|
+
v-if="
|
|
471
|
+
customFileButtonVisable(
|
|
472
|
+
fileButton,
|
|
473
|
+
attachment
|
|
474
|
+
)
|
|
475
|
+
"
|
|
436
476
|
>
|
|
437
477
|
<el-dropdown-item
|
|
438
478
|
@click.native="
|
|
439
|
-
customFileButtonEvent(
|
|
479
|
+
customFileButtonEvent(
|
|
480
|
+
fileButton,
|
|
481
|
+
attachment
|
|
482
|
+
)
|
|
440
483
|
"
|
|
441
484
|
:key="fileButtonIndex"
|
|
442
485
|
>
|
|
443
|
-
<i :class="fileButton.icon"></i
|
|
486
|
+
<i :class="fileButton.icon"></i
|
|
487
|
+
>{{ fileButton.label }}
|
|
444
488
|
</el-dropdown-item>
|
|
445
489
|
</template>
|
|
446
490
|
</template>
|
|
@@ -490,13 +534,17 @@
|
|
|
490
534
|
<div class="tb-left"></div>
|
|
491
535
|
<div class="tb-mid">
|
|
492
536
|
<div class="txt">
|
|
493
|
-
<span class="name">{{
|
|
537
|
+
<span class="name">{{
|
|
538
|
+
getFileName(attachment)
|
|
539
|
+
}}</span
|
|
494
540
|
><span v-if="attachment.extension"
|
|
495
541
|
>.{{ attachment.extension }}</span
|
|
496
542
|
>
|
|
497
543
|
</div>
|
|
498
544
|
</div>
|
|
499
|
-
<div class="format"
|
|
545
|
+
<div class="format">
|
|
546
|
+
... .{{ attachment.extension }}
|
|
547
|
+
</div>
|
|
500
548
|
</div>
|
|
501
549
|
</el-tooltip>
|
|
502
550
|
</li>
|
|
@@ -561,7 +609,9 @@
|
|
|
561
609
|
>
|
|
562
610
|
<template #right>
|
|
563
611
|
<span>
|
|
564
|
-
<span>{{
|
|
612
|
+
<span>{{
|
|
613
|
+
$t2("当前记录", "components.table.pageInfo")
|
|
614
|
+
}}</span>
|
|
565
615
|
<span class="f-red"> {{ page.records.length }} </span>
|
|
566
616
|
<span>/</span>
|
|
567
617
|
<span class="f-red"> {{ page.total }}</span>
|
|
@@ -622,7 +672,9 @@
|
|
|
622
672
|
<a
|
|
623
673
|
href="javascript:void(0);"
|
|
624
674
|
class="a-link"
|
|
625
|
-
v-if="
|
|
675
|
+
v-if="
|
|
676
|
+
isEdit && row.status != 1 && fileObjAuth.replaceAuth === 1
|
|
677
|
+
"
|
|
626
678
|
@click="replaceFile(row, rowIndex, items)"
|
|
627
679
|
>
|
|
628
680
|
<el-tooltip
|
|
@@ -638,7 +690,7 @@
|
|
|
638
690
|
<a
|
|
639
691
|
href="javascript:void(0);"
|
|
640
692
|
class="a-link"
|
|
641
|
-
v-if="isEdit &&
|
|
693
|
+
v-if="isEdit && fileObjAuth.historyAuth === 1"
|
|
642
694
|
@click="openFileHistoryDialog(row)"
|
|
643
695
|
>
|
|
644
696
|
<el-tooltip
|
|
@@ -654,7 +706,9 @@
|
|
|
654
706
|
<a
|
|
655
707
|
href="javascript:void(0);"
|
|
656
708
|
class="a-link"
|
|
657
|
-
v-if="
|
|
709
|
+
v-if="
|
|
710
|
+
isEdit && row.status != 1 && fileObjAuth.deleteAuth === 1
|
|
711
|
+
"
|
|
658
712
|
@click="deleteAttach(row)"
|
|
659
713
|
>
|
|
660
714
|
<el-tooltip
|
|
@@ -688,7 +742,9 @@
|
|
|
688
742
|
<a
|
|
689
743
|
href="javascript:void(0);"
|
|
690
744
|
class="a-link"
|
|
691
|
-
v-if="
|
|
745
|
+
v-if="
|
|
746
|
+
isEdit && isCategoryEdit && fileObjAuth.deleteDirAuth === 1
|
|
747
|
+
"
|
|
692
748
|
@click="deleteAttach(row)"
|
|
693
749
|
>
|
|
694
750
|
<el-tooltip
|
|
@@ -758,26 +814,42 @@
|
|
|
758
814
|
class="adSearchForm"
|
|
759
815
|
>
|
|
760
816
|
<el-form-item
|
|
761
|
-
:label="
|
|
817
|
+
:label="
|
|
818
|
+
$t2('文件夹路径', 'components.fileLibrary.fileCategoryPath')
|
|
819
|
+
"
|
|
762
820
|
>
|
|
763
821
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
764
|
-
<el-breadcrumb-item
|
|
822
|
+
<el-breadcrumb-item
|
|
823
|
+
v-for="(treeNode, index) in treeNodeArr"
|
|
824
|
+
:key="index"
|
|
765
825
|
>{{ treeNode.label }}
|
|
766
826
|
</el-breadcrumb-item>
|
|
767
827
|
</el-breadcrumb>
|
|
768
828
|
</el-form-item>
|
|
769
829
|
<el-form-item
|
|
770
|
-
:label="
|
|
830
|
+
:label="
|
|
831
|
+
$t2('文件夹编码', 'components.fileLibrary.fileCategorySn')
|
|
832
|
+
"
|
|
771
833
|
>
|
|
772
834
|
<span>{{ editCategory.fileSn }}</span>
|
|
773
835
|
</el-form-item>
|
|
774
836
|
<el-form-item
|
|
775
|
-
:label="
|
|
837
|
+
:label="
|
|
838
|
+
$t2('文件夹名称', 'components.fileLibrary.fileCategoryName')
|
|
839
|
+
"
|
|
776
840
|
>
|
|
777
|
-
<el-input
|
|
841
|
+
<el-input
|
|
842
|
+
v-model="editCategory.fileName"
|
|
843
|
+
clearable
|
|
844
|
+
class="all-width"
|
|
845
|
+
/>
|
|
778
846
|
</el-form-item>
|
|
779
847
|
<el-form-item :label="$t1('关联编码')">
|
|
780
|
-
<el-input
|
|
848
|
+
<el-input
|
|
849
|
+
v-model="editCategory.relationCode"
|
|
850
|
+
clearable
|
|
851
|
+
class="all-width"
|
|
852
|
+
/>
|
|
781
853
|
</el-form-item>
|
|
782
854
|
</el-form>
|
|
783
855
|
</div>
|
|
@@ -791,7 +863,11 @@
|
|
|
791
863
|
<i class="el-icon-close el-icon"></i>
|
|
792
864
|
{{ $t2("取 消", "system.button.cancel2") }}
|
|
793
865
|
</el-button>
|
|
794
|
-
<el-button
|
|
866
|
+
<el-button
|
|
867
|
+
type="primary"
|
|
868
|
+
@click="confirmEditCategoryDialog"
|
|
869
|
+
class="button-sty"
|
|
870
|
+
>
|
|
795
871
|
<i class="el-icon-check el-icon"></i>
|
|
796
872
|
{{ $t2("确 定", "system.button.confirm2") }}
|
|
797
873
|
</el-button>
|
|
@@ -889,7 +965,9 @@
|
|
|
889
965
|
size="small"
|
|
890
966
|
clearable
|
|
891
967
|
value-format="yyyy-MM-dd"
|
|
892
|
-
:picker-options="
|
|
968
|
+
:picker-options="
|
|
969
|
+
$baseStartPickerOptions(advancedFormData.endTime)
|
|
970
|
+
"
|
|
893
971
|
></el-date-picker>
|
|
894
972
|
<span>-</span>
|
|
895
973
|
<el-date-picker
|
|
@@ -899,7 +977,9 @@
|
|
|
899
977
|
size="small"
|
|
900
978
|
clearable
|
|
901
979
|
value-format="yyyy-MM-dd"
|
|
902
|
-
:picker-options="
|
|
980
|
+
:picker-options="
|
|
981
|
+
$baseEndPickerOptions(advancedFormData.startTime)
|
|
982
|
+
"
|
|
903
983
|
></el-date-picker>
|
|
904
984
|
</template>
|
|
905
985
|
</vxe-form-item>
|
|
@@ -1547,7 +1547,7 @@ export default {
|
|
|
1547
1547
|
// height: auto !important;
|
|
1548
1548
|
// }
|
|
1549
1549
|
.el-menu--vertical{
|
|
1550
|
-
> .el-menu--popup{overflow:
|
|
1550
|
+
> .el-menu--popup{overflow: auto;//不用atuo 超出不出滚动条
|
|
1551
1551
|
.el-submenu__title, .el-menu-item{
|
|
1552
1552
|
height: auto !important;
|
|
1553
1553
|
line-height: 1.4 !important;
|