agilebuilder-ui 1.1.65-tmp22 → 1.1.65-tmp24

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.
Files changed (81) hide show
  1. package/dist/index.full.min.js +462 -281
  2. package/dist/style.css +181 -175
  3. package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
  4. package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
  5. package/es/chat-embed/src/index.vue.mjs +1 -1
  6. package/es/chat-embed/src/index.vue2.mjs +29 -29
  7. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
  8. package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
  9. package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
  10. package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
  11. package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
  12. package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
  13. package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
  14. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
  15. package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
  16. package/es/index.mjs +7 -5
  17. package/es/src/components/Card/index.mjs +34 -31
  18. package/es/src/components/Scrollbar/index.vue.mjs +6 -6
  19. package/es/src/i18n/langs/cn.mjs +1 -1
  20. package/es/src/i18n/langs/en.mjs +1 -1
  21. package/es/src/utils/common-util.mjs +47 -39
  22. package/es/style.css +879 -873
  23. package/es/super-grid/src/apis.mjs +199 -173
  24. package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
  25. package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
  26. package/es/super-grid/src/normal-column.vue.mjs +4 -5
  27. package/es/super-grid/src/search-button.vue.mjs +4 -2
  28. package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
  29. package/es/super-grid/src/search-form-item.vue.mjs +5 -5
  30. package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
  31. package/es/super-grid/src/search-form-open.vue.mjs +5 -3
  32. package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
  33. package/es/super-grid/src/search-form.vue.mjs +19 -13
  34. package/es/super-grid/src/super-grid.vue.mjs +271 -209
  35. package/es/super-grid/src/utils.mjs +346 -300
  36. package/es/utils/organization.mjs +24 -11
  37. package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
  38. package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
  39. package/lib/chat-embed/src/index.vue.cjs +1 -1
  40. package/lib/chat-embed/src/index.vue2.cjs +14 -14
  41. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
  42. package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
  43. package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
  44. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
  45. package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
  46. package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
  47. package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
  48. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
  49. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
  50. package/lib/index.cjs +7 -7
  51. package/lib/src/components/Card/index.cjs +14 -11
  52. package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
  53. package/lib/src/i18n/langs/cn.cjs +1 -1
  54. package/lib/src/i18n/langs/en.cjs +1 -1
  55. package/lib/src/utils/common-util.cjs +24 -17
  56. package/lib/style.css +915 -909
  57. package/lib/super-grid/src/apis.cjs +190 -164
  58. package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
  59. package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
  60. package/lib/super-grid/src/normal-column.vue.cjs +10 -11
  61. package/lib/super-grid/src/search-button.vue.cjs +3 -1
  62. package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
  63. package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
  64. package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
  65. package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
  66. package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
  67. package/lib/super-grid/src/search-form.vue.cjs +15 -10
  68. package/lib/super-grid/src/super-grid.vue.cjs +220 -158
  69. package/lib/super-grid/src/utils.cjs +349 -274
  70. package/lib/utils/organization.cjs +35 -24
  71. package/package.json +1 -1
  72. package/src/components/Card/index.jsx +12 -2
  73. package/src/components/Scrollbar/index.vue +165 -154
  74. package/src/i18n/langs/cn.js +10 -2
  75. package/src/i18n/langs/en.js +10 -2
  76. package/src/styles/index.scss +9 -2
  77. package/src/styles/theme/default.scss +18 -13
  78. package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
  79. package/src/utils/auth-api.js +1 -0
  80. package/src/utils/common-util.js +13 -0
  81. package/vite.config.js +0 -45
@@ -1,98 +1,98 @@
1
1
  "use strict";
2
- const e = require("vue"), t = require("@element-plus/icons-vue"), l = require("./department-tree-service.cjs"), n = require("../../utils/organization.cjs"), a = require("./dept-path.vue.cjs"), o = require("./dept-result.vue.cjs"), r = require("element-plus"), s = require("vue-i18n"), c = require("../../utils/utils.cjs"), u = require("../../src/assets/nonemessage.png.cjs"), i = { style: { display: "flex" } }, d = { style: { flex: "0 0 20%", "text-align": "left" } }, p = { style: { flex: "0 0 80%", "text-align": "right" } }, m = { class: "item-row" }, f = { class: "item-label" }, h = ["onClick"], v = { style: { display: "flex" } }, N = { key: 0 }, g = { style: { "padding-left": "10px" } }, k = { key: 1 }, y = { key: 0, style: { color: "#999" } }, C = { class: "button-area" }, V = e.defineComponent({ __name: "department-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectDepartmentInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(V2, { emit: w }) {
3
- const x = V2, { t: I } = s.useI18n(), E = e.ref(null);
2
+ const e = require("vue"), t = require("@element-plus/icons-vue"), l = require("./department-tree-service.cjs"), n = require("../../utils/organization.cjs"), a = require("./dept-path.vue.cjs"), o = require("./dept-result.vue.cjs"), r = require("element-plus"), s = require("vue-i18n"), c = require("../../utils/utils.cjs"), u = require("../../src/assets/nonemessage.png.cjs"), i = { style: { display: "flex" } }, d = { style: { flex: "0 0 20%", "text-align": "left" } }, p = { style: { flex: "0 0 80%", "text-align": "right" } }, m = { class: "item-row" }, f = { class: "item-label" }, h = { class: "item-description" }, v = ["onClick"], N = { style: { display: "flex" } }, g = { key: 0 }, k = { style: { "padding-left": "10px" } }, y = { key: 1 }, C = { key: 0, style: { color: "#999" } }, V = { class: "button-area" }, w = e.defineComponent({ __name: "department-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectDepartmentInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(w2, { emit: x }) {
3
+ const I = w2, { t: E } = s.useI18n(), D = e.ref(null);
4
4
  e.ref(false);
5
- let B = e.ref(null), D = e.ref(false), T = e.ref(null), S = e.ref([]);
5
+ let B = e.ref(null), T = e.ref(false), S = e.ref(null), _ = e.ref([]);
6
6
  e.ref([]);
7
- let _ = e.ref([]);
7
+ let b = e.ref([]);
8
8
  e.ref([]);
9
- let b = e.ref([]), R = e.ref([]), q = e.ref(null), M = e.ref(false), P = e.ref({ userField: "name", searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null });
10
- function $() {
9
+ let R = e.ref([]), q = e.ref([]), M = e.ref(null), P = e.ref(false), $ = e.ref({ userField: "name", searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null });
10
+ function z() {
11
11
  c.canShowOrgTree().then((e2) => {
12
- e2 ? l.getTenantChildren(x.departmentInfo, -1, x.limitFilterColumn).then((e3) => {
13
- S.value = e3, l.checkedDeptDefault(_.value, R.value);
14
- }) : S.value = [];
12
+ e2 ? l.getTenantChildren(I.departmentInfo, -1, I.limitFilterColumn).then((e3) => {
13
+ _.value = e3, l.checkedDeptDefault(b.value, q.value);
14
+ }) : _.value = [];
15
15
  });
16
16
  }
17
- function z(e2, t2, l2) {
18
- x.multiple && (t2 ? O(e2) : U(e2));
17
+ function A(e2, t2, l2) {
18
+ I.multiple && (t2 ? U(e2) : j(e2));
19
19
  }
20
- function A(e2, t2, l2, n2) {
21
- !x.multiple && e2.nodeType && "DEPARTMENT" === e2.nodeType && (_.value = [e2]);
20
+ function O(e2, t2, l2, n2) {
21
+ !I.multiple && e2.nodeType && "DEPARTMENT" === e2.nodeType && (b.value = [e2]);
22
22
  }
23
- function O(e2) {
23
+ function U(e2) {
24
24
  if (e2.nodeType && "DEPARTMENT" === e2.nodeType) {
25
- const t2 = _.value.filter((t3) => t3.nodeId === e2.nodeId);
26
- t2 && 0 !== t2.length || _.value.push(JSON.parse(JSON.stringify(e2)));
25
+ const t2 = b.value.filter((t3) => t3.nodeId === e2.nodeId);
26
+ t2 && 0 !== t2.length || b.value.push(JSON.parse(JSON.stringify(e2)));
27
27
  }
28
28
  }
29
- function U(e2) {
30
- const t2 = _.value.findIndex((t3) => t3.nodeId === e2.nodeId);
31
- _.value.splice(t2, 1), M.value = false;
32
- }
33
29
  function j(e2) {
34
- if (x.multiple)
30
+ const t2 = b.value.findIndex((t3) => t3.nodeId === e2.nodeId);
31
+ b.value.splice(t2, 1), P.value = false;
32
+ }
33
+ function K(e2) {
34
+ if (I.multiple)
35
35
  if (e2) {
36
- const e3 = S.value.map((e4) => e4.nodeId);
37
- E.value.setCheckedKeys(e3, false), S.value.forEach((e4) => {
38
- O(e4);
36
+ const e3 = _.value.map((e4) => e4.nodeId);
37
+ D.value.setCheckedKeys(e3, false), _.value.forEach((e4) => {
38
+ U(e4);
39
39
  });
40
40
  } else
41
- S.value.forEach((e3) => {
42
- U(e3);
43
- }), E.value.setCheckedKeys([], false);
41
+ _.value.forEach((e3) => {
42
+ j(e3);
43
+ }), D.value.setCheckedKeys([], false);
44
44
  }
45
- function K(e2) {
45
+ function F(e2) {
46
46
  l.loadDepartment(e2.id).then((e3) => {
47
- S.value = e3, l.checkedDeptDefault(_.value, R.value);
47
+ _.value = e3, l.checkedDeptDefault(b.value, q.value);
48
48
  });
49
49
  }
50
- function F(e2, t2, l2) {
51
- t2 ? (b.value = [], $()) : (b.value.splice(l2 + 1, b.value.length - (l2 + 1)), K(e2));
50
+ function J(e2, t2, l2) {
51
+ t2 ? (R.value = [], z()) : (R.value.splice(l2 + 1, R.value.length - (l2 + 1)), F(e2));
52
52
  }
53
- function J() {
54
- q.value.showResult();
53
+ function H() {
54
+ M.value.showResult();
55
55
  }
56
- function H(e2) {
57
- const t2 = _.value.filter((t3) => t3.nodeId === e2.nodeId);
56
+ function G(e2) {
57
+ const t2 = b.value.filter((t3) => t3.nodeId === e2.nodeId);
58
58
  if (t2 && t2.length > 0) {
59
59
  const t3 = [];
60
- _.value.forEach((l2) => {
60
+ b.value.forEach((l2) => {
61
61
  l2.nodeId !== e2.nodeId && t3.push(l2.nodeId);
62
- }), E.value.setCheckedKeys(t3, true);
62
+ }), D.value.setCheckedKeys(t3, true);
63
63
  }
64
- U(e2);
64
+ j(e2);
65
65
  }
66
- function G() {
67
- if (x.multiple) {
66
+ function L() {
67
+ if (I.multiple) {
68
68
  let e2 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
69
- _.value.forEach((t3) => {
69
+ b.value.forEach((t3) => {
70
70
  let l2;
71
71
  l2 = null !== t3.data && void 0 !== t3.data ? JSON.parse(t3.data) : t3, function(e3, t4, l3) {
72
- e3.ids.push(t4.id), e3.codes.push(l3.code), e3.containBranch = D.value, l3.tenantCode = B.value.code, l3.tenantName = B.value.tenantName, e3.departments.push(l3);
72
+ e3.ids.push(t4.id), e3.codes.push(l3.code), e3.containBranch = T.value, l3.tenantCode = B.value.code, l3.tenantName = B.value.tenantName, e3.departments.push(l3);
73
73
  const n2 = l3.showName;
74
74
  e3.names.push(n2), e3.zhNames.push(l3.name), e3.enNames.push(l3.enName ? l3.enName : "");
75
75
  }(e2, t3, l2);
76
76
  });
77
77
  let t2 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
78
- Object.assign(t2, e2), t2.ids.length > 0 ? w("close", t2) : r.ElMessage({ message: I("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
78
+ Object.assign(t2, e2), t2.ids.length > 0 ? x("close", t2) : r.ElMessage({ message: E("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
79
79
  } else {
80
- const e2 = _.value[0], t2 = JSON.parse(e2.data), l2 = e2.showName;
80
+ const e2 = b.value[0], t2 = JSON.parse(e2.data), l2 = e2.showName;
81
81
  t2.tenantName = B.value.tenantName, t2.tenantCode = B.value.code;
82
- const n2 = { id: e2.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch: D.value, department: t2 };
83
- w("close", n2);
82
+ const n2 = { id: e2.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch: T.value, department: t2 };
83
+ x("close", n2);
84
84
  }
85
85
  }
86
- function L() {
87
- P.value.searchValue ? (P.value.searchValue = P.value.searchValue.trim(), P.value.departmentInfo = x.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-depts", P.value).then((e2) => {
88
- e2 ? (0 === e2.length && r.ElMessage({ message: I("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), S.value = e2) : r.ElMessage({ message: I("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
89
- })) : $();
86
+ function Q() {
87
+ $.value.searchValue ? ($.value.searchValue = $.value.searchValue.trim(), $.value.departmentInfo = I.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-depts", $.value).then((e2) => {
88
+ e2 ? (0 === e2.length && r.ElMessage({ message: E("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), _.value = e2) : r.ElMessage({ message: E("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
89
+ })) : z();
90
90
  }
91
91
  return e.onMounted(() => {
92
- l.initSelectDepts(x.selectDepartmentInfo, -1, x.searchField, x.separator).then((e2) => {
93
- _.value = e2, l.getTenant().then((e3) => {
92
+ l.initSelectDepts(I.selectDepartmentInfo, -1, I.searchField, I.separator).then((e2) => {
93
+ b.value = e2, l.getTenant().then((e3) => {
94
94
  const t2 = e3[0].data;
95
- B.value = JSON.parse(t2), D.value = e3[0].containBranch, T.value = e3[0].name, $();
95
+ B.value = JSON.parse(t2), T.value = e3[0].containBranch, S.value = e3[0].name, z();
96
96
  });
97
97
  }), function() {
98
98
  const e2 = document.querySelector(".org-tree");
@@ -100,11 +100,11 @@ const e = require("vue"), t = require("@element-plus/icons-vue"), l = require(".
100
100
  t2 = t2 - 110 - 60 - 60 - 60, e2.style.height = t2 + "px", e2.style.minHeight = "300px";
101
101
  }();
102
102
  }), (l2, r2) => {
103
- const s2 = e.resolveComponent("el-checkbox"), c2 = e.resolveComponent("el-icon"), V3 = e.resolveComponent("el-input"), w2 = e.resolveComponent("el-col"), x2 = e.resolveComponent("el-row"), I2 = e.resolveComponent("el-card"), B2 = e.resolveComponent("el-empty"), D2 = e.resolveComponent("el-tree"), $2 = e.resolveComponent("el-button");
104
- return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(I2, { class: "card-content", style: { height: "50px" } }, { default: e.withCtx(() => [e.createVNode(x2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(w2, { style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", i, [e.createElementVNode("div", d, [l2.multiple ? (e.openBlock(), e.createBlock(s2, { key: 0, modelValue: e.unref(M), "onUpdate:modelValue": r2[0] || (r2[0] = (t2) => e.isRef(M) ? M.value = t2 : M = t2), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: j }, null, 8, ["modelValue", "label"])) : e.createCommentVNode("", true)]), e.createElementVNode("div", p, [e.createVNode(V3, { modelValue: e.unref(P).searchValue, "onUpdate:modelValue": r2[1] || (r2[1] = (t2) => e.unref(P).searchValue = t2), placeholder: l2.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: L, onKeyup: e.withKeys(L, ["enter"]), onBlur: L, clearable: "" }, { suffix: e.withCtx(() => [e.createVNode(c2, { onClick: L }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), e.unref(T) ? (e.openBlock(), e.createBlock(I2, { key: 0, class: "card-content" }, { default: e.withCtx(() => [e.createVNode(x2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(w2, { class: "item-label dept-path" }, { default: e.withCtx(() => [e.createVNode(a, { tenantName: e.unref(T), clickDepts: e.unref(b), onClickBreadcrumb: F }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(I2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: e.withCtx(() => [e.unref(S).length ? (e.openBlock(), e.createBlock(D2, { key: 1, ref_key: "orgTreeRef", ref: E, data: e.unref(S), "show-checkbox": l2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": e.unref(R), onCheckChange: z, onNodeClick: A }, { default: e.withCtx(({ node: l3, data: n2 }) => [e.createElementVNode("div", m, [e.createElementVNode("div", f, e.toDisplayString(n2.showName), 1), n2.leaf ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", { key: 0, class: "item-side", onClick: (e2) => {
105
- return t2 = n2, b.value.push(t2), void K(t2);
103
+ const s2 = e.resolveComponent("el-checkbox"), c2 = e.resolveComponent("el-icon"), w3 = e.resolveComponent("el-input"), x2 = e.resolveComponent("el-col"), I2 = e.resolveComponent("el-row"), E2 = e.resolveComponent("el-card"), B2 = e.resolveComponent("el-empty"), T2 = e.resolveComponent("el-tree"), z2 = e.resolveComponent("el-button");
104
+ return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(E2, { class: "card-content", style: { height: "50px" } }, { default: e.withCtx(() => [e.createVNode(I2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(x2, { style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", i, [e.createElementVNode("div", d, [l2.multiple ? (e.openBlock(), e.createBlock(s2, { key: 0, modelValue: e.unref(P), "onUpdate:modelValue": r2[0] || (r2[0] = (t2) => e.isRef(P) ? P.value = t2 : P = t2), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: K }, null, 8, ["modelValue", "label"])) : e.createCommentVNode("", true)]), e.createElementVNode("div", p, [e.createVNode(w3, { modelValue: e.unref($).searchValue, "onUpdate:modelValue": r2[1] || (r2[1] = (t2) => e.unref($).searchValue = t2), placeholder: l2.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: Q, onKeyup: e.withKeys(Q, ["enter"]), onBlur: Q, clearable: "" }, { suffix: e.withCtx(() => [e.createVNode(c2, { onClick: Q }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), e.unref(S) ? (e.openBlock(), e.createBlock(E2, { key: 0, class: "card-content" }, { default: e.withCtx(() => [e.createVNode(I2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(x2, { class: "item-label dept-path" }, { default: e.withCtx(() => [e.createVNode(a, { tenantName: e.unref(S), clickDepts: e.unref(R), onClickBreadcrumb: J }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(E2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: e.withCtx(() => [e.unref(_).length ? (e.openBlock(), e.createBlock(T2, { key: 1, ref_key: "orgTreeRef", ref: D, data: e.unref(_), "show-checkbox": l2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": e.unref(q), onCheckChange: A, onNodeClick: O }, { default: e.withCtx(({ node: l3, data: a2 }) => [e.createElementVNode("div", m, [e.createElementVNode("div", f, [e.createTextVNode(e.toDisplayString(a2.showName) + " ", 1), e.createElementVNode("span", h, e.toDisplayString(e.unref(n.getShowDeptNamePath)(a2.showName, a2)), 1)]), a2.leaf ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", { key: 0, class: "item-side", onClick: (e2) => {
105
+ return t2 = a2, R.value.push(t2), void F(t2);
106
106
  var t2;
107
- } }, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 })], 8, h))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (e.openBlock(), e.createBlock(B2, { key: 0, image: e.unref(u) }, null, 8, ["image"]))]), _: 1 }), e.createVNode(I2, { class: "card-footer" }, { default: e.withCtx(() => [e.createElementVNode("div", v, [e.createElementVNode("div", { class: "select-result", onClick: J }, [l2.multiple ? (e.openBlock(), e.createElementBlock("span", { key: 0, onClick: J }, [e.unref(_).length > 0 ? (e.openBlock(), e.createElementBlock("span", N, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfo", { num: e.unref(_).length })) + " ", 1), e.createElementVNode("span", g, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowUpBold))]), _: 1 })])])) : e.createCommentVNode("", true)])) : e.unref(_).length > 0 ? (e.openBlock(), e.createElementBlock("span", k, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(e.unref(_)[0].showName), 1), "-1" !== e.unref(_)[0].parentNodeId && e.unref(n.getDeptNamePath)(e.unref(_)[0]) ? (e.openBlock(), e.createElementBlock("span", y, "(" + e.toDisplayString(e.unref(n.getDeptNamePath)(e.unref(_)[0])) + ")", 1)) : e.createCommentVNode("", true)])) : e.createCommentVNode("", true)]), e.createElementVNode("div", C, [e.createVNode($2, { size: "large", type: "primary", onClick: G }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), e.createVNode(o, { ref_key: "deptResultRef", ref: q, selectDepts: e.unref(_), onRemoveDept: H }, null, 8, ["selectDepts"])]);
107
+ } }, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 })], 8, v))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (e.openBlock(), e.createBlock(B2, { key: 0, image: e.unref(u) }, null, 8, ["image"]))]), _: 1 }), e.createVNode(E2, { class: "card-footer" }, { default: e.withCtx(() => [e.createElementVNode("div", N, [e.createElementVNode("div", { class: "select-result", onClick: H }, [l2.multiple ? (e.openBlock(), e.createElementBlock("span", { key: 0, onClick: H }, [e.unref(b).length > 0 ? (e.openBlock(), e.createElementBlock("span", g, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfo", { num: e.unref(b).length })) + " ", 1), e.createElementVNode("span", k, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowUpBold))]), _: 1 })])])) : e.createCommentVNode("", true)])) : e.unref(b).length > 0 ? (e.openBlock(), e.createElementBlock("span", y, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(e.unref(b)[0].showName), 1), "-1" !== e.unref(b)[0].parentNodeId && e.unref(n.getDeptNamePath)(e.unref(b)[0]) ? (e.openBlock(), e.createElementBlock("span", C, "(" + e.toDisplayString(e.unref(n.getDeptNamePath)(e.unref(b)[0])) + ")", 1)) : e.createCommentVNode("", true)])) : e.createCommentVNode("", true)]), e.createElementVNode("div", V, [e.createVNode(z2, { size: "large", type: "primary", onClick: L }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), e.createVNode(o, { ref_key: "deptResultRef", ref: M, selectDepts: e.unref(b), onRemoveDept: G }, null, 8, ["selectDepts"])]);
108
108
  };
109
109
  } });
110
- module.exports = V;
110
+ module.exports = w;
@@ -15,7 +15,7 @@ function t(e2) {
15
15
  });
16
16
  }
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.checkedDeptDefault = function(e2, t2) {
18
- t2 = [], e2.forEach((e3) => {
18
+ e2.forEach((e3) => {
19
19
  t2.push(e3.nodeId);
20
20
  });
21
21
  }, exports.getTenant = function() {
@@ -23,12 +23,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports
23
23
  }, exports.getTenantChildren = function(n, o, r) {
24
24
  return n && n.length > 0 ? e(n, r) : t(o);
25
25
  }, exports.initSelectDepts = function(e2, t2, n, o) {
26
- return new Promise((r, i) => {
27
- const p = [];
28
- e2 ? e2 === t2 || "所有部门" === e2 ? (p.push(function(e3) {
26
+ return new Promise((r, p) => {
27
+ const i = [];
28
+ e2 ? e2 === t2 || "所有部门" === e2 ? (i.push(function(e3) {
29
29
  var t3 = { id: e3, name: "所有部门" };
30
30
  return t3;
31
- }(t2)), r(p)) : function(e3, t3, n2) {
31
+ }(t2)), r(i)) : function(e3, t3, n2) {
32
32
  return new Promise((o2, r2) => {
33
33
  e3 && t3 ? window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/select-departments?searchField=" + e3 + "&selectDeptInfo=" + t3 + "&separator=" + n2).then((e4) => {
34
34
  o2(e4);
@@ -37,9 +37,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports
37
37
  }) : o2([]);
38
38
  });
39
39
  }(n, e2, o).then((e3) => {
40
- r(e3);
40
+ e3.forEach((e4) => {
41
+ e4.nodeType = "DEPARTMENT", e4.nodeId = e4.nodeType + "~" + e4.id;
42
+ }), r(e3);
41
43
  }).catch((e3) => {
42
- i(e3);
43
- }) : r(p);
44
+ p(e3);
45
+ }) : r(i);
44
46
  });
45
47
  }, exports.loadDepartment = t, exports.loadPointDepartments = e;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- const e = require("vue"), t = require("@element-plus/icons-vue"), l = { style: { "text-align": "center" } }, o = { class: "item-row" }, n = { class: "item-label" }, r = ["onClick"], a = e.defineComponent({ __name: "dept-result", props: { selectDepts: { type: Array, default: null } }, emits: ["removeDept"], setup(a2, { expose: s, emit: i }) {
3
- let d = e.ref(false);
4
- return s({ showResult: function() {
5
- d.value = true;
6
- } }), (s2, c) => {
7
- const u = e.resolveComponent("el-icon"), m = e.resolveComponent("el-tree"), p = e.resolveComponent("el-drawer");
8
- return e.openBlock(), e.createBlock(p, { modelValue: e.unref(d), "onUpdate:modelValue": c[0] || (c[0] = (t2) => e.isRef(d) ? d.value = t2 : d = t2), direction: "btt", size: "80%", class: "organization-tree" }, { header: e.withCtx(() => [e.createElementVNode("div", l, e.toDisplayString(s2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: e.withCtx(() => [e.createVNode(m, { ref: "orgResultTreeRef", data: a2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: e.withCtx(({ node: l2, data: a3 }) => [e.createElementVNode("div", o, [e.createElementVNode("div", n, e.toDisplayString(a3.showName), 1), e.createElementVNode("div", { class: "item-side", onClick: (e2) => {
9
- i("removeDept", a3);
10
- } }, [e.createVNode(u, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.DeleteFilled))]), _: 1 })], 8, r)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
2
+ const e = require("vue"), t = require("@element-plus/icons-vue"), l = require("../../utils/organization.cjs"), o = { style: { "text-align": "center" } }, r = { class: "item-row" }, n = { class: "item-label" }, a = { class: "item-description" }, i = ["onClick"], s = e.defineComponent({ __name: "dept-result", props: { selectDepts: { type: Array, default: null } }, emits: ["removeDept"], setup(s2, { expose: d, emit: c }) {
3
+ let u = e.ref(false);
4
+ return d({ showResult: function() {
5
+ u.value = true;
6
+ } }), (d2, m) => {
7
+ const p = e.resolveComponent("el-icon"), f = e.resolveComponent("el-tree"), v = e.resolveComponent("el-drawer");
8
+ return e.openBlock(), e.createBlock(v, { modelValue: e.unref(u), "onUpdate:modelValue": m[0] || (m[0] = (t2) => e.isRef(u) ? u.value = t2 : u = t2), direction: "btt", size: "80%", class: "organization-tree" }, { header: e.withCtx(() => [e.createElementVNode("div", o, e.toDisplayString(d2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: e.withCtx(() => [e.createVNode(f, { ref: "orgResultTreeRef", data: s2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: e.withCtx(({ node: o2, data: s3 }) => [e.createElementVNode("div", r, [e.createElementVNode("div", n, [e.createTextVNode(e.toDisplayString(s3.showName), 1), e.createElementVNode("span", a, e.toDisplayString(e.unref(l.getShowDeptNamePath)(s3.showName, s3)), 1)]), e.createElementVNode("div", { class: "item-side", onClick: (e2) => {
9
+ c("removeDept", s3);
10
+ } }, [e.createVNode(p, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.DeleteFilled))]), _: 1 })], 8, i)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
11
11
  };
12
12
  } });
13
- module.exports = a;
13
+ module.exports = s;
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
- const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), l = require("../../src/utils/local-storage.cjs"), n = require("./search-result.vue.cjs"), o = require("../../utils/utils.cjs"), r = require("./department-user-tree-single-service.cjs"), a = require("../../utils/memory-cache-utils.cjs"), s = require("./group-user-single-tree.vue.cjs"), i = require("./group-user/group-user.vue.cjs"), c = require("../../empty-state/index.vue.cjs"), d = require("vue");
2
+ const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), l = require("../../src/utils/local-storage.cjs"), o = require("./search-result.vue.cjs"), n = require("../../utils/utils.cjs"), a = require("./department-user-tree-single-service.cjs"), r = require("../../utils/memory-cache-utils.cjs"), s = require("./group-user-single-tree.vue.cjs"), i = require("./group-user/group-user.vue.cjs"), c = require("../../empty-state/index.vue.cjs"), d = require("vue");
3
3
  require("./department-user-single-tree-inline.vue2.cjs");
4
- const u = require("../../_virtual/_plugin-vue_export-helper.cjs"), h = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "showName", children: "children", isLeaf: "leaf" }, searchParam: { userField: null, searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }, count: 0, containBranch: false, tenantNodeId: -1, searchFields: [], searchField: "name", restaurants: [], searchValue: null, searchResult: [], searchStoreKey: "searchDepartmentUser", tenantInfo: {}, selectUser: null, selectNodeInfo: null, notMultipleClickNum: null, notMultipleClickNode: null, memoryCacheKey: "DEPARTMENT_USER_MEMORY_KEY", memoryCacheData: [], ElIconSearch: e.Search, activeTab: "orgTree", isShowGroupTree: true, canShowOrgTree: false }), name: "InlineDepartmentUserSingleTree", components: { UserResult: n, GroupUserSingleTree: s, GroupUser: i, EmptyState: c }, props: { departmentInfo: { type: Array, default: null }, height: { type: String, default: "300px" }, isNeedVirtualUser: { type: Boolean, default: false }, limitFilterColumn: { type: String, default: "code" } }, computed: {}, watch: { filterText(e2) {
4
+ const u = require("../../_virtual/_plugin-vue_export-helper.cjs"), p = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "showName", children: "children", isLeaf: "leaf" }, searchParam: { userField: null, searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }, count: 0, containBranch: false, tenantNodeId: -1, searchFields: [], searchField: "name", restaurants: [], searchValue: null, searchResult: [], searchStoreKey: "searchDepartmentUser", tenantInfo: {}, selectUser: null, selectNodeInfo: null, notMultipleClickNum: null, notMultipleClickNode: null, memoryCacheKey: "DEPARTMENT_USER_MEMORY_KEY", memoryCacheData: [], ElIconSearch: e.Search, activeTab: "orgTree", isShowGroupTree: true, canShowOrgTree: false }), name: "InlineDepartmentUserSingleTree", components: { UserResult: o, GroupUserSingleTree: s, GroupUser: i, EmptyState: c }, props: { departmentInfo: { type: Array, default: null }, height: { type: String, default: "300px" }, isNeedVirtualUser: { type: Boolean, default: false }, limitFilterColumn: { type: String, default: "code" }, closeOnAutocomplete: { type: Boolean, default: true } }, computed: {}, watch: { filterText(e2) {
5
5
  e2 || (this.searchValue = e2, this.departmentInfo && this.departmentInfo.length > 0 ? this.loadPointDepartments(this) : this.loadDepartment(this.tenantNodeId, this.tenantNodeId + ""));
6
6
  } }, created() {
7
- o.canShowOrgTree().then((e2) => {
7
+ n.canShowOrgTree().then((e2) => {
8
8
  this.canShowOrgTree = e2;
9
9
  }), this.searchFields = this.getSearchUserFields();
10
10
  }, mounted() {
11
11
  var e2 = l.getObject(this.searchStoreKey);
12
12
  this.restaurants = e2 || [], this.getMemoryCacheData("departmentUser");
13
- }, methods: { ...o, ...r, ...a, handleNodeClick(e2, l2, n2) {
13
+ }, methods: { ...n, ...a, ...r, handleNodeClick(e2, l2, o2) {
14
14
  if (this.isUserNode(e2)) {
15
- const n3 = JSON.parse(e2.data);
16
- n3.tenantName = this.tenantInfo.tenantName, n3.tenantCode = this.tenantInfo.code, this.setMemoryCacheData(n3, "departmentUser"), this.packageSelectResult(n3), this.notMultipleClickNode && this.notMultipleClickNode.id === l2.id ? (this.notMultipleClickNum++, 2 === this.notMultipleClickNum && (this.notMultipleClickNum = 0, this.notMultipleClickNode = null, t.$emit(this, "result", this.selectNodeInfo))) : (this.notMultipleClickNode = l2, this.notMultipleClickNum = 1);
17
- const o2 = this;
15
+ const o3 = JSON.parse(e2.data);
16
+ o3.tenantName = this.tenantInfo.tenantName, o3.tenantCode = this.tenantInfo.code, this.setMemoryCacheData(o3, "departmentUser"), this.packageSelectResult(o3), this.notMultipleClickNode && this.notMultipleClickNode.id === l2.id ? (this.notMultipleClickNum++, 2 === this.notMultipleClickNum && (this.notMultipleClickNum = 0, this.notMultipleClickNode = null, t.$emit(this, "result", this.selectNodeInfo))) : (this.notMultipleClickNode = l2, this.notMultipleClickNum = 1);
17
+ const n2 = this;
18
18
  setTimeout(function() {
19
- o2.notMultipleClickNum = 0, o2.notMultipleClickNode = null;
19
+ n2.notMultipleClickNum = 0, n2.notMultipleClickNode = null;
20
20
  }, 300);
21
21
  }
22
22
  }, packageSelectResult(e2) {
@@ -31,10 +31,10 @@ const u = require("../../_virtual/_plugin-vue_export-helper.cjs"), h = { data: (
31
31
  }, isSelectTenantNode(e2) {
32
32
  return e2 === this.tenantNodeId && (!this.departmentInfo || 0 === this.departmentInfo.length);
33
33
  }, loadNode(e2, t2) {
34
- var l2 = 0, n2 = "0";
35
- 0 === e2.level ? n2 = (l2 = 0) + "" : (l2 = e2.data.id, n2 = e2.data.nodeId);
36
- var o2 = [];
37
- this.$refs.deparmentUserTree && (o2 = this.$refs.deparmentUserTree.getCheckedKeys()), this.initLoadDepartment(l2, e2, t2, o2, n2);
34
+ var l2 = 0, o2 = "0";
35
+ 0 === e2.level ? o2 = (l2 = 0) + "" : (l2 = e2.data.id, o2 = e2.data.nodeId);
36
+ var n2 = [];
37
+ this.$refs.deparmentUserTree && (n2 = this.$refs.deparmentUserTree.getCheckedKeys()), this.initLoadDepartment(l2, e2, t2, n2, o2);
38
38
  }, getSelectUser(e2) {
39
39
  this.selectUser = e2, this.setMemoryCacheData(e2, "departmentUser"), this.packageSelectResult(e2);
40
40
  }, resultRowDblclick(e2) {
@@ -49,9 +49,9 @@ const u = require("../../_virtual/_plugin-vue_export-helper.cjs"), h = { data: (
49
49
  }, 10);
50
50
  }, dblClickGroupUserResult(e2) {
51
51
  e2 && (this.selectNodeInfo = e2, this.$emit("result", this.selectNodeInfo));
52
- } }, emits: ["result"] }, p = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, m = ["title"], N = { key: 1, style: { height: "100%", overflow: "hidden" } };
53
- const C = u(h, [["render", function(e2, t2, l2, n2, o2, r2) {
54
- const a2 = d.resolveComponent("el-button"), s2 = d.resolveComponent("el-autocomplete"), i2 = d.resolveComponent("el-header"), c2 = d.resolveComponent("Menu"), u2 = d.resolveComponent("Tickets"), h2 = d.resolveComponent("User"), C2 = d.resolveComponent("Calendar"), g = d.resolveComponent("el-icon"), k = d.resolveComponent("el-tree"), f = d.resolveComponent("el-tab-pane"), y = d.resolveComponent("GroupUser"), T = d.resolveComponent("GroupUserSingleTree"), v = d.resolveComponent("el-tabs"), S = d.resolveComponent("EmptyState"), U = d.resolveComponent("user-result"), b = d.resolveComponent("el-main"), I = d.resolveComponent("el-container");
55
- return d.openBlock(), d.createElementBlock("div", null, [d.createVNode(I, { style: { height: "395px" } }, { default: d.withCtx(() => [d.createVNode(i2, { style: { "font-size": "12px", height: "35px", padding: "0" } }, { default: d.withCtx(() => [d.createVNode(s2, { modelValue: o2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input searchDepartmentUser", style: { width: "100%" }, size: "default", onSelect: e2.handleSelect, onKeyup: d.withKeys(e2.clickSearch, ["enter"]) }, { append: d.withCtx(() => [d.createVNode(a2, { icon: o2.ElIconSearch, onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), d.createVNode(b, { style: { padding: "10px", width: "100%" } }, { default: d.withCtx(() => [o2.searchValue && 0 !== o2.searchResult.length ? d.createCommentVNode("", true) : (d.openBlock(), d.createElementBlock(d.Fragment, { key: 0 }, [o2.canShowOrgTree ? (d.openBlock(), d.createElementBlock("div", p, [d.createVNode(v, { modelValue: o2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.activeTab = e3), class: "boe" }, { default: d.withCtx(() => [d.createVNode(f, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: d.withCtx(() => [d.createVNode(k, { ref: "deparmentUserTree", load: r2.loadNode, props: o2.defaultProps, lazy: "", "node-key": "nodeId", onNodeClick: r2.handleNodeClick }, { default: d.withCtx(({ node: e3, data: t3 }) => [d.createElementVNode("span", null, [d.createVNode(g, null, { default: d.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (d.openBlock(), d.createBlock(c2, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (d.openBlock(), d.createBlock(u2, { key: 1 })) : "USER" === e3.data.nodeType ? (d.openBlock(), d.createBlock(h2, { key: 2 })) : (d.openBlock(), d.createBlock(C2, { key: 3 }))]), _: 2 }, 1024), d.createElementVNode("span", { title: e3.label }, d.toDisplayString(e3.label), 9, m)])]), _: 1 }, 8, ["load", "props", "onNodeClick"])]), _: 1 }, 8, ["label"]), d.createVNode(f, { name: "groupTree" }, { label: d.withCtx(() => [d.createElementVNode("span", null, d.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), d.createElementVNode("span", null, [d.createVNode(y, { "active-tab": o2.activeTab, onUpdateGroupTree: r2.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: d.withCtx(() => [o2.isShowGroupTree ? (d.openBlock(), d.createBlock(T, { key: 0, onSingleClick: r2.getGroupUserResult, onDblClick: r2.dblClickGroupUserResult }, null, 8, ["onSingleClick", "onDblClick"])) : d.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (d.openBlock(), d.createBlock(S, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), o2.searchValue && o2.searchValue.length > 0 && o2.searchResult.length > 0 ? (d.openBlock(), d.createElementBlock("div", N, [d.createVNode(U, { ref: "userResult", "contain-branch": o2.containBranch, "grid-data": o2.searchResult, height: l2.height, multiple: false, onResultRowDblclick: r2.resultRowDblclick, onSelectResult: r2.getSelectUser }, null, 8, ["contain-branch", "grid-data", "height", "onResultRowDblclick", "onSelectResult"])])) : d.createCommentVNode("", true)]), _: 1 })]), _: 1 })]);
52
+ } }, emits: ["result"] }, h = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, m = ["title"], N = { key: 1, style: { height: "100%", overflow: "hidden" } };
53
+ const C = u(p, [["render", function(e2, t2, l2, o2, n2, a2) {
54
+ const r2 = d.resolveComponent("el-button"), s2 = d.resolveComponent("el-autocomplete"), i2 = d.resolveComponent("el-header"), c2 = d.resolveComponent("Menu"), u2 = d.resolveComponent("Tickets"), p2 = d.resolveComponent("User"), C2 = d.resolveComponent("Calendar"), g = d.resolveComponent("el-icon"), k = d.resolveComponent("el-tree"), f = d.resolveComponent("el-tab-pane"), y = d.resolveComponent("GroupUser"), T = d.resolveComponent("GroupUserSingleTree"), v = d.resolveComponent("el-tabs"), S = d.resolveComponent("EmptyState"), U = d.resolveComponent("user-result"), b = d.resolveComponent("el-main"), I = d.resolveComponent("el-container");
55
+ return d.openBlock(), d.createElementBlock("div", null, [d.createVNode(I, { style: { height: "395px" } }, { default: d.withCtx(() => [d.createVNode(i2, { style: { "font-size": "12px", height: "35px", padding: "0" } }, { default: d.withCtx(() => [d.createVNode(s2, { modelValue: n2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input searchDepartmentUser", style: { width: "100%" }, size: "default", onSelect: e2.handleSelect, onKeyup: d.withKeys(e2.clickSearch, ["enter"]) }, { append: d.withCtx(() => [d.createVNode(r2, { icon: n2.ElIconSearch, onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), d.createVNode(b, { style: { padding: "10px", width: "100%" } }, { default: d.withCtx(() => [n2.searchValue && 0 !== n2.searchResult.length ? d.createCommentVNode("", true) : (d.openBlock(), d.createElementBlock(d.Fragment, { key: 0 }, [n2.canShowOrgTree ? (d.openBlock(), d.createElementBlock("div", h, [d.createVNode(v, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.activeTab = e3), class: "boe" }, { default: d.withCtx(() => [d.createVNode(f, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: d.withCtx(() => [d.createVNode(k, { ref: "deparmentUserTree", load: a2.loadNode, props: n2.defaultProps, lazy: "", "node-key": "nodeId", onNodeClick: a2.handleNodeClick }, { default: d.withCtx(({ node: e3, data: t3 }) => [d.createElementVNode("span", null, [d.createVNode(g, null, { default: d.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (d.openBlock(), d.createBlock(c2, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (d.openBlock(), d.createBlock(u2, { key: 1 })) : "USER" === e3.data.nodeType ? (d.openBlock(), d.createBlock(p2, { key: 2 })) : (d.openBlock(), d.createBlock(C2, { key: 3 }))]), _: 2 }, 1024), d.createElementVNode("span", { title: e3.label }, d.toDisplayString(e3.label), 9, m)])]), _: 1 }, 8, ["load", "props", "onNodeClick"])]), _: 1 }, 8, ["label"]), d.createVNode(f, { name: "groupTree" }, { label: d.withCtx(() => [d.createElementVNode("span", null, d.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), d.createElementVNode("span", null, [d.createVNode(y, { "active-tab": n2.activeTab, onUpdateGroupTree: a2.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: d.withCtx(() => [n2.isShowGroupTree ? (d.openBlock(), d.createBlock(T, { key: 0, onSingleClick: a2.getGroupUserResult, onDblClick: a2.dblClickGroupUserResult }, null, 8, ["onSingleClick", "onDblClick"])) : d.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (d.openBlock(), d.createBlock(S, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), n2.searchValue && n2.searchValue.length > 0 && n2.searchResult.length > 0 ? (d.openBlock(), d.createElementBlock("div", N, [d.createVNode(U, { ref: "userResult", "contain-branch": n2.containBranch, "grid-data": n2.searchResult, height: l2.height, multiple: false, onResultRowDblclick: a2.resultRowDblclick, onSelectResult: a2.getSelectUser }, null, 8, ["contain-branch", "grid-data", "height", "onResultRowDblclick", "onSelectResult"])])) : d.createCommentVNode("", true)]), _: 1 })]), _: 1 })]);
56
56
  }]]);
57
57
  module.exports = C;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
- const e = require("../../utils/gogocodeTransfer.cjs"), t = require("./department-user-single-tree-inline.vue.cjs"), r = require("./department-user-multiple-tree-inline.vue.cjs"), l = require("vue");
3
- const n = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "InlineDepartmentUserTree", components: { InlineDepartmentUserSingleTree: t, InlineDepartmentUserMultiTree: r }, props: { multiple: { type: Boolean, default: true }, departmentInfo: { type: Array, default: null }, height: { type: String, default: "300px" }, isNeedVirtualUser: { type: Boolean, default: false }, selectUserInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "loginName" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ selectNodeInfo: null }), methods: { result(t2) {
2
+ const e = require("../../utils/gogocodeTransfer.cjs"), t = require("./department-user-single-tree-inline.vue.cjs"), l = require("./department-user-multiple-tree-inline.vue.cjs"), r = require("vue");
3
+ const n = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "InlineDepartmentUserTree", components: { InlineDepartmentUserSingleTree: t, InlineDepartmentUserMultiTree: l }, props: { multiple: { type: Boolean, default: true }, departmentInfo: { type: Array, default: null }, height: { type: String, default: "300px" }, isNeedVirtualUser: { type: Boolean, default: false }, selectUserInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "loginName" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" }, closeOnAutocomplete: { type: Boolean, default: true } }, data: () => ({ selectNodeInfo: null }), methods: { result(t2) {
4
4
  this.selectNodeInfo = t2, e.$emit(this, "result", t2);
5
5
  }, confirmSelectUser() {
6
6
  this.$refs.userTree.confirmSelectUser();
7
- } }, emits: ["result"] }, [["render", function(e2, t2, r2, n2, i, o) {
8
- const s = l.resolveComponent("inline-department-user-multi-tree"), u = l.resolveComponent("inline-department-user-single-tree");
9
- return l.openBlock(), l.createElementBlock("div", null, [r2.multiple ? (l.openBlock(), l.createBlock(s, { key: 0, ref: "userTree", height: r2.height, "department-info": r2.departmentInfo, "limit-filter-column": r2.limitFilterColumn, "select-user-info": r2.selectUserInfo, "search-field": r2.searchField, separator: r2.separator, onResult: o.result }, null, 8, ["height", "department-info", "limit-filter-column", "select-user-info", "search-field", "separator", "onResult"])) : l.createCommentVNode("", true), r2.multiple ? l.createCommentVNode("", true) : (l.openBlock(), l.createBlock(u, { key: 1, ref: "userTree", height: r2.height, "limit-filter-column": r2.limitFilterColumn, "department-info": r2.departmentInfo, onResult: o.result }, null, 8, ["height", "limit-filter-column", "department-info", "onResult"]))]);
7
+ } }, emits: ["result"] }, [["render", function(e2, t2, l2, n2, o, i) {
8
+ const s = r.resolveComponent("inline-department-user-multi-tree"), u = r.resolveComponent("inline-department-user-single-tree");
9
+ return r.openBlock(), r.createElementBlock("div", null, [l2.multiple ? (r.openBlock(), r.createBlock(s, { key: 0, ref: "userTree", height: l2.height, "department-info": l2.departmentInfo, "limit-filter-column": l2.limitFilterColumn, "select-user-info": l2.selectUserInfo, "search-field": l2.searchField, separator: l2.separator, onResult: i.result }, null, 8, ["height", "department-info", "limit-filter-column", "select-user-info", "search-field", "separator", "onResult"])) : r.createCommentVNode("", true), l2.multiple ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(u, { key: 1, ref: "userTree", height: l2.height, "limit-filter-column": l2.limitFilterColumn, "department-info": l2.departmentInfo, "close-on-autocomplete": l2.closeOnAutocomplete, onResult: i.result }, null, 8, ["height", "limit-filter-column", "department-info", "close-on-autocomplete", "onResult"]))]);
10
10
  }]]);
11
11
  module.exports = n;
@@ -16,7 +16,7 @@ const t = require("../../src/utils/local-storage.cjs"), s = require("../../src/u
16
16
  if (null !== s2)
17
17
  for (const e2 in s2)
18
18
  t2.hasOwnProperty(e2) && (t2[e2] = s2[e2]);
19
- this.filterText = "", this.searchValue = "", this.packageSelectResult(t2), this.setMemoryCacheData(t2, "departmentUser"), e.$emit(this, "result", this.selectNodeInfo);
19
+ this.closeOnAutocomplete && (this.filterText = "", this.searchValue = ""), this.packageSelectResult(t2), this.setMemoryCacheData(t2, "departmentUser"), e.$emit(this, "result", this.selectNodeInfo);
20
20
  });
21
21
  }, search(e2) {
22
22
  this.searchValue = e2;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const e = require("@element-plus/icons-vue"), t = require("vue"), i = require("../../src/utils/common-util.cjs"), o = require("../../src/utils/util.cjs"), l = require("../../super-grid/src/utils.cjs"), s = require("../../src/utils/auth.cjs"), a = require("../../src/utils/file-util.cjs"), r = require("../../src/utils/watermark.cjs");
3
3
  require("./fs-preview.vue2.cjs");
4
- const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { components: { ElIconPaperclip: e.Paperclip, ElIconView: e.View, ElIconDownload: e.Download }, name: "FsPreview", props: { width: { type: [String, Number], default: "100%" }, label: { type: String, default: null }, fileSetObj: { type: Object, default: null }, isSql: { type: Boolean, default: false }, entity: { type: Object, default: () => ({}) }, fileInfo: { type: Object, default: () => ({}) }, disabled: { type: Boolean, default: false }, enableDelete: { type: Boolean, default: false }, watermark: { type: Object, default: () => ({}) }, uploading: { type: Boolean, default: false } }, data: () => ({ showPreviewSingleImage: false, showPreviewMulti: false, previewImageInfo: {}, fileList: [], downloadable: true, keyValueParam: {}, showMultipleFile: false, firstFileUUid: "" }), computed: { firstFileName() {
4
+ const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { components: { ElIconPaperclip: e.Paperclip, ElIconView: e.View, ElIconDownload: e.Download }, name: "FsPreview", props: { width: { type: [String, Number], default: "100%" }, label: { type: String, default: null }, fileSetObj: { type: Object, default: null }, isSql: { type: Boolean, default: false }, entity: { type: Object, default: () => ({}) }, fileInfo: { type: Object, default: () => ({}) }, disabled: { type: Boolean, default: false }, enableDelete: { type: Boolean, default: false }, watermark: { type: Object, default: () => ({}) }, uploading: { type: Boolean, default: false } }, data: () => ({ showPreviewSingleImage: false, showPreviewMulti: false, initialIndex: 0, previewImageListInfo: [], fileList: [], downloadable: true, keyValueParam: {}, showMultipleFile: false, firstFileUUid: "" }), computed: { firstFileName() {
5
5
  var _a;
6
6
  return ((_a = this.label) == null ? void 0 : _a.indexOf(",")) > -1 ? (this.showMultipleFile = true, this.label.split(",")[0]) : (this.showMultipleFile = false, this.label);
7
7
  }, lab() {
@@ -22,7 +22,15 @@ const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { compone
22
22
  const { showName: e2, serverPath: t2 } = this.getFirstFile();
23
23
  this.download(e2, t2);
24
24
  }, previewSingle(e2) {
25
- e2 = l.packageFile(e2.showName, e2.serverPath), o.isImage(e2.showName) ? (this.previewImageInfo = e2, this.showPreviewSingleImage = true) : this.previewDoc(e2);
25
+ if (e2 = l.packageFile(e2.showName, e2.serverPath), o.isImage(e2.showName)) {
26
+ if (this.previewImageListInfo.length = [], this.entity) {
27
+ const { showName: t2, serverPath: i2 } = this.getShowNameAndUuidKey(), l2 = i2.split(","), a2 = s.getToken();
28
+ for (let i3 = 0; i3 < l2.length; i3++)
29
+ o.isImage(t2.split(",")[i3]) && (l2[i3] === e2.serverPath && (this.initialIndex = i3), this.previewImageListInfo.push(window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?serverPath=" + l2[i3] + "&jwt=" + a2));
30
+ }
31
+ this.showPreviewSingleImage = true;
32
+ } else
33
+ this.previewDoc(e2);
26
34
  }, donwloadViewFile() {
27
35
  const { showName: e2, serverPath: t2 } = this.getShowNameAndUuidKey();
28
36
  if (t2) {
@@ -103,9 +111,9 @@ const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { compone
103
111
  this.$emit("delete-file", e2), this.fileList = this.fileList.filter((t2) => t2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: o.getI18n().t("fsUpload.deleteSuccessful") });
104
112
  }, deleteFile(e2) {
105
113
  this.$emit("delete-file", e2), this.fileList = this.fileList.filter((t2) => t2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: o.getI18n().t("fsUpload.deleteSuccessful") });
106
- } }, emits: ["close", "delete-file"] }, d = { ref: "fsPreviewRef" }, m = { class: "fs-preview-container" }, p = ["title"], h = { key: 1, ref: "toolRef", class: "fs-preview-tool" }, w = { style: { "max-height": "300px", "overflow-y": "auto" } }, f = { style: { display: "flex", "align-items": "center", flex: "1" } }, u = { class: "more-file-icon" }, v = { class: "amb-list-preivew-name", style: { width: "230px", "margin-left": "10px" } }, g = { class: "file-actions" };
114
+ } }, emits: ["close", "delete-file"] }, d = { ref: "fsPreviewRef" }, m = { class: "fs-preview-container" }, h = ["title"], p = { key: 1, ref: "toolRef", class: "fs-preview-tool" }, w = { style: { "max-height": "300px", "overflow-y": "auto" } }, f = { style: { display: "flex", "align-items": "center", flex: "1" } }, u = { class: "more-file-icon" }, v = { class: "amb-list-preivew-name", style: { width: "230px", "margin-left": "10px" } }, g = { class: "file-actions" };
107
115
  const N = n(c, [["render", function(e2, i2, o2, l2, s2, a2) {
108
116
  const r2 = t.resolveComponent("super-icon"), n2 = t.resolveComponent("el-tooltip"), c2 = t.resolveComponent("el-divider"), N2 = t.resolveComponent("ArrowDownBold"), b = t.resolveComponent("el-icon"), k = t.resolveComponent("el-button"), P = t.resolveComponent("el-popover"), y = t.resolveComponent("el-image-viewer");
109
- return t.openBlock(), t.createElementBlock("div", d, [t.createElementVNode("div", { ref: "filePreviewRef", onDblclick: i2[3] || (i2[3] = (...e3) => a2.dblclickEvent && a2.dblclickEvent(...e3)), class: "fs-preview-container" }, [t.renderSlot(e2.$slots, "prefix", {}, void 0, true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock(t.Fragment, { key: 0 }, [t.createElementVNode("div", m, [t.createVNode(r2, { iconValue: a2.getFileIconByName(a2.firstFileName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", { title: a2.firstFileName, ref: "nameRef", class: "amb-list-preivew-name" }, t.toDisplayString(a2.firstFileName), 9, p)], 64)) : t.createCommentVNode("", true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock("div", h, [t.renderSlot(e2.$slots, "tool-prefix", { item: a2.getFirstFile() }, void 0, true), o2.enableDelete && !o2.disabled ? (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[0] || (i2[0] = (e3) => a2.deleteFirst()), iconValue: "amb-color-icon-del" })]), _: 1 }, 8, ["content"])) : t.createCommentVNode("", true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[1] || (i2[1] = (e3) => a2.previewFirst()), iconValue: "amb-icon-yulan" })]), _: 1 }, 8, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[2] || (i2[2] = (e3) => a2.downloadFirst()), iconValue: "amb-icon-xiazai" })]), _: 1 }, 8, ["content"])), t.renderSlot(e2.$slots, "tool-suffix", { item: a2.getFirstFile() }, void 0, true), s2.showMultipleFile ? (t.openBlock(), t.createBlock(c2, { key: 3, direction: "vertical" })) : t.createCommentVNode("", true), t.createVNode(P, { width: 450, trigger: "click" }, { reference: t.withCtx(() => [s2.showMultipleFile ? (t.openBlock(), t.createBlock(k, { key: 0, plain: "", type: "primary", round: "", size: "small", onClick: a2.showMultiView }, { default: t.withCtx(() => [t.createTextVNode(t.toDisplayString(e2.$t("fsUpload.more")) + " ", 1), t.createVNode(b, null, { default: t.withCtx(() => [t.createVNode(N2)]), _: 1 })]), _: 1 }, 8, ["onClick"])) : t.createCommentVNode("", true)]), default: t.withCtx(() => [t.createElementVNode("div", w, [(t.openBlock(true), t.createElementBlock(t.Fragment, null, t.renderList(s2.fileList, (i3, l3) => (t.openBlock(), t.createElementBlock("div", { ref_for: true, ref: i3.serverPath, key: i3.serverPath, class: "file-item" }, [t.createElementVNode("div", f, [t.createElementVNode("span", u, [t.createVNode(r2, { iconValue: a2.getFileIconByName(i3.showName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", v, t.toDisplayString(i3.showName), 1)]), t.createElementVNode("div", g, [t.renderSlot(e2.$slots, "tool-more-prefix", { item: i3 }, void 0, true), o2.enableDelete ? (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.deleteFile(i3), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])) : t.createCommentVNode("", true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.previewSingle(i3), iconValue: "amb-icon-yulan" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.donwloadFile(l3), iconValue: "amb-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"]))])]))), 128))])]), _: 3 })], 512)) : t.createCommentVNode("", true)], 544), s2.showPreviewSingleImage ? (t.openBlock(), t.createBlock(y, { key: 0, teleported: "", "url-list": [s2.previewImageInfo.src], onClose: i2[4] || (i2[4] = (e3) => s2.showPreviewSingleImage = false) }, null, 8, ["url-list"])) : t.createCommentVNode("", true)], 512);
110
- }], ["__scopeId", "data-v-2448d898"]]);
117
+ return t.openBlock(), t.createElementBlock("div", d, [t.createElementVNode("div", { ref: "filePreviewRef", onDblclick: i2[3] || (i2[3] = (...e3) => a2.dblclickEvent && a2.dblclickEvent(...e3)), class: "fs-preview-container" }, [t.renderSlot(e2.$slots, "prefix", {}, void 0, true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock(t.Fragment, { key: 0 }, [t.createElementVNode("div", m, [t.createVNode(r2, { iconValue: a2.getFileIconByName(a2.firstFileName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", { title: a2.firstFileName, ref: "nameRef", class: "amb-list-preivew-name" }, t.toDisplayString(a2.firstFileName), 9, h)], 64)) : t.createCommentVNode("", true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock("div", p, [t.renderSlot(e2.$slots, "tool-prefix", { item: a2.getFirstFile() }, void 0, true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[0] || (i2[0] = (e3) => a2.previewFirst()), iconValue: "amb-icon-yulan" })]), _: 1 }, 8, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[1] || (i2[1] = (e3) => a2.downloadFirst()), iconValue: "amb-icon-xiazai" })]), _: 1 }, 8, ["content"])), o2.enableDelete && !o2.disabled ? (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[2] || (i2[2] = (e3) => a2.deleteFirst()), iconValue: "amb-color-icon-del" })]), _: 1 }, 8, ["content"])) : t.createCommentVNode("", true), t.renderSlot(e2.$slots, "tool-suffix", { item: a2.getFirstFile() }, void 0, true), s2.showMultipleFile ? (t.openBlock(), t.createBlock(c2, { key: 3, direction: "vertical" })) : t.createCommentVNode("", true), t.createVNode(P, { width: 450, trigger: "click" }, { reference: t.withCtx(() => [s2.showMultipleFile ? (t.openBlock(), t.createBlock(k, { key: 0, plain: "", type: "primary", round: "", size: "small", onClick: a2.showMultiView }, { default: t.withCtx(() => [t.createTextVNode(t.toDisplayString(e2.$t("fsUpload.more")) + " ", 1), t.createVNode(b, null, { default: t.withCtx(() => [t.createVNode(N2)]), _: 1 })]), _: 1 }, 8, ["onClick"])) : t.createCommentVNode("", true)]), default: t.withCtx(() => [t.createElementVNode("div", w, [(t.openBlock(true), t.createElementBlock(t.Fragment, null, t.renderList(s2.fileList, (i3, l3) => (t.openBlock(), t.createElementBlock("div", { ref_for: true, ref: i3.serverPath, key: i3.serverPath, class: "file-item" }, [t.createElementVNode("div", f, [t.createElementVNode("span", u, [t.createVNode(r2, { iconValue: a2.getFileIconByName(i3.showName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", v, t.toDisplayString(i3.showName), 1)]), t.createElementVNode("div", g, [t.renderSlot(e2.$slots, "tool-more-prefix", { item: i3 }, void 0, true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.previewSingle(i3), iconValue: "amb-icon-yulan" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.donwloadFile(l3), iconValue: "amb-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), o2.enableDelete ? (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.deleteFile(i3), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])) : t.createCommentVNode("", true)])]))), 128))])]), _: 3 })], 512)) : t.createCommentVNode("", true)], 544), s2.showPreviewSingleImage ? (t.openBlock(), t.createBlock(y, { key: 0, teleported: "", "url-list": s2.previewImageListInfo, "initial-index": s2.initialIndex, onClose: i2[4] || (i2[4] = (e3) => s2.showPreviewSingleImage = false) }, null, 8, ["url-list", "initial-index"])) : t.createCommentVNode("", true)], 512);
118
+ }], ["__scopeId", "data-v-7f109349"]]);
111
119
  module.exports = N;
@@ -104,7 +104,7 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
104
104
  C.value = true, async function() {
105
105
  const e3 = new FormData(), t2 = [], l2 = [];
106
106
  let o2 = f.limitFileSize;
107
- void 0 === o2 && (o2 = 30);
107
+ null == o2 && (o2 = 30);
108
108
  let a2 = false;
109
109
  const i2 = w.value.files;
110
110
  for (let e4 = 0; e4 < i2.length; e4++) {
@@ -8,34 +8,34 @@ const e = require("vue"), o = require("./file-upload.vue.cjs"), t = require("@el
8
8
  } }, componentName: { type: String, default: function() {
9
9
  return "file-upload";
10
10
  } }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, beforeUpload: { type: Function, default: () => {
11
- } }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove", "uploadend"], setup(l2, { expose: a, emit: i }) {
12
- const n = l2, r = e.ref(false), p = e.ref(null);
13
- p.value = n.fileList && n.fileList.length > 0 ? n.fileList.map((e2) => e2.showName).join(",") : null;
11
+ } }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove", "uploadend"], setup(l2, { expose: a, emit: n }) {
12
+ const i = l2, r = e.ref(false), p = e.ref(null);
13
+ p.value = i.fileList && i.fileList.length > 0 ? i.fileList.map((e2) => e2.showName).join(",") : null;
14
14
  const u = () => {
15
15
  r.value = true;
16
16
  };
17
17
  function d(e2) {
18
- const o2 = Array.from(n.fileList, ({ serverPath: e3 }) => e3);
19
- JSON.stringify(n.fileList), JSON.stringify(e2), e2.forEach((e3) => {
20
- o2.indexOf(e3.serverPath) < 0 && n.fileList.push({ showName: e3.name, serverPath: e3.serverPath });
21
- }), JSON.stringify(n.fileList), JSON.stringify(e2), p.value = n.fileList.map((e3) => e3.showName).join(","), p.value, n.onSuccess();
18
+ const o2 = Array.from(i.fileList, ({ serverPath: e3 }) => e3);
19
+ JSON.stringify(i.fileList), JSON.stringify(e2), e2.forEach((e3) => {
20
+ o2.indexOf(e3.serverPath) < 0 && i.fileList.push({ name: e3.name, showName: e3.name, serverPath: e3.serverPath });
21
+ }), JSON.stringify(i.fileList), JSON.stringify(e2), p.value = i.fileList.map((e3) => e3.showName).join(","), p.value, i.onSuccess();
22
22
  }
23
23
  function s(e2) {
24
24
  const o2 = e2.rmFiles && e2.rmFiles.length > 0 ? e2.rmFiles[0] : null;
25
25
  if (o2) {
26
- let e3 = n.fileList.findIndex((e4) => e4.serverPath === o2.serverPath);
27
- e3 > -1 && n.fileList.splice(e3, 1);
26
+ let e3 = i.fileList.findIndex((e4) => e4.serverPath === o2.serverPath);
27
+ e3 > -1 && i.fileList.splice(e3, 1);
28
28
  }
29
- p.value = n.fileList.map((e3) => e3.showName).join(","), n.onRemove();
29
+ p.value = i.fileList.map((e3) => e3.showName).join(","), i.onRemove();
30
30
  }
31
31
  const f = e.ref(null), c = e.ref(null);
32
32
  return navigator.userAgent.indexOf(" uni-app ") > 0 ? f.value = "app" : f.value = "browser", a({ pickFileDone: function(e2) {
33
33
  "app" === f.value && c.value.pickFileDone(e2);
34
34
  }, uploadFileDone: function(e2) {
35
35
  "app" === f.value && c.value.uploadFileDone(e2);
36
- } }), (a2, i2) => {
37
- const n2 = e.resolveComponent("el-button"), f2 = e.resolveComponent("el-input"), m = e.resolveComponent("el-dialog");
38
- return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(f2, { ref: "item", disabled: l2.disabled, modelValue: p.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => p.value = e2), placeholder: a2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: e.withCtx(() => [e.createVNode(n2, { icon: e.unref(t.Upload), size: "default", onClick: u }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue", "placeholder"]), e.createVNode(m, { modelValue: r.value, "onUpdate:modelValue": i2[1] || (i2[1] = (e2) => r.value = e2), "append-to-body": true, "show-close": true, title: a2.$t("imatrixUIMessage.upload"), width: "80%", onClose: i2[2] || (i2[2] = (e2) => r.value = false) }, { default: e.withCtx(() => [e.createVNode(o, { ref_key: "fileUploadRef", ref: c, disabled: l2.disabled, fileInfo: l2.fileInfo, systemCode: l2.systemCode, accept: l2.accept, multiple: l2.multiple, limit: l2.limit, limitFileSize: l2.limitFileSize, placeholder: l2.placeholder, action: l2.action, headers: l2.headers, "file-list": l2.fileList, beforeUpload: l2.beforeUpload, onSuccess: l2.onSuccess, beforeRemove: l2.beforeRemove, onRemove: [l2.onRemove, s], beforeDownload: l2.beforeDownload, pageContext: l2.pageContext, configure: l2.configure, openFsUpload: l2.openFsUpload, componentId: l2.componentId, componentName: l2.componentName, listCode: l2.listCode, openCameraOrChoosePhoto: l2.openCameraOrChoosePhoto, watermark: l2.watermark, onUploadend: d }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "placeholder", "action", "headers", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])]), _: 1 }, 8, ["modelValue", "title"])]);
36
+ } }), (a2, n2) => {
37
+ const i2 = e.resolveComponent("el-button"), f2 = e.resolveComponent("el-input"), m = e.resolveComponent("el-dialog");
38
+ return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(f2, { ref: "item", disabled: l2.disabled, modelValue: p.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => p.value = e2), placeholder: a2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: e.withCtx(() => [e.createVNode(i2, { icon: e.unref(t.Upload), size: "default", onClick: u }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue", "placeholder"]), e.createVNode(m, { modelValue: r.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => r.value = e2), "append-to-body": true, "show-close": true, title: a2.$t("imatrixUIMessage.upload"), width: "80%", onClose: n2[2] || (n2[2] = (e2) => r.value = false) }, { default: e.withCtx(() => [e.createVNode(o, { ref_key: "fileUploadRef", ref: c, disabled: l2.disabled, fileInfo: l2.fileInfo, systemCode: l2.systemCode, accept: l2.accept, multiple: l2.multiple, limit: l2.limit, limitFileSize: l2.limitFileSize, placeholder: l2.placeholder, action: l2.action, headers: l2.headers, "file-list": l2.fileList, beforeUpload: l2.beforeUpload, onSuccess: l2.onSuccess, beforeRemove: l2.beforeRemove, onRemove: [l2.onRemove, s], beforeDownload: l2.beforeDownload, pageContext: l2.pageContext, configure: l2.configure, openFsUpload: l2.openFsUpload, componentId: l2.componentId, componentName: l2.componentName, listCode: l2.listCode, openCameraOrChoosePhoto: l2.openCameraOrChoosePhoto, watermark: l2.watermark, onUploadend: d }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "placeholder", "action", "headers", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])]), _: 1 }, 8, ["modelValue", "title"])]);
39
39
  };
40
40
  } });
41
41
  module.exports = l;