doway-coms 2.5.0 → 2.5.1
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="height:300px">
|
|
3
3
|
<splitpanes class="default-theme">
|
|
4
|
-
<pane>
|
|
4
|
+
<pane size="20">
|
|
5
5
|
<vxe-table :size="'mini'" :height="'100%'" show-overflow highlight-current-row highlight-hover-row
|
|
6
6
|
ref="eisTreeView" row-id="id" row-key @current-change="eisCurrentChange" border="inner" :show-header="false"
|
|
7
7
|
:data="fileGroupData" :tree-config="{
|
|
@@ -17,8 +17,16 @@
|
|
|
17
17
|
<a-icon type="folder-open" v-if="$refs.eisTreeView.isTreeExpandByRow(row)" />
|
|
18
18
|
<a-icon v-else type="folder" />
|
|
19
19
|
<span>{{ row.name }}</span>
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
</span>
|
|
21
|
+
</template>
|
|
22
|
+
</vxe-column>
|
|
23
|
+
<vxe-column width="80px">
|
|
24
|
+
<template #default="{ row }">
|
|
25
|
+
<span>
|
|
26
|
+
<span class="button" @click="handleAddSubFolder(row)" v-if="edit === true"><a-icon type="file-add" /></span>
|
|
27
|
+
{{ ' ' }}
|
|
28
|
+
<span class="button1" @click="handleEditSubFolder(row)"
|
|
29
|
+
v-if="edit === true && row.id !== 'sys_top_folder'"><a-icon type="edit" /></span>
|
|
22
30
|
</span>
|
|
23
31
|
</template>
|
|
24
32
|
</vxe-column>
|
|
@@ -39,9 +47,10 @@
|
|
|
39
47
|
<div class="card-view-item" :style="{ width: itemWidth + 'px' }" v-for="loopFileData in currentFolderData"
|
|
40
48
|
@dblclick="panelFolderDblClick(loopFileData)" :key="loopFileData.id">
|
|
41
49
|
{{ loopFileData.name }}
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
<!-- <button style="position: absolute; padding: 1px 2px; right:2px;bottom:2px"> -->
|
|
51
|
+
<div style="position: absolute; padding: 1px 2px; right:2px;bottom:2px" @click="removeAttach(loopFileData)" v-if="edit === true"><a-icon type="delete" /></div>
|
|
52
|
+
<!-- </button> -->
|
|
53
|
+
<div @click="downloadAttach(loopFileData)" v-if="loopFileData.attachType === 'file' && allowDownload === true">下载
|
|
45
54
|
</div>
|
|
46
55
|
</div>
|
|
47
56
|
|
|
@@ -68,7 +77,7 @@
|
|
|
68
77
|
</splitpanes>
|
|
69
78
|
<VxeModal v-model="showEditFolder" transfer :height="200" :width="400" destroy-on-close :z-index="999" show-footer>
|
|
70
79
|
<template #title>
|
|
71
|
-
<span
|
|
80
|
+
<span>添加文件夹名称</span>
|
|
72
81
|
</template>
|
|
73
82
|
<template #default>
|
|
74
83
|
<a-input v-model="currentEditFolderValue"></a-input>
|
|
@@ -403,7 +412,7 @@ export default {
|
|
|
403
412
|
parentId: this.currentSelectKey[0],
|
|
404
413
|
fileType: info.file.response.content.fileType,
|
|
405
414
|
sort: this.internalRows.length + 1,
|
|
406
|
-
|
|
415
|
+
attachType: 'file',
|
|
407
416
|
name: info.file.response.content.name,
|
|
408
417
|
id: this.$store.getters.newId() + "",
|
|
409
418
|
}
|
|
@@ -537,6 +546,47 @@ export default {
|
|
|
537
546
|
</script>
|
|
538
547
|
|
|
539
548
|
<style lang="scss" scoped>
|
|
549
|
+
|
|
550
|
+
.button {
|
|
551
|
+
display: inline-block;
|
|
552
|
+
padding: 1px 6px;
|
|
553
|
+
background-color: #4CAF50;
|
|
554
|
+
color: white;
|
|
555
|
+
border: none;
|
|
556
|
+
border-radius: 4px;
|
|
557
|
+
cursor: pointer;
|
|
558
|
+
transition: background-color 0.3s ease;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.button:hover {
|
|
562
|
+
background-color: #45a049;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.button:active {
|
|
566
|
+
background-color: #408E43;
|
|
567
|
+
transform: translateY(2px);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.button1 {
|
|
571
|
+
display: inline-block;
|
|
572
|
+
padding: 1px 6px;
|
|
573
|
+
background-color: #3a61b6;
|
|
574
|
+
color: white;
|
|
575
|
+
border: none;
|
|
576
|
+
border-radius: 4px;
|
|
577
|
+
cursor: pointer;
|
|
578
|
+
transition: background-color 0.3s ease;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.button1:hover {
|
|
582
|
+
background-color: #3a61b6;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.button1:active {
|
|
586
|
+
background-color: #3a61b6;
|
|
587
|
+
transform: translateY(2px);
|
|
588
|
+
}
|
|
589
|
+
|
|
540
590
|
.file-card {
|
|
541
591
|
display: flex;
|
|
542
592
|
flex-flow: row wrap;
|
|
@@ -705,6 +755,7 @@ export default {
|
|
|
705
755
|
//border-color: #9ad4dc;
|
|
706
756
|
min-width: 150px;
|
|
707
757
|
border-radius: 6px;
|
|
758
|
+
position: relative;
|
|
708
759
|
|
|
709
760
|
.card-view-icon {
|
|
710
761
|
float: left;
|