agilebuilder-ui 1.1.38 → 1.1.39-sit2
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-d4103b15.js → 401-5847b8a0.js} +1 -1
- package/lib/{404-bbbf1615.js → 404-1af24e99.js} +1 -1
- package/lib/{iframe-page-eeb30592.js → iframe-page-1cdbd4ea.js} +1 -1
- package/lib/{index-93dc7bbc.js → index-a31ac238.js} +13767 -13658
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +82 -79
- package/lib/{tab-content-iframe-index-82db069a.js → tab-content-iframe-index-0c2d8fd9.js} +1 -1
- package/lib/{tab-content-index-06291a81.js → tab-content-index-7a255c7a.js} +22 -22
- package/lib/{tache-subprocess-history-661219ec.js → tache-subprocess-history-4be63968.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +3 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +2 -1
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -1
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +3 -1
- package/packages/fs-preview/src/fs-preview.vue +44 -7
- package/packages/fs-upload-list/src/fs-upload-list.vue +50 -24
- package/packages/fs-upload-new/src/fs-button-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +24 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/organization-input/src/organization-input.vue +3 -3
- package/packages/super-grid/src/components/mobile-table-card.jsx +0 -1
- package/packages/super-grid/src/custom-formatter.js +1 -1
- package/packages/super-grid/src/dynamic-input.vue +16 -22
- package/packages/super-grid/src/normal-column-content.vue +25 -13
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-item.vue +75 -17
- package/packages/super-grid/src/search-form-mobile.vue +5 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +5 -0
- package/packages/super-grid/src/search-methods.js +3 -1
- package/packages/super-grid/src/super-grid.vue +13 -0
- package/packages/utils/organization.ts +56 -40
- package/packages/workflow-history-list/src/workflow-history-list.vue +41 -3
- package/src/api/sso-service.js +2 -1
- package/src/directives/permission/permission.js +7 -1
- package/src/i18n/langs/cn.js +10 -3
- package/src/i18n/langs/en.js +10 -3
- package/src/permission.js +2 -1
- package/src/store/modules/user.js +4 -1
- package/src/styles/table.scss +8 -7
- package/src/utils/common-util.js +1 -1
- package/src/utils/file-util.ts +12 -4
- package/src/utils/jump-page-utils.js +1 -0
- package/src/utils/permission.js +2 -2
- package/src/utils/permissionAuth.js +11 -7
- package/src/utils/util.js +19 -0
- package/src/views/dsc-component/Sidebar/Item.vue +18 -7
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/dsc-component/Sidebar/index.vue +0 -2
- package/src/views/layout/components/Menubar/Item.vue +20 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +46 -18
- package/vite.config.js +1 -2
|
@@ -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-a31ac238.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,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { resolveComponent as u, openBlock as
|
|
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-a31ac238.js";
|
|
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);
|
|
5
5
|
} }, watch: { $route() {
|
|
@@ -8,7 +8,7 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
8
8
|
this.getBreadcrumb();
|
|
9
9
|
}, methods: { getBreadcrumb() {
|
|
10
10
|
const { params: e } = this.$route;
|
|
11
|
-
this.$route.matched;
|
|
11
|
+
console.log("this.$route.matched==", this.$route.matched);
|
|
12
12
|
let t = this.$route.matched.filter((a) => {
|
|
13
13
|
if (a.name) {
|
|
14
14
|
var r = _(a.path);
|
|
@@ -17,12 +17,12 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
17
17
|
});
|
|
18
18
|
if (t) {
|
|
19
19
|
let a;
|
|
20
|
-
const r = x(),
|
|
21
|
-
|
|
22
|
-
const s = P.get("selectMenu"),
|
|
23
|
-
let
|
|
24
|
-
if (
|
|
25
|
-
const i =
|
|
20
|
+
const r = x(), o = window.$vueApp.config.globalProperties.systemNameObj;
|
|
21
|
+
o && (a = o[r]), t = [{ path: "/", redirect: "noredirect", meta: { title: a } }].concat(t);
|
|
22
|
+
const s = P.get("selectMenu"), d = window.$vueApp.config.globalProperties._selectMenu;
|
|
23
|
+
let n;
|
|
24
|
+
if (d ? n = d : s && (n = s), n) {
|
|
25
|
+
const i = n.substring(0, n.indexOf("~~")), c = n.substring(n.indexOf("~~") + 2);
|
|
26
26
|
if (t && t.length > 0) {
|
|
27
27
|
const $ = t[t.length - 1];
|
|
28
28
|
this.isShouldConcatLastMenu(c, i, $) && t.push({ path: i, meta: { title: c } });
|
|
@@ -35,9 +35,9 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
35
35
|
return !(!this.isTitleNotEqual(e, a) || !this.isPathNotEqual(t, a));
|
|
36
36
|
}, isTitleNotEqual(e, t) {
|
|
37
37
|
return !(!e || !t.meta || e === t.meta.title || e === this.$t(t.meta.title));
|
|
38
|
-
}, isPathNotEqual: (e, t) => !(!e || !t.path || e === t.path) } }, [["render", function(e, t, a, r,
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
}, isPathNotEqual: (e, t) => !(!e || !t.path || e === t.path) } }, [["render", function(e, t, a, r, o, s) {
|
|
39
|
+
const d = u("el-breadcrumb-item"), n = u("el-breadcrumb");
|
|
40
|
+
return l(), b(n, { class: "app-breadcrumb", separator: ">" }, { default: g(() => [v(L, { name: "breadcrumb", tag: "span" }, { default: g(() => [(l(!0), p(C, null, T(s.levelListWithTitle, (i, c) => (l(), b(d, { key: i.path + "-" + c }, { default: g(() => [m("span", k, w(e.$t(i.meta.title)), 1)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 });
|
|
41
41
|
}], ["__scopeId", "data-v-768a430c"]]), { body: B } = document, E = { watch: { $route(e) {
|
|
42
42
|
this.device === "mobile" && this.sidebar.opened && h.dispatch("closeSidebar", { withoutAnimation: !1 });
|
|
43
43
|
} }, beforeMount() {
|
|
@@ -76,8 +76,8 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
76
76
|
if (e.routePath === "/iframe-page/page") {
|
|
77
77
|
let a, r = "";
|
|
78
78
|
if (e.routeQuery)
|
|
79
|
-
for (const
|
|
80
|
-
|
|
79
|
+
for (const o in e.routeQuery)
|
|
80
|
+
o === "src" ? a = e.routeQuery[o] : r += o + "=" + e.routeQuery[o] + "&";
|
|
81
81
|
a && (t = a), r && (t += "?" + r);
|
|
82
82
|
} else if (e.routePath.indexOf("http:") < 0 && e.routePath.indexOf("https:") < 0 && (t = "#"), t = e.routePath.indexOf("?") >= 0 ? t + e.routePath + "&" : t + e.routePath + "?", e.routeQuery)
|
|
83
83
|
for (const a in e.routeQuery)
|
|
@@ -87,16 +87,16 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
87
87
|
if (e && typeof e.data == "string" && e.data === "refreshTabContent")
|
|
88
88
|
window.location.reload();
|
|
89
89
|
else if (e && typeof e.data == "string" && e.data.indexOf("loginTimeout") >= 0)
|
|
90
|
-
e.data, window.parent.postMessage(e.data, "*");
|
|
90
|
+
console.log("tab-content-接收到登录超时的信息---event.data=", e.data), window.parent.postMessage(e.data, "*");
|
|
91
91
|
else if (e && typeof e.data == "string" && e.data === "return-to-system-list") {
|
|
92
92
|
this.$store.commit("clear_tabs");
|
|
93
93
|
let t = "_IS_APP_LIST";
|
|
94
94
|
const a = window.sessionStorage.getItem(t);
|
|
95
95
|
a !== void 0 && a === "true" ? this.$router.push({ path: "/mms/apps/list" }) : this.$router.push({ path: "/mms/systems/list" });
|
|
96
96
|
}
|
|
97
|
-
} } }, V = ["src"], Q = { key: 1, class: "default-page-tip" }, R = { class: "default-page-tip-msg" }, q = { class: "default-page-tip-item" }, z = { class: "default-page-tip-item" }, j = { class: "main-container" }, W = f({ name: "Layout", components: { Menubar: O, Breadcrumb: A, TabContent: f(N, [["render", function(e, t, a, r,
|
|
98
|
-
const
|
|
99
|
-
return e.openTab && e.openTab.length > 0 ? (
|
|
97
|
+
} } }, V = ["src"], Q = { key: 1, class: "default-page-tip" }, R = { class: "default-page-tip-msg" }, q = { class: "default-page-tip-item" }, z = { class: "default-page-tip-item" }, j = { class: "main-container" }, W = f({ name: "Layout", components: { Menubar: O, Breadcrumb: A, TabContent: f(N, [["render", function(e, t, a, r, o, s) {
|
|
98
|
+
const d = u("el-tab-pane"), n = u("el-tabs");
|
|
99
|
+
return e.openTab && e.openTab.length > 0 ? (l(), b(n, { key: 0, modelValue: s.activeIndex, "onUpdate:modelValue": t[0] || (t[0] = (i) => s.activeIndex = i), class: "nav-tab menu-tab-container", closable: "", onTabRemove: s.closeSelectedTag }, { default: g(() => [(l(!0), p(C, null, T(e.openTab, (i) => (l(), b(d, { key: i.code, label: i.name, name: i.code }, { default: g(() => [m("iframe", { ref_for: !0, ref: "tabMainContent", src: s.getFullPath(i), class: "tab-main-content", name: "tab-main-content", frameborder: "0" }, null, 8, V)]), _: 2 }, 1032, ["label", "name"]))), 128))]), _: 1 }, 8, ["modelValue", "onTabRemove"])) : (l(), p("div", Q, [m("div", R, [m("div", q, w(o.defaultPageTipCn), 1), m("div", z, w(o.defaultPageTipEn), 1)])]));
|
|
100
100
|
}], ["__scopeId", "data-v-a5252a92"]]) }, mixins: [E], data: () => ({ showMenuRoute: I(), systemCode: null }), computed: { sidebar() {
|
|
101
101
|
return this.$store.state.app.sidebar;
|
|
102
102
|
}, device() {
|
|
@@ -104,12 +104,12 @@ const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ l
|
|
|
104
104
|
}, classObj() {
|
|
105
105
|
return { hideSidebar: !this.sidebar.opened, openSidebar: this.sidebar.opened, withoutAnimation: this.sidebar.withoutAnimation, mobile: this.device === "mobile" };
|
|
106
106
|
} }, created() {
|
|
107
|
-
this.systemCode = window.$vueApp.config.globalProperties.customSystem, this.systemCode;
|
|
107
|
+
this.systemCode = window.$vueApp.config.globalProperties.customSystem, console.log("新菜单组件-----systemCode====", this.systemCode);
|
|
108
108
|
}, methods: { handleClickOutside() {
|
|
109
109
|
this.$store.dispatch("closeSidebar", { withoutAnimation: !1 });
|
|
110
|
-
} } }, [["render", function(e, t, a, r,
|
|
111
|
-
const
|
|
112
|
-
return
|
|
110
|
+
} } }, [["render", function(e, t, a, r, o, s) {
|
|
111
|
+
const d = u("menubar"), n = u("breadcrumb"), i = u("tab-content");
|
|
112
|
+
return l(), p("div", { class: S([s.classObj, "app-wrapper"]) }, [s.device === "mobile" && s.sidebar.opened ? (l(), p("div", { key: 0, class: "drawer-bg", onClick: t[0] || (t[0] = (...c) => s.handleClickOutside && s.handleClickOutside(...c)) })) : y("", !0), v(d, { "system-code": o.systemCode, collapse: !0, class: "sidebar-container" }, null, 8, ["system-code"]), m("div", j, [o.showMenuRoute ? (l(), b(n, { key: 0 })) : y("", !0), v(i)])], 2);
|
|
113
113
|
}], ["__scopeId", "data-v-5c0a6bf6"]]);
|
|
114
114
|
export {
|
|
115
115
|
W as default
|
|
@@ -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-a31ac238.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
|
@@ -253,7 +253,9 @@ export default {
|
|
|
253
253
|
containBranch: this.containBranch,
|
|
254
254
|
zhName: department.name,
|
|
255
255
|
enName: department.enName,
|
|
256
|
-
department: department
|
|
256
|
+
department: department,
|
|
257
|
+
leader: department.leader,
|
|
258
|
+
leaderName: department.leaderName
|
|
257
259
|
}
|
|
258
260
|
this.selectNodeInfo = selectNodeInfo
|
|
259
261
|
},
|
|
@@ -609,7 +609,8 @@ export default {
|
|
|
609
609
|
emails: [],
|
|
610
610
|
telephones: [],
|
|
611
611
|
users: [],
|
|
612
|
-
divisionManager: []
|
|
612
|
+
divisionManager: [],
|
|
613
|
+
divisionManagerName: []
|
|
613
614
|
}
|
|
614
615
|
// 是否需要显示提示框,默认不显示
|
|
615
616
|
var showTip = false
|
|
@@ -625,6 +626,9 @@ export default {
|
|
|
625
626
|
if (userData.divisionManager && userData.divisionManager !== '') {
|
|
626
627
|
selectNodeInfo.divisionManager.push(userData.divisionManager)
|
|
627
628
|
}
|
|
629
|
+
if (userData.divisionManagerName && userData.divisionManagerName !== '') {
|
|
630
|
+
selectNodeInfo.divisionManagerName.push(userData.divisionManagerName)
|
|
631
|
+
}
|
|
628
632
|
if (userData.email && userData.email !== '') {
|
|
629
633
|
selectNodeInfo.emails.push(userData.email)
|
|
630
634
|
}
|
|
@@ -252,7 +252,8 @@ export default {
|
|
|
252
252
|
user: user,
|
|
253
253
|
enName: user.enName,
|
|
254
254
|
subCompanyName: user.subCompanyName,
|
|
255
|
-
divisionManager: user.divisionManager
|
|
255
|
+
divisionManager: user.divisionManager,
|
|
256
|
+
divisionManagerName: user.divisionManagerName
|
|
256
257
|
}
|
|
257
258
|
// 表示是勾选单选按钮或 选中树节点
|
|
258
259
|
this.selectNodeInfo = selectNodeInfo
|
|
@@ -183,7 +183,6 @@ const departmentUserTreeMultiService = {
|
|
|
183
183
|
},
|
|
184
184
|
// 加载指定部门节点
|
|
185
185
|
loadPointDepartments() {
|
|
186
|
-
debugger
|
|
187
186
|
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
188
187
|
if (this.limitFilterColumn) {
|
|
189
188
|
url += '/' + this.limitFilterColumn
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="label">
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
ref="filePreviewRef"
|
|
5
|
+
@dblclick="dblclickEvent"
|
|
6
|
+
style="display: flex; align-items: center; gap: 5px"
|
|
7
|
+
:style="{ cursor: disabled && fileSetObj.disabledNoPreview ? 'not-allowed' : 'pointer' }"
|
|
8
|
+
@click="previewMuti()"
|
|
9
|
+
>
|
|
4
10
|
<el-icon><el-icon-paperclip /></el-icon>
|
|
5
11
|
{{ label }}
|
|
6
|
-
<el-tooltip :content="$t('imatrixUIPublicModel.preview')">
|
|
12
|
+
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('imatrixUIPublicModel.preview')">
|
|
7
13
|
<el-icon style="cursor: pointer; color: #409eff; padding-right: 5px" @click="previewMuti()"
|
|
8
14
|
><el-icon-view
|
|
9
15
|
/></el-icon>
|
|
10
16
|
</el-tooltip>
|
|
11
|
-
<el-tooltip :content="$t('imatrixUIPublicModel.download')">
|
|
17
|
+
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('imatrixUIPublicModel.download')">
|
|
12
18
|
<el-icon style="cursor: pointer; color: #409eff" @click="donwloadViewFile()">
|
|
13
19
|
<el-icon-download />
|
|
14
20
|
</el-icon>
|
|
@@ -40,8 +46,10 @@
|
|
|
40
46
|
<el-table-column prop="showName" show-overflow-tooltip>
|
|
41
47
|
<template v-slot="scope">
|
|
42
48
|
<div style="display: flex; align-items: center">
|
|
43
|
-
<
|
|
44
|
-
|
|
49
|
+
<span>
|
|
50
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
51
|
+
</span>
|
|
52
|
+
<span class="amb-list-preivew-name" @click="previewSingle(scope.row)">
|
|
45
53
|
{{ scope.row.showName }}
|
|
46
54
|
</span>
|
|
47
55
|
</div>
|
|
@@ -50,12 +58,24 @@
|
|
|
50
58
|
<el-table-column width="80" align="center">
|
|
51
59
|
<template v-slot="scope">
|
|
52
60
|
<div style="margin: -10px 0">
|
|
53
|
-
<el-tooltip
|
|
61
|
+
<el-tooltip
|
|
62
|
+
v-if="!fileSetObj.disabledNoPreview"
|
|
63
|
+
:content="$t('imatrixUIPublicModel.preview')"
|
|
64
|
+
class="item"
|
|
65
|
+
effect="dark"
|
|
66
|
+
placement="top"
|
|
67
|
+
>
|
|
54
68
|
<el-button type="text" @click="previewSingle(scope.row)">
|
|
55
69
|
<el-icon style="cursor: pointer"><el-icon-view /></el-icon>
|
|
56
70
|
</el-button>
|
|
57
71
|
</el-tooltip>
|
|
58
|
-
<el-tooltip
|
|
72
|
+
<el-tooltip
|
|
73
|
+
v-if="!fileSetObj.disabledNoDownload"
|
|
74
|
+
:content="$t('imatrixUIPublicModel.download')"
|
|
75
|
+
class="item"
|
|
76
|
+
effect="dark"
|
|
77
|
+
placement="top"
|
|
78
|
+
>
|
|
59
79
|
<el-button type="text" @click="donwloadFile(scope.$index, fileList)">
|
|
60
80
|
<el-icon v-if="downloadable" style="cursor: pointer">
|
|
61
81
|
<el-icon-download />
|
|
@@ -111,6 +131,10 @@ export default {
|
|
|
111
131
|
default: () => {
|
|
112
132
|
return {}
|
|
113
133
|
}
|
|
134
|
+
},
|
|
135
|
+
disabled: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: false
|
|
114
138
|
}
|
|
115
139
|
},
|
|
116
140
|
data() {
|
|
@@ -164,12 +188,18 @@ export default {
|
|
|
164
188
|
serverPath = getEntityFieldValue(this.entity, this.keyValueParam.serverPath)
|
|
165
189
|
showName = getEntityFieldValue(this.entity, this.keyValueParam.showName)
|
|
166
190
|
}
|
|
191
|
+
if (!serverPath) {
|
|
192
|
+
ElMessage.error(this.$t('imatrixUIMessage.filePathNotFound'))
|
|
193
|
+
}
|
|
167
194
|
return {
|
|
168
195
|
showName: showName,
|
|
169
196
|
serverPath: serverPath
|
|
170
197
|
}
|
|
171
198
|
},
|
|
172
199
|
previewMuti() {
|
|
200
|
+
if (this.disabled && this.fileSetObj.disabledNoPreview) {
|
|
201
|
+
return
|
|
202
|
+
}
|
|
173
203
|
const { showName, serverPath } = this.getShowNameAndUuidKey()
|
|
174
204
|
if (serverPath) {
|
|
175
205
|
const uuids = serverPath.split(',')
|
|
@@ -308,4 +338,11 @@ export default {
|
|
|
308
338
|
width: 30px;
|
|
309
339
|
height: 30px;
|
|
310
340
|
}
|
|
341
|
+
.amb-list-preivew-name {
|
|
342
|
+
margin-left: 10px;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
overflow: hidden;
|
|
345
|
+
text-overflow: ellipsis;
|
|
346
|
+
white-space: nowrap;
|
|
347
|
+
}
|
|
311
348
|
</style>
|
|
@@ -81,37 +81,49 @@
|
|
|
81
81
|
<!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
|
|
82
82
|
</span>
|
|
83
83
|
</template>
|
|
84
|
-
<el-table :data="showFileList"
|
|
85
|
-
<el-table-column prop="showName"
|
|
84
|
+
<el-table :show-header="false" :data="showFileList" max-height="60vh">
|
|
85
|
+
<el-table-column prop="showName" show-overflow-tooltip>
|
|
86
86
|
<template v-slot="scope">
|
|
87
87
|
<div style="display: flex; align-items: center">
|
|
88
|
-
<
|
|
89
|
-
|
|
88
|
+
<span>
|
|
89
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
90
|
+
</span>
|
|
91
|
+
<span class="amb-list-preivew-name" @click="previewSingle(scope.row)">
|
|
90
92
|
{{ scope.row.showName }}
|
|
91
93
|
</span>
|
|
92
94
|
</div>
|
|
93
95
|
</template>
|
|
94
96
|
</el-table-column>
|
|
95
|
-
<el-table-column align="
|
|
97
|
+
<el-table-column width="80" align="center">
|
|
96
98
|
<template v-slot="scope">
|
|
97
|
-
<
|
|
98
|
-
<el-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
99
|
+
<div style="margin: -10px 0">
|
|
100
|
+
<el-tooltip
|
|
101
|
+
v-if="!fileSetObj.disabledNoPreview"
|
|
102
|
+
:content="$t('imatrixUIPublicModel.preview')"
|
|
103
|
+
class="item"
|
|
104
|
+
effect="dark"
|
|
105
|
+
placement="top"
|
|
106
|
+
>
|
|
107
|
+
<el-button type="text" @click="previewSingle(scope.row)">
|
|
108
|
+
<el-icon style="cursor: pointer">
|
|
109
|
+
<el-icon-view />
|
|
110
|
+
</el-icon>
|
|
111
|
+
</el-button>
|
|
112
|
+
</el-tooltip>
|
|
113
|
+
<el-tooltip
|
|
114
|
+
v-if="!disabled"
|
|
115
|
+
:content="$t('imatrixUIPublicModel.delete')"
|
|
116
|
+
class="item"
|
|
117
|
+
effect="dark"
|
|
118
|
+
placement="top"
|
|
119
|
+
>
|
|
120
|
+
<el-button type="text" @click="deleteRow(scope.$index)">
|
|
121
|
+
<el-icon style="cursor: pointer">
|
|
122
|
+
<el-icon-delete />
|
|
123
|
+
</el-icon>
|
|
124
|
+
</el-button>
|
|
125
|
+
</el-tooltip>
|
|
126
|
+
</div>
|
|
115
127
|
</template>
|
|
116
128
|
</el-table-column>
|
|
117
129
|
</el-table>
|
|
@@ -141,7 +153,14 @@
|
|
|
141
153
|
/>
|
|
142
154
|
</template>
|
|
143
155
|
<template v-else>
|
|
144
|
-
<fs-preview
|
|
156
|
+
<fs-preview
|
|
157
|
+
:entity="row"
|
|
158
|
+
:disabled="disabled"
|
|
159
|
+
:fileInfo="fileInfo"
|
|
160
|
+
:file-set-obj="fileSetObj"
|
|
161
|
+
:is-sql="isSql"
|
|
162
|
+
:label="value"
|
|
163
|
+
/>
|
|
145
164
|
</template>
|
|
146
165
|
</span>
|
|
147
166
|
</template>
|
|
@@ -445,4 +464,11 @@ export default {
|
|
|
445
464
|
width: 30px;
|
|
446
465
|
height: 30px;
|
|
447
466
|
}
|
|
467
|
+
.amb-list-preivew-name {
|
|
468
|
+
margin-left: 10px;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
text-overflow: ellipsis;
|
|
472
|
+
white-space: nowrap;
|
|
473
|
+
}
|
|
448
474
|
</style>
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
<template v-if="fileList && fileList.length > 0">
|
|
28
28
|
<fs-preview-new
|
|
29
29
|
:disabled="disabled"
|
|
30
|
+
:disabled-no-preview="disabledNoPreview"
|
|
31
|
+
:disabled-no-download="disabledNoDownload"
|
|
30
32
|
:file-list="fileList"
|
|
31
33
|
:system-code="systemCode"
|
|
32
34
|
:before-remove="beforeRemove"
|
|
@@ -117,6 +119,16 @@ const props = defineProps({
|
|
|
117
119
|
beforeUpload: {
|
|
118
120
|
type: Function,
|
|
119
121
|
default: () => {}
|
|
122
|
+
},
|
|
123
|
+
// 是否禁用时也可预览
|
|
124
|
+
disabledNoPreview: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
// 是否禁用时也可下载
|
|
129
|
+
disabledNoDownload: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: false
|
|
120
132
|
}
|
|
121
133
|
})
|
|
122
134
|
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
<template v-if="fileList && fileList.length > 0">
|
|
25
25
|
<fs-preview-new
|
|
26
26
|
:disabled="disabled"
|
|
27
|
+
:disabled-no-preview="disabledNoPreview"
|
|
28
|
+
:disabled-no-download="disabledNoDownload"
|
|
27
29
|
:file-list="fileList"
|
|
28
30
|
:system-code="systemCode"
|
|
29
31
|
:before-remove="beforeRemove"
|
|
@@ -114,6 +116,16 @@ const props = defineProps({
|
|
|
114
116
|
beforeUpload: {
|
|
115
117
|
type: Function,
|
|
116
118
|
default: () => {}
|
|
119
|
+
},
|
|
120
|
+
// 是否禁用时也可预览
|
|
121
|
+
disabledNoPreview: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
124
|
+
},
|
|
125
|
+
// 是否禁用时也可下载
|
|
126
|
+
disabledNoDownload: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
117
129
|
}
|
|
118
130
|
})
|
|
119
131
|
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
@@ -7,12 +7,19 @@
|
|
|
7
7
|
<div style="display: flex; align-items: center">
|
|
8
8
|
<!-- 'amb-color-icon-XLS' -->
|
|
9
9
|
<super-icon :iconValue="getFileIconByName(file.showName)" />
|
|
10
|
-
<
|
|
11
|
-
<span style="cursor:
|
|
10
|
+
<template v-if="disabled && disabledNoPreview">
|
|
11
|
+
<span style="cursor: no-drop">
|
|
12
12
|
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
13
13
|
</span>
|
|
14
|
-
</
|
|
15
|
-
<
|
|
14
|
+
</template>
|
|
15
|
+
<template v-if="!disabled || !disabledNoPreview">
|
|
16
|
+
<el-tooltip content="预览" placement="top">
|
|
17
|
+
<span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
|
|
18
|
+
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
19
|
+
</span>
|
|
20
|
+
</el-tooltip>
|
|
21
|
+
</template>
|
|
22
|
+
<el-tooltip v-if="!disabled || !disabledNoDownload" content="下载" placement="top">
|
|
16
23
|
<el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
17
24
|
<Download />
|
|
18
25
|
</el-icon>
|
|
@@ -104,6 +111,16 @@ const props = defineProps({
|
|
|
104
111
|
baseURL: {
|
|
105
112
|
type: String,
|
|
106
113
|
default: null
|
|
114
|
+
},
|
|
115
|
+
// 是否禁用时也可预览
|
|
116
|
+
disabledNoPreview: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
// 是否禁用时也可下载
|
|
121
|
+
disabledNoDownload: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
107
124
|
}
|
|
108
125
|
})
|
|
109
126
|
const baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProperties.baseURL
|
|
@@ -179,7 +196,9 @@ const isPromise = (p: any) => {
|
|
|
179
196
|
}
|
|
180
197
|
const preview = (showName: string, serverPath: string) => {
|
|
181
198
|
console.log('preview----props.fileList=', props.fileList)
|
|
182
|
-
|
|
199
|
+
if (props.disabled && props.disabledNoPreview) {
|
|
200
|
+
return
|
|
201
|
+
}
|
|
183
202
|
let isImg = false
|
|
184
203
|
if (showName && isImage(showName)) {
|
|
185
204
|
isImg = true
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
:openFsUpload="openFsUpload"
|
|
9
9
|
:fileSetObj="{
|
|
10
10
|
accept: accept,
|
|
11
|
+
disabledNoPreview: disabledNoPreview,
|
|
12
|
+
disabledNoDownload: disabledNoDownload,
|
|
11
13
|
multiple: multiple,
|
|
12
14
|
limitFileSize: limitFileSize,
|
|
13
15
|
limit: limitNum,
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
:systemCode="systemCode"
|
|
24
26
|
:accept="accept"
|
|
25
27
|
:multiple="multiple"
|
|
28
|
+
:disabled-no-preview="disabledNoPreview"
|
|
29
|
+
:disabled-no-download="disabledNoDownload"
|
|
26
30
|
:limit="limitNum"
|
|
27
31
|
:limitFileSize="limitFileSize"
|
|
28
32
|
:placeholder="placeholder"
|
|
@@ -47,6 +51,8 @@
|
|
|
47
51
|
:multiple="multiple"
|
|
48
52
|
:limit="limitNum"
|
|
49
53
|
:limitFileSize="limitFileSize"
|
|
54
|
+
:disabled-no-preview="disabledNoPreview"
|
|
55
|
+
:disabled-no-download="disabledNoDownload"
|
|
50
56
|
:placeholder="placeholder"
|
|
51
57
|
:action="action"
|
|
52
58
|
:headers="headers"
|
|
@@ -70,6 +76,8 @@
|
|
|
70
76
|
:multiple="multiple"
|
|
71
77
|
:limit="limitNum"
|
|
72
78
|
:limitFileSize="limitFileSize"
|
|
79
|
+
:disabled-no-preview="disabledNoPreview"
|
|
80
|
+
:disabled-no-download="disabledNoDownload"
|
|
73
81
|
:placeholder="placeholder"
|
|
74
82
|
:action="action"
|
|
75
83
|
:headers="headers"
|
|
@@ -97,6 +105,8 @@
|
|
|
97
105
|
:multiple="multiple"
|
|
98
106
|
:limit="limitNum"
|
|
99
107
|
:limitFileSize="limitFileSize"
|
|
108
|
+
:disabled-no-preview="disabledNoPreview"
|
|
109
|
+
:disabled-no-download="disabledNoDownload"
|
|
100
110
|
:placeholder="placeholder"
|
|
101
111
|
:action="action"
|
|
102
112
|
:headers="headers"
|
|
@@ -252,6 +262,16 @@ const props = defineProps({
|
|
|
252
262
|
openCameraOrChoosePhoto: {
|
|
253
263
|
type: String,
|
|
254
264
|
default: 'openCameraAndChoosePhoto'
|
|
265
|
+
},
|
|
266
|
+
// 是否禁用时也可预览
|
|
267
|
+
disabledNoPreview: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
default: false
|
|
270
|
+
},
|
|
271
|
+
// 是否禁用时也可下载
|
|
272
|
+
disabledNoDownload: {
|
|
273
|
+
type: Boolean,
|
|
274
|
+
default: false
|
|
255
275
|
}
|
|
256
276
|
})
|
|
257
277
|
const isMobile = ref(isMobileBrowser())
|
|
@@ -428,11 +428,11 @@ export default {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
return branchDeptIds.join(this.separator)
|
|
431
|
-
} else if (orgDataType === 'divisionManager') {
|
|
431
|
+
} else if (orgDataType === 'divisionManager' || orgDataType === 'divisionManagerName') {
|
|
432
432
|
let divisionManagerArr = []
|
|
433
433
|
if (isUserTree) {
|
|
434
|
-
if (selectNodeInfo
|
|
435
|
-
divisionManagerArr = selectNodeInfo
|
|
434
|
+
if (selectNodeInfo[orgDataType] && selectNodeInfo[orgDataType].length > 0) {
|
|
435
|
+
divisionManagerArr = selectNodeInfo[orgDataType]
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
if (divisionManagerArr && divisionManagerArr.length > 0) {
|
|
@@ -212,7 +212,7 @@ const customFormatter = {
|
|
|
212
212
|
// console.log('getHyperLinkSetting--resut=', result)
|
|
213
213
|
if (result && result.label && result.label !== '') {
|
|
214
214
|
console.log('label存在')
|
|
215
|
-
} else {
|
|
215
|
+
} else if(result && (result.displayTextJudge === undefined || result.displayTextJudge)){
|
|
216
216
|
result.label = this.objectPropValueTwo(row, column)
|
|
217
217
|
}
|
|
218
218
|
if (result && result.title && result.title !== '') {
|