agilebuilder-ui 1.1.50-sit4 → 1.1.51
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/lib/{401-53507b6f.js → 401-aead36a9.js} +1 -1
- package/lib/{404-f3c9f985.js → 404-9ad11c2e.js} +1 -1
- package/lib/{iframe-page-737b57ae.js → iframe-page-bf851287.js} +1 -1
- package/lib/{index-90b19f05.js → index-75ff2a06.js} +14273 -14178
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +110 -110
- package/lib/{tab-content-iframe-index-a6efa4fc.js → tab-content-iframe-index-c7bb8381.js} +1 -1
- package/lib/{tab-content-index-fecc0e4d.js → tab-content-index-95a59e50.js} +1 -1
- package/lib/{tache-subprocess-history-3204f7f2.js → tache-subprocess-history-106dc6ec.js} +1 -1
- package/package.json +1 -1
- package/packages/chat-embed/src/chat-embed-message.ts +5 -2
- package/packages/chat-embed/src/chat-sender.vue +41 -30
- package/packages/chat-embed/src/header.vue +2 -2
- package/packages/chat-embed/src/index.vue +503 -158
- package/packages/department-tree-inline/src/search-result.vue +1 -2
- package/packages/department-user-tree-inline/src/search-result.vue +1 -2
- package/packages/fs-preview/src/fs-preview.vue +1 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +1 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +1 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +39 -13
- package/packages/fs-upload-new/src/fs-upload-new.vue +3 -3
- package/packages/super-grid/src/normal-column-content.vue +0 -1
- package/packages/super-grid/src/row-operation.vue +9 -13
- package/packages/utils/value-set.js +1 -5
- package/src/views/login/update-password.vue +3 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
|
|
2
|
-
import { _ as s } from "./index-
|
|
2
|
+
import { _ as s } from "./index-75ff2a06.js";
|
|
3
3
|
const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
|
|
4
4
|
this.src = this.$route.query.src;
|
|
5
5
|
} }, mounted() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-
|
|
1
|
+
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-75ff2a06.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
|
|
3
3
|
const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
4
4
|
return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./index-
|
|
2
|
+
import { _ as I } from "./index-75ff2a06.js";
|
|
3
3
|
const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
|
|
4
4
|
const o = this.$route.query.workflowId;
|
|
5
5
|
o && (this.workflowId = parseInt(o));
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BubbleProps } from 'vue-element-plus-x/types/Bubble'
|
|
2
|
+
import dayjs from 'dayjs'
|
|
2
3
|
interface chatMessageType extends BubbleProps {
|
|
3
4
|
isRecommend: boolean
|
|
4
5
|
key: number
|
|
@@ -16,9 +17,10 @@ interface chatMessageType extends BubbleProps {
|
|
|
16
17
|
thinkingStatus?: string
|
|
17
18
|
showThinkingContent: boolean
|
|
18
19
|
placement: 'start' | 'end'
|
|
19
|
-
additionalData
|
|
20
|
+
additionalData?: any
|
|
20
21
|
additionalDataLabel?: string
|
|
21
22
|
menuName?: string
|
|
23
|
+
[otherProp: string]: any
|
|
22
24
|
}
|
|
23
25
|
function getMessageTemplate(type: string, content: string, isRecommend: boolean): chatMessageType {
|
|
24
26
|
const role = type === 'ai' ? 'ai' : 'user'
|
|
@@ -50,7 +52,8 @@ function getMessageTemplate(type: string, content: string, isRecommend: boolean)
|
|
|
50
52
|
noStyle: role === 'ai' ? true : false,
|
|
51
53
|
statusValue: 'end',
|
|
52
54
|
recommendations: [],
|
|
53
|
-
avatarSize: '24px'
|
|
55
|
+
avatarSize: '24px',
|
|
56
|
+
sendTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
54
57
|
}
|
|
55
58
|
if (role === 'ai') {
|
|
56
59
|
message.maxWidth = 'calc(100% - 60px)'
|
|
@@ -8,27 +8,20 @@
|
|
|
8
8
|
variant="updown"
|
|
9
9
|
:auto-size="{ minRows: 2, maxRows: 5 }"
|
|
10
10
|
clearable
|
|
11
|
+
:loading="loading"
|
|
11
12
|
allow-speech
|
|
12
13
|
placeholder=""
|
|
13
14
|
>
|
|
14
15
|
<template #prefix>
|
|
15
16
|
<div style="display: flex; align-items: center; gap: 8px; flex-wrap: wrap">
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<el-select :disabled="loading" v-model="aiModel" @change="handleAiModelChange" style="width: 150px">
|
|
18
|
+
<el-option label="流程体系类" value="ragflow" />
|
|
19
|
+
<el-option label="QMS数据库类" value="database" />
|
|
20
|
+
<el-option label="DeepSeek问答" value="deepseek" />
|
|
21
|
+
</el-select>
|
|
20
22
|
<el-tag type="primary" v-if="showAdditionalData">
|
|
21
23
|
<template #default>
|
|
22
|
-
<div
|
|
23
|
-
style="
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
flex-shrink: 0;
|
|
27
|
-
min-width: max-content;
|
|
28
|
-
margin-left: auto;
|
|
29
|
-
gap: 10px;
|
|
30
|
-
"
|
|
31
|
-
>
|
|
24
|
+
<div class="sender-additional-data-tag">
|
|
32
25
|
<el-icon><Paperclip /></el-icon>
|
|
33
26
|
{{ additionalDataLabel }}
|
|
34
27
|
<el-tooltip content="预览">
|
|
@@ -47,23 +40,17 @@
|
|
|
47
40
|
</template>
|
|
48
41
|
<template #action-list>
|
|
49
42
|
<div style="display: flex; align-items: center">
|
|
50
|
-
<el-tooltip content="附加页面数据">
|
|
43
|
+
<el-tooltip content="附加页面数据" v-if="aiModel !== 'ragflow'">
|
|
51
44
|
<el-button text circle round @click="addPageData">
|
|
52
45
|
<el-icon><Paperclip /></el-icon>
|
|
53
46
|
</el-button>
|
|
54
47
|
</el-tooltip>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@click="handleCancel"
|
|
62
|
-
>
|
|
63
|
-
<el-icon class="is-loaidng">
|
|
64
|
-
<Loading />
|
|
65
|
-
</el-icon>
|
|
66
|
-
</el-button>
|
|
48
|
+
<!-- :disabled="!senderValue || !senderValue.trim()" -->
|
|
49
|
+
<el-tooltip v-if="loading" content="取消">
|
|
50
|
+
<el-button type="primary" plain circle v-loading="loading" @click="handleCancel">
|
|
51
|
+
<el-icon><Promotion /></el-icon>
|
|
52
|
+
</el-button>
|
|
53
|
+
</el-tooltip>
|
|
67
54
|
<el-button v-else circle :disabled="!senderValue || !senderValue.trim()" plain round @click="handleSubmit">
|
|
68
55
|
<el-icon><Promotion /></el-icon>
|
|
69
56
|
</el-button>
|
|
@@ -74,10 +61,11 @@
|
|
|
74
61
|
<script setup lang="ts">
|
|
75
62
|
import { ref, defineProps, defineEmits, onMounted, watch } from 'vue'
|
|
76
63
|
import ChatAiStore from '../../../src/store/modules/chat-ai-store.ts'
|
|
77
|
-
import { Sender } from 'vue-element-plus-x'
|
|
64
|
+
import { Sender, EditorSender } from 'vue-element-plus-x'
|
|
78
65
|
import { generateFileName, downloadJsonFile } from './util.ts'
|
|
79
66
|
import { createPinia, setActivePinia, getActivePinia } from 'pinia'
|
|
80
67
|
import { useI18n } from 'vue-i18n'
|
|
68
|
+
import { ElMessage } from 'element-plus'
|
|
81
69
|
const { t } = useI18n()
|
|
82
70
|
|
|
83
71
|
let chataiStore: any = null
|
|
@@ -132,11 +120,12 @@ const props = defineProps({
|
|
|
132
120
|
default: false
|
|
133
121
|
}
|
|
134
122
|
})
|
|
135
|
-
const emits = defineEmits(['new-chat-session', 'submit-question', 'handle-cancel', 'view-json'])
|
|
123
|
+
const emits = defineEmits(['new-chat-session', 'submit-question', 'handle-cancel', 'view-json', 'change-ai-model'])
|
|
136
124
|
const showAdditionalData = ref(false)
|
|
137
125
|
const additionalDataLabel = ref('')
|
|
138
126
|
const additionalData = ref([])
|
|
139
127
|
const senderValue = ref('')
|
|
128
|
+
const aiModel = ref('ragflow')
|
|
140
129
|
|
|
141
130
|
onMounted(() => {
|
|
142
131
|
initializeStore()
|
|
@@ -153,6 +142,7 @@ function handleSubmit() {
|
|
|
153
142
|
const question = senderValue.value.trim()
|
|
154
143
|
const activeMenu = chataiStore.getActiveMenu()
|
|
155
144
|
emits('submit-question', {
|
|
145
|
+
aiModel: aiModel.value,
|
|
156
146
|
question: question,
|
|
157
147
|
additionalData: additionalData.value,
|
|
158
148
|
additionalDataLabel: additionalDataLabel.value,
|
|
@@ -171,7 +161,6 @@ function addPageData() {
|
|
|
171
161
|
const pageInfo = chataiStore.getActiveMenuPageInfo()
|
|
172
162
|
if (pageInfo.pageType === 'list') {
|
|
173
163
|
const listRef = pageInfo.listRefs[0].ref
|
|
174
|
-
debugger
|
|
175
164
|
const visibleColumns = listRef.visibleColumns
|
|
176
165
|
const listData = chataiStore.getPageData()
|
|
177
166
|
if (listData && listData.length > 0) {
|
|
@@ -222,6 +211,20 @@ function downloadJsonData() {
|
|
|
222
211
|
console.error('下载失败:', error)
|
|
223
212
|
}
|
|
224
213
|
}
|
|
214
|
+
// 更换模型
|
|
215
|
+
function handleAiModelChange(value: string) {
|
|
216
|
+
aiModel.value = value
|
|
217
|
+
if (value === 'database') {
|
|
218
|
+
// 待开发
|
|
219
|
+
ElMessage({
|
|
220
|
+
message: '数据库问答功能正在开发中,敬请期待!',
|
|
221
|
+
type: 'warning'
|
|
222
|
+
})
|
|
223
|
+
aiModel.value = 'ragflow'
|
|
224
|
+
} else {
|
|
225
|
+
emits('change-ai-model', value)
|
|
226
|
+
}
|
|
227
|
+
}
|
|
225
228
|
</script>
|
|
226
229
|
|
|
227
230
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
@@ -237,4 +240,12 @@ h4 {
|
|
|
237
240
|
:deep(.el-divider--horizontal) {
|
|
238
241
|
margin: 5px 0;
|
|
239
242
|
}
|
|
243
|
+
.sender-additional-data-tag {
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
flex-shrink: 0;
|
|
247
|
+
min-width: max-content;
|
|
248
|
+
margin-left: auto;
|
|
249
|
+
gap: 10px;
|
|
250
|
+
}
|
|
240
251
|
</style>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<el-avatar class="chat-embed__header_avatar" :src="aiAvatar" />
|
|
4
4
|
<h4>{{ $t('chatEmbed.name') }}</h4>
|
|
5
5
|
<div class="chat-embed__header_tool_icon">
|
|
6
|
-
<el-tooltip class="box-item" effect="dark" :content="$t('chatEmbed.history')">
|
|
6
|
+
<!-- <el-tooltip class="box-item" effect="dark" :content="$t('chatEmbed.history')">
|
|
7
7
|
<span class="header-icon"><SuperIcon iconValue="fa-history" /></span>
|
|
8
|
-
</el-tooltip>
|
|
8
|
+
</el-tooltip> -->
|
|
9
9
|
<el-tooltip
|
|
10
10
|
class="box-item"
|
|
11
11
|
effect="dark"
|