agilebuilder-ui 1.1.80 → 1.1.81-tmp1
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-79ff6c9c.js → 401-559680c3.js} +1 -1
- package/lib/{404-ea2bd6a4.js → 404-525cb9e6.js} +1 -1
- package/lib/{_baseUniq-BXtq6_NW-b5fc489d.js → _baseUniq-BXtq6_NW-195b7624.js} +2 -2
- package/lib/{arc-Js_tyW10-b52fc23c.js → arc-Js_tyW10-5f2bdd5b.js} +1 -1
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-b4d13c1b.js +11 -0
- package/lib/{architectureDiagram-SUXI7LT5-kyYGGrHN-dec821e8.js → architectureDiagram-SUXI7LT5-kyYGGrHN-7c386c1d.js} +8 -8
- package/lib/{blockDiagram-6J76NXCF-IAr4zDV3-0ffdf98a.js → blockDiagram-6J76NXCF-IAr4zDV3-2a38c333.js} +7 -7
- package/lib/{c4Diagram-6F6E4RAY-Dv27rXcJ-a632eb32.js → c4Diagram-6F6E4RAY-Dv27rXcJ-73b0e533.js} +3 -3
- package/lib/{channel-BBZy6zOT-91e52a0c.js → channel-BBZy6zOT-737b9e4e.js} +1 -1
- package/lib/{chunk-353BL4L5-Dn_Y_Yna-764d0356.js → chunk-353BL4L5-Dn_Y_Yna-86517913.js} +1 -1
- package/lib/{chunk-67H74DCK-Br5U8bfD-d8f38128.js → chunk-67H74DCK-Br5U8bfD-35e4a15f.js} +1 -1
- package/lib/{chunk-AACKK3MU-DH_MKxca-5fcc97ad.js → chunk-AACKK3MU-DH_MKxca-351457bb.js} +1 -1
- package/lib/{chunk-BFAMUDN2-DHLCoYMN-5c6fc011.js → chunk-BFAMUDN2-DHLCoYMN-18d15356.js} +1 -1
- package/lib/{chunk-E2GYISFI-DQPHyyga-dac1d017.js → chunk-E2GYISFI-DQPHyyga-af4c38c9.js} +1 -1
- package/lib/{chunk-OW32GOEJ-CQOSE6Bn-a1d9f4fa.js → chunk-OW32GOEJ-CQOSE6Bn-1e9df6d6.js} +3 -3
- package/lib/{chunk-SKB7J2MH-BlwHRDiW-5cb0273d.js → chunk-SKB7J2MH-BlwHRDiW-9a6869aa.js} +1 -1
- package/lib/{chunk-SZ463SBG-DEp8buKJ-9c8a0224.js → chunk-SZ463SBG-DEp8buKJ-537c2c6c.js} +4 -4
- package/lib/{classDiagram-M3E45YP4-D0ySDe-v-83ba13b1.js → classDiagram-M3E45YP4-D0ySDe-v-25beaa6f.js} +6 -6
- package/lib/{classDiagram-v2-YAWTLIQI-D0ySDe-v-83ba13b1.js → classDiagram-v2-YAWTLIQI-D0ySDe-v-25beaa6f.js} +6 -6
- package/lib/{clone-CEJtuQzg-87b6fde3.js → clone-CEJtuQzg-2dcec15b.js} +1 -1
- package/lib/{dagre-JOIXM2OF-5zx0JY2T-2fc1b791.js → dagre-JOIXM2OF-5zx0JY2T-4770e35a.js} +7 -7
- package/lib/{diagram-5UYTHUR4-C19nyAKc-a2566e15.js → diagram-5UYTHUR4-C19nyAKc-2ff59de4.js} +7 -7
- package/lib/{diagram-VMROVX33-DkGwo-hj-51a4fa89.js → diagram-VMROVX33-DkGwo-hj-1a449d84.js} +8 -8
- package/lib/{diagram-ZTM2IBQH-CBgHCu9L-336d2a44.js → diagram-ZTM2IBQH-CBgHCu9L-79cbe80b.js} +7 -7
- package/lib/{erDiagram-3M52JZNH-cttdAJXW-fadfd61d.js → erDiagram-3M52JZNH-cttdAJXW-2d654d38.js} +5 -5
- package/lib/{flowDiagram-KYDEHFYC-9HpsqDdB-c2062dc5.js → flowDiagram-KYDEHFYC-9HpsqDdB-e95c6355.js} +6 -6
- package/lib/{ganttDiagram-EK5VF46D-8QB3ofs6-8531f1a3.js → ganttDiagram-EK5VF46D-8QB3ofs6-e85abbd4.js} +3 -3
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-38ba5de5.js +11 -0
- package/lib/{gitGraphDiagram-GW3U2K7C-DNzc0Vx_-4b8af9f9.js → gitGraphDiagram-GW3U2K7C-DNzc0Vx_-30e86ada.js} +8 -8
- package/lib/{graph-3zJxsO-i-8c5c3145.js → graph-3zJxsO-i-7cd62c17.js} +3 -3
- package/lib/{iframe-page-bf3581e2.js → iframe-page-aec49896.js} +1 -1
- package/lib/{index-13e73297.js → index-f25a0f8b.js} +2220 -2077
- package/lib/info-63CPKGFF-C8sYWczU-f25456bb.js +11 -0
- package/lib/{infoDiagram-LHK5PUON-C-vFFPTf-32a28f59.js → infoDiagram-LHK5PUON-C-vFFPTf-94039349.js} +6 -6
- package/lib/{journeyDiagram-EWQZEKCU-BJrw4-AG-0db52f9d.js → journeyDiagram-EWQZEKCU-BJrw4-AG-eff80a35.js} +5 -5
- package/lib/{kanban-definition-ZSS6B67P-BptAnqU--09df3bd0.js → kanban-definition-ZSS6B67P-BptAnqU--ebfdba4e.js} +3 -3
- package/lib/{layout-sGZIJplX-89308221.js → layout-sGZIJplX-49fc0d6f.js} +5 -5
- package/lib/{linear-DqgVh5FN-22bf30ca.js → linear-DqgVh5FN-f87c9e12.js} +1 -1
- package/lib/{mermaid-parser.core-CH9ryA1K-54fad62d.js → mermaid-parser.core-CH9ryA1K-246804df.js} +12 -12
- package/lib/{mermaid.core-CAqkCmS1-1a2bb6c5.js → mermaid.core-CAqkCmS1-889e3b7e.js} +30 -30
- package/lib/{min-BngCxx8g-f2fc5ef1.js → min-BngCxx8g-fdc6e8f6.js} +3 -3
- package/lib/{mindmap-definition-6CBA2TL7-Cp_EeEsh-5257b407.js → mindmap-definition-6CBA2TL7-Cp_EeEsh-45ad4a61.js} +2 -2
- package/lib/packet-HUATNLJX-bfFWFja0-e991049a.js +11 -0
- package/lib/pie-WTHONI2E-QPrWs3SR-e794f4b5.js +11 -0
- package/lib/{pieDiagram-NIOCPIFQ-C46Y_4C6-481f3d87.js → pieDiagram-NIOCPIFQ-C46Y_4C6-9a038b76.js} +8 -8
- package/lib/{quadrantDiagram-2OG54O6I-Dgf6d6F_-369bcedf.js → quadrantDiagram-2OG54O6I-Dgf6d6F_-3791343e.js} +3 -3
- package/lib/radar-NJJJXTRR-BnUCJhQL-79f1b4ac.js +11 -0
- package/lib/{requirementDiagram-QOLK2EJ7-CSF6N7HA-32c846ee.js → requirementDiagram-QOLK2EJ7-CSF6N7HA-06551e7c.js} +4 -4
- package/lib/{sankeyDiagram-4UZDY2LN-BAHB7dMS-8621ea6c.js → sankeyDiagram-4UZDY2LN-BAHB7dMS-ae050112.js} +2 -2
- package/lib/{sequenceDiagram-SKLFT4DO-10gLJ50N-cedf74ac.js → sequenceDiagram-SKLFT4DO-10gLJ50N-75fe8e81.js} +4 -4
- package/lib/{stateDiagram-MI5ZYTHO-D6p6nCaj-2184b52e.js → stateDiagram-MI5ZYTHO-D6p6nCaj-a62d5ef6.js} +9 -9
- package/lib/{stateDiagram-v2-5AN5P6BG-DaN5hC-t-22338951.js → stateDiagram-v2-5AN5P6BG-DaN5hC-t-d7ab7c41.js} +5 -5
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +113 -113
- package/lib/{tab-content-iframe-index-49bddc0a.js → tab-content-iframe-index-448977a0.js} +1 -1
- package/lib/{tab-content-index-e371b16f.js → tab-content-index-cdf2780f.js} +1 -1
- package/lib/{tache-subprocess-history-59e976f7.js → tache-subprocess-history-eeaa7770.js} +1 -1
- package/lib/{timeline-definition-MYPXXCX6-gLqnWxDu-f9e9fe2e.js → timeline-definition-MYPXXCX6-gLqnWxDu-4affe323.js} +3 -3
- package/lib/treemap-75Q7IDZK-B2atdfMH-7cb5e6f2.js +11 -0
- package/lib/{xychartDiagram-H2YORKM3-Whqa4ezL-74aac2bd.js → xychartDiagram-H2YORKM3-Whqa4ezL-7e67fbaa.js} +3 -3
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +7 -22
- package/packages/department-user-tree-inline/src/search-result.vue +2 -9
- package/packages/fs-preview/src/fs-preview.vue +60 -68
- package/packages/fs-upload-new/src/fs-preview-new.vue +4 -13
- package/packages/scan-code-input/src/scan-code-input.vue +1 -1
- package/packages/scan-code-input-browser/src/scan-code-input.vue +13 -23
- package/packages/super-grid/src/columns-config.vue +86 -25
- package/packages/super-grid/src/list-tabs.vue +70 -0
- package/packages/super-grid/src/super-grid-service.js +4 -0
- package/packages/super-grid/src/super-grid.vue +101 -9
- package/packages/super-grid/src/tab-config.vue +295 -0
- package/packages/workflow-history-list/src/workflow-history-list.vue +4 -18
- package/src/i18n/langs/cn.js +10 -6
- package/src/i18n/langs/en.js +10 -10
- package/src/utils/jump-page-utils.js +1 -1
- package/src/utils/workflow-util.js +2 -5
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-6b17acd8.js +0 -11
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-3e09653d.js +0 -11
- package/lib/info-63CPKGFF-C8sYWczU-1e29ebd2.js +0 -11
- package/lib/packet-HUATNLJX-bfFWFja0-667f6600.js +0 -11
- package/lib/pie-WTHONI2E-QPrWs3SR-e78315cf.js +0 -11
- package/lib/radar-NJJJXTRR-BnUCJhQL-da5b5f7d.js +0 -11
- package/lib/treemap-75Q7IDZK-B2atdfMH-54046a6a.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-f25a0f8b.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 y, aa as E, ab as L, ac as $, ad as N, ae as F, af as x, ag as k, ah as O, ai as W, aj as R, ak as D, al as _, am as B } from "./index-
|
|
1
|
+
import { a8 as y, aa as E, ab as L, ac as $, ad as N, ae as F, af as x, ag as k, ah as O, ai as W, aj as R, ak as D, al as _, am as B } from "./index-f25a0f8b.js";
|
|
2
2
|
import { createVNode as g, resolveComponent as c, openBlock as u, createBlock as f, withCtx as p, renderSlot as A, createElementBlock as b, normalizeClass as q, createCommentVNode as M, Fragment as T, renderList as S, defineComponent as V, h as m, createTextVNode as U, toDisplayString as P, TransitionGroup as j, createElementVNode as v } from "vue";
|
|
3
3
|
$(["sidebar", "protectedRouters"]);
|
|
4
4
|
const J = y(V({ name: "MenuItem", functional: !0, props: { icon: { type: String, default: "" }, title: { type: String, default: "" }, hasChildren: { type: Boolean, default: !1 }, isRoot: { type: Boolean, default: !1 }, code: { type: Boolean, default: !1 }, undoneTaskCount: { type: Number, default: 0 }, unreadTaskCount: { type: Number, default: 0 }, undoneDeptTaskCount: { type: Number, default: 0 }, menuLayer: { type: Number, default: null } }, render(e) {
|
|
@@ -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-f25a0f8b.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-889e3b7e.js";
|
|
2
|
+
import { d as K } from "./arc-Js_tyW10-5f2bdd5b.js";
|
|
3
|
+
import "./index-f25a0f8b.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-246804df.js";
|
|
2
|
+
import "./index-f25a0f8b.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./mermaid.core-CAqkCmS1-889e3b7e.js";
|
|
5
|
+
import "./_baseUniq-BXtq6_NW-195b7624.js";
|
|
6
|
+
import "./min-BngCxx8g-fdc6e8f6.js";
|
|
7
|
+
import "./clone-CEJtuQzg-2dcec15b.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-889e3b7e.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-f87c9e12.js";
|
|
5
|
+
import "./index-f25a0f8b.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
|
@@ -169,8 +169,7 @@ export default {
|
|
|
169
169
|
// 记忆选择数据, 搜索框获得焦点后,下拉显示最近选中的10个人,倒序排列,最后选中的在最上面显示。
|
|
170
170
|
memoryCacheData: [],
|
|
171
171
|
ElIconSearch,
|
|
172
|
-
canShowOrgTree: false
|
|
173
|
-
isShowingAllUserAlert: false
|
|
172
|
+
canShowOrgTree: false
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
175
|
name: 'InlineDepartmentUserMultiTree',
|
|
@@ -377,9 +376,7 @@ export default {
|
|
|
377
376
|
}
|
|
378
377
|
return null
|
|
379
378
|
} else {
|
|
380
|
-
// only show the alert once per interaction
|
|
381
379
|
this.alertByAllUser()
|
|
382
|
-
return null
|
|
383
380
|
}
|
|
384
381
|
},
|
|
385
382
|
isContainAllUser() {
|
|
@@ -413,9 +410,8 @@ export default {
|
|
|
413
410
|
// 如果没有选择所有用户,则可以继续选择用户
|
|
414
411
|
this.checkedNodeToSelectResult(data)
|
|
415
412
|
} else {
|
|
416
|
-
debugger
|
|
417
413
|
// 如果已选择所有用户,提示用户,先移除所有用户
|
|
418
|
-
|
|
414
|
+
this.alertByAllUser()
|
|
419
415
|
}
|
|
420
416
|
} else {
|
|
421
417
|
this.cancelChildCheckedNodes(data)
|
|
@@ -423,28 +419,17 @@ export default {
|
|
|
423
419
|
},
|
|
424
420
|
// 由于选择了所有用户,再次选择时的提示信息
|
|
425
421
|
alertByAllUser() {
|
|
426
|
-
// 防止重复显示提示框,如果已显示提示框,则不再显示
|
|
427
|
-
if (this.isShowingAllUserAlert) {
|
|
428
|
-
return
|
|
429
|
-
}
|
|
430
|
-
this.isShowingAllUserAlert = true
|
|
431
|
-
// debugger
|
|
432
422
|
this.$alert(
|
|
433
423
|
this.$t('imatrixUIMessage.pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel'),
|
|
434
424
|
this.$t('imatrixUIMessage.tips'),
|
|
435
425
|
{
|
|
436
426
|
confirmButtonText: this.$t('imatrixUIPublicModel.sure')
|
|
437
427
|
}
|
|
438
|
-
)
|
|
439
|
-
.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
})
|
|
444
|
-
.finally(() => {
|
|
445
|
-
// 无论用户点击确定还是取消,都允许再次显示提示框
|
|
446
|
-
this.isShowingAllUserAlert = false
|
|
447
|
-
})
|
|
428
|
+
).then(() => {
|
|
429
|
+
if (this.$refs.deparmentUserTree) {
|
|
430
|
+
this.$refs.deparmentUserTree.setCheckedKeys([])
|
|
431
|
+
}
|
|
432
|
+
})
|
|
448
433
|
},
|
|
449
434
|
// 选中树节点处理
|
|
450
435
|
checkedNodeToSelectResult(data) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<div :title="scope.row.name + '(' + scope.row.enName + ')' + '[' + scope.row.loginName + ']'">
|
|
82
82
|
<span>{{ scope.row.name + '(' + scope.row.enName + ')' }}[{{ scope.row.loginName }}]</span>
|
|
83
83
|
</div>
|
|
84
|
-
<div
|
|
84
|
+
<div style="color: #ccc" :title="getDeptName(scope.row)">
|
|
85
85
|
{{ getDeptName(scope.row) }}
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
<div :title="scope.row.name + '[' + scope.row.loginName + ']'">
|
|
90
90
|
<span>{{ scope.row.name }}[{{ scope.row.loginName }}]</span>
|
|
91
91
|
</div>
|
|
92
|
-
<div
|
|
92
|
+
<div style="color: #ccc" :title="getDeptName(scope.row)">
|
|
93
93
|
{{ getDeptName(scope.row) }}
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
@@ -271,11 +271,4 @@ export default {
|
|
|
271
271
|
.inline-input-custom {
|
|
272
272
|
width: 98%;
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
.dept-name-wrap {
|
|
276
|
-
color: #ccc;
|
|
277
|
-
white-space: normal;
|
|
278
|
-
font-size: 12px;
|
|
279
|
-
word-break: break-word;
|
|
280
|
-
}
|
|
281
274
|
</style>
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
</span>
|
|
12
12
|
</template>
|
|
13
13
|
<div v-if="firstFileName && !uploading" ref="toolRef" class="fs-preview-tool">
|
|
14
|
+
<slot name="tool-prefix" :item="getFirstFile()"></slot>
|
|
14
15
|
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('fsUpload.preview')">
|
|
15
16
|
<super-icon @click="previewFirst()" iconValue="amb-icon-yulan" />
|
|
16
17
|
</el-tooltip>
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
<el-tooltip v-if="enableDelete && !disabled" :content="$t('fsUpload.delete')">
|
|
21
22
|
<super-icon @click="deleteFirst()" iconValue="amb-color-icon-del" />
|
|
22
23
|
</el-tooltip>
|
|
24
|
+
<slot name="tool-suffix" :item="getFirstFile()"></slot>
|
|
23
25
|
<el-divider v-if="showMultipleFile" direction="vertical" />
|
|
24
26
|
<el-popover :width="450" trigger="click">
|
|
25
27
|
<template #reference>
|
|
@@ -186,33 +188,23 @@ export default {
|
|
|
186
188
|
clearTimeout(this.time)
|
|
187
189
|
},
|
|
188
190
|
getFirstFile() {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
this.queryFileInfoByUuids(uuids).then((result) => {
|
|
195
|
-
const uuid0 = uuids[0]
|
|
196
|
-
const fileInfo = result.find((item) => item.serverPath === uuid0)
|
|
197
|
-
resolve(fileInfo)
|
|
198
|
-
})
|
|
199
|
-
} else {
|
|
200
|
-
resolve({ showName: showName, serverPath: serverPath })
|
|
201
|
-
}
|
|
191
|
+
const { showName, serverPath } = this.getShowNameAndUuidKey()
|
|
192
|
+
if (serverPath) {
|
|
193
|
+
const uuids = serverPath.split(',')
|
|
194
|
+
if (uuids.length > 1) {
|
|
195
|
+
return { showName: showName.split(',')[0], serverPath: serverPath.split(',')[0] }
|
|
202
196
|
} else {
|
|
203
|
-
|
|
197
|
+
return { showName: showName, serverPath: serverPath }
|
|
204
198
|
}
|
|
205
|
-
}
|
|
199
|
+
}
|
|
200
|
+
return null
|
|
206
201
|
},
|
|
207
202
|
previewFirst() {
|
|
208
|
-
this.
|
|
209
|
-
this.previewSingle(fileInfo)
|
|
210
|
-
})
|
|
203
|
+
this.previewSingle(this.getFirstFile())
|
|
211
204
|
},
|
|
212
205
|
downloadFirst() {
|
|
213
|
-
this.getFirstFile()
|
|
214
|
-
|
|
215
|
-
})
|
|
206
|
+
const { showName, serverPath } = this.getFirstFile()
|
|
207
|
+
this.download(showName, serverPath)
|
|
216
208
|
},
|
|
217
209
|
previewSingle(fileInfo) {
|
|
218
210
|
fileInfo = packageFile(fileInfo.showName, fileInfo.serverPath)
|
|
@@ -229,25 +221,23 @@ export default {
|
|
|
229
221
|
return
|
|
230
222
|
}
|
|
231
223
|
const uuids = serverPath.split(',')
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (
|
|
236
|
-
this.
|
|
237
|
-
window.$vueApp.config.globalProperties.baseURL +
|
|
238
|
-
'/common/super-form/downloads?' +
|
|
239
|
-
'serverPath=' +
|
|
240
|
-
result[i].serverPath +
|
|
241
|
-
'&jwt=' +
|
|
242
|
-
token
|
|
243
|
-
)
|
|
244
|
-
if (result[i].serverPath === fileInfo.serverPath) {
|
|
245
|
-
this.initialIndex = this.previewImageListInfo.length - 1
|
|
246
|
-
}
|
|
224
|
+
const token = getToken()
|
|
225
|
+
for (let i = 0; i < uuids.length; i++) {
|
|
226
|
+
if (isImage(showName.split(',')[i])) {
|
|
227
|
+
if (uuids[i] === fileInfo.serverPath) {
|
|
228
|
+
this.initialIndex = i
|
|
247
229
|
}
|
|
230
|
+
this.previewImageListInfo.push(
|
|
231
|
+
window.$vueApp.config.globalProperties.baseURL +
|
|
232
|
+
'/common/super-form/downloads?' +
|
|
233
|
+
'serverPath=' +
|
|
234
|
+
uuids[i] +
|
|
235
|
+
'&jwt=' +
|
|
236
|
+
token
|
|
237
|
+
)
|
|
248
238
|
}
|
|
249
|
-
|
|
250
|
-
|
|
239
|
+
}
|
|
240
|
+
this.showPreviewSingleImage = true
|
|
251
241
|
} else {
|
|
252
242
|
this.previewDoc(fileInfo)
|
|
253
243
|
}
|
|
@@ -287,8 +277,18 @@ export default {
|
|
|
287
277
|
if (serverPath) {
|
|
288
278
|
const uuids = serverPath.split(',')
|
|
289
279
|
if (uuids.length > 1) {
|
|
290
|
-
|
|
291
|
-
|
|
280
|
+
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
281
|
+
const baseAPI = window.$vueApp.config.globalProperties.baseAPI
|
|
282
|
+
let tempAction = baseURL + '/common/fs-upload/search-file-names'
|
|
283
|
+
if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
|
|
284
|
+
tempAction = baseAPI + '/api/search-file-names'
|
|
285
|
+
}
|
|
286
|
+
tempAction = getRelativeBaseUrl(tempAction)
|
|
287
|
+
this.$http.post(tempAction, uuids).then((result) => {
|
|
288
|
+
this.fileList = []
|
|
289
|
+
uuids.forEach((uuid) => {
|
|
290
|
+
this.fileList.push({ showName: result[uuid], serverPath: uuid })
|
|
291
|
+
})
|
|
292
292
|
this.showPreviewMulti = true
|
|
293
293
|
})
|
|
294
294
|
} else {
|
|
@@ -304,24 +304,6 @@ export default {
|
|
|
304
304
|
// that.time = setTimeout(() => {
|
|
305
305
|
// }, 200)
|
|
306
306
|
},
|
|
307
|
-
queryFileInfoByUuids(uuids) {
|
|
308
|
-
return new Promise((resolve, reject) => {
|
|
309
|
-
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
310
|
-
const baseAPI = window.$vueApp.config.globalProperties.baseAPI
|
|
311
|
-
let tempAction = baseURL + '/common/fs-upload/search-file-names'
|
|
312
|
-
if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
|
|
313
|
-
tempAction = baseAPI + '/api/search-file-names'
|
|
314
|
-
}
|
|
315
|
-
tempAction = getRelativeBaseUrl(tempAction)
|
|
316
|
-
const fileInfos = []
|
|
317
|
-
this.$http.post(tempAction, uuids).then((result) => {
|
|
318
|
-
uuids.forEach((uuid) => {
|
|
319
|
-
fileInfos.push({ showName: result[uuid], serverPath: uuid })
|
|
320
|
-
})
|
|
321
|
-
resolve(fileInfos)
|
|
322
|
-
})
|
|
323
|
-
})
|
|
324
|
-
},
|
|
325
307
|
previewDoc(fileInfo) {
|
|
326
308
|
const token = getToken()
|
|
327
309
|
const showName = fileInfo.showName
|
|
@@ -407,6 +389,7 @@ export default {
|
|
|
407
389
|
isShowWatermark +
|
|
408
390
|
'&watermark=' +
|
|
409
391
|
watermarkContent
|
|
392
|
+
debugger
|
|
410
393
|
window.open(src)
|
|
411
394
|
},
|
|
412
395
|
analysisFileSetObj(fileSetObj, isSql) {
|
|
@@ -452,22 +435,31 @@ export default {
|
|
|
452
435
|
if (serverPath) {
|
|
453
436
|
const uuids = serverPath.split(',')
|
|
454
437
|
if (uuids.length > 1) {
|
|
455
|
-
|
|
456
|
-
|
|
438
|
+
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
439
|
+
const baseAPI = window.$vueApp.config.globalProperties.baseAPI
|
|
440
|
+
let tempAction = baseURL + '/common/fs-upload/search-file-names'
|
|
441
|
+
if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
|
|
442
|
+
tempAction = baseAPI + '/api/search-file-names'
|
|
443
|
+
}
|
|
444
|
+
tempAction = getRelativeBaseUrl(tempAction)
|
|
445
|
+
this.$http.post(tempAction, uuids).then((result) => {
|
|
446
|
+
this.fileList = []
|
|
447
|
+
uuids.forEach((uuid) => {
|
|
448
|
+
this.fileList.push({ showName: result[uuid], serverPath: uuid })
|
|
449
|
+
})
|
|
457
450
|
})
|
|
458
451
|
}
|
|
459
452
|
}
|
|
460
453
|
return this.fileList
|
|
461
454
|
},
|
|
462
455
|
deleteFirst() {
|
|
463
|
-
this.getFirstFile()
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
})
|
|
456
|
+
const fileInfo = this.getFirstFile()
|
|
457
|
+
this.$emit('delete-file', fileInfo)
|
|
458
|
+
this.fileList = this.fileList.filter((item) => item.serverPath !== fileInfo.serverPath)
|
|
459
|
+
this.$message({
|
|
460
|
+
showClose: true,
|
|
461
|
+
type: 'success',
|
|
462
|
+
message: getI18n().t('fsUpload.deleteSuccessful')
|
|
471
463
|
})
|
|
472
464
|
},
|
|
473
465
|
deleteFile(fileInfo) {
|
|
@@ -48,13 +48,9 @@
|
|
|
48
48
|
<el-icon><Delete /></el-icon>
|
|
49
49
|
</span>
|
|
50
50
|
</span>
|
|
51
|
-
<el-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
:url-list="previewSrcList"
|
|
55
|
-
:initial-index="initialIndex"
|
|
56
|
-
@close="dialogVisible = false"
|
|
57
|
-
/>
|
|
51
|
+
<el-dialog v-model="dialogVisible" :title="t('fsUpload.preview')" width="500">
|
|
52
|
+
<el-image :preview-src-list="previewSrcList" :src="previewImageInfo.src" />
|
|
53
|
+
</el-dialog>
|
|
58
54
|
</div>
|
|
59
55
|
</template>
|
|
60
56
|
<style scoped>
|
|
@@ -160,7 +156,6 @@ const previewImageInfo = ref<any>({})
|
|
|
160
156
|
const previewSrcList = ref<string[]>([])
|
|
161
157
|
const isMobile = ref(isMobileBrowser())
|
|
162
158
|
const emits = defineEmits(['remove'])
|
|
163
|
-
const initialIndex = ref(0)
|
|
164
159
|
let watermarkCache = null
|
|
165
160
|
getWatermarkSetting().then((data) => {
|
|
166
161
|
watermarkCache = data
|
|
@@ -252,14 +247,10 @@ const preview = (showName: string, serverPath: string) => {
|
|
|
252
247
|
if (isImg) {
|
|
253
248
|
previewImageInfo.value.src = getPreviewSrc(showName, serverPath)
|
|
254
249
|
const srcList: string[] = []
|
|
255
|
-
const currentIndex = props.fileList.findIndex((item: any) => item.serverPath === serverPath)
|
|
256
250
|
props.fileList.forEach((item: any) => {
|
|
257
251
|
const fileName = item.showName ? item.showName : item.name
|
|
258
|
-
|
|
259
|
-
srcList.push(getPreviewSrc(fileName, item.serverPath))
|
|
260
|
-
}
|
|
252
|
+
srcList.push(getPreviewSrc(fileName, item.serverPath))
|
|
261
253
|
})
|
|
262
|
-
initialIndex.value = currentIndex >= 0 ? currentIndex : 0
|
|
263
254
|
previewSrcList.value = srcList
|
|
264
255
|
dialogVisible.value = true
|
|
265
256
|
} else {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<video
|
|
2
|
+
<div class>
|
|
3
|
+
<video
|
|
4
|
+
id="video"
|
|
5
|
+
ref="video"
|
|
6
|
+
height="300"
|
|
7
|
+
class="video vjs-fluid"
|
|
8
|
+
autoplay
|
|
9
|
+
@click="clickVideo"
|
|
10
|
+
/>
|
|
4
11
|
<div v-show="tipShow" class="tip">
|
|
5
12
|
{{ tipMsg }}
|
|
6
13
|
</div>
|
|
@@ -10,7 +17,6 @@
|
|
|
10
17
|
<script type="text/ecmascript-6">
|
|
11
18
|
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer';
|
|
12
19
|
import { BrowserMultiFormatReader } from '@zxing/library'
|
|
13
|
-
import { getSessionCache } from '../../../src/utils/auth';
|
|
14
20
|
|
|
15
21
|
export default {name: 'ScanCodeInputBrowser',
|
|
16
22
|
components: {},
|
|
@@ -28,23 +34,11 @@ data() {
|
|
|
28
34
|
vin: null,
|
|
29
35
|
tipMsg: this.$t('messageVideo.attemptingToIdentify'),
|
|
30
36
|
tipShow: false,
|
|
31
|
-
isVideo: false
|
|
32
|
-
isShow: false // 是否显示浏览器拍照
|
|
37
|
+
isVideo: false
|
|
33
38
|
};
|
|
34
39
|
},
|
|
35
40
|
created() {
|
|
36
|
-
|
|
37
|
-
if (window.customMediea && window.customMediea.customScan && isCustomMediea && 'true' === isCustomMediea) {
|
|
38
|
-
// 表示需要集成第三方扫码。
|
|
39
|
-
console.log('集成第三方扫码')
|
|
40
|
-
// 不需要显示浏览器拍照
|
|
41
|
-
this.isShow = false
|
|
42
|
-
const that = this
|
|
43
|
-
window.customMediea.customScan((val)=>{that.setScanResult(val)})
|
|
44
|
-
} else {
|
|
45
|
-
this.isShow = true
|
|
46
|
-
this.openScan()
|
|
47
|
-
}
|
|
41
|
+
this.openScan()
|
|
48
42
|
},
|
|
49
43
|
beforeUnmount() {
|
|
50
44
|
console.log('销毁定时器')
|
|
@@ -112,12 +106,8 @@ methods: {
|
|
|
112
106
|
$emit(this, "close",this.vin)
|
|
113
107
|
this.codeReader.reset()
|
|
114
108
|
}
|
|
115
|
-
},
|
|
116
|
-
setScanResult(value){
|
|
117
|
-
console.log('集成第三方扫码,setScanResult=', value)
|
|
118
|
-
$emit(this, "close",value)
|
|
119
109
|
}
|
|
120
110
|
},
|
|
121
|
-
emits:['close',]
|
|
122
|
-
}
|
|
111
|
+
emits:['close',]
|
|
112
|
+
}
|
|
123
113
|
</script>
|