agilebuilder-ui 1.1.49 → 1.1.50-rc1
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-a94cd05b.js → 401-aaa4054d.js} +1 -1
- package/lib/{404-eb21244b.js → 404-ef3b10e9.js} +1 -1
- package/lib/{iframe-page-7add4333.js → iframe-page-28c30283.js} +1 -1
- package/lib/{index-7a601895.js → index-bece2c1c.js} +22 -17
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +3 -3
- package/lib/{tab-content-iframe-index-483b398c.js → tab-content-iframe-index-87ac3b2b.js} +1 -1
- package/lib/{tab-content-index-0862686f.js → tab-content-index-956a0533.js} +1 -1
- package/lib/{tache-subprocess-history-c80e8ed2.js → tache-subprocess-history-2c4f98f2.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +5 -4
- package/packages/fs-upload/src/fs-upload-multi.vue +5 -3
- package/packages/fs-upload/src/fs-upload-single.vue +2 -2
- package/packages/fs-upload-new/src/fs-preview-new.vue +5 -4
- package/packages/multipart-upload/src/multipart-upload-form.vue +2 -1
- package/packages/multipart-upload/src/multipart-upload-list.vue +2 -1
- package/packages/super-grid/src/view-image-dialog.vue +2 -1
- package/src/utils/common-util.js +22 -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-bece2c1c.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-bece2c1c.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-bece2c1c.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
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
// import { Image } from 'antd';
|
|
85
85
|
import { Paperclip as ElIconPaperclip, View as ElIconView, Download as ElIconDownload } from '@element-plus/icons-vue'
|
|
86
86
|
import * as Vue from 'vue'
|
|
87
|
-
import { isPlateSys, getSystemFrontendUrl, getRelativeBaseUrl } from '../../../src/utils/common-util'
|
|
87
|
+
import { isPlateSys, getSystemFrontendUrl, getRelativeBaseUrl, getKkFileBackendUrl } from '../../../src/utils/common-util'
|
|
88
88
|
import { isImage, getEntityFieldValue } from '../../../src/utils/util'
|
|
89
89
|
import { packageFile } from '../../super-grid/src/utils'
|
|
90
90
|
import { getToken } from '../../../src/utils/auth'
|
|
@@ -294,16 +294,17 @@ export default {
|
|
|
294
294
|
console.log('myPreviewUrl====', myPreviewUrl)
|
|
295
295
|
// http://127.0.0.1:8012/onlinePreview
|
|
296
296
|
previewUrl =
|
|
297
|
-
|
|
297
|
+
getKkFileBackendUrl() +
|
|
298
298
|
'?url=' +
|
|
299
299
|
encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
300
|
+
window.open(previewUrl, showName)
|
|
300
301
|
console.log('previewUrl====', previewUrl)
|
|
301
302
|
} else {
|
|
302
303
|
previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
|
|
303
304
|
previewUrl = previewUrl + '&showName=' + encodeURI(showName) + '&serverPath=' + fileInfo.serverPath
|
|
305
|
+
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
306
|
+
window.open(previewUrl, showName)
|
|
304
307
|
}
|
|
305
|
-
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
306
|
-
window.open(previewUrl, showName)
|
|
307
308
|
}
|
|
308
309
|
},
|
|
309
310
|
donwloadFile(index) {
|
|
@@ -173,6 +173,7 @@ import {
|
|
|
173
173
|
isPlateSys,
|
|
174
174
|
getSystemFrontendUrl,
|
|
175
175
|
getRelativeBaseUrl,
|
|
176
|
+
getKkFileBackendUrl,
|
|
176
177
|
} from '../../../src//utils//common-util.js'
|
|
177
178
|
|
|
178
179
|
export default {
|
|
@@ -381,7 +382,8 @@ export default {
|
|
|
381
382
|
//要预览文件的访问地址
|
|
382
383
|
const myPreviewUrl = originUrl + '&fullfilename='+myShowName
|
|
383
384
|
// http://127.0.0.1:8012/onlinePreview
|
|
384
|
-
previewUrl =
|
|
385
|
+
previewUrl = getKkFileBackendUrl()+'?url='+encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
386
|
+
window.open(previewUrl, showName)
|
|
385
387
|
} else {
|
|
386
388
|
previewUrl =
|
|
387
389
|
baseUrl +
|
|
@@ -392,9 +394,9 @@ export default {
|
|
|
392
394
|
encodeURI(myShowName) +
|
|
393
395
|
'&serverPath=' +
|
|
394
396
|
uuid
|
|
397
|
+
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
398
|
+
window.open(previewUrl, showName)
|
|
395
399
|
}
|
|
396
|
-
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
397
|
-
window.open(previewUrl, showName)
|
|
398
400
|
}
|
|
399
401
|
}
|
|
400
402
|
},
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
import {$emit} from '../../utils/gogocodeTransfer'
|
|
113
113
|
import Cookies from 'js-cookie'
|
|
114
114
|
import seeBigPicture from './see-big-picture.vue'
|
|
115
|
-
import {getRelativeBaseUrl, getSystemFrontendUrl, isPlateSys,} from '../../../src/utils/common-util.js'
|
|
115
|
+
import {getKkFileBackendUrl, getRelativeBaseUrl, getSystemFrontendUrl, isPlateSys,} from '../../../src/utils/common-util.js'
|
|
116
116
|
import {getToken} from '../../../src/utils/auth'
|
|
117
117
|
|
|
118
118
|
export default {
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
309
309
|
//要预览文件的访问地址
|
|
310
310
|
const myPreviewUrl = originUrl + '&fullfilename='+myShowName
|
|
311
311
|
// http://127.0.0.1:8012/onlinePreview
|
|
312
|
-
previewUrl =
|
|
312
|
+
previewUrl = getKkFileBackendUrl()+'?url='+encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
313
313
|
} else {
|
|
314
314
|
previewUrl =
|
|
315
315
|
baseUrl +
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<script setup lang="ts">
|
|
62
62
|
import { Close, Paperclip, Download } from '@element-plus/icons-vue'
|
|
63
63
|
import { ref, defineProps } from 'vue'
|
|
64
|
-
import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain, getRelativeBaseUrl } from '../../../src/utils/common-util'
|
|
64
|
+
import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain, getRelativeBaseUrl, getKkFileBackendUrl } from '../../../src/utils/common-util'
|
|
65
65
|
import { getToken } from '../../../src/utils/auth'
|
|
66
66
|
import { isImage } from '../../../src/utils/util'
|
|
67
67
|
import { Base64 } from 'js-base64'
|
|
@@ -254,14 +254,15 @@ const previweDoc = (showName: string, serverPath: string) => {
|
|
|
254
254
|
console.log('myPreviewUrl====', myPreviewUrl)
|
|
255
255
|
// http://127.0.0.1:8012/onlinePreview
|
|
256
256
|
previewUrl =
|
|
257
|
-
|
|
257
|
+
getKkFileBackendUrl() + '?url=' + encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
258
|
+
window.open(previewUrl, showName)
|
|
258
259
|
console.log('previewUrl====', previewUrl)
|
|
259
260
|
} else {
|
|
260
261
|
previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
|
|
261
262
|
previewUrl = previewUrl + '&showName=' + encodeURI(showName) + '&serverPath=' + serverPath
|
|
263
|
+
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
264
|
+
window.open(previewUrl, showName)
|
|
262
265
|
}
|
|
263
|
-
previewUrl = getRelativeBaseUrl(previewUrl)
|
|
264
|
-
window.open(previewUrl, showName)
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
268
|
function getPreviewSrc(showName: string, serverPath: string) {
|
|
@@ -132,6 +132,7 @@ import {isImage} from '../../../src/utils/util'
|
|
|
132
132
|
import {
|
|
133
133
|
isPlateSys,
|
|
134
134
|
getSystemFrontendUrl,
|
|
135
|
+
getKkFileBackendUrl,
|
|
135
136
|
} from '../../../src/utils/common-util'
|
|
136
137
|
import * as Vue from 'vue'
|
|
137
138
|
import FsPreview from '../../fs-preview/src/fs-preview.vue'
|
|
@@ -349,7 +350,7 @@ export default {
|
|
|
349
350
|
//要预览文件的访问地址
|
|
350
351
|
const myPreviewUrl = originUrl + '&fullfilename='+myShowName
|
|
351
352
|
// http://127.0.0.1:8012/onlinePreview
|
|
352
|
-
previewUrl =
|
|
353
|
+
previewUrl = getKkFileBackendUrl() +'?url='+encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
353
354
|
} else {
|
|
354
355
|
previewUrl =
|
|
355
356
|
baseUrl +
|
|
@@ -170,6 +170,7 @@ import {isImage} from '../../../src/utils/util'
|
|
|
170
170
|
import {
|
|
171
171
|
isPlateSys,
|
|
172
172
|
getSystemFrontendUrl,
|
|
173
|
+
getKkFileBackendUrl,
|
|
173
174
|
} from '../../../src/utils/common-util'
|
|
174
175
|
import * as Vue from 'vue'
|
|
175
176
|
import FsPreview from '../../fs-preview/src/fs-preview.vue'
|
|
@@ -502,7 +503,7 @@ export default {
|
|
|
502
503
|
//要预览文件的访问地址
|
|
503
504
|
const myPreviewUrl = originUrl + '&fullfilename='+myShowName
|
|
504
505
|
// http://127.0.0.1:8012/onlinePreview
|
|
505
|
-
previewUrl =
|
|
506
|
+
previewUrl = getKkFileBackendUrl() +'?url='+encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
506
507
|
} else {
|
|
507
508
|
previewUrl =
|
|
508
509
|
baseUrl +
|
|
@@ -51,6 +51,7 @@ import * as Vue from 'vue'
|
|
|
51
51
|
import {
|
|
52
52
|
isPlateSys,
|
|
53
53
|
getSystemFrontendUrl,
|
|
54
|
+
getKkFileBackendUrl,
|
|
54
55
|
} from '../../../src/utils/common-util'
|
|
55
56
|
import {getToken} from '../../../src/utils/auth'
|
|
56
57
|
|
|
@@ -154,7 +155,7 @@ export default {
|
|
|
154
155
|
//要预览文件的访问地址
|
|
155
156
|
const myPreviewUrl = originUrl + '&fullfilename='+myShowName
|
|
156
157
|
// http://127.0.0.1:8012/onlinePreview
|
|
157
|
-
previewUrl =
|
|
158
|
+
previewUrl = getKkFileBackendUrl() +'?url='+encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
158
159
|
} else {
|
|
159
160
|
previewUrl =
|
|
160
161
|
this.baseUrl +
|
package/src/utils/common-util.js
CHANGED
|
@@ -818,3 +818,25 @@ export function getURLSearchParamObj(fullPath) {
|
|
|
818
818
|
console.error('error===',error)
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
+
/**
|
|
822
|
+
* 获得KKFileView的路径。
|
|
823
|
+
* @returns
|
|
824
|
+
*/
|
|
825
|
+
export function getKkFileBackendUrl() {
|
|
826
|
+
let kkFileViewUrl = window.$vueApp.config.globalProperties.kkFileViewUrl
|
|
827
|
+
let kkFileViewUrlResult = kkFileViewUrl
|
|
828
|
+
let baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
829
|
+
if(kkFileViewUrl && baseURL){
|
|
830
|
+
let baseUrls = baseURL.split('/')
|
|
831
|
+
let prefixUrl = baseUrls[0]+ '//' + baseUrls[2]
|
|
832
|
+
let kkFileViewUrls = kkFileViewUrl.split('/')
|
|
833
|
+
let kkFilePrefixUrl = kkFileViewUrls[0]+ '//' + kkFileViewUrls[2]
|
|
834
|
+
if(prefixUrl === kkFilePrefixUrl){
|
|
835
|
+
// 如果baseURL和kkFileViewUrl的ip和端口一致,则表示kkFileView服务被nginx代理了,此时需要做内网、外网域名替换,例如:西安西开项目
|
|
836
|
+
// 如果baseURL和kkFileViewUrl的ip和端口不一致,则表示kkFileView服务没有被nginx代理,此时不需要处理kkFileViewUrl路径,例如:公司产品项目
|
|
837
|
+
kkFileViewUrlResult = getRelativeBaseUrl(kkFileViewUrl)
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
console.log('获得kkFile服务部署路径', kkFileViewUrlResult)
|
|
841
|
+
return kkFileViewUrlResult
|
|
842
|
+
}
|