agilebuilder-ui 1.1.53-migrate1 → 1.1.53-migrate3
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-d6066c93.js → 401-1c862b2e.js} +1 -1
- package/lib/{404-fe5bcb21.js → 404-14950d72.js} +1 -1
- package/lib/{_baseUniq-BXtq6_NW-d0d4bbf2.js → _baseUniq-BXtq6_NW-0a234c09.js} +2 -2
- package/lib/{arc-Js_tyW10-cb3f6832.js → arc-Js_tyW10-8b530022.js} +1 -1
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-6f652b72.js +11 -0
- package/lib/{architectureDiagram-SUXI7LT5-kyYGGrHN-7757b633.js → architectureDiagram-SUXI7LT5-kyYGGrHN-b71493a5.js} +8 -8
- package/lib/{blockDiagram-6J76NXCF-IAr4zDV3-88d5c37a.js → blockDiagram-6J76NXCF-IAr4zDV3-56c0e16f.js} +7 -7
- package/lib/{c4Diagram-6F6E4RAY-Dv27rXcJ-5cd0d8ff.js → c4Diagram-6F6E4RAY-Dv27rXcJ-b381af08.js} +3 -3
- package/lib/{channel-BBZy6zOT-ae653067.js → channel-BBZy6zOT-337eaabc.js} +1 -1
- package/lib/{chunk-353BL4L5-Dn_Y_Yna-25bc38cb.js → chunk-353BL4L5-Dn_Y_Yna-681d26fb.js} +1 -1
- package/lib/{chunk-67H74DCK-Br5U8bfD-798b2395.js → chunk-67H74DCK-Br5U8bfD-02abceaa.js} +1 -1
- package/lib/{chunk-AACKK3MU-DH_MKxca-9c699451.js → chunk-AACKK3MU-DH_MKxca-c2ecd90b.js} +1 -1
- package/lib/{chunk-BFAMUDN2-DHLCoYMN-10bb4870.js → chunk-BFAMUDN2-DHLCoYMN-46e87c75.js} +1 -1
- package/lib/{chunk-E2GYISFI-DQPHyyga-3d1d5d4e.js → chunk-E2GYISFI-DQPHyyga-6595106c.js} +1 -1
- package/lib/{chunk-OW32GOEJ-CQOSE6Bn-58689e60.js → chunk-OW32GOEJ-CQOSE6Bn-b195f7fc.js} +3 -3
- package/lib/{chunk-SKB7J2MH-BlwHRDiW-f1412798.js → chunk-SKB7J2MH-BlwHRDiW-9dc0ca4d.js} +1 -1
- package/lib/{chunk-SZ463SBG-DEp8buKJ-7e1ac1e2.js → chunk-SZ463SBG-DEp8buKJ-23ba6339.js} +4 -4
- package/lib/{classDiagram-M3E45YP4-D0ySDe-v-55859cb6.js → classDiagram-M3E45YP4-D0ySDe-v-6616a73a.js} +6 -6
- package/lib/{classDiagram-v2-YAWTLIQI-D0ySDe-v-55859cb6.js → classDiagram-v2-YAWTLIQI-D0ySDe-v-6616a73a.js} +6 -6
- package/lib/{clone-CEJtuQzg-88db7016.js → clone-CEJtuQzg-f79142ef.js} +1 -1
- package/lib/{dagre-JOIXM2OF-5zx0JY2T-e9b49fe5.js → dagre-JOIXM2OF-5zx0JY2T-3baf95b9.js} +7 -7
- package/lib/{diagram-5UYTHUR4-C19nyAKc-6d537348.js → diagram-5UYTHUR4-C19nyAKc-1bd2f05f.js} +7 -7
- package/lib/{diagram-VMROVX33-DkGwo-hj-39b1d2fc.js → diagram-VMROVX33-DkGwo-hj-54427978.js} +8 -8
- package/lib/{diagram-ZTM2IBQH-CBgHCu9L-c86d4927.js → diagram-ZTM2IBQH-CBgHCu9L-fd6df0d1.js} +7 -7
- package/lib/{erDiagram-3M52JZNH-cttdAJXW-c9d06634.js → erDiagram-3M52JZNH-cttdAJXW-2ffdf19a.js} +5 -5
- package/lib/{flowDiagram-KYDEHFYC-9HpsqDdB-2e76100c.js → flowDiagram-KYDEHFYC-9HpsqDdB-80fd43ef.js} +6 -6
- package/lib/{ganttDiagram-EK5VF46D-8QB3ofs6-215fe9dd.js → ganttDiagram-EK5VF46D-8QB3ofs6-d785b8cc.js} +3 -3
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-7219c071.js +11 -0
- package/lib/{gitGraphDiagram-GW3U2K7C-DNzc0Vx_-89e1b988.js → gitGraphDiagram-GW3U2K7C-DNzc0Vx_-d359e09d.js} +8 -8
- package/lib/{graph-3zJxsO-i-c577da47.js → graph-3zJxsO-i-337e2aac.js} +3 -3
- package/lib/{iframe-page-e1d83c70.js → iframe-page-3f9fadeb.js} +1 -1
- package/lib/{index-d1287bee.js → index-c56044ef.js} +4958 -4924
- package/lib/info-63CPKGFF-C8sYWczU-bc23fcfd.js +11 -0
- package/lib/{infoDiagram-LHK5PUON-C-vFFPTf-03e9fa22.js → infoDiagram-LHK5PUON-C-vFFPTf-bd6b76b6.js} +6 -6
- package/lib/{journeyDiagram-EWQZEKCU-BJrw4-AG-290102e8.js → journeyDiagram-EWQZEKCU-BJrw4-AG-bfea8aa9.js} +5 -5
- package/lib/{kanban-definition-ZSS6B67P-BptAnqU--5b4aa212.js → kanban-definition-ZSS6B67P-BptAnqU--6e5b2495.js} +3 -3
- package/lib/{layout-sGZIJplX-80c8f9d4.js → layout-sGZIJplX-9b2f6d6f.js} +5 -5
- package/lib/{linear-DqgVh5FN-ad3df43d.js → linear-DqgVh5FN-2d1ed762.js} +1 -1
- package/lib/{mermaid-parser.core-CH9ryA1K-d39d87be.js → mermaid-parser.core-CH9ryA1K-8133a642.js} +12 -12
- package/lib/{mermaid.core-CAqkCmS1-d0bfa3c9.js → mermaid.core-CAqkCmS1-91831f83.js} +30 -30
- package/lib/{min-BngCxx8g-7b0ae609.js → min-BngCxx8g-176fb9c5.js} +3 -3
- package/lib/{mindmap-definition-6CBA2TL7-Cp_EeEsh-dc463ce6.js → mindmap-definition-6CBA2TL7-Cp_EeEsh-00367d15.js} +2 -2
- package/lib/packet-HUATNLJX-bfFWFja0-3a205d7f.js +11 -0
- package/lib/pie-WTHONI2E-QPrWs3SR-2a070576.js +11 -0
- package/lib/{pieDiagram-NIOCPIFQ-C46Y_4C6-8651a77b.js → pieDiagram-NIOCPIFQ-C46Y_4C6-3584f08a.js} +8 -8
- package/lib/{quadrantDiagram-2OG54O6I-Dgf6d6F_-2e9b47e5.js → quadrantDiagram-2OG54O6I-Dgf6d6F_-6dd874d6.js} +3 -3
- package/lib/radar-NJJJXTRR-BnUCJhQL-89c67b75.js +11 -0
- package/lib/{requirementDiagram-QOLK2EJ7-CSF6N7HA-14775963.js → requirementDiagram-QOLK2EJ7-CSF6N7HA-a12574c8.js} +4 -4
- package/lib/{sankeyDiagram-4UZDY2LN-BAHB7dMS-1a160b8e.js → sankeyDiagram-4UZDY2LN-BAHB7dMS-8595d719.js} +2 -2
- package/lib/{sequenceDiagram-SKLFT4DO-10gLJ50N-6986bda0.js → sequenceDiagram-SKLFT4DO-10gLJ50N-10af0caa.js} +4 -4
- package/lib/{stateDiagram-MI5ZYTHO-D6p6nCaj-9884d205.js → stateDiagram-MI5ZYTHO-D6p6nCaj-aea374e5.js} +9 -9
- package/lib/{stateDiagram-v2-5AN5P6BG-DaN5hC-t-7baa677f.js → stateDiagram-v2-5AN5P6BG-DaN5hC-t-32ec1740.js} +5 -5
- 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-2b1095c2.js → tab-content-iframe-index-bc7573b7.js} +1 -1
- package/lib/{tab-content-index-f874beee.js → tab-content-index-7c1d3ce1.js} +1 -1
- package/lib/{tache-subprocess-history-9d6b916f.js → tache-subprocess-history-dfc4beb6.js} +1 -1
- package/lib/{timeline-definition-MYPXXCX6-gLqnWxDu-37820eeb.js → timeline-definition-MYPXXCX6-gLqnWxDu-75546aaf.js} +3 -3
- package/lib/treemap-75Q7IDZK-B2atdfMH-d461d293.js +11 -0
- package/lib/{xychartDiagram-H2YORKM3-Whqa4ezL-6923a8c8.js → xychartDiagram-H2YORKM3-Whqa4ezL-e84e6241.js} +3 -3
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +10 -2
- package/packages/fs-upload-new/src/fs-preview-new.vue +27 -3
- package/packages/plugins/export-data-new.js +24 -6
- package/packages/super-grid/src/apis.js +13 -4
- package/packages/super-grid/src/super-grid.vue +12 -10
- package/packages/super-grid/src/utils.js +11 -0
- package/src/utils/common-util.js +2 -1
- package/src/utils/watermark.js +2 -1
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-edaadc1b.js +0 -11
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-7337cb87.js +0 -11
- package/lib/info-63CPKGFF-C8sYWczU-8e8b6b43.js +0 -11
- package/lib/packet-HUATNLJX-bfFWFja0-809a7256.js +0 -11
- package/lib/pie-WTHONI2E-QPrWs3SR-f060159e.js +0 -11
- package/lib/radar-NJJJXTRR-BnUCJhQL-5c56c1f4.js +0 -11
- package/lib/treemap-75Q7IDZK-B2atdfMH-6880f95a.js +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
|
|
2
|
-
import { a8 as s } from "./index-
|
|
2
|
+
import { a8 as s } from "./index-c56044ef.js";
|
|
3
3
|
const a = ["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 { a8 as f, aa as x, ab as _, ac as P, ad as h, ae as O, af as I, ag as M } from "./index-
|
|
1
|
+
import { a8 as f, aa as x, ab as _, ac as P, ad as h, ae as O, af as I, ag as M } from "./index-c56044ef.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as d, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, 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 l, createElementBlock as s, createElementVNode as y, createVNode as a, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
|
|
2
|
-
import { a8 as I } from "./index-
|
|
2
|
+
import { a8 as I } from "./index-c56044ef.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));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as a, D as yt, ag as gt, z as ft, d as G, c as mt, l as S, ac as xt, ad as bt, ae as _t, af as kt } from "./mermaid.core-CAqkCmS1-
|
|
2
|
-
import { d as K } from "./arc-Js_tyW10-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { _ as a, D as yt, ag as gt, z as ft, d as G, c as mt, l as S, ac as xt, ad as bt, ae as _t, af as kt } from "./mermaid.core-CAqkCmS1-91831f83.js";
|
|
2
|
+
import { d as K } from "./arc-Js_tyW10-8b530022.js";
|
|
3
|
+
import "./index-c56044ef.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
var q = function() {
|
|
6
6
|
var n = a(function(s, d, l, h) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { T as s, h as T } from "./mermaid-parser.core-CH9ryA1K-8133a642.js";
|
|
2
|
+
import "./index-c56044ef.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./mermaid.core-CAqkCmS1-91831f83.js";
|
|
5
|
+
import "./_baseUniq-BXtq6_NW-0a234c09.js";
|
|
6
|
+
import "./min-BngCxx8g-176fb9c5.js";
|
|
7
|
+
import "./clone-CEJtuQzg-f79142ef.js";
|
|
8
|
+
export {
|
|
9
|
+
s as TreemapModule,
|
|
10
|
+
T as createTreemapServices
|
|
11
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as n, a1 as hi, G as gt, F as Bt, H as oi, aD as ri, l as zt, a9 as kt, i as li, t as Ot, b as ci, a as gi, q as ui, g as xi, s as di, z as pi, K as fi, e as mi } from "./mermaid.core-CAqkCmS1-
|
|
1
|
+
import { _ as n, a1 as hi, G as gt, F as Bt, H as oi, aD as ri, l as zt, a9 as kt, i as li, t as Ot, b as ci, a as gi, q as ui, g as xi, s as di, z as pi, K as fi, e as mi } from "./mermaid.core-CAqkCmS1-91831f83.js";
|
|
2
2
|
import { i as yi } from "./init-ZxktEp_H-731b6c9b.js";
|
|
3
3
|
import { o as bi } from "./ordinal-DSZU4PqD-57a34423.js";
|
|
4
|
-
import { l as _t } from "./linear-DqgVh5FN-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { l as _t } from "./linear-DqgVh5FN-2d1ed762.js";
|
|
5
|
+
import "./index-c56044ef.js";
|
|
6
6
|
import "vue";
|
|
7
7
|
import "./defaultLocale-DVr69WTU-dbb4acef.js";
|
|
8
8
|
var Tt, Rt, Dt, Lt, Pt, vt, Et, Mt, It, $t;
|
package/package.json
CHANGED
|
@@ -94,6 +94,7 @@ import { isImage, getEntityFieldValue, getI18n } from '../../../src/utils/util'
|
|
|
94
94
|
import { packageFile } from '../../super-grid/src/utils'
|
|
95
95
|
import { getToken } from '../../../src/utils/auth'
|
|
96
96
|
import { getFileIconByName } from '../../../src/utils/file-util'
|
|
97
|
+
import { getWatermarkSetting } from '../../../src/utils/watermark'
|
|
97
98
|
export default {
|
|
98
99
|
components: {
|
|
99
100
|
ElIconPaperclip,
|
|
@@ -326,10 +327,17 @@ export default {
|
|
|
326
327
|
window.open(src)
|
|
327
328
|
}
|
|
328
329
|
},
|
|
329
|
-
download(showName, serverPath) {
|
|
330
|
+
async download(showName, serverPath) {
|
|
330
331
|
const token = getToken()
|
|
331
|
-
const
|
|
332
|
+
const watermark = await getWatermarkSetting()
|
|
333
|
+
let isShowWatermark = false
|
|
334
|
+
if(watermark && watermark.useRange && watermark.useRange.indexOf('annex')>=0){
|
|
335
|
+
isShowWatermark = this.watermark.isShowWatermark===undefined?true:this.watermark.isShowWatermark
|
|
336
|
+
}
|
|
332
337
|
let watermarkContent = this.watermark?.content
|
|
338
|
+
if (!watermarkContent && watermark) {
|
|
339
|
+
watermarkContent = watermark.content
|
|
340
|
+
}
|
|
333
341
|
if (!watermarkContent) {
|
|
334
342
|
watermarkContent = ''
|
|
335
343
|
}
|
|
@@ -75,6 +75,7 @@ import { isImage } from '../../../src/utils/util'
|
|
|
75
75
|
import { Base64 } from 'js-base64'
|
|
76
76
|
import { getFileIconByName } from '../../../src/utils/file-util'
|
|
77
77
|
import { useI18n } from 'vue-i18n'
|
|
78
|
+
import { getWatermarkSetting } from '../../../src/utils/watermark'
|
|
78
79
|
const { t } = useI18n()
|
|
79
80
|
const props = defineProps({
|
|
80
81
|
systemCode: {
|
|
@@ -152,6 +153,10 @@ const previewImageInfo = ref<any>({})
|
|
|
152
153
|
const previewSrcList = ref<string[]>([])
|
|
153
154
|
const isMobile = ref(isMobileBrowser())
|
|
154
155
|
const emits = defineEmits(['remove'])
|
|
156
|
+
let watermarkCache = null
|
|
157
|
+
getWatermarkSetting().then((data)=>{
|
|
158
|
+
watermarkCache = data
|
|
159
|
+
})
|
|
155
160
|
const handleDownload = (file: any) => {
|
|
156
161
|
if (isPromise(props.beforeDownload)) {
|
|
157
162
|
props.beforeDownload(props.pageContext, props.configure, file).then((res: any) => {
|
|
@@ -173,7 +178,10 @@ const download = (file: any) => {
|
|
|
173
178
|
const token = getToken()
|
|
174
179
|
const fileName = file.showName ? file.showName : file.name
|
|
175
180
|
const showName = fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
|
|
176
|
-
|
|
181
|
+
let isShowWatermark = false
|
|
182
|
+
if(watermarkCache && watermarkCache.useRange && watermarkCache.useRange.indexOf('annex')>=0){
|
|
183
|
+
isShowWatermark = props.watermark?.isShowWatermark
|
|
184
|
+
}
|
|
177
185
|
let watermarkContent = props.watermark?.content
|
|
178
186
|
if (!watermarkContent) {
|
|
179
187
|
watermarkContent = ''
|
|
@@ -296,9 +304,25 @@ const previweDoc = (showName: string, serverPath: string) => {
|
|
|
296
304
|
function getPreviewSrc(showName: string, serverPath: string) {
|
|
297
305
|
showName = formatName(showName)
|
|
298
306
|
const token = getToken()
|
|
299
|
-
let
|
|
307
|
+
let isShowWatermark = false
|
|
308
|
+
if(watermarkCache && watermarkCache.useRange && watermarkCache.useRange.indexOf('annex')>=0){
|
|
309
|
+
isShowWatermark = props.watermark?.isShowWatermark
|
|
310
|
+
}
|
|
311
|
+
let watermarkContent = props.watermark?.content
|
|
312
|
+
if (!watermarkContent) {
|
|
313
|
+
watermarkContent = ''
|
|
314
|
+
}
|
|
315
|
+
let url = baseURL + '/common/super-form/downloads?jwt=' + token+
|
|
316
|
+
'&isShowWatermark=' +
|
|
317
|
+
isShowWatermark +
|
|
318
|
+
'&watermark=' +
|
|
319
|
+
encodeURI(watermarkContent)
|
|
300
320
|
if (isPlateSys(props.systemCode)) {
|
|
301
|
-
url = baseAPI + '/component/super-form/downloads?jwt=' + token
|
|
321
|
+
url = baseAPI + '/component/super-form/downloads?jwt=' + token+
|
|
322
|
+
'&isShowWatermark=' +
|
|
323
|
+
isShowWatermark +
|
|
324
|
+
'&watermark=' +
|
|
325
|
+
encodeURI(watermarkContent)
|
|
302
326
|
}
|
|
303
327
|
url = getReplaceUrlDomain(url)
|
|
304
328
|
return url + '&showName=' + encodeURI(showName) + '&serverPath=' + serverPath
|
|
@@ -5,6 +5,7 @@ import {getExtraParam} from '../super-grid/src/utils'
|
|
|
5
5
|
import nineGridStore from '../super-nine-grid/src/store'
|
|
6
6
|
import {packageEnumAndBeanColumnValueSets} from '../utils/value-set'
|
|
7
7
|
import { getRelativeBaseUrl } from '../../src/utils/common-util'
|
|
8
|
+
import { getWatermarkSetting } from '../../src/utils/watermark'
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
@@ -280,7 +281,7 @@ function exportListData(
|
|
|
280
281
|
isPermission,
|
|
281
282
|
exportOptions
|
|
282
283
|
) {
|
|
283
|
-
return new Promise((resolve, reject) => {
|
|
284
|
+
return new Promise(async (resolve, reject) => {
|
|
284
285
|
const gridParams = getGridParams(listCode)
|
|
285
286
|
if (gridParams === undefined || gridParams === null) {
|
|
286
287
|
reject('导出失败')
|
|
@@ -323,10 +324,20 @@ function exportListData(
|
|
|
323
324
|
// 页面编码
|
|
324
325
|
param['pageCode'] = pageCode
|
|
325
326
|
// 导出按钮是否需要验证权限
|
|
326
|
-
param['isPermission'] = isPermission
|
|
327
|
-
|
|
327
|
+
param['isPermission'] = isPermission
|
|
328
|
+
let isShowWatermark = false
|
|
329
|
+
const watermark = await getWatermarkSetting()
|
|
330
|
+
if(watermark && watermark.useRange && watermark.useRange.indexOf('annex')>=0){
|
|
331
|
+
isShowWatermark = exportOptions.isShowWatermark===undefined || exportOptions.isShowWatermark===null?'true':exportOptions.isShowWatermark
|
|
332
|
+
}
|
|
328
333
|
param['isShowWatermark'] = isShowWatermark
|
|
329
334
|
let watermarkContent = exportOptions.watermarkContent
|
|
335
|
+
if (!watermarkContent && watermark) {
|
|
336
|
+
watermarkContent = watermark.content
|
|
337
|
+
}
|
|
338
|
+
if (!watermarkContent) {
|
|
339
|
+
watermarkContent = ''
|
|
340
|
+
}
|
|
330
341
|
if(watermarkContent){
|
|
331
342
|
param['watermarkContent'] = watermarkContent
|
|
332
343
|
}
|
|
@@ -341,7 +352,7 @@ function exportListData(
|
|
|
341
352
|
'/dsc/commons/export-list-data',
|
|
342
353
|
param
|
|
343
354
|
)
|
|
344
|
-
.then((data) => {
|
|
355
|
+
.then(async (data) => {
|
|
345
356
|
if(exportOptions.pageContext) {
|
|
346
357
|
exportOptions.pageContext.canClick = true
|
|
347
358
|
}
|
|
@@ -375,9 +386,16 @@ function exportListData(
|
|
|
375
386
|
localStorage.setItem(uuid, 'ok')
|
|
376
387
|
} else {
|
|
377
388
|
if (data.indexOf('~~') >= 0) {
|
|
378
|
-
|
|
389
|
+
let isShowWatermark = false
|
|
390
|
+
const watermark = await getWatermarkSetting()
|
|
391
|
+
if(watermark && watermark.useRange && watermark.useRange.indexOf('annex')>=0){
|
|
392
|
+
isShowWatermark = exportOptions.isShowWatermark===undefined || exportOptions.isShowWatermark===null?'true':exportOptions.isShowWatermark
|
|
393
|
+
}
|
|
379
394
|
let watermarkContent = exportOptions.watermarkContent
|
|
380
|
-
if(!watermarkContent){
|
|
395
|
+
if (!watermarkContent && watermark) {
|
|
396
|
+
watermarkContent = watermark.content
|
|
397
|
+
}
|
|
398
|
+
if (!watermarkContent) {
|
|
381
399
|
watermarkContent = ''
|
|
382
400
|
}
|
|
383
401
|
localStorage.setItem(uuid, 'ok')
|
|
@@ -263,9 +263,18 @@ const apis = {
|
|
|
263
263
|
// 子表集合添加该新建的行。会触发watch subTableData的监控
|
|
264
264
|
gridParams.isChangePage = true
|
|
265
265
|
if (addRowIndex >= 0) {
|
|
266
|
-
|
|
266
|
+
const lastPageRowIndex = (this.currentPage - 1) * this.pageSize
|
|
267
|
+
const subTableRowIndex = lastPageRowIndex + addRowIndex
|
|
268
|
+
gridParams.addRowIndex = subTableRowIndex + 1
|
|
269
|
+
|
|
270
|
+
gridParams.subTableData.splice(subTableRowIndex, 0, row)
|
|
267
271
|
} else {
|
|
268
|
-
gridParams.subTableData.
|
|
272
|
+
let lastIndex = gridParams.subTableData.length
|
|
273
|
+
if(lastIndex <= 0){
|
|
274
|
+
lastIndex = -1
|
|
275
|
+
}
|
|
276
|
+
gridParams.subTableData.splice(lastIndex, 0, row)
|
|
277
|
+
gridParams.addRowIndex = gridParams.subTableData.length
|
|
269
278
|
}
|
|
270
279
|
} else {
|
|
271
280
|
// 子表不分页
|
|
@@ -1051,7 +1060,7 @@ const apis = {
|
|
|
1051
1060
|
if (canDelete === undefined || canDelete === true) {
|
|
1052
1061
|
if (gridParams.isSubTableShowPage !== undefined && gridParams.isSubTableShowPage === true) {
|
|
1053
1062
|
// 子表集合添加该新建的行。会触发watch subTableData的监控
|
|
1054
|
-
gridParams.
|
|
1063
|
+
gridParams.isDelete = true
|
|
1055
1064
|
const lastPageRowIndex = (this.currentPage - 1) * this.pageSize
|
|
1056
1065
|
const subTableRowIndex = lastPageRowIndex + rowIndex
|
|
1057
1066
|
|
|
@@ -1189,7 +1198,7 @@ const apis = {
|
|
|
1189
1198
|
const deleteIndexs = []
|
|
1190
1199
|
if (gridParams.isSubTableShowPage !== undefined && gridParams.isSubTableShowPage === true) {
|
|
1191
1200
|
// 子表集合添加该新建的行。会触发watch subTableData的监控
|
|
1192
|
-
gridParams.
|
|
1201
|
+
gridParams.isDelete = true
|
|
1193
1202
|
const indexes = this.getDeleteIndexes(gridParams.subTableData, deleteRows, rowKey)
|
|
1194
1203
|
for (const idx of indexes) {
|
|
1195
1204
|
gridParams.subTableData.splice(idx, 1)
|
|
@@ -203,7 +203,6 @@ import {
|
|
|
203
203
|
getExtraParam,
|
|
204
204
|
getFirstEditableColumn,
|
|
205
205
|
getGridParams,
|
|
206
|
-
getLastPageNum,
|
|
207
206
|
getSpanValuesForColumn,
|
|
208
207
|
getTableHeight,
|
|
209
208
|
isCanRefreshGrid,
|
|
@@ -211,7 +210,8 @@ import {
|
|
|
211
210
|
isHasEditOption,
|
|
212
211
|
isHasOptionFunction,
|
|
213
212
|
isObjectValueEqual,
|
|
214
|
-
rowBeforeValidate
|
|
213
|
+
rowBeforeValidate,
|
|
214
|
+
getRowIndexPage
|
|
215
215
|
} from './utils'
|
|
216
216
|
import Sortable from 'sortablejs'
|
|
217
217
|
import store from './store'
|
|
@@ -662,7 +662,6 @@ export default {
|
|
|
662
662
|
// 监控列表数据修改,列表作为表单编辑器中子表时使用
|
|
663
663
|
gridData: {
|
|
664
664
|
deep: true,
|
|
665
|
-
immediate: true,
|
|
666
665
|
handler: function (Val) {
|
|
667
666
|
if (!this.isSubTableShowPage) {
|
|
668
667
|
// 列表子表不分页时使用
|
|
@@ -679,14 +678,13 @@ export default {
|
|
|
679
678
|
// 列表子表分页时使用
|
|
680
679
|
const gridParams = store.get(this.code)
|
|
681
680
|
$emit(this, 'change-grid-data', this.subTableData)
|
|
682
|
-
if (gridParams.isChangePage !== undefined && gridParams.isChangePage) {
|
|
683
|
-
//
|
|
684
|
-
// 新建记录时跳转到最后一页
|
|
685
|
-
const lastPageNum = getLastPageNum(this.subTableData.length, this.pageSize)
|
|
681
|
+
if ((gridParams.isChangePage !== undefined && gridParams.isChangePage) || (gridParams.isDelete !== undefined && gridParams.isDelete)) {
|
|
682
|
+
// 表示新建记录 或 删除记录时
|
|
686
683
|
// 表示最后一页页码和当前页不同时需要切换页码
|
|
687
|
-
if (
|
|
688
|
-
//
|
|
689
|
-
this.
|
|
684
|
+
if (gridParams.isChangePage !== undefined && gridParams.isChangePage) {
|
|
685
|
+
// 新建记录 切换到新增记录所属的页码
|
|
686
|
+
const rowPage = getRowIndexPage(this.pageSize, gridParams.addRowIndex)
|
|
687
|
+
this.currentPage = rowPage
|
|
690
688
|
// 切换当前页码到最后一页的数据
|
|
691
689
|
this.changePage()
|
|
692
690
|
} else {
|
|
@@ -700,12 +698,16 @@ export default {
|
|
|
700
698
|
}
|
|
701
699
|
// 使用完状态还原
|
|
702
700
|
gridParams.isChangePage = false
|
|
701
|
+
gridParams.isDelete = false
|
|
703
702
|
} else {
|
|
704
703
|
// 表示不是子表新建记录
|
|
705
704
|
this.gridData = this.getSubTableGridData(this.subTableData)
|
|
706
705
|
gridParams.gridData = this.gridData
|
|
707
706
|
// 完成深拷贝,复制一份对象,行编辑时使用
|
|
708
707
|
gridParams.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)))
|
|
708
|
+
// 使用完状态还原
|
|
709
|
+
gridParams.isChangePage = false
|
|
710
|
+
gridParams.isDelete = false
|
|
709
711
|
}
|
|
710
712
|
}
|
|
711
713
|
}
|
|
@@ -801,6 +801,17 @@ export function getLastPageNum(total, rowsPerPage) {
|
|
|
801
801
|
return Math.ceil(total / rowsPerPage)
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
+
|
|
805
|
+
// 获得指定记录索引所属的页码
|
|
806
|
+
export function getRowIndexPage(rowsPerPage, addRowIndex) {
|
|
807
|
+
if (rowsPerPage === undefined || rowsPerPage === null || rowsPerPage === 0) {
|
|
808
|
+
return 1
|
|
809
|
+
} else if (addRowIndex === undefined || addRowIndex === null || addRowIndex === 0) {
|
|
810
|
+
return 1
|
|
811
|
+
} else {
|
|
812
|
+
return Math.ceil(addRowIndex / rowsPerPage)
|
|
813
|
+
}
|
|
814
|
+
}
|
|
804
815
|
// 纵向滚动条滚动最底部功能
|
|
805
816
|
export function scrollYToBottom(listCode) {
|
|
806
817
|
const scrollDivElement = document.querySelector('.' + listCode + ' .el-table--scrollable-y .el-table__body-wrapper')
|
package/src/utils/common-util.js
CHANGED
|
@@ -826,7 +826,8 @@ export function getKkFilePreviewUrl(previewUrl) {
|
|
|
826
826
|
let myPreviewUrl = getKkFileBackendUrl()+'?url='+encodeURIComponent(Base64.encode(previewUrl))
|
|
827
827
|
return new Promise((resolve,reject)=>{
|
|
828
828
|
getWatermarkSetting().then((watermark)=>{
|
|
829
|
-
if(watermark){
|
|
829
|
+
if(watermark && watermark.useRange && watermark.useRange.indexOf('annex')>=0){
|
|
830
|
+
// 表示适用范围有附件时
|
|
830
831
|
myPreviewUrl = myPreviewUrl + '&watermarkTxt='+watermark.content+'&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100'
|
|
831
832
|
}
|
|
832
833
|
resolve(myPreviewUrl)
|
package/src/utils/watermark.js
CHANGED
|
@@ -108,7 +108,8 @@ export function getWatermarkSetting(){
|
|
|
108
108
|
// 该方法只允许调用一次
|
|
109
109
|
export function showWatermarkNew() {
|
|
110
110
|
getWatermarkSetting().then((watermark)=>{
|
|
111
|
-
if(watermark){
|
|
111
|
+
if(watermark && watermark.useRange && watermark.useRange.indexOf('page')>=0){
|
|
112
|
+
// 表示影响范围有页面,则页面显示水印
|
|
112
113
|
setWatermark(watermark.content, watermark)
|
|
113
114
|
}
|
|
114
115
|
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { A as a, e as s } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
a as ArchitectureModule,
|
|
10
|
-
s as createArchitectureServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { G, f as s } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
G as GitGraphModule,
|
|
10
|
-
s as createGitGraphServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { I as c, c as f } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
c as InfoModule,
|
|
10
|
-
f as createInfoServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { P as c, a as s } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
c as PacketModule,
|
|
10
|
-
s as createPacketServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { b as s, d as c } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
s as PieModule,
|
|
10
|
-
c as createPieServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { R as d, g as s } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
d as RadarModule,
|
|
10
|
-
s as createRadarServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { T as s, h as T } from "./mermaid-parser.core-CH9ryA1K-d39d87be.js";
|
|
2
|
-
import "./index-d1287bee.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-d0bfa3c9.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-d0d4bbf2.js";
|
|
6
|
-
import "./min-BngCxx8g-7b0ae609.js";
|
|
7
|
-
import "./clone-CEJtuQzg-88db7016.js";
|
|
8
|
-
export {
|
|
9
|
-
s as TreemapModule,
|
|
10
|
-
T as createTreemapServices
|
|
11
|
-
};
|