agilebuilder-ui 1.1.65-tmp25 → 1.1.65-tmp27
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/dist/index.full.min.js +1116 -1115
- package/dist/style.css +36 -20
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/index.mjs +6 -7
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/utils/watermark.mjs +25 -35
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/style.css +911 -895
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/index.cjs +7 -7
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/utils/watermark.cjs +21 -32
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/style.css +913 -897
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
- package/src/utils/watermark.js +1 -1
package/dist/style.css
CHANGED
|
@@ -1152,7 +1152,7 @@ li[data-v-040fcf55] {
|
|
|
1152
1152
|
bottom: 0;
|
|
1153
1153
|
--main-content-height: calc(100vh - var(--header-height));
|
|
1154
1154
|
}
|
|
1155
|
-
.chat-container
|
|
1155
|
+
.chat-container[data-v-bc196b97] > * {
|
|
1156
1156
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
@@ -1264,18 +1264,20 @@ li[data-v-040fcf55] {
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
// 用户消息
|
|
1266
1266
|
*/
|
|
1267
|
-
.content-borderless-container
|
|
1267
|
+
.content-borderless-container {
|
|
1268
|
+
&[data-v-bc196b97] {
|
|
1268
1269
|
background: #e1ecfd;
|
|
1269
1270
|
border-radius: 20px 0px 20px 20px;
|
|
1270
1271
|
user-select: none;
|
|
1271
1272
|
padding: 12px;
|
|
1272
1273
|
cursor: pointer;
|
|
1273
1274
|
transition: background-color 0.3s;
|
|
1275
|
+
}
|
|
1274
1276
|
&[data-v-bc196b97]:hover {
|
|
1275
1277
|
background-color: #ebeef5;
|
|
1276
1278
|
}
|
|
1277
1279
|
}
|
|
1278
|
-
.footer-container
|
|
1280
|
+
.footer-container {
|
|
1279
1281
|
[data-v-bc196b97] .el-button + .el-button {
|
|
1280
1282
|
margin-left: 8px;
|
|
1281
1283
|
}
|
|
@@ -1315,12 +1317,14 @@ li[data-v-040fcf55] {
|
|
|
1315
1317
|
gap: 10px;
|
|
1316
1318
|
}
|
|
1317
1319
|
|
|
1318
|
-
.footer-wrapper
|
|
1320
|
+
.footer-wrapper {
|
|
1321
|
+
&[data-v-ffbde6f9] {
|
|
1319
1322
|
display: flex;
|
|
1320
1323
|
align-items: center;
|
|
1321
1324
|
justify-content: space-between;
|
|
1322
1325
|
gap: 10px;
|
|
1323
1326
|
width: 100%;
|
|
1327
|
+
}
|
|
1324
1328
|
.footer-time[data-v-ffbde6f9] {
|
|
1325
1329
|
font-size: 10px;
|
|
1326
1330
|
color: #999;
|
|
@@ -1328,9 +1332,11 @@ li[data-v-040fcf55] {
|
|
|
1328
1332
|
flex-shrink: 0;
|
|
1329
1333
|
}
|
|
1330
1334
|
}
|
|
1331
|
-
.footer-container
|
|
1335
|
+
.footer-container {
|
|
1336
|
+
&[data-v-ffbde6f9] {
|
|
1332
1337
|
display: flex;
|
|
1333
1338
|
gap: 8px;
|
|
1339
|
+
}
|
|
1334
1340
|
[data-v-ffbde6f9] .el-button + .el-button {
|
|
1335
1341
|
margin-left: 0;
|
|
1336
1342
|
}
|
|
@@ -1377,7 +1383,7 @@ li[data-v-040fcf55] {
|
|
|
1377
1383
|
bottom: 0;
|
|
1378
1384
|
--main-content-height: calc(100vh - var(--header-height));
|
|
1379
1385
|
}
|
|
1380
|
-
.chat-container
|
|
1386
|
+
.chat-container[data-v-e9aa835d] > * {
|
|
1381
1387
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
1382
1388
|
}
|
|
1383
1389
|
|
|
@@ -1489,18 +1495,20 @@ li[data-v-040fcf55] {
|
|
|
1489
1495
|
/**
|
|
1490
1496
|
// 用户消息
|
|
1491
1497
|
*/
|
|
1492
|
-
.content-borderless-container
|
|
1498
|
+
.content-borderless-container {
|
|
1499
|
+
&[data-v-e9aa835d] {
|
|
1493
1500
|
background: #e1ecfd;
|
|
1494
1501
|
border-radius: 20px 0px 20px 20px;
|
|
1495
1502
|
user-select: none;
|
|
1496
1503
|
padding: 12px;
|
|
1497
1504
|
cursor: pointer;
|
|
1498
1505
|
transition: background-color 0.3s;
|
|
1506
|
+
}
|
|
1499
1507
|
&[data-v-e9aa835d]:hover {
|
|
1500
1508
|
background-color: #ebeef5;
|
|
1501
1509
|
}
|
|
1502
1510
|
}
|
|
1503
|
-
.footer-container
|
|
1511
|
+
.footer-container {
|
|
1504
1512
|
[data-v-e9aa835d] .el-button + .el-button {
|
|
1505
1513
|
margin-left: 8px;
|
|
1506
1514
|
}
|
|
@@ -1569,7 +1577,7 @@ li[data-v-040fcf55] {
|
|
|
1569
1577
|
bottom: 0;
|
|
1570
1578
|
--main-content-height: calc(100vh - var(--header-height));
|
|
1571
1579
|
}
|
|
1572
|
-
.chat-container
|
|
1580
|
+
.chat-container[data-v-45fbaf17] > * {
|
|
1573
1581
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
1574
1582
|
}
|
|
1575
1583
|
|
|
@@ -1681,18 +1689,20 @@ li[data-v-040fcf55] {
|
|
|
1681
1689
|
/**
|
|
1682
1690
|
// 用户消息
|
|
1683
1691
|
*/
|
|
1684
|
-
.content-borderless-container
|
|
1692
|
+
.content-borderless-container {
|
|
1693
|
+
&[data-v-45fbaf17] {
|
|
1685
1694
|
background: #e1ecfd;
|
|
1686
1695
|
border-radius: 20px 0px 20px 20px;
|
|
1687
1696
|
user-select: none;
|
|
1688
1697
|
padding: 12px;
|
|
1689
1698
|
cursor: pointer;
|
|
1690
1699
|
transition: background-color 0.3s;
|
|
1700
|
+
}
|
|
1691
1701
|
&[data-v-45fbaf17]:hover {
|
|
1692
1702
|
background-color: #ebeef5;
|
|
1693
1703
|
}
|
|
1694
1704
|
}
|
|
1695
|
-
.footer-container
|
|
1705
|
+
.footer-container {
|
|
1696
1706
|
[data-v-45fbaf17] .el-button + .el-button {
|
|
1697
1707
|
margin-left: 8px;
|
|
1698
1708
|
}
|
|
@@ -1757,7 +1767,7 @@ li[data-v-040fcf55] {
|
|
|
1757
1767
|
bottom: 0;
|
|
1758
1768
|
--main-content-height: calc(100vh - var(--header-height));
|
|
1759
1769
|
}
|
|
1760
|
-
.chat-container
|
|
1770
|
+
.chat-container[data-v-6da81be3] > * {
|
|
1761
1771
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
1762
1772
|
}
|
|
1763
1773
|
|
|
@@ -1869,18 +1879,20 @@ li[data-v-040fcf55] {
|
|
|
1869
1879
|
/**
|
|
1870
1880
|
// 用户消息
|
|
1871
1881
|
*/
|
|
1872
|
-
.content-borderless-container
|
|
1882
|
+
.content-borderless-container {
|
|
1883
|
+
&[data-v-6da81be3] {
|
|
1873
1884
|
background: #e1ecfd;
|
|
1874
1885
|
border-radius: 20px 0px 20px 20px;
|
|
1875
1886
|
user-select: none;
|
|
1876
1887
|
padding: 12px;
|
|
1877
1888
|
cursor: pointer;
|
|
1878
1889
|
transition: background-color 0.3s;
|
|
1890
|
+
}
|
|
1879
1891
|
&[data-v-6da81be3]:hover {
|
|
1880
1892
|
background-color: #ebeef5;
|
|
1881
1893
|
}
|
|
1882
1894
|
}
|
|
1883
|
-
.footer-container
|
|
1895
|
+
.footer-container {
|
|
1884
1896
|
[data-v-6da81be3] .el-button + .el-button {
|
|
1885
1897
|
margin-left: 8px;
|
|
1886
1898
|
}
|
|
@@ -2049,7 +2061,7 @@ h4[data-v-6da81be3] {
|
|
|
2049
2061
|
bottom: 0;
|
|
2050
2062
|
--main-content-height: calc(100vh - var(--header-height));
|
|
2051
2063
|
}
|
|
2052
|
-
.chat-container
|
|
2064
|
+
.chat-container[data-v-1e62eff8] > * {
|
|
2053
2065
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
2054
2066
|
}
|
|
2055
2067
|
|
|
@@ -2161,18 +2173,20 @@ h4[data-v-6da81be3] {
|
|
|
2161
2173
|
/**
|
|
2162
2174
|
// 用户消息
|
|
2163
2175
|
*/
|
|
2164
|
-
.content-borderless-container
|
|
2176
|
+
.content-borderless-container {
|
|
2177
|
+
&[data-v-1e62eff8] {
|
|
2165
2178
|
background: #e1ecfd;
|
|
2166
2179
|
border-radius: 20px 0px 20px 20px;
|
|
2167
2180
|
user-select: none;
|
|
2168
2181
|
padding: 12px;
|
|
2169
2182
|
cursor: pointer;
|
|
2170
2183
|
transition: background-color 0.3s;
|
|
2184
|
+
}
|
|
2171
2185
|
&[data-v-1e62eff8]:hover {
|
|
2172
2186
|
background-color: #ebeef5;
|
|
2173
2187
|
}
|
|
2174
2188
|
}
|
|
2175
|
-
.footer-container
|
|
2189
|
+
.footer-container {
|
|
2176
2190
|
[data-v-1e62eff8] .el-button + .el-button {
|
|
2177
2191
|
margin-left: 8px;
|
|
2178
2192
|
}
|
|
@@ -2338,7 +2352,7 @@ h4[data-v-6da81be3] {
|
|
|
2338
2352
|
bottom: 0;
|
|
2339
2353
|
--main-content-height: calc(100vh - var(--header-height));
|
|
2340
2354
|
}
|
|
2341
|
-
.chat-container
|
|
2355
|
+
.chat-container[data-v-e84e6e12] > * {
|
|
2342
2356
|
box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
|
|
2343
2357
|
}
|
|
2344
2358
|
|
|
@@ -2450,18 +2464,20 @@ h4[data-v-6da81be3] {
|
|
|
2450
2464
|
/**
|
|
2451
2465
|
// 用户消息
|
|
2452
2466
|
*/
|
|
2453
|
-
.content-borderless-container
|
|
2467
|
+
.content-borderless-container {
|
|
2468
|
+
&[data-v-e84e6e12] {
|
|
2454
2469
|
background: #e1ecfd;
|
|
2455
2470
|
border-radius: 20px 0px 20px 20px;
|
|
2456
2471
|
user-select: none;
|
|
2457
2472
|
padding: 12px;
|
|
2458
2473
|
cursor: pointer;
|
|
2459
2474
|
transition: background-color 0.3s;
|
|
2475
|
+
}
|
|
2460
2476
|
&[data-v-e84e6e12]:hover {
|
|
2461
2477
|
background-color: #ebeef5;
|
|
2462
2478
|
}
|
|
2463
2479
|
}
|
|
2464
|
-
.footer-container
|
|
2480
|
+
.footer-container {
|
|
2465
2481
|
[data-v-e84e6e12] .el-button + .el-button {
|
|
2466
2482
|
margin-left: 8px;
|
|
2467
2483
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
2
2
|
import { formatTimefn as t, getFirstDayOfSeason as a, getWeekOfSeason as i, getDateRangeSelectorDefaultValue as l } from "../../src/utils/range-selector.mjs";
|
|
3
|
-
import { resolveComponent as o, openBlock as n, createElementBlock as s, createVNode as r,
|
|
3
|
+
import { resolveComponent as o, openBlock as n, createElementBlock as s, createVNode as r, createElementVNode as d } from "vue";
|
|
4
4
|
import "./sectionDate.vue2.mjs";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import c from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const h = { key: 0, class: "select" }, p = { key: 1, class: "select" }, m = { key: 2, class: "select" }, g = { key: 3, style: { width: "100%", height: "100%" } };
|
|
7
|
+
const S = c({ name: "SectionDate", components: {}, props: { colFieldSetting: { type: Object, default: null } }, data: () => ({ modelValue: {}, startDate: "", endDate: "", weekStareDate: "", weekDate: "", monthStareDate: "", monthDate: "", datStareDate: [], yearStartDate: "", yearDate: "", ScopeStartDate: "", ScopeEndDate: "", pickerOptions: { disabledDate: (e2) => e2.getFullYear() < 2e3 }, fordateParams: "" }), watch: { datStareDate: { handler(e2) {
|
|
7
8
|
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, e2[0]), this.endDate = this.formatTimefn(this.colFieldSetting.options.format, e2[1]);
|
|
8
9
|
}, immediate: false, deep: true } }, created() {
|
|
9
10
|
this.setTimeScope();
|
|
@@ -39,11 +40,10 @@ const m = { name: "SectionDate", components: {}, props: { colFieldSetting: { typ
|
|
|
39
40
|
"" !== this.monthStareDate && null !== this.monthStareDate && void 0 !== this.monthStareDate && (this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate)), e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 24192e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5 : 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 23328e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
|
|
40
41
|
}, monthStatChange() {
|
|
41
42
|
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate), this.changeForm();
|
|
42
|
-
} }, emits: ["SectionDateTransfer"] },
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
return n(), s("div", null, ["year" === a2.colFieldSetting.options.showType ? (n(), s("div", S, [r(c2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.yearStartDate = e3), type: "year", placeholder: a2.colFieldSetting.options.startPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), D, r(c2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l2.yearDate = e3), type: "year", placeholder: a2.colFieldSetting.options.endPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === a2.colFieldSetting.options.showType ? (n(), s("div", f, [r(c2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => l2.weekStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: d2.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), F, r(c2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => l2.weekDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: d2.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === a2.colFieldSetting.options.showType ? (n(), s("div", y, [r(c2, { modelValue: l2.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => l2.monthStareDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", "value-format": "x", onChange: d2.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), u, r(c2, { modelValue: l2.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => l2.monthDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (n(), s("div", b, [r(c2, { modelValue: l2.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => l2.datStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: d2.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
|
|
43
|
+
} }, emits: ["SectionDateTransfer"] }, [["render", function(e2, t2, a2, i2, l2, c2) {
|
|
44
|
+
const S2 = o("el-date-picker");
|
|
45
|
+
return n(), s("div", null, ["year" === a2.colFieldSetting.options.showType ? (n(), s("div", h, [r(S2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.yearStartDate = e3), type: "year", placeholder: a2.colFieldSetting.options.startPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: c2.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), t2[7] || (t2[7] = d("div", { class: "intervalCenter" }, "-", -1)), r(S2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l2.yearDate = e3), type: "year", placeholder: a2.colFieldSetting.options.endPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: c2.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === a2.colFieldSetting.options.showType ? (n(), s("div", p, [r(S2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => l2.weekStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c2.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), t2[8] || (t2[8] = d("div", { class: "intervalCenter" }, "-", -1)), r(S2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => l2.weekDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c2.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === a2.colFieldSetting.options.showType ? (n(), s("div", m, [r(S2, { modelValue: l2.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => l2.monthStareDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", "value-format": "x", onChange: c2.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), t2[9] || (t2[9] = d("div", { class: "intervalCenter" }, "-", -1)), r(S2, { modelValue: l2.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => l2.monthDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: c2.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (n(), s("div", g, [r(S2, { modelValue: l2.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => l2.datStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: c2.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
|
|
46
46
|
}], ["__scopeId", "data-v-52983a24"]]);
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
S as default
|
|
49
49
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { defineComponent as a, resolveComponent as t, openBlock as e, createElementBlock as i, Fragment as l, createVNode as d, withCtx as n, createElementVNode as o, createTextVNode as r, toDisplayString as s
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { defineComponent as a, resolveComponent as t, openBlock as e, createElementBlock as i, Fragment as l, createVNode as d, withCtx as n, createElementVNode as o, createTextVNode as r, toDisplayString as s } from "vue";
|
|
2
|
+
const u = { class: "additional-data-tag" }, p = { class: "additional-data-button" }, m = a({ __name: "chat-addition-data", props: { item: { type: Object, required: true } }, emits: ["view-json", "download-json"], setup(a2, { emit: m2 }) {
|
|
3
|
+
const c = m2;
|
|
4
|
+
return (m3, y) => {
|
|
5
|
+
const f = t("el-divider"), v = t("Paperclip"), w = t("el-icon"), _ = t("el-tag"), j = t("View"), b = t("el-button"), g = t("Download");
|
|
6
|
+
return e(), i(l, null, [d(f, { "border-style": "dashed" }), d(_, { type: "primary", style: { width: "100%" } }, { default: n(() => [o("div", u, [d(w, null, { default: n(() => [d(v)]), _: 1 }), r(" " + s(a2.item.additionalDataLabel), 1)])]), _: 1 }), o("div", p, [d(b, { plain: "", size: "small", onClick: y[0] || (y[0] = (t2) => {
|
|
7
|
+
var e2;
|
|
8
|
+
(e2 = a2.item.additionalData) && ("string" == typeof e2 ? c("view-json", JSON.parse(e2)) : Array.isArray(e2) && c("view-json", e2));
|
|
9
|
+
}) }, { default: n(() => [d(w, null, { default: n(() => [d(j)]), _: 1 }), y[2] || (y[2] = r()), y[3] || (y[3] = o("span", null, "预览数据", -1))]), _: 1 }), d(b, { plain: "", size: "small", onClick: y[1] || (y[1] = (t2) => {
|
|
10
|
+
return e2 = a2.item.additionalData, i2 = a2.item.menuName, void (e2 && ("string" == typeof e2 ? c("download-json", JSON.parse(e2), i2) : Array.isArray(e2) && c("download-json", e2, i2)));
|
|
11
|
+
var e2, i2;
|
|
12
|
+
}) }, { default: n(() => [d(w, null, { default: n(() => [d(g)]), _: 1 }), y[4] || (y[4] = r(" 下载数据 ", -1))]), _: 1 })])], 64);
|
|
13
|
+
};
|
|
11
14
|
} });
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
m as default
|
|
14
17
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as e, ref as n, resolveComponent as t, openBlock as r, createBlock as c, withCtx as i, createVNode as o, createElementBlock as u, unref as s, createCommentVNode as l, Fragment as a, renderList as m, toDisplayString as p } from "vue";
|
|
2
2
|
import { XMarkdown as f } from "vue-element-plus-x";
|
|
3
3
|
const d = { key: 0, style: { "max-height": "80vh", overflow: "auto" } }, h = ["onClick"], k = e({ __name: "chat-ai-answer-tip", props: { item: { type: Object, required: true }, itemProps: { type: Object, required: true } }, emits: ["click-doc-agg"], setup(e2, { emit: k2 }) {
|
|
4
|
-
const g = n(false);
|
|
5
|
-
function
|
|
6
|
-
|
|
4
|
+
const g = k2, C = n(false);
|
|
5
|
+
function v() {
|
|
6
|
+
C.value = true;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function _(e3, n2) {
|
|
9
9
|
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
10
10
|
return "无相关提示信息";
|
|
11
11
|
const t2 = parseInt(n2);
|
|
12
12
|
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2].content || "无相关提示信息";
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function y(e3, n2) {
|
|
15
15
|
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
16
16
|
return "无相关提示信息";
|
|
17
17
|
const t2 = parseInt(n2);
|
|
18
18
|
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2] ? [{ doc_name: e3.referenceChunks[t2].document_name, doc_id: e3.referenceChunks[t2].document_id }] : [];
|
|
19
19
|
}
|
|
20
|
-
return (n2,
|
|
20
|
+
return (n2, k3) => {
|
|
21
21
|
const x = t("Opportunity"), w = t("el-icon"), N = t("el-popover");
|
|
22
|
-
return r(), c(N, { placement: "right", trigger: "click", width: "100vh" }, { reference: i(() => [o(w, { onClick:
|
|
23
|
-
|
|
22
|
+
return r(), c(N, { placement: "right", trigger: "click", width: "100vh" }, { reference: i(() => [o(w, { onClick: v }, { default: i(() => [o(x)]), _: 1 })]), default: i(() => [C.value ? (r(), u("div", d, [o(s(f), { allowHtml: true, markdown: _(e2.item, e2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : l("", true), C.value ? (r(true), u(a, { key: 1 }, m(y(e2.item, e2.itemProps["tip-index"]), (e3, n3) => (r(), u("div", { style: { margin: "5px 10px" }, key: n3, onClick: (n4) => function(e4) {
|
|
23
|
+
g("click-doc-agg", e4);
|
|
24
24
|
}(e3), class: "doc-agg-item" }, p(e3.doc_name), 9, h))), 128)) : l("", true)]), _: 1 });
|
|
25
25
|
};
|
|
26
26
|
} });
|
|
@@ -3,13 +3,13 @@ import { Refresh as m, DocumentCopy as l } from "@element-plus/icons-vue";
|
|
|
3
3
|
import { ElMessage as p } from "element-plus";
|
|
4
4
|
import { useI18n as u } from "vue-i18n";
|
|
5
5
|
const d = { key: 0, class: "footer-wrapper" }, f = { class: "footer-container" }, b = e({ __name: "chat-bubble-footer", props: { item: { type: Object, required: true } }, emits: ["regenerate"], setup(e2, { emit: b2 }) {
|
|
6
|
-
const { t: y } = u();
|
|
7
|
-
return (u2,
|
|
6
|
+
const { t: y } = u(), v = b2;
|
|
7
|
+
return (u2, b3) => {
|
|
8
8
|
const g = t("el-button"), h = t("el-tooltip");
|
|
9
|
-
return "ai" !== e2.item.role || e2.item.isRecommend || "thinking" === e2.item.thinkingStatus ? s("", true) : (o(), c("div", d, [n("div", f, [i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.regenerate") }, { default: r(() => [i(g, { type: "info", icon: a(m), size: "small", circle: "", onClick:
|
|
10
|
-
return o2 = e2.item, void
|
|
9
|
+
return "ai" !== e2.item.role || e2.item.isRecommend || "thinking" === e2.item.thinkingStatus ? s("", true) : (o(), c("div", d, [n("div", f, [i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.regenerate") }, { default: r(() => [i(g, { type: "info", icon: a(m), size: "small", circle: "", onClick: b3[0] || (b3[0] = (t2) => {
|
|
10
|
+
return o2 = e2.item, void v("regenerate", o2);
|
|
11
11
|
var o2;
|
|
12
|
-
}) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.copy") }, { default: r(() => [i(g, { type: "info", color: "#626aef", icon: a(l), size: "small", circle: "", onClick:
|
|
12
|
+
}) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.copy") }, { default: r(() => [i(g, { type: "info", color: "#626aef", icon: a(l), size: "small", circle: "", onClick: b3[1] || (b3[1] = (t2) => function(e3) {
|
|
13
13
|
if (e3.content)
|
|
14
14
|
if (navigator.clipboard && "function" == typeof navigator.clipboard.writeText)
|
|
15
15
|
navigator.clipboard.writeText(e3.content).then(() => {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, watch as t, resolveComponent as n, resolveDirective as o, openBlock as i, createElementBlock as u, Fragment as s, createBlock as r, withCtx as c, createElementVNode as d, createVNode as m, createTextVNode as p, toDisplayString as f, createCommentVNode as v, unref as g, renderList as h, withDirectives as w
|
|
2
|
-
import
|
|
3
|
-
import { Sender as
|
|
4
|
-
import { generateFileName as
|
|
5
|
-
import { getActivePinia as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { ElMessage as
|
|
8
|
-
import
|
|
9
|
-
import { AI_MODELS as
|
|
10
|
-
import { getVoiceSetting as
|
|
11
|
-
import { getRelativeBaseUrl as
|
|
12
|
-
import { getToken as
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const L = a(false), U = a(""), W = a([]), B = a(""), Q = a("ragflow"), X = a(), J = a(), Y = a(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), Z = a([]), ee = a(false), ae = a(false);
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, watch as t, resolveComponent as n, resolveDirective as o, openBlock as i, createElementBlock as u, Fragment as s, createBlock as r, withCtx as c, createElementVNode as d, createVNode as m, createTextVNode as p, toDisplayString as f, createCommentVNode as v, unref as g, renderList as h, withDirectives as w } from "vue";
|
|
2
|
+
import b from "../../src/store/modules/chat-ai-store.mjs";
|
|
3
|
+
import { Sender as y, Attachments as x, FilesCard as E } from "vue-element-plus-x";
|
|
4
|
+
import { generateFileName as _, downloadJsonFile as A } from "./util/text-file-util.mjs";
|
|
5
|
+
import { getActivePinia as R, createPinia as I, setActivePinia as k } from "pinia";
|
|
6
|
+
import { useI18n as P } from "vue-i18n";
|
|
7
|
+
import { ElMessage as j } from "element-plus";
|
|
8
|
+
import C from "./voice/voice.vue.mjs";
|
|
9
|
+
import { AI_MODELS as T } from "./type.mjs";
|
|
10
|
+
import { getVoiceSetting as S, parseVoiceMsg as D } from "../../src/utils/voice-setting-cache.mjs";
|
|
11
|
+
import { getRelativeBaseUrl as N, isValidDate as V } from "../../src/utils/common-util.mjs";
|
|
12
|
+
import { getToken as O } from "../../src/utils/auth.mjs";
|
|
13
|
+
const M = { class: "sender-additional-data-tag" }, $ = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, q = { style: { display: "flex", "align-items": "center", gap: "16px" } }, z = e({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(e2, { expose: z2, emit: F }) {
|
|
14
|
+
P();
|
|
15
|
+
const K = [{ label: "流程体系类", value: T.RAGFLOW }, { label: "QMS数据库类", value: T.DATABASE }, { label: "DeepSeek问答", value: T.DEEPSEEK }, { label: "系统交互", value: T.INTERACTION }, { label: "生成PPT", value: T.PPT_GENERATION }];
|
|
16
|
+
let G = null;
|
|
17
|
+
const H = F, L = a(false), U = a(""), W = a([]), B = a(""), Q = a("ragflow"), X = a(), J = a(), Y = a(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), Z = a([]), ee = a(false), ae = a(false);
|
|
18
18
|
function le() {
|
|
19
19
|
try {
|
|
20
|
-
window.parent && window.parent !== window && (window.parent.ChatAiStore =
|
|
20
|
+
window.parent && window.parent !== window && (window.parent.ChatAiStore = G), window.top && window.top !== window && (window.top.ChatAiStore = G), window.ChatAiStore = G;
|
|
21
21
|
} catch (e3) {
|
|
22
22
|
console.error("Failed to initialize ChatAiStore:", e3);
|
|
23
23
|
}
|
|
@@ -26,8 +26,8 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
26
26
|
l(() => {
|
|
27
27
|
!function() {
|
|
28
28
|
try {
|
|
29
|
-
let e3 =
|
|
30
|
-
e3 || (e3 =
|
|
29
|
+
let e3 = R();
|
|
30
|
+
e3 || (e3 = I(), k(e3), window.$vueApp && window.$vueApp.use(e3)), G = b();
|
|
31
31
|
} catch (e3) {
|
|
32
32
|
console.error("Failed to initialize Pinia or ChatAiStore:", e3);
|
|
33
33
|
}
|
|
@@ -42,21 +42,21 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
42
42
|
let a2 = e3;
|
|
43
43
|
null == e3 ? (B.value, a2 = B.value.trim()) : a2 = e3.trim(), te = a2;
|
|
44
44
|
let l2 = { aiModel: Q.value, question: a2 };
|
|
45
|
-
if (Q.value ===
|
|
46
|
-
const e4 =
|
|
45
|
+
if (Q.value === T.DEEPSEEK || Q.value === T.PPT_GENERATION) {
|
|
46
|
+
const e4 = G.getActiveMenu();
|
|
47
47
|
let t2 = "";
|
|
48
48
|
Z.value.length > 0 && (t2 = Z.value.map((e5) => e5.id).join(","));
|
|
49
49
|
let n2 = [];
|
|
50
50
|
Z.value.length > 0 && (n2 = Z.value.map((e5) => ({ fileId: e5.id, name: e5.name }))), Z.value = [], l2 = { aiModel: Q.value, question: a2, fileId: t2, fileInfos: n2, additionalData: W.value, additionalDataLabel: U.value, menuName: (e4 == null ? void 0 : e4.menuName) || "" };
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
H("submit-question", l2), B.value = "", ce();
|
|
53
53
|
}
|
|
54
54
|
function se() {
|
|
55
|
-
|
|
55
|
+
H("handle-cancel");
|
|
56
56
|
}
|
|
57
57
|
function re() {
|
|
58
58
|
var _a;
|
|
59
|
-
const e3 =
|
|
59
|
+
const e3 = G.getActiveMenu(), a2 = G.getActiveMenuPageInfo();
|
|
60
60
|
if ("list" === a2.pageType) {
|
|
61
61
|
const l2 = a2.listRefs[0].ref.getAiChatListData();
|
|
62
62
|
l2 && l2.length > 0 && (W.value = l2), ((_a = W.value) == null ? void 0 : _a.length) > 0 && (U.value = `已附加【${e3.menuName}】表格数据 (${W.value.length} 条记录)`, L.value = true);
|
|
@@ -73,18 +73,18 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
73
73
|
W.value = [], U.value = "", L.value = false;
|
|
74
74
|
}
|
|
75
75
|
function de() {
|
|
76
|
-
|
|
76
|
+
H("view-json", W.value);
|
|
77
77
|
}
|
|
78
78
|
function me() {
|
|
79
79
|
try {
|
|
80
|
-
const e3 =
|
|
81
|
-
|
|
80
|
+
const e3 = G.getActiveMenu(), a2 = _((e3 == null ? void 0 : e3.menuName) || "data");
|
|
81
|
+
A(W.value, a2);
|
|
82
82
|
} catch (e3) {
|
|
83
83
|
console.error("下载失败:", e3);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
function pe(e3) {
|
|
87
|
-
e3 ===
|
|
87
|
+
e3 === T.DEEPSEEK && Z.value.length > 0 ? X.value.openHeader() : X.value.closeHeader(), e3 === T.DEEPSEEK || e3 === T.PPT_GENERATION ? (ee.value = true, ae.value = true) : (ee.value = false, ae.value = false, ce()), H("change-ai-model", e3);
|
|
88
88
|
}
|
|
89
89
|
function fe(e3) {
|
|
90
90
|
Z.value.push({ id: e3.uid, uid: e3.uid, name: e3.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
|
|
@@ -100,7 +100,7 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
100
100
|
e4.name === Z.value[l3].name && (Z.value[l3].id = e4.fileId, Z.value[l3].uid = e4.fileId);
|
|
101
101
|
}));
|
|
102
102
|
} else
|
|
103
|
-
|
|
103
|
+
j({ message: (e3 == null ? void 0 : e3.message) || "文件上传失败", type: "error" });
|
|
104
104
|
}
|
|
105
105
|
function he(e3) {
|
|
106
106
|
const a2 = Z.value.findIndex((a3) => a3.id === e3.uid);
|
|
@@ -111,7 +111,7 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
111
111
|
if (a2 && a2.indexOf("~") >= 0) {
|
|
112
112
|
const e4 = a2.split("~");
|
|
113
113
|
let n2;
|
|
114
|
-
if (t2 =
|
|
114
|
+
if (t2 = V(e4[0]), t2 && (t2 = V(e4[1])), 3 === e4.length && (n2 = e4[2]), e4.length, t2 && n2 && n2.indexOf(",") > 0) {
|
|
115
115
|
const a3 = n2.split(","), t3 = a3[0], o2 = a3[1];
|
|
116
116
|
l2 = be(t3, e4[0], l2), l2 = be(o2, e4[1], l2);
|
|
117
117
|
}
|
|
@@ -126,9 +126,9 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
126
126
|
const t2 = "ai__" + e3;
|
|
127
127
|
return l2 = l2.indexOf("?") > 0 ? l2 + "&" + t2 + "=" + a2 : l2 + "?" + t2 + "=" + a2;
|
|
128
128
|
}
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
return z2({ parseCommand: function() {
|
|
130
|
+
S().then((e3) => {
|
|
131
|
+
D(te, e3, ne, oe, ie).then((e4) => {
|
|
132
132
|
if ("ok" === e4.status) {
|
|
133
133
|
ne || (ne = e4.settingItem), oe = e4.paramInfo;
|
|
134
134
|
let a2 = e4.url;
|
|
@@ -139,20 +139,20 @@ const q = { class: "sender-additional-data-tag" }, z = { style: { display: "flex
|
|
|
139
139
|
"_jump_param" !== l3 && (a2 = we(e5, l3, a2));
|
|
140
140
|
}
|
|
141
141
|
const l2 = ne ? ne.command : "";
|
|
142
|
-
ne = void 0, ie = {}, oe = {},
|
|
142
|
+
ne = void 0, ie = {}, oe = {}, H("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult, url: a2, paramsValue: ie, command: l2 }), window.open(N(a2));
|
|
143
143
|
} else
|
|
144
|
-
|
|
144
|
+
H("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
145
145
|
} else
|
|
146
|
-
|
|
146
|
+
H("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
}, newChatSession: function() {
|
|
150
|
-
Q.value ===
|
|
150
|
+
Q.value === T.DEEPSEEK && (Z.value = []), B.value = "";
|
|
151
151
|
} }), (a2, l2) => {
|
|
152
|
-
const t2 = n("Paperclip"),
|
|
153
|
-
return i(), u(s, null, [L.value ? (i(), r(R2, { key: 0, type: "primary" }, { default: c(() => [d("div",
|
|
152
|
+
const t2 = n("Paperclip"), b2 = n("el-icon"), _2 = n("super-icon"), A2 = n("el-tooltip"), R2 = n("el-tag"), I2 = n("el-option"), k2 = n("el-select"), P2 = n("SuperIcon"), j2 = n("el-upload"), T2 = n("el-divider"), S2 = n("el-button"), D2 = o("loading");
|
|
153
|
+
return i(), u(s, null, [L.value ? (i(), r(R2, { key: 0, type: "primary" }, { default: c(() => [d("div", M, [m(b2, null, { default: c(() => [m(t2)]), _: 1 }), p(" " + f(U.value) + " ", 1), m(A2, { content: "预览" }, { default: c(() => [m(_2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: de })]), _: 1 }), m(A2, { content: "下载" }, { default: c(() => [m(_2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: me })]), _: 1 }), m(A2, { content: "移除" }, { default: c(() => [m(_2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: ce })]), _: 1 })])]), _: 1 })) : v("", true), m(g(y), { modelValue: B.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => B.value = e3), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: X, submitType: "enter", loading: e2.loading, "allow-speech": "", onSubmit: l2[3] || (l2[3] = (e3) => ue()), placeholder: "请您描述问题" }, { header: c(() => [m(g(x), { items: Z.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": c((e3) => [(i(true), u(s, null, h(e3.items, (e4) => (i(), r(g(E), { key: e4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: e4.name, percent: e4.percent, uid: e4.id, status: e4.status, "show-del-icon": "", "img-variant": "square", onDelete: he }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: c(() => [d("div", $, [m(k2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), onChange: pe }, { default: c(() => [(i(), u(s, null, h(K, (e3) => m(I2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": c(() => [d("div", q, [ee.value ? (i(), r(A2, { key: 0, content: "上传附件" }, { default: c(() => [m(j2, { ref_key: "uploadRef", ref: J, action: Y.value, multiple: true, headers: { Authorization: g(O)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": ve, "on-success": ge, "before-upload": fe }, { default: c(() => [m(P2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : v("", true), ae.value ? (i(), r(A2, { key: 1, content: "附加页面数据" }, { default: c(() => [m(P2, { onClick: re, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : v("", true), m(A2, { content: "语音" }, { default: c(() => [m(C, { onUserMessage: ue, class: "send-icon" })]), _: 1 }), m(T2, { direction: "vertical" }), e2.loading ? (i(), r(A2, { key: 2, content: "取消" }, { default: c(() => [w((i(), r(S2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: se }, { default: c(() => [...l2[4] || (l2[4] = [p(" 取消 ", -1)])]), _: 1 })), [[D2, e2.loading]])]), _: 1 })) : (i(), r(S2, { key: 3, style: { "border-radius": "10px" }, disabled: !B.value || !B.value.trim(), plain: "", circle: "", round: "", onClick: l2[1] || (l2[1] = (e3) => ue()) }, { default: c(() => [m(P2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), l2[5] || (l2[5] = d("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1))], 64);
|
|
154
154
|
};
|
|
155
155
|
} });
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
z as default
|
|
158
158
|
};
|
|
@@ -6,9 +6,8 @@ import { CanvasRenderer as c } from "echarts/renderers";
|
|
|
6
6
|
import { LineChart as u, BarChart as m, PieChart as h, RadarChart as x } from "echarts/charts";
|
|
7
7
|
import { GridComponent as y, LegendComponent as f, TitleComponent as d, TooltipComponent as v, ToolboxComponent as A, DataZoomComponent as g } from "echarts/components";
|
|
8
8
|
const O = { style: { "max-height": "700px" } }, w = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, b = e({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
|
|
9
|
-
const b2 = e2;
|
|
10
9
|
l([c, u, m, h, x, y, f, d, v, A, g]);
|
|
11
|
-
const I = t(null), L = t({}), N = t(false), P = t("");
|
|
10
|
+
const b2 = e2, I = t(null), L = t({}), N = t(false), P = t("");
|
|
12
11
|
let S = {};
|
|
13
12
|
b2.chartProps.params && (S = JSON.parse(b2.chartProps.params));
|
|
14
13
|
let k = [], _ = {};
|