n20-common-lib 3.0.35 → 3.0.37
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/nstc-g6/components/Form/CheckboxCustom/index.vue +1 -1
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +5 -5
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +1 -1
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +1 -1
- package/package.json +4 -4
- package/src/assets/css/element-variables.scss +42 -16
- package/src/assets/css/file-upload-table.scss +26 -10
- package/src/assets/css/filter.scss +57 -2
- package/src/assets/css/layout-aside.scss +3 -9
- package/src/assets/css/layout.scss +5 -5
- package/src/components/FileUploadTable/FileUploadTableV3.vue +80 -8
- package/src/components/FileUploadTable/Png.svg +34 -0
- package/src/components/FileUploadTable/Txt.svg +29 -0
- package/src/components/FileUploadTable/Zip.svg +21 -0
- package/src/components/FileUploadTable/aiCheckDialog.vue +1 -1
- package/src/components/FileUploadTable/not.svg +29 -0
- package/src/components/ProFilterView/advancedQuery.vue +33 -29
- package/src/components/ProFilterView/index.vue +130 -60
- package/style/index.css +1 -3
- package/theme/blue.css +1 -3
- package/theme/cctcRed.css +1 -3
- package/theme/green.css +1 -3
- package/theme/lightBlue.css +1 -3
- package/theme/orange.css +1 -3
- package/theme/purple.css +1 -3
- package/theme/red.css +1 -3
- package/theme/yellow.css +1 -3
|
@@ -116,22 +116,22 @@ export default {
|
|
|
116
116
|
}
|
|
117
117
|
</style>
|
|
118
118
|
<style scoped>
|
|
119
|
-
.confirmTip
|
|
119
|
+
.confirmTip ::v-deep .el-dialog {
|
|
120
120
|
margin-top: 36vh !important;
|
|
121
121
|
}
|
|
122
|
-
.confirmTip
|
|
122
|
+
.confirmTip ::v-deep .el-dialog__header {
|
|
123
123
|
/* display: none; */
|
|
124
124
|
border-bottom: none !important;
|
|
125
125
|
}
|
|
126
|
-
.confirmTip
|
|
126
|
+
.confirmTip ::v-deep .el-dialog__body {
|
|
127
127
|
padding: 24px;
|
|
128
128
|
padding-bottom: 0px;
|
|
129
129
|
padding: 0 20px !important;
|
|
130
130
|
}
|
|
131
|
-
.confirmTip
|
|
131
|
+
.confirmTip ::v-deep .el-dialog__footer {
|
|
132
132
|
padding: 16px;
|
|
133
133
|
}
|
|
134
|
-
.confirmTip
|
|
134
|
+
.confirmTip ::v-deep .el-dialog__headerbtn {
|
|
135
135
|
display: none;
|
|
136
136
|
}
|
|
137
137
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n20-common-lib",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vue-jsonp": "2.0.0",
|
|
69
69
|
"vuedraggable": "*",
|
|
70
70
|
"webpack-duplicate-relano-plugin": "^0.1.0",
|
|
71
|
-
"xe-utils": "
|
|
71
|
+
"xe-utils": "4.0.2",
|
|
72
72
|
"ngraph.events": "1.2.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"jszip": "^3.10.0",
|
|
102
102
|
"md2vue-loader": "file:./md2vue-loader",
|
|
103
103
|
"mockjs": "^1.1.0",
|
|
104
|
-
"
|
|
104
|
+
"sass": "^1.77.0",
|
|
105
105
|
"nstc-get-i18n": "^0.0.4",
|
|
106
106
|
"qiankun": "^2.5.1",
|
|
107
|
-
"sass-loader": "^10.2
|
|
107
|
+
"sass-loader": "^10.5.2",
|
|
108
108
|
"screenfull": "^5.1.0",
|
|
109
109
|
"showdown": "^2.1.0",
|
|
110
110
|
"sortablejs": "^1.15.0",
|
|
@@ -20,7 +20,7 @@ $--color-primary: #007aff !default;
|
|
|
20
20
|
/// color|1|Background Color|4
|
|
21
21
|
$--color-white: #ffffff !default;
|
|
22
22
|
/// color|1|Background Color|4
|
|
23
|
-
$--color-black: #
|
|
23
|
+
$--color-black: #1d2129 !default;
|
|
24
24
|
$--color-primary-light-1: mix($--color-white, $--color-primary, 10%) !default;
|
|
25
25
|
/* #1a87ff */
|
|
26
26
|
$--color-primary-light-2: mix($--color-white, $--color-primary, 20%) !default;
|
|
@@ -40,7 +40,7 @@ $--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default;
|
|
|
40
40
|
$--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default;
|
|
41
41
|
/* #e6f2ff */
|
|
42
42
|
/// color|1|Functional Color|1
|
|
43
|
-
$--color-success: #
|
|
43
|
+
$--color-success: #2db185;
|
|
44
44
|
/// color|1|Functional Color|1
|
|
45
45
|
$--color-warning: #ff9933;
|
|
46
46
|
/// color|1|Functional Color|1
|
|
@@ -1024,23 +1024,49 @@ $--lg: 1200px !default;
|
|
|
1024
1024
|
$--xl: 1920px !default;
|
|
1025
1025
|
|
|
1026
1026
|
$--breakpoints: (
|
|
1027
|
-
'xs': (
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
'
|
|
1031
|
-
|
|
1027
|
+
'xs': (
|
|
1028
|
+
max-width: $--sm - 1
|
|
1029
|
+
),
|
|
1030
|
+
'sm': (
|
|
1031
|
+
min-width: $--sm
|
|
1032
|
+
),
|
|
1033
|
+
'md': (
|
|
1034
|
+
min-width: $--md
|
|
1035
|
+
),
|
|
1036
|
+
'lg': (
|
|
1037
|
+
min-width: $--lg
|
|
1038
|
+
),
|
|
1039
|
+
'xl': (
|
|
1040
|
+
min-width: $--xl
|
|
1041
|
+
)
|
|
1032
1042
|
);
|
|
1033
1043
|
|
|
1034
1044
|
$--breakpoints-spec: (
|
|
1035
|
-
'xs-only': (
|
|
1036
|
-
|
|
1045
|
+
'xs-only': (
|
|
1046
|
+
max-width: $--sm - 1
|
|
1047
|
+
),
|
|
1048
|
+
'sm-and-up': (
|
|
1049
|
+
min-width: $--sm
|
|
1050
|
+
),
|
|
1037
1051
|
'sm-only': '(min-width: #{$--sm}) and (max-width: #{$--md - 1})',
|
|
1038
|
-
'sm-and-down': (
|
|
1039
|
-
|
|
1052
|
+
'sm-and-down': (
|
|
1053
|
+
max-width: $--md - 1
|
|
1054
|
+
),
|
|
1055
|
+
'md-and-up': (
|
|
1056
|
+
min-width: $--md
|
|
1057
|
+
),
|
|
1040
1058
|
'md-only': '(min-width: #{$--md}) and (max-width: #{$--lg - 1})',
|
|
1041
|
-
'md-and-down': (
|
|
1042
|
-
|
|
1059
|
+
'md-and-down': (
|
|
1060
|
+
max-width: $--lg - 1
|
|
1061
|
+
),
|
|
1062
|
+
'lg-and-up': (
|
|
1063
|
+
min-width: $--lg
|
|
1064
|
+
),
|
|
1043
1065
|
'lg-only': '(min-width: #{$--lg}) and (max-width: #{$--xl - 1})',
|
|
1044
|
-
'lg-and-down': (
|
|
1045
|
-
|
|
1046
|
-
)
|
|
1066
|
+
'lg-and-down': (
|
|
1067
|
+
max-width: $--xl - 1
|
|
1068
|
+
),
|
|
1069
|
+
'xl-only': (
|
|
1070
|
+
min-width: $--xl
|
|
1071
|
+
)
|
|
1072
|
+
);
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
.file-upload-table-v3 {
|
|
42
41
|
width: 100%;
|
|
43
42
|
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
.summary {
|
|
56
55
|
display: flex;
|
|
57
56
|
align-items: center;
|
|
58
|
-
color:
|
|
57
|
+
color: var(--color-text-primary);
|
|
59
58
|
|
|
60
59
|
i {
|
|
61
60
|
margin-right: 4px;
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
line-height: 22px;
|
|
108
107
|
|
|
109
108
|
.required {
|
|
110
|
-
color:
|
|
109
|
+
color: var(--color-danger);
|
|
111
110
|
margin-right: 2px;
|
|
112
111
|
}
|
|
113
112
|
|
|
@@ -128,7 +127,7 @@
|
|
|
128
127
|
font-weight: 400;
|
|
129
128
|
line-height: 22px;
|
|
130
129
|
padding: 0;
|
|
131
|
-
color:
|
|
130
|
+
color: var(--color-primary);
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
.type-row__is-success {
|
|
@@ -160,7 +159,7 @@
|
|
|
160
159
|
|
|
161
160
|
.file-name {
|
|
162
161
|
font-size: 14px;
|
|
163
|
-
color:
|
|
162
|
+
color: var(--color-text-primary);
|
|
164
163
|
font-weight: 500;
|
|
165
164
|
line-height: 22px;
|
|
166
165
|
overflow: hidden;
|
|
@@ -174,10 +173,27 @@
|
|
|
174
173
|
font-style: normal;
|
|
175
174
|
font-weight: 400;
|
|
176
175
|
line-height: 20px;
|
|
177
|
-
color:
|
|
176
|
+
color: var(--color-text-regular);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.file-ai__card {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
.file-ai_icon {
|
|
184
|
+
width: 16px;
|
|
185
|
+
height: 16px;
|
|
186
|
+
margin-right: 4px;
|
|
187
|
+
}
|
|
188
|
+
.file-ai_check {
|
|
189
|
+
color: var(--color-primary);
|
|
190
|
+
font-family: 'PingFang SC';
|
|
191
|
+
font-size: 12px;
|
|
192
|
+
font-style: normal;
|
|
193
|
+
font-weight: 400;
|
|
194
|
+
line-height: 17px; /* 141.667% */
|
|
178
195
|
}
|
|
179
196
|
}
|
|
180
|
-
|
|
181
197
|
.file-actions {
|
|
182
198
|
margin-left: 8px;
|
|
183
199
|
border-left: 1px solid #e5e6eb;
|
|
@@ -185,9 +201,9 @@
|
|
|
185
201
|
align-items: center;
|
|
186
202
|
.el-button {
|
|
187
203
|
padding: 0 0 0 12px;
|
|
188
|
-
color:
|
|
204
|
+
color: var(--color-text-regular);
|
|
189
205
|
:hover {
|
|
190
|
-
color:
|
|
206
|
+
color: var(--color-primary);
|
|
191
207
|
}
|
|
192
208
|
}
|
|
193
209
|
}
|
|
@@ -202,4 +218,4 @@
|
|
|
202
218
|
position: absolute;
|
|
203
219
|
right: 46px;
|
|
204
220
|
top: 10px;
|
|
205
|
-
}
|
|
221
|
+
}
|
|
@@ -7,10 +7,47 @@
|
|
|
7
7
|
max-height: 300px;
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
.el-popover.pro-filter-view-popover {
|
|
12
|
+
padding: 8px;
|
|
13
|
+
margin-top: 4px;
|
|
14
|
+
max-width: 256px;
|
|
15
|
+
// .popper__arrow::after {
|
|
16
|
+
// border-width: 0;
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
.filter-view-wrapper {
|
|
20
|
+
max-height: 300px;
|
|
21
|
+
overflow-y: auto;
|
|
22
|
+
}
|
|
23
|
+
/* more 图标默认隐藏,hover 列表项时显示 */
|
|
24
|
+
.proFilterView-list-item .proFilterView-list-item__more {
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
}
|
|
27
|
+
.proFilterView-list-item:hover .proFilterView-list-item__more {
|
|
28
|
+
visibility: visible;
|
|
29
|
+
}
|
|
30
|
+
/* 视图名称单行溢出省略 */
|
|
31
|
+
.proFilterView-list-item__name {
|
|
32
|
+
flex: 1;
|
|
33
|
+
width: 180px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// .pro-filter-view-popover[x-placement^='bottom'] .popper__arrow {
|
|
41
|
+
// top: 0;
|
|
42
|
+
// left: 0;
|
|
43
|
+
// border-bottom-color: transparent;
|
|
44
|
+
// }
|
|
45
|
+
|
|
10
46
|
// 高级筛选
|
|
11
47
|
.ProFilterView {
|
|
12
48
|
width: 100%;
|
|
13
49
|
font-size: 14px;
|
|
50
|
+
|
|
14
51
|
.top {
|
|
15
52
|
padding: 12px 0px;
|
|
16
53
|
border-bottom: 1px solid #e5e6eb !important;
|
|
@@ -20,7 +57,7 @@
|
|
|
20
57
|
border-bottom: 1px solid #e5e6eb !important;
|
|
21
58
|
}
|
|
22
59
|
.flex-item {
|
|
23
|
-
border-bottom: 1px solid var(--button-disabled-background-color);
|
|
60
|
+
// border-bottom: 1px solid var(--button-disabled-background-color);
|
|
24
61
|
padding: 0 8px;
|
|
25
62
|
margin-top: 8px;
|
|
26
63
|
}
|
|
@@ -30,6 +67,14 @@
|
|
|
30
67
|
border-radius: 4px;
|
|
31
68
|
background: var(--fill-2, #f2f3f5);
|
|
32
69
|
border: none;
|
|
70
|
+
.popover-title {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
max-width: 120px;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
33
78
|
}
|
|
34
79
|
.activiti {
|
|
35
80
|
background: var(--color-primary-light-9);
|
|
@@ -37,20 +82,30 @@
|
|
|
37
82
|
color: var(--color-primary);
|
|
38
83
|
}
|
|
39
84
|
|
|
40
|
-
|
|
85
|
+
::v-deep .el-form-item__content {
|
|
41
86
|
margin-left: 0;
|
|
42
87
|
}
|
|
43
88
|
}
|
|
89
|
+
.ProFilterView_divider {
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 1px;
|
|
92
|
+
background-color: #e5e5e5;
|
|
93
|
+
margin-top: 8px;
|
|
94
|
+
}
|
|
95
|
+
|
|
44
96
|
.ProFilterView-add {
|
|
45
97
|
cursor: pointer;
|
|
46
98
|
margin-top: 8px;
|
|
99
|
+
|
|
47
100
|
img {
|
|
48
101
|
margin-right: 12px;
|
|
49
102
|
}
|
|
50
103
|
padding: 8px;
|
|
51
104
|
height: 20px;
|
|
52
105
|
line-height: 20px;
|
|
106
|
+
position: relative;
|
|
53
107
|
}
|
|
108
|
+
|
|
54
109
|
.ProFilterView-add:hover {
|
|
55
110
|
border-radius: 2px;
|
|
56
111
|
background: var(--fill-1, #f7f8fa);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
$--hover-bg-color: #303d59;
|
|
2
2
|
|
|
3
3
|
.layout-aside {
|
|
4
|
-
|
|
5
4
|
.el-menu-item,
|
|
6
5
|
.el-submenu__title {
|
|
7
6
|
height: $--aside-height;
|
|
@@ -52,11 +51,6 @@ $--hover-bg-color: #303d59;
|
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
// .layout-aside > .el-menu-item,
|
|
56
|
-
// .layout-aside > .el-submenu > .el-submenu__title {
|
|
57
|
-
// padding-left: 16px !important;
|
|
58
|
-
// }
|
|
59
|
-
|
|
60
54
|
.open-collapsed-btn {
|
|
61
55
|
box-sizing: border-box;
|
|
62
56
|
position: sticky;
|
|
@@ -138,7 +132,7 @@ $--hover-bg-color: #303d59;
|
|
|
138
132
|
border-top-right-radius: 4px;
|
|
139
133
|
}
|
|
140
134
|
|
|
141
|
-
.el-menu--collapse
|
|
142
|
-
.el-menu--collapse
|
|
135
|
+
.el-menu--collapse > .el-menu-item [class^='el-icon-'],
|
|
136
|
+
.el-menu--collapse > .el-submenu > .el-submenu__title [class^='el-icon-'] {
|
|
143
137
|
width: 18px;
|
|
144
|
-
}
|
|
138
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// layout
|
|
2
|
-
$--aside-width:
|
|
2
|
+
$--aside-width: 200px;
|
|
3
3
|
$--aside-height: 40px;
|
|
4
4
|
$--aside-collapse-width: 50px;
|
|
5
5
|
$--header-height: 48px;
|
|
@@ -106,8 +106,8 @@ body {
|
|
|
106
106
|
|
|
107
107
|
@import './layout-content.scss';
|
|
108
108
|
|
|
109
|
-
.workplace-card>[data-version],
|
|
110
|
-
.workplace-card>[data-version]>div,
|
|
111
|
-
.workplace-card>[data-version]>div>div {
|
|
109
|
+
.workplace-card > [data-version],
|
|
110
|
+
.workplace-card > [data-version] > div,
|
|
111
|
+
.workplace-card > [data-version] > div > div {
|
|
112
112
|
height: 100%;
|
|
113
|
-
}
|
|
113
|
+
}
|
|
@@ -54,8 +54,31 @@
|
|
|
54
54
|
<div v-for="(row, rowIndex) in group.rows" :key="`${group.typeValue}-${rowIndex}`" class="file-card">
|
|
55
55
|
<div class="file-info">
|
|
56
56
|
<img v-if="matchFileExtension(row[keys.name], ['word', 'doc', 'docx'])" src="./46.svg" class="m-r-s" />
|
|
57
|
-
<img
|
|
58
|
-
|
|
57
|
+
<img
|
|
58
|
+
v-else-if="matchFileExtension(row[keys.name], ['xlsx', 'xls', 'csv'])"
|
|
59
|
+
src="./60.svg"
|
|
60
|
+
class="m-r-s"
|
|
61
|
+
/>
|
|
62
|
+
<img v-else-if="matchFileExtension(row[keys.name], ['pdf'])" src="./37.svg" class="m-r-s" />
|
|
63
|
+
<img
|
|
64
|
+
style="width: 36px; height: 36px"
|
|
65
|
+
v-else-if="matchFileExtension(row[keys.name], ['png', 'jpg', 'jpeg', 'gif'])"
|
|
66
|
+
src="./Png.svg"
|
|
67
|
+
class="m-r-s"
|
|
68
|
+
/>
|
|
69
|
+
<img
|
|
70
|
+
style="width: 36px; height: 36px"
|
|
71
|
+
v-else-if="matchFileExtension(row[keys.name], ['zip', 'rar'])"
|
|
72
|
+
src="./Zip.svg"
|
|
73
|
+
class="m-r-s"
|
|
74
|
+
/>
|
|
75
|
+
<img
|
|
76
|
+
style="width: 36px; height: 36px"
|
|
77
|
+
v-else-if="matchFileExtension(row[keys.name], ['txt', 'md', 'log'])"
|
|
78
|
+
src="./Txt.svg"
|
|
79
|
+
class="m-r-s"
|
|
80
|
+
/>
|
|
81
|
+
<img style="width: 36px; height: 36px" v-else src="./not.svg" class="m-r-s" />
|
|
59
82
|
<div>
|
|
60
83
|
<div class="file-name" :title="row[keys.name]">{{ row[keys.name] }}</div>
|
|
61
84
|
<div class="file-meta">
|
|
@@ -64,10 +87,16 @@
|
|
|
64
87
|
</div>
|
|
65
88
|
</div>
|
|
66
89
|
</div>
|
|
67
|
-
<div class="
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
90
|
+
<div class="flex-box">
|
|
91
|
+
<div class="file-ai__card" v-if="AICheck" @click="AiCheck(row)">
|
|
92
|
+
<img class="file-ai_icon" src="./jytg.svg" alt="" />
|
|
93
|
+
<span class="file-ai_check">{{ $lc('AI 校验') }}</span>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="file-actions">
|
|
96
|
+
<el-button type="text" icon="el-icon-view" :disabled="!row[keys.url]" @click="seeFile(row)" />
|
|
97
|
+
<el-button type="text" icon="v3-icon-download" :disabled="!row[keys.url]" @click="downFile(row)" />
|
|
98
|
+
<el-button v-if="!readonly" type="text" icon="v3-icon-delete" @click="deleteSingleRow(row)" />
|
|
99
|
+
</div>
|
|
71
100
|
</div>
|
|
72
101
|
</div>
|
|
73
102
|
</div>
|
|
@@ -112,6 +141,7 @@
|
|
|
112
141
|
</component>
|
|
113
142
|
</div>
|
|
114
143
|
</Dialog>
|
|
144
|
+
<aiCheckDialog ref="aiCheckDialog" :api-prefix="apiPrefix" :readonly="readonly" @cancel="aiCheckCancel" />
|
|
115
145
|
</div>
|
|
116
146
|
</template>
|
|
117
147
|
|
|
@@ -125,6 +155,7 @@ import { $lc } from '../../utils/i18n/index'
|
|
|
125
155
|
import importG from '../../utils/importGlobal.js'
|
|
126
156
|
import Dialog from '../Dialog/index.vue'
|
|
127
157
|
import Upload from '../Upload/index.vue'
|
|
158
|
+
import aiCheckDialog from './aiCheckDialog.vue'
|
|
128
159
|
|
|
129
160
|
import 'viewerjs/dist/viewer.css'
|
|
130
161
|
|
|
@@ -147,7 +178,8 @@ export default {
|
|
|
147
178
|
components: {
|
|
148
179
|
Upload,
|
|
149
180
|
Dialog,
|
|
150
|
-
ViewerImg
|
|
181
|
+
ViewerImg,
|
|
182
|
+
aiCheckDialog
|
|
151
183
|
},
|
|
152
184
|
props: {
|
|
153
185
|
readonly: {
|
|
@@ -189,6 +221,14 @@ export default {
|
|
|
189
221
|
getFileMethod: {
|
|
190
222
|
type: Function,
|
|
191
223
|
default: undefined
|
|
224
|
+
},
|
|
225
|
+
AICheck: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: false
|
|
228
|
+
},
|
|
229
|
+
AIOptions: {
|
|
230
|
+
type: Object,
|
|
231
|
+
default: () => ({})
|
|
192
232
|
}
|
|
193
233
|
},
|
|
194
234
|
data() {
|
|
@@ -316,6 +356,38 @@ export default {
|
|
|
316
356
|
this.getFileTypes()
|
|
317
357
|
},
|
|
318
358
|
methods: {
|
|
359
|
+
// ai校验
|
|
360
|
+
async AiCheck(row) {
|
|
361
|
+
// isOptionAiCheck为true,业务组件自己调ai校验
|
|
362
|
+
if (this.AIOptions.isOptionAiCheck) {
|
|
363
|
+
this.$emit('AiCheckFn', row, (result) => {
|
|
364
|
+
row.aiCheckStatus = result.aiCheckStatus
|
|
365
|
+
this.tableKey++
|
|
366
|
+
this.$refs.aiCheckDialog.setView(result.list, row.beid)
|
|
367
|
+
})
|
|
368
|
+
} else {
|
|
369
|
+
if (!this.AIOptions.bussType) {
|
|
370
|
+
this.$message.error('请先配置bussType')
|
|
371
|
+
return false
|
|
372
|
+
}
|
|
373
|
+
let { data, code } = await axios.post(
|
|
374
|
+
this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
|
|
375
|
+
{
|
|
376
|
+
...this.AIOptions,
|
|
377
|
+
beid: row.beid,
|
|
378
|
+
bussType: this.AIOptions.bussType,
|
|
379
|
+
extendPrompt: ''
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
if (code === 200) {
|
|
383
|
+
this.$emit('AiCheckFn', data, (result) => {
|
|
384
|
+
row.aiCheckStatus = result.aiCheckStatus
|
|
385
|
+
this.tableKey++
|
|
386
|
+
this.$refs.aiCheckDialog.setView(result.list, row.beid)
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
319
391
|
async getFileTypes() {
|
|
320
392
|
if (this.dataProp?.bussValues?.length) {
|
|
321
393
|
const { code, data } = await this.$axios.post(
|
|
@@ -669,4 +741,4 @@ export default {
|
|
|
669
741
|
}
|
|
670
742
|
}
|
|
671
743
|
}
|
|
672
|
-
</script>
|
|
744
|
+
</script>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_4435_92034)">
|
|
3
|
+
<path d="M17.5 5H71.3365L92.5 26.3423V85C92.5 90.5229 88.0229 95 82.5 95H17.5C11.9772 95 7.5 90.5229 7.5 85V15C7.5 9.47715 11.9772 5 17.5 5Z" fill="#F1C44B"/>
|
|
4
|
+
<mask id="mask0_4435_92034" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="7" y="5" width="86" height="90">
|
|
5
|
+
<path d="M17.5 5H71.3365L92.5 26.3423V85C92.5 90.5229 88.0229 95 82.5 95H17.5C11.9772 95 7.5 90.5229 7.5 85V15C7.5 9.47715 11.9772 5 17.5 5Z" fill="white"/>
|
|
6
|
+
</mask>
|
|
7
|
+
<g mask="url(#mask0_4435_92034)">
|
|
8
|
+
<g filter="url(#filter0_d_4435_92034)">
|
|
9
|
+
<path d="M71.2602 16.3363L71.2602 4.9999L92.5001 26.3363L81.2602 26.3363C75.7374 26.3363 71.2602 21.8592 71.2602 16.3363Z" fill="black"/>
|
|
10
|
+
</g>
|
|
11
|
+
<path d="M71.2602 16.3363L71.2602 4.9999L92.5001 26.3363L81.2602 26.3363C75.7374 26.3363 71.2602 21.8592 71.2602 16.3363Z" fill="#FFD973"/>
|
|
12
|
+
</g>
|
|
13
|
+
<mask id="mask1_4435_92034" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="7" y="5" width="86" height="90">
|
|
14
|
+
<path d="M17.5 5H71.3365L92.5 26.3423V85C92.5 90.5229 88.0229 95 82.5 95H17.5C11.9772 95 7.5 90.5229 7.5 85V15C7.5 9.47715 11.9772 5 17.5 5Z" fill="white"/>
|
|
15
|
+
</mask>
|
|
16
|
+
<g mask="url(#mask1_4435_92034)">
|
|
17
|
+
<path opacity="0.804618" d="M62.8922 62.9138H32.0524C31.905 62.9138 31.7856 62.7848 31.7856 62.6255V56.204C31.7856 56.1521 31.799 56.1002 31.8237 56.0555L41.0062 39.5153C41.1009 39.3445 41.3236 39.3265 41.441 39.4807L53.9431 55.9193C54.0313 56.0351 54.1869 56.0586 54.3012 55.9734L62.7515 49.6484C62.9282 49.5158 63.1703 49.6528 63.1703 49.8855L63.1603 62.6255C63.1589 62.7855 63.0396 62.9138 62.8922 62.9138ZM65.7856 39.3752C65.7856 43.4777 61.0626 46.4771 56.7574 43.2332C56.7345 43.2154 56.713 43.1947 56.6959 43.1717C53.4537 38.8663 56.453 34.1445 60.5545 34.1445C61.9426 34.1445 63.273 34.6957 64.2545 35.6772C65.2355 36.659 65.7863 37.9903 65.7856 39.3782V39.3752Z" fill="white"/>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
<defs>
|
|
21
|
+
<filter id="filter0_d_4435_92034" x="53.2603" y="-16" width="57.2397" height="57.3359" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
22
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
23
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
24
|
+
<feOffset dy="-3"/>
|
|
25
|
+
<feGaussianBlur stdDeviation="9"/>
|
|
26
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"/>
|
|
27
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4435_92034"/>
|
|
28
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4435_92034" result="shape"/>
|
|
29
|
+
</filter>
|
|
30
|
+
<clipPath id="clip0_4435_92034">
|
|
31
|
+
<rect width="100" height="100" fill="white"/>
|
|
32
|
+
</clipPath>
|
|
33
|
+
</defs>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_4435_92086)">
|
|
3
|
+
<path d="M17.5 5H71.3365L92.5 26.3423V85C92.5 90.5229 88.0229 95 82.5 95H17.5C11.9772 95 7.5 90.5229 7.5 85V15C7.5 9.47715 11.9772 5 17.5 5Z" fill="#BAE4FF"/>
|
|
4
|
+
<mask id="mask0_4435_92086" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="7" y="5" width="86" height="90">
|
|
5
|
+
<path d="M17.5 5H71.3365L92.5 26.3423V85C92.5 90.5229 88.0229 95 82.5 95H17.5C11.9772 95 7.5 90.5229 7.5 85V15C7.5 9.47715 11.9772 5 17.5 5Z" fill="white"/>
|
|
6
|
+
</mask>
|
|
7
|
+
<g mask="url(#mask0_4435_92086)">
|
|
8
|
+
<g filter="url(#filter0_d_4435_92086)">
|
|
9
|
+
<path d="M71.2602 16.3363L71.2602 4.9999L92.5001 26.3363L81.2602 26.3363C75.7374 26.3363 71.2602 21.8592 71.2602 16.3363Z" fill="black"/>
|
|
10
|
+
</g>
|
|
11
|
+
<path d="M71.2602 16.3363L71.2602 4.9999L92.5001 26.3363L81.2602 26.3363C75.7374 26.3363 71.2602 21.8592 71.2602 16.3363Z" fill="#8BCFFF"/>
|
|
12
|
+
</g>
|
|
13
|
+
<path opacity="0.9" d="M63.6857 32.9023L63.9155 41.239H62.0142C61.7077 39.6371 61.3038 38.4253 60.8023 37.6034C60.3148 36.7677 59.5974 36.1896 58.6503 35.8693C57.7031 35.5489 56.3937 35.3469 54.7222 35.2633L53.6984 35.2216V58.1003C53.6984 58.7828 53.782 59.3191 53.9492 59.7091C54.1163 60.0852 54.4576 60.3777 54.973 60.5866C55.4883 60.7816 56.2753 60.9418 57.334 61.0672V63.073H42.6665V61.0672C43.7251 60.9418 44.5121 60.7816 45.0275 60.5866C45.5429 60.3777 45.8772 60.0852 46.0304 59.7091C46.1976 59.3191 46.2811 58.7828 46.2811 58.1003V35.2216L45.2782 35.2633C43.6067 35.3469 42.2974 35.5489 41.3502 35.8693C40.403 36.1896 39.6787 36.7607 39.1772 37.5826C38.6897 38.4044 38.2927 39.6232 37.9863 41.239H36.085L36.3148 32.9023H63.6857Z" fill="#1D2129"/>
|
|
14
|
+
</g>
|
|
15
|
+
<defs>
|
|
16
|
+
<filter id="filter0_d_4435_92086" x="53.2603" y="-16" width="57.2397" height="57.3359" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
17
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
18
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
19
|
+
<feOffset dy="-3"/>
|
|
20
|
+
<feGaussianBlur stdDeviation="9"/>
|
|
21
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"/>
|
|
22
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4435_92086"/>
|
|
23
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4435_92086" result="shape"/>
|
|
24
|
+
</filter>
|
|
25
|
+
<clipPath id="clip0_4435_92086">
|
|
26
|
+
<rect width="100" height="100" fill="white"/>
|
|
27
|
+
</clipPath>
|
|
28
|
+
</defs>
|
|
29
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<svg width="111" height="116" viewBox="0 0 111 116" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 20.9961H71.3002L92.4517 42.3384V100.996C92.4517 106.519 87.9746 110.996 82.4517 110.996H17.5C11.9772 110.996 7.5 106.519 7.5 100.996V30.9961C7.5 25.4732 11.9772 20.9961 17.5 20.9961Z" fill="#1252C2"/>
|
|
3
|
+
<g filter="url(#filter0_d_4435_92021)">
|
|
4
|
+
<path d="M71.2238 32.3346L71.2238 20.9981L92.4516 42.3346H81.2238C75.7009 42.3346 71.2238 37.8574 71.2238 32.3346Z" fill="black"/>
|
|
5
|
+
</g>
|
|
6
|
+
<path d="M71.2238 32.3346L71.2238 20.9981L92.4516 42.3346H81.2238C75.7009 42.3346 71.2238 37.8574 71.2238 32.3346Z" fill="#629BFE"/>
|
|
7
|
+
<g opacity="0.798549">
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.9175 20.9961H36.6263V30.7104H26.9175V20.9961ZM36.6263 30.7104H46.335V40.4247H36.6263V30.7104ZM26.9175 40.4247H36.6263V50.139H26.9175V40.4247ZM36.6263 50.139H46.335V69.5675H36.6263V50.139ZM26.9175 59.8532H36.6263V69.5675H26.9175V59.8532ZM26.9175 69.5675H36.6263V79.2818H26.9175V69.5675ZM36.6263 69.5675H46.335V79.2818H36.6263V69.5675Z" fill="white" fill-opacity="0.801956"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<filter id="filter0_d_4435_92021" x="53.2236" y="0" width="57.228" height="57.3359" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
12
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
13
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
14
|
+
<feOffset dy="-3"/>
|
|
15
|
+
<feGaussianBlur stdDeviation="9"/>
|
|
16
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
|
|
17
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4435_92021"/>
|
|
18
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4435_92021" result="shape"/>
|
|
19
|
+
</filter>
|
|
20
|
+
</defs>
|
|
21
|
+
</svg>
|