agilebuilder-ui 1.1.50-rc2 → 1.1.50-rc3
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-1310f9d0.js → 401-aead36a9.js} +1 -1
- package/lib/{404-7d861da4.js → 404-9ad11c2e.js} +1 -1
- package/lib/{iframe-page-855b820e.js → iframe-page-bf851287.js} +1 -1
- package/lib/{index-05d842ab.js → index-75ff2a06.js} +14236 -14136
- 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-d96ad21a.js → tab-content-iframe-index-c7bb8381.js} +1 -1
- package/lib/{tab-content-index-93a36198.js → tab-content-index-95a59e50.js} +1 -1
- package/lib/{tache-subprocess-history-cb6f4ab6.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/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/utils/value-set.js +1 -5
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
</el-tooltip>
|
|
21
21
|
</template>
|
|
22
22
|
<el-tooltip v-if="!disabled || !disabledNoDownload" :content="t('fsUpload.download')" placement="top">
|
|
23
|
-
<el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
23
|
+
<!-- <el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
24
24
|
<Download />
|
|
25
|
-
</el-icon>
|
|
25
|
+
</el-icon> -->
|
|
26
|
+
<super-icon class="fs-preview-icon" @click="handleDownload(file)" iconValue="amb-color-icon-xiazai" />
|
|
26
27
|
</el-tooltip>
|
|
27
28
|
<el-tooltip v-if="!disabled" :content="t('fsUpload.delete')" placement="top">
|
|
28
|
-
<
|
|
29
|
+
<super-icon class="fs-preview-icon" @click="handleOnRemove(file)" iconValue="amb-color-icon-shanchu" />
|
|
29
30
|
</el-tooltip>
|
|
30
31
|
</div>
|
|
31
32
|
</template>
|
|
@@ -61,7 +62,14 @@
|
|
|
61
62
|
<script setup lang="ts">
|
|
62
63
|
import { Close, Paperclip, Download } from '@element-plus/icons-vue'
|
|
63
64
|
import { ref, defineProps } from 'vue'
|
|
64
|
-
import {
|
|
65
|
+
import {
|
|
66
|
+
getSystemFrontendUrl,
|
|
67
|
+
isPlateSys,
|
|
68
|
+
isMobileBrowser,
|
|
69
|
+
getReplaceUrlDomain,
|
|
70
|
+
getRelativeBaseUrl,
|
|
71
|
+
getKkFilePreviewUrl
|
|
72
|
+
} from '../../../src/utils/common-util'
|
|
65
73
|
import { getToken } from '../../../src/utils/auth'
|
|
66
74
|
import { isImage } from '../../../src/utils/util'
|
|
67
75
|
import { Base64 } from 'js-base64'
|
|
@@ -125,7 +133,7 @@ const props = defineProps({
|
|
|
125
133
|
default: false
|
|
126
134
|
},
|
|
127
135
|
// 水印配置{isShowWatermark:true/false,content:'xxxxx'}
|
|
128
|
-
watermark:{
|
|
136
|
+
watermark: {
|
|
129
137
|
type: Object,
|
|
130
138
|
default: () => ({})
|
|
131
139
|
}
|
|
@@ -134,10 +142,10 @@ let baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProper
|
|
|
134
142
|
let baseAPI = window.$vueApp.config.globalProperties.baseAPI
|
|
135
143
|
baseURL = getRelativeBaseUrl(baseURL)
|
|
136
144
|
baseAPI = getRelativeBaseUrl(baseAPI)
|
|
137
|
-
if(!props.watermark.content){
|
|
145
|
+
if (!props.watermark.content) {
|
|
138
146
|
// 如果没有传水印配置,从按钮配置configure中获取
|
|
139
147
|
props.watermark.isShowWatermark = props.configure.props?.watermark?.isShowWatermark===undefined?'true':props.configure.props?.watermark.isShowWatermark+''
|
|
140
|
-
props.watermark.content = props.configure.props
|
|
148
|
+
props.watermark.content = props.configure.props?.watermark?.content
|
|
141
149
|
}
|
|
142
150
|
const dialogVisible = ref<boolean>(false)
|
|
143
151
|
const previewImageInfo = ref<any>({})
|
|
@@ -167,7 +175,7 @@ const download = (file: any) => {
|
|
|
167
175
|
const showName = fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
|
|
168
176
|
const isShowWatermark = props.watermark?.isShowWatermark
|
|
169
177
|
let watermarkContent = props.watermark?.content
|
|
170
|
-
if(!watermarkContent){
|
|
178
|
+
if (!watermarkContent) {
|
|
171
179
|
watermarkContent = ''
|
|
172
180
|
}
|
|
173
181
|
let url =
|
|
@@ -178,8 +186,10 @@ const download = (file: any) => {
|
|
|
178
186
|
file.serverPath +
|
|
179
187
|
'&jwt=' +
|
|
180
188
|
token +
|
|
181
|
-
'&isShowWatermark='
|
|
182
|
-
|
|
189
|
+
'&isShowWatermark=' +
|
|
190
|
+
isShowWatermark +
|
|
191
|
+
'&watermark=' +
|
|
192
|
+
encodeURI(watermarkContent)
|
|
183
193
|
if (isPlateSys(props.systemCode)) {
|
|
184
194
|
url =
|
|
185
195
|
baseAPI +
|
|
@@ -269,7 +279,7 @@ const previweDoc = (showName: string, serverPath: string) => {
|
|
|
269
279
|
const myPreviewUrl = originUrl + '&fullfilename=' + showName
|
|
270
280
|
console.log('myPreviewUrl====', myPreviewUrl)
|
|
271
281
|
// http://127.0.0.1:8012/onlinePreview
|
|
272
|
-
getKkFilePreviewUrl(myPreviewUrl).then(url=>{
|
|
282
|
+
getKkFilePreviewUrl(myPreviewUrl).then((url) => {
|
|
273
283
|
window.open(url, showName)
|
|
274
284
|
})
|
|
275
285
|
// previewUrl =
|
|
@@ -315,7 +325,23 @@ const isPreview = (fileName: string) => {
|
|
|
315
325
|
</script>
|
|
316
326
|
<style lang="scss" scoped>
|
|
317
327
|
.amb-color-iconfont {
|
|
318
|
-
width:
|
|
319
|
-
height:
|
|
328
|
+
width: 25px;
|
|
329
|
+
height: 25px;
|
|
330
|
+
}
|
|
331
|
+
.fs-preview-icon {
|
|
332
|
+
font-size: 15px !important;
|
|
333
|
+
display: inline-block;
|
|
334
|
+
width: 1em !important;
|
|
335
|
+
height: 1em !important;
|
|
336
|
+
line-height: 1em;
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
|
|
339
|
+
&:not(:first-of-type) {
|
|
340
|
+
margin-left: 20px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
& + & {
|
|
344
|
+
margin-left: 5px;
|
|
345
|
+
}
|
|
320
346
|
}
|
|
321
347
|
</style>
|
|
@@ -283,7 +283,7 @@ const props = defineProps({
|
|
|
283
283
|
default: false
|
|
284
284
|
},
|
|
285
285
|
// 水印配置{isShowWatermark:true/false,content:'xxxxx'}
|
|
286
|
-
watermark:{
|
|
286
|
+
watermark: {
|
|
287
287
|
type: Object,
|
|
288
288
|
default: () => ({})
|
|
289
289
|
}
|
|
@@ -302,10 +302,10 @@ console.log(
|
|
|
302
302
|
'props.pageContext=',
|
|
303
303
|
props.pageContext
|
|
304
304
|
)
|
|
305
|
-
if(!props.watermark.content){
|
|
305
|
+
if (!props.watermark.content) {
|
|
306
306
|
// 如果没有传水印配置,从按钮配置configure中获取
|
|
307
307
|
props.watermark.isShowWatermark = props.configure?.props?.watermark?.isShowWatermark===undefined?'true':props.configure?.props?.watermark.isShowWatermark+''
|
|
308
|
-
props.watermark.content = props.configure?.props?.watermark
|
|
308
|
+
props.watermark.content = props.configure?.props?.watermark?.content
|
|
309
309
|
}
|
|
310
310
|
const listFileLabel = ref<string>('')
|
|
311
311
|
if (props.displayType === 'input') {
|
|
@@ -24,11 +24,7 @@ function packageEnumAndBeanColumnValueSetsWhenPlate(columns, listCode) {
|
|
|
24
24
|
const column = columns[i]
|
|
25
25
|
const prop = column.prop ? column.prop : column.label
|
|
26
26
|
const columnValueSet = packageEnumAndBeanColumnValueSet(column)
|
|
27
|
-
|
|
28
|
-
const titleValueSetJson = column.titleValueSet
|
|
29
|
-
if (titleValueSetJson) {
|
|
30
|
-
titleValueSet = column.titleValueSet
|
|
31
|
-
}
|
|
27
|
+
const titleValueSet = column.titleValueSet
|
|
32
28
|
if (columnValueSet || titleValueSet) {
|
|
33
29
|
const valueSetMeta = {
|
|
34
30
|
prop: prop
|