n20-common-lib 3.0.32 → 3.0.34
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/assets/css/file-upload-table.scss +167 -0
- package/src/components/AdvancedFilter/index.vue +17 -18
- package/src/components/FileUploadTable/FileUploadTableV3.vue +1 -169
- package/src/components/ProFilterView/index.vue +6 -1
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -36,3 +36,170 @@
|
|
|
36
36
|
margin-top: 0;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
.file-upload-table-v3 {
|
|
42
|
+
width: 100%;
|
|
43
|
+
|
|
44
|
+
background: #fff;
|
|
45
|
+
|
|
46
|
+
.panel {
|
|
47
|
+
padding: 0 16px 16px;
|
|
48
|
+
|
|
49
|
+
.panel-top {
|
|
50
|
+
height: 40px;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
.summary {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
color: #4e5969;
|
|
59
|
+
|
|
60
|
+
i {
|
|
61
|
+
margin-right: 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.summary-action {
|
|
65
|
+
margin-left: 12px;
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.toggle-btn {
|
|
71
|
+
padding: 0;
|
|
72
|
+
|
|
73
|
+
i {
|
|
74
|
+
margin-left: 4px;
|
|
75
|
+
transition: transform 0.2s;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.is-reverse {
|
|
79
|
+
transform: rotate(180deg);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.type-list {
|
|
84
|
+
min-height: 200px;
|
|
85
|
+
max-height: 680px;
|
|
86
|
+
overflow-y: auto;
|
|
87
|
+
.type-item {
|
|
88
|
+
margin-top: 8px;
|
|
89
|
+
|
|
90
|
+
.type-row {
|
|
91
|
+
min-height: 46px;
|
|
92
|
+
background: #f7f8fa;
|
|
93
|
+
border-radius: 4px;
|
|
94
|
+
padding: 0 12px;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
|
|
99
|
+
.type-meta {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
color: #1d2129;
|
|
103
|
+
font-family: 'PingFang SC';
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
line-height: 22px;
|
|
108
|
+
|
|
109
|
+
.required {
|
|
110
|
+
color: #f53f3f;
|
|
111
|
+
margin-right: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.type-index {
|
|
115
|
+
margin-right: 2px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.status-icon {
|
|
119
|
+
width: 16px;
|
|
120
|
+
height: 16px;
|
|
121
|
+
margin-left: 8px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.upload-trigger {
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
line-height: 22px;
|
|
130
|
+
padding: 0;
|
|
131
|
+
color: #007aff;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.type-row__is-success {
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
background-color: #e8fff3;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.file-cards {
|
|
140
|
+
margin-top: 8px;
|
|
141
|
+
display: grid;
|
|
142
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
143
|
+
gap: 12px;
|
|
144
|
+
|
|
145
|
+
.file-card {
|
|
146
|
+
height: 50px;
|
|
147
|
+
background: #f7f8fa;
|
|
148
|
+
border-radius: 2px;
|
|
149
|
+
padding: 4px 8px;
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
|
|
154
|
+
.file-info {
|
|
155
|
+
flex: 1;
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
min-width: 0;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
|
|
161
|
+
.file-name {
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: #1d2129;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
line-height: 22px;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.file-meta {
|
|
172
|
+
margin-top: 2px;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
font-style: normal;
|
|
175
|
+
font-weight: 400;
|
|
176
|
+
line-height: 20px;
|
|
177
|
+
color: #4e5969;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.file-actions {
|
|
182
|
+
margin-left: 8px;
|
|
183
|
+
border-left: 1px solid #e5e6eb;
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
.el-button {
|
|
187
|
+
padding: 0 0 0 12px;
|
|
188
|
+
color: #4e5969;
|
|
189
|
+
:hover {
|
|
190
|
+
color: #007aff;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.file-upload-table_preview-pn {
|
|
202
|
+
position: absolute;
|
|
203
|
+
right: 46px;
|
|
204
|
+
top: 10px;
|
|
205
|
+
}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
:destroy-on-close="true"
|
|
90
90
|
:close-on-click-modal="false"
|
|
91
91
|
>
|
|
92
|
-
<el-form ref="
|
|
92
|
+
<el-form ref="stform" :model="form" label-width="80px" :inline="false" size="normal" label-position="top">
|
|
93
93
|
<el-form-item
|
|
94
94
|
:label="$lc('视图名称')"
|
|
95
95
|
prop="viewName"
|
|
@@ -226,23 +226,22 @@ export default {
|
|
|
226
226
|
methods: {
|
|
227
227
|
// 保存视图
|
|
228
228
|
saveSt() {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
this.$emit('refresh')
|
|
229
|
+
this.$refs.stform.validate(async (valid) => {
|
|
230
|
+
if (valid) {
|
|
231
|
+
// 保存筛选视图
|
|
232
|
+
const obj = {
|
|
233
|
+
viewName: this.form.viewName,
|
|
234
|
+
viewType: '0',
|
|
235
|
+
bussId: this.bussId,
|
|
236
|
+
viewConfig: JSON.stringify(this.model),
|
|
237
|
+
keyIds: JSON.stringify(this.checkList)
|
|
238
|
+
}
|
|
239
|
+
const { code } = await axios.post(`/bems/query/viewColumn/saveOrUpdateViewInfo`, obj)
|
|
240
|
+
if (code === 200) {
|
|
241
|
+
this.stVisible = false
|
|
242
|
+
this.$message.success('保存成功')
|
|
243
|
+
this.$emit('refresh')
|
|
244
|
+
}
|
|
246
245
|
}
|
|
247
246
|
})
|
|
248
247
|
},
|
|
@@ -669,172 +669,4 @@ export default {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
</script>
|
|
673
|
-
|
|
674
|
-
<style lang="scss" scoped>
|
|
675
|
-
.file-upload-table-v3 {
|
|
676
|
-
width: 100%;
|
|
677
|
-
|
|
678
|
-
background: #fff;
|
|
679
|
-
|
|
680
|
-
.panel {
|
|
681
|
-
padding: 0 16px 16px;
|
|
682
|
-
|
|
683
|
-
.panel-top {
|
|
684
|
-
height: 40px;
|
|
685
|
-
display: flex;
|
|
686
|
-
align-items: center;
|
|
687
|
-
justify-content: space-between;
|
|
688
|
-
font-size: 14px;
|
|
689
|
-
.summary {
|
|
690
|
-
display: flex;
|
|
691
|
-
align-items: center;
|
|
692
|
-
color: #4e5969;
|
|
693
|
-
|
|
694
|
-
i {
|
|
695
|
-
margin-right: 4px;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.summary-action {
|
|
699
|
-
margin-left: 12px;
|
|
700
|
-
padding: 0;
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.toggle-btn {
|
|
705
|
-
padding: 0;
|
|
706
|
-
|
|
707
|
-
i {
|
|
708
|
-
margin-left: 4px;
|
|
709
|
-
transition: transform 0.2s;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.is-reverse {
|
|
713
|
-
transform: rotate(180deg);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
.type-list {
|
|
718
|
-
min-height: 200px;
|
|
719
|
-
max-height: 680px;
|
|
720
|
-
overflow-y: auto;
|
|
721
|
-
.type-item {
|
|
722
|
-
margin-top: 8px;
|
|
723
|
-
|
|
724
|
-
.type-row {
|
|
725
|
-
min-height: 46px;
|
|
726
|
-
background: #f7f8fa;
|
|
727
|
-
border-radius: 4px;
|
|
728
|
-
padding: 0 12px;
|
|
729
|
-
display: flex;
|
|
730
|
-
align-items: center;
|
|
731
|
-
justify-content: space-between;
|
|
732
|
-
|
|
733
|
-
.type-meta {
|
|
734
|
-
display: flex;
|
|
735
|
-
align-items: center;
|
|
736
|
-
color: #1d2129;
|
|
737
|
-
font-family: 'PingFang SC';
|
|
738
|
-
font-size: 14px;
|
|
739
|
-
font-style: normal;
|
|
740
|
-
font-weight: 500;
|
|
741
|
-
line-height: 22px;
|
|
742
|
-
|
|
743
|
-
.required {
|
|
744
|
-
color: #f53f3f;
|
|
745
|
-
margin-right: 2px;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
.type-index {
|
|
749
|
-
margin-right: 2px;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
.status-icon {
|
|
753
|
-
width: 16px;
|
|
754
|
-
height: 16px;
|
|
755
|
-
margin-left: 8px;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
.upload-trigger {
|
|
760
|
-
font-size: 14px;
|
|
761
|
-
font-style: normal;
|
|
762
|
-
font-weight: 400;
|
|
763
|
-
line-height: 22px;
|
|
764
|
-
padding: 0;
|
|
765
|
-
color: #007aff;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
.type-row__is-success {
|
|
769
|
-
border-radius: 4px;
|
|
770
|
-
background-color: #e8fff3;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.file-cards {
|
|
774
|
-
margin-top: 8px;
|
|
775
|
-
display: grid;
|
|
776
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
777
|
-
gap: 12px;
|
|
778
|
-
|
|
779
|
-
.file-card {
|
|
780
|
-
height: 50px;
|
|
781
|
-
background: #f7f8fa;
|
|
782
|
-
border-radius: 2px;
|
|
783
|
-
padding: 4px 8px;
|
|
784
|
-
display: flex;
|
|
785
|
-
align-items: center;
|
|
786
|
-
justify-content: space-between;
|
|
787
|
-
|
|
788
|
-
.file-info {
|
|
789
|
-
flex: 1;
|
|
790
|
-
display: flex;
|
|
791
|
-
align-items: center;
|
|
792
|
-
min-width: 0;
|
|
793
|
-
cursor: pointer;
|
|
794
|
-
|
|
795
|
-
.file-name {
|
|
796
|
-
font-size: 14px;
|
|
797
|
-
color: #1d2129;
|
|
798
|
-
font-weight: 500;
|
|
799
|
-
line-height: 22px;
|
|
800
|
-
overflow: hidden;
|
|
801
|
-
text-overflow: ellipsis;
|
|
802
|
-
white-space: nowrap;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.file-meta {
|
|
806
|
-
margin-top: 2px;
|
|
807
|
-
font-size: 12px;
|
|
808
|
-
font-style: normal;
|
|
809
|
-
font-weight: 400;
|
|
810
|
-
line-height: 20px;
|
|
811
|
-
color: #4e5969;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
.file-actions {
|
|
816
|
-
margin-left: 8px;
|
|
817
|
-
border-left: 1px solid #e5e6eb;
|
|
818
|
-
display: flex;
|
|
819
|
-
align-items: center;
|
|
820
|
-
.el-button {
|
|
821
|
-
padding: 0 0 0 12px;
|
|
822
|
-
color: #4e5969;
|
|
823
|
-
:hover {
|
|
824
|
-
color: #007aff;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
.file-upload-table_preview-pn {
|
|
836
|
-
position: absolute;
|
|
837
|
-
right: 46px;
|
|
838
|
-
top: 10px;
|
|
839
|
-
}
|
|
840
|
-
</style>
|
|
672
|
+
</script>
|
|
@@ -403,13 +403,18 @@ export default {
|
|
|
403
403
|
})
|
|
404
404
|
},
|
|
405
405
|
// 删除
|
|
406
|
-
deleteOne() {
|
|
406
|
+
deleteOne(row) {
|
|
407
407
|
this.$msgboxPor({
|
|
408
408
|
title: '确认要删除吗?',
|
|
409
409
|
message: '内容从页面删除,将不可恢复',
|
|
410
410
|
type: 'error',
|
|
411
411
|
confirmButtonText: '确定',
|
|
412
412
|
cancelButtonText: '取消'
|
|
413
|
+
}).then(async () => {
|
|
414
|
+
const { code } = await axios.post('/bems/query/viewColumn/deleteViewInfo', { viewId: row.viewId })
|
|
415
|
+
if (code !== 200) return
|
|
416
|
+
this.$message.success('删除成功')
|
|
417
|
+
this.getFilterList()
|
|
413
418
|
})
|
|
414
419
|
},
|
|
415
420
|
// 选中视图
|