agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28
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/dist/index.full.min.js +1381 -1349
- package/dist/style.css +42 -22
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
- package/es/src/views/super-icon/index.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
- package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
- package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
- package/es/style.css +907 -887
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
- package/lib/src/views/super-icon/index.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
- package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
- package/lib/style.css +920 -900
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
- package/src/views/layout/components/Menubar/Item.vue +1 -1
- package/src/views/super-icon/index.js +6 -0
- package/src/views/super-icon/src/index.vue +52 -0
- package/src/views/svg-icon/src/svg-icon.vue +5 -8
|
@@ -9,111 +9,111 @@ import { useI18n as V } from "vue-i18n";
|
|
|
9
9
|
import D from "../../utils/utils.mjs";
|
|
10
10
|
import S from "../../src/assets/nonemessage.png.mjs";
|
|
11
11
|
const $ = { style: { display: "flex" } }, O = { style: { flex: "0 0 20%", "text-align": "left" } }, j = { style: { flex: "0 0 80%", "text-align": "right" } }, z = { class: "item-row" }, M = { class: "item-label" }, P = { class: "item-description" }, A = ["onClick"], U = { style: { display: "flex" } }, B = { key: 0 }, F = { style: { "padding-left": "10px" } }, J = { key: 1 }, K = { key: 0, style: { color: "#999" } }, q = { class: "button-area" }, H = e({ __name: "department-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectDepartmentInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: H2 }) {
|
|
12
|
-
const G = e2, { t: L } = V(), Q = t(null);
|
|
12
|
+
const G = e2, { t: L } = V(), Q = H2, W = t(null);
|
|
13
13
|
t(false);
|
|
14
|
-
let
|
|
14
|
+
let X = t(null), Y = t(false), Z = t(null), ee = t([]);
|
|
15
15
|
t([]);
|
|
16
|
-
let
|
|
16
|
+
let te = t([]);
|
|
17
17
|
t([]);
|
|
18
|
-
let
|
|
19
|
-
function
|
|
18
|
+
let le = t([]), ae = t([]), ne = t(null), se = t(false), oe = t({ userField: "name", searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null });
|
|
19
|
+
function ue() {
|
|
20
20
|
D.canShowOrgTree().then((e3) => {
|
|
21
21
|
e3 ? N(G.departmentInfo, -1, G.limitFilterColumn).then((e4) => {
|
|
22
|
-
|
|
23
|
-
}) :
|
|
22
|
+
ee.value = e4, w(te.value, ae.value);
|
|
23
|
+
}) : ee.value = [];
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
G.multiple && (t2 ?
|
|
26
|
+
function ie(e3, t2, l2) {
|
|
27
|
+
G.multiple && (t2 ? de(e3) : ce(e3));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
!G.multiple && e3.nodeType && "DEPARTMENT" === e3.nodeType && (
|
|
29
|
+
function re(e3, t2, l2, a2) {
|
|
30
|
+
!G.multiple && e3.nodeType && "DEPARTMENT" === e3.nodeType && (te.value = [e3]);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function de(e3) {
|
|
33
33
|
if (e3.nodeType && "DEPARTMENT" === e3.nodeType) {
|
|
34
|
-
const t2 =
|
|
35
|
-
t2 && 0 !== t2.length ||
|
|
34
|
+
const t2 = te.value.filter((t3) => t3.nodeId === e3.nodeId);
|
|
35
|
+
t2 && 0 !== t2.length || te.value.push(JSON.parse(JSON.stringify(e3)));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function de(e3) {
|
|
39
|
-
const t2 = ee.value.findIndex((t3) => t3.nodeId === e3.nodeId);
|
|
40
|
-
ee.value.splice(t2, 1), ne.value = false;
|
|
41
|
-
}
|
|
42
38
|
function ce(e3) {
|
|
39
|
+
const t2 = te.value.findIndex((t3) => t3.nodeId === e3.nodeId);
|
|
40
|
+
te.value.splice(t2, 1), se.value = false;
|
|
41
|
+
}
|
|
42
|
+
function me(e3) {
|
|
43
43
|
if (G.multiple)
|
|
44
44
|
if (e3) {
|
|
45
|
-
const e4 =
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
const e4 = ee.value.map((e5) => e5.nodeId);
|
|
46
|
+
W.value.setCheckedKeys(e4, false), ee.value.forEach((e5) => {
|
|
47
|
+
de(e5);
|
|
48
48
|
});
|
|
49
49
|
} else
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
50
|
+
ee.value.forEach((e4) => {
|
|
51
|
+
ce(e4);
|
|
52
|
+
}), W.value.setCheckedKeys([], false);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function pe(e3) {
|
|
55
55
|
C(e3.id).then((e4) => {
|
|
56
|
-
|
|
56
|
+
ee.value = e4, w(te.value, ae.value);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
t2 ? (
|
|
59
|
+
function fe(e3, t2, l2) {
|
|
60
|
+
t2 ? (le.value = [], ue()) : (le.value.splice(l2 + 1, le.value.length - (l2 + 1)), pe(e3));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function he() {
|
|
63
|
+
ne.value.showResult();
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const t2 =
|
|
65
|
+
function ve(e3) {
|
|
66
|
+
const t2 = te.value.filter((t3) => t3.nodeId === e3.nodeId);
|
|
67
67
|
if (t2 && t2.length > 0) {
|
|
68
68
|
const t3 = [];
|
|
69
|
-
|
|
69
|
+
te.value.forEach((l2) => {
|
|
70
70
|
l2.nodeId !== e3.nodeId && t3.push(l2.nodeId);
|
|
71
|
-
}),
|
|
71
|
+
}), W.value.setCheckedKeys(t3, true);
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
ce(e3);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ye() {
|
|
76
76
|
if (G.multiple) {
|
|
77
77
|
let e3 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
|
|
78
|
-
|
|
78
|
+
te.value.forEach((t3) => {
|
|
79
79
|
let l2;
|
|
80
80
|
l2 = null !== t3.data && void 0 !== t3.data ? JSON.parse(t3.data) : t3, function(e4, t4, l3) {
|
|
81
|
-
e4.ids.push(t4.id), e4.codes.push(l3.code), e4.containBranch =
|
|
81
|
+
e4.ids.push(t4.id), e4.codes.push(l3.code), e4.containBranch = Y.value, l3.tenantCode = X.value.code, l3.tenantName = X.value.tenantName, e4.departments.push(l3);
|
|
82
82
|
const a2 = l3.showName;
|
|
83
83
|
e4.names.push(a2), e4.zhNames.push(l3.name), e4.enNames.push(l3.enName ? l3.enName : "");
|
|
84
84
|
}(e3, t3, l2);
|
|
85
85
|
});
|
|
86
86
|
let t2 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
|
|
87
|
-
Object.assign(t2, e3), t2.ids.length > 0 ?
|
|
87
|
+
Object.assign(t2, e3), t2.ids.length > 0 ? Q("close", t2) : R({ message: L("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
|
|
88
88
|
} else {
|
|
89
|
-
const e3 =
|
|
90
|
-
t2.tenantName =
|
|
91
|
-
const a2 = { id: e3.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch:
|
|
92
|
-
|
|
89
|
+
const e3 = te.value[0], t2 = JSON.parse(e3.data), l2 = e3.showName;
|
|
90
|
+
t2.tenantName = X.value.tenantName, t2.tenantCode = X.value.code;
|
|
91
|
+
const a2 = { id: e3.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch: Y.value, department: t2 };
|
|
92
|
+
Q("close", a2);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
e3 ? (0 === e3.length && R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }),
|
|
98
|
-
})) :
|
|
95
|
+
function ge() {
|
|
96
|
+
oe.value.searchValue ? (oe.value.searchValue = oe.value.searchValue.trim(), oe.value.departmentInfo = G.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-depts", oe.value).then((e3) => {
|
|
97
|
+
e3 ? (0 === e3.length && R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), ee.value = e3) : R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
|
|
98
|
+
})) : ue();
|
|
99
99
|
}
|
|
100
100
|
return l(() => {
|
|
101
101
|
k(G.selectDepartmentInfo, -1, G.searchField, G.separator).then((e3) => {
|
|
102
|
-
|
|
102
|
+
te.value = e3, I().then((e4) => {
|
|
103
103
|
const t2 = e4[0].data;
|
|
104
|
-
|
|
104
|
+
X.value = JSON.parse(t2), Y.value = e4[0].containBranch, Z.value = e4[0].name, ue();
|
|
105
105
|
});
|
|
106
106
|
}), function() {
|
|
107
107
|
const e3 = document.querySelector(".org-tree");
|
|
108
108
|
let t2 = x();
|
|
109
109
|
t2 = t2 - 110 - 60 - 60 - 60, e3.style.height = t2 + "px", e3.style.minHeight = "300px";
|
|
110
110
|
}();
|
|
111
|
-
}), (
|
|
112
|
-
const
|
|
113
|
-
return n(), s("div", null, [o(
|
|
114
|
-
return l3 = t3,
|
|
111
|
+
}), (t2, l2) => {
|
|
112
|
+
const k2 = a("el-checkbox"), I2 = a("el-icon"), N2 = a("el-input"), w2 = a("el-col"), C2 = a("el-row"), x2 = a("el-card"), R2 = a("el-empty"), V2 = a("el-tree"), D2 = a("el-button");
|
|
113
|
+
return n(), s("div", null, [o(x2, { class: "card-content", style: { height: "50px" } }, { default: u(() => [o(C2, { class: "item-row item-row-all" }, { default: u(() => [o(w2, { style: { width: "100%" } }, { default: u(() => [i("div", $, [i("div", O, [e2.multiple ? (n(), r(k2, { key: 0, modelValue: d(se), "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => c(se) ? se.value = e3 : se = e3), label: t2.$t("departmentTreeInline.allCheck"), value: "all", onChange: me }, null, 8, ["modelValue", "label"])) : m("", true)]), i("div", j, [o(N2, { modelValue: d(oe).searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => d(oe).searchValue = e3), placeholder: t2.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: ge, onKeyup: p(ge, ["enter"]), onBlur: ge, clearable: "" }, { suffix: u(() => [o(I2, { onClick: ge }, { default: u(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(Z) ? (n(), r(x2, { key: 0, class: "card-content" }, { default: u(() => [o(C2, { class: "item-row item-row-all" }, { default: u(() => [o(w2, { class: "item-label dept-path" }, { default: u(() => [o(b, { tenantName: d(Z), clickDepts: d(le), onClickBreadcrumb: fe }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : m("", true), o(x2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: u(() => [d(ee).length ? (n(), r(V2, { key: 1, ref_key: "orgTreeRef", ref: W, data: d(ee), "show-checkbox": e2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": d(ae), onCheckChange: ie, onNodeClick: re }, { default: u(({ node: e3, data: t3 }) => [i("div", z, [i("div", M, [f(h(t3.showName) + " ", 1), i("span", P, h(d(T)(t3.showName, t3)), 1)]), t3.leaf ? m("", true) : (n(), s("div", { key: 0, class: "item-side", onClick: (e4) => {
|
|
114
|
+
return l3 = t3, le.value.push(l3), void pe(l3);
|
|
115
115
|
var l3;
|
|
116
|
-
} }, [o(
|
|
116
|
+
} }, [o(I2, null, { default: u(() => [o(d(y))]), _: 1 })], 8, A))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (n(), r(R2, { key: 0, image: d(S) }, null, 8, ["image"]))]), _: 1 }), o(x2, { class: "card-footer" }, { default: u(() => [i("div", U, [i("div", { class: "select-result", onClick: he }, [e2.multiple ? (n(), s("span", { key: 0, onClick: he }, [d(te).length > 0 ? (n(), s("span", B, [f(h(t2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(t2.$t("departmentTreeInline.selectResultInfo", { num: d(te).length })) + " ", 1), i("span", F, [o(I2, null, { default: u(() => [o(d(g))]), _: 1 })])])) : m("", true)])) : d(te).length > 0 ? (n(), s("span", J, [f(h(t2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(te)[0].showName), 1), "-1" !== d(te)[0].parentNodeId && d(_)(d(te)[0]) ? (n(), s("span", K, "(" + h(d(_)(d(te)[0])) + ")", 1)) : m("", true)])) : m("", true)]), i("div", q, [o(D2, { size: "large", type: "primary", onClick: ye }, { default: u(() => [f(h(t2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(E, { ref_key: "deptResultRef", ref: ne, selectDepts: d(te), onRemoveDept: ve }, null, 8, ["selectDepts"])]);
|
|
117
117
|
};
|
|
118
118
|
} });
|
|
119
119
|
export {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as s, toDisplayString as u, unref as i, Fragment as p, renderList as k } from "vue";
|
|
2
2
|
const m = { key: 1 }, d = ["onClick"], o = { key: 1 }, b = e({ __name: "dept-path", props: { tenantName: { type: String, default: null }, clickDepts: { type: Array, default: null } }, emits: ["clickBreadcrumb"], setup(e2, { emit: b2 }) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const f = b2;
|
|
4
|
+
let y = l(e2.tenantName);
|
|
5
|
+
function h(e3, l2, t2) {
|
|
6
|
+
f("clickBreadcrumb", e3, l2, t2);
|
|
6
7
|
}
|
|
7
8
|
return (l2, b3) => {
|
|
8
|
-
const
|
|
9
|
-
return a(), n(_, { separator: "/" }, { default: c(() => [r(
|
|
9
|
+
const f2 = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
|
|
10
|
+
return a(), n(_, { separator: "/" }, { default: c(() => [r(f2, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => h(null, true)) }, u(i(y)), 1)) : (a(), s("span", m, u(i(y)), 1))]), _: 1 }), (a(true), s(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(f2, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => h(l3, false, t2) }, u(l3.showName), 9, d)) : (a(), s("span", o, u(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
|
|
10
11
|
};
|
|
11
12
|
} });
|
|
12
13
|
export {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, resolveComponent as l, openBlock as o, createBlock as s, unref as a, isRef as i, withCtx as
|
|
2
|
-
import { DeleteFilled as
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as l, openBlock as o, createBlock as s, unref as a, isRef as i, withCtx as n, createElementVNode as r, toDisplayString as d, createVNode as u, createTextVNode as c } from "vue";
|
|
2
|
+
import { DeleteFilled as m } from "@element-plus/icons-vue";
|
|
3
3
|
import { getShowDeptNamePath as p } from "../../utils/organization.mjs";
|
|
4
4
|
const f = { style: { "text-align": "center" } }, v = { class: "item-row" }, h = { class: "item-label" }, k = { class: "item-description" }, w = ["onClick"], _ = e({ __name: "dept-result", props: { selectDepts: { type: Array, default: null } }, emits: ["removeDept"], setup(e2, { expose: _2, emit: g }) {
|
|
5
5
|
let y = t(false);
|
|
6
|
+
const D = g;
|
|
6
7
|
return _2({ showResult: function() {
|
|
7
8
|
y.value = true;
|
|
8
9
|
} }), (t2, _3) => {
|
|
9
|
-
const
|
|
10
|
-
return o(), s(x, { modelValue: a(y), "onUpdate:modelValue": _3[0] || (_3[0] = (e3) => i(y) ? y.value = e3 : y = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header:
|
|
11
|
-
|
|
12
|
-
} }, [u(
|
|
10
|
+
const g2 = l("el-icon"), R = l("el-tree"), x = l("el-drawer");
|
|
11
|
+
return o(), s(x, { modelValue: a(y), "onUpdate:modelValue": _3[0] || (_3[0] = (e3) => i(y) ? y.value = e3 : y = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: n(() => [r("div", f, d(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: n(() => [u(R, { ref: "orgResultTreeRef", data: e2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: n(({ node: e3, data: t3 }) => [r("div", v, [r("div", h, [c(d(t3.showName), 1), r("span", k, d(a(p)(t3.showName, t3)), 1)]), r("div", { class: "item-side", onClick: (e4) => {
|
|
12
|
+
D("removeDept", t3);
|
|
13
|
+
} }, [u(g2, null, { default: n(() => [u(a(m))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
|
|
13
14
|
};
|
|
14
15
|
} });
|
|
15
16
|
export {
|
|
@@ -155,11 +155,11 @@ const R = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "sho
|
|
|
155
155
|
setTimeout(() => {
|
|
156
156
|
e2.isShowGroupTree = true;
|
|
157
157
|
}, 10);
|
|
158
|
-
} }, emits: ["result"] }, S = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, b = ["title"], x = { key: 1, style: { height: "100%", overflow: "hidden" } }, M =
|
|
159
|
-
const
|
|
160
|
-
const i2 = u("el-button"), l2 = u("el-autocomplete"), d2 = u("el-header"), o2 = u("Menu"), h2 = u("Tickets"), c2 = u("User"), p2 = u("Calendar"), v2 = u("el-icon"), R2 = u("el-tree"),
|
|
161
|
-
return m(), f("div", null, [U(
|
|
158
|
+
} }, emits: ["result"] }, S = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, b = ["title"], x = { key: 1, style: { height: "100%", overflow: "hidden" } }, M = { style: { "text-align": "left", "font-size": "16px" } }, $ = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
|
|
159
|
+
const E = v(R, [["render", function(e2, t2, s2, r2, a2, n2) {
|
|
160
|
+
const i2 = u("el-button"), l2 = u("el-autocomplete"), d2 = u("el-header"), o2 = u("Menu"), h2 = u("Tickets"), c2 = u("User"), p2 = u("Calendar"), v2 = u("el-icon"), R2 = u("el-tree"), E2 = u("el-tab-pane"), A = u("GroupUser"), D = u("GroupUserMultipleTree"), _ = u("el-tabs"), w = u("EmptyState"), P = u("user-result"), V = u("el-main"), B = u("el-container"), G = u("el-aside");
|
|
161
|
+
return m(), f("div", null, [U(B, { style: { height: "395px" } }, { default: g(() => [U(G, { width: "430px" }, { default: g(() => [U(B, { style: { height: "390px" } }, { default: g(() => [U(d2, { style: { "font-size": "12px", height: "35px", padding: "0px 10px" } }, { default: g(() => [U(l2, { modelValue: a2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input inline-input-custom searchDepartmentUser", size: "default", onSelect: e2.handleSelect, onKeyup: N(n2.clickSearch, ["enter"]) }, { append: g(() => [U(i2, { icon: a2.ElIconSearch, onClick: n2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), U(V, { style: { padding: "10px" } }, { default: g(() => [a2.searchValue ? I("", true) : (m(), f(C, { key: 0 }, [a2.canShowOrgTree ? (m(), f("div", S, [U(_, { modelValue: a2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.activeTab = e3), class: "boe" }, { default: g(() => [U(E2, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: g(() => [U(R2, { ref: "deparmentUserTree", props: a2.defaultProps, load: n2.loadNode, "check-on-click-node": true, lazy: "", "show-checkbox": "", "node-key": "nodeId", onCheck: n2.handleCheckNode, onCheckChange: n2.handleCheckChange }, { default: g(({ node: e3, data: t3 }) => [T("span", null, [U(v2, null, { default: g(() => [-1 === e3.data.id || e3.data.branch ? (m(), y(o2, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (m(), y(h2, { key: 1 })) : "USER" === e3.data.nodeType ? (m(), y(c2, { key: 2 })) : (m(), y(p2, { key: 3 }))]), _: 2 }, 1024), T("span", { title: e3.label }, k(e3.label), 9, b)])]), _: 1 }, 8, ["props", "load", "onCheck", "onCheckChange"])]), _: 1 }, 8, ["label"]), U(E2, { name: "groupTree" }, { label: g(() => [T("span", null, k(e2.$t("departmentUserTreeInline.group")), 1), T("span", null, [U(A, { "active-tab": a2.activeTab, onUpdateGroupTree: n2.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: g(() => [a2.isShowGroupTree ? (m(), y(D, { key: 0, onResult: n2.getGroupUserResult }, null, 8, ["onResult"])) : I("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (m(), y(w, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), a2.searchValue && a2.searchValue.length > 0 ? (m(), f("div", x, [U(P, { "contain-branch": a2.containBranch, "grid-data": a2.searchResult, height: s2.height, "is-search-result": true, multiple: true, "select-result": a2.selectResult, onAddUser: n2.selectUser }, null, 8, ["contain-branch", "grid-data", "height", "select-result", "onAddUser"])])) : I("", true)]), _: 1 })]), _: 1 })]), _: 1 }), U(B, null, { default: g(() => [U(G, { width: "2px" }, { default: g(() => [...t2[2] || (t2[2] = [T("table", { border: "1px", cellpadding: "0", cellspacing: "0", style: { height: "100%", "border-left-style": "solid", "border-bottom-style": "none", "border-right-style": "none", "border-top-style": "none", "border-left-color": "#cccccc" } }, null, -1)])]), _: 1 }), U(V, { style: { padding: "10px" } }, { default: g(() => [T("div", M, k(e2.$t("departmentUserTree.selectedPeople")) + ":", 1), T("div", $, [U(P, { "contain-branch": a2.containBranch, "grid-data": a2.selectResult, height: s2.height, "is-search-result": false, multiple: true, onRemoveUser: n2.removeUser }, null, 8, ["contain-branch", "grid-data", "height", "onRemoveUser"])])]), _: 1 })]), _: 1 })]), _: 1 })]);
|
|
162
162
|
}]]);
|
|
163
163
|
export {
|
|
164
|
-
|
|
164
|
+
E as default
|
|
165
165
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, resolveComponent as l, openBlock as r, createBlock as o, unref as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as l, openBlock as r, createBlock as o, unref as s, isRef as a, withCtx as n, createElementVNode as i, toDisplayString as m, createCommentVNode as p } from "vue";
|
|
2
|
+
import c from "./department-user-tree-inline-app.vue.mjs";
|
|
3
|
+
const u = { style: { "text-align": "center" } }, d = e({ name: "DepartmentUserTreeMobile", props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: d2 }) {
|
|
4
|
+
const f = d2;
|
|
5
|
+
let I = t(true);
|
|
6
|
+
function F(e3) {
|
|
7
|
+
f("close", e3), I.value = false;
|
|
7
8
|
}
|
|
8
|
-
return (
|
|
9
|
-
const
|
|
10
|
-
return r(), o(
|
|
9
|
+
return (t2, d3) => {
|
|
10
|
+
const f2 = l("el-drawer");
|
|
11
|
+
return r(), o(f2, { modelValue: s(I), "onUpdate:modelValue": d3[0] || (d3[0] = (e3) => a(I) ? I.value = e3 : I = e3), "append-to-body": "", "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", class: "organization-tree", onClose: d3[1] || (d3[1] = (e3) => F()) }, { header: n(() => [i("div", u, m(t2.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [s(I) ? (r(), o(c, { key: 0, multiple: e2.multiple, departmentInfo: e2.departmentInfo, selectUserInfo: e2.selectUserInfo, searchField: e2.searchField, separator: e2.separator, limitFilterColumn: e2.limitFilterColumn, onClose: F }, null, 8, ["multiple", "departmentInfo", "selectUserInfo", "searchField", "separator", "limitFilterColumn"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
|
|
11
12
|
};
|
|
12
13
|
} });
|
|
13
14
|
export {
|
|
@@ -9,125 +9,125 @@ import { useI18n as V } from "vue-i18n";
|
|
|
9
9
|
import M from "../../utils/utils.mjs";
|
|
10
10
|
import O from "../../src/assets/nonemessage.png.mjs";
|
|
11
11
|
const P = { style: { display: "flex" } }, J = { style: { flex: "0 0 20%", "text-align": "left" } }, j = { style: { flex: "0 0 80%", "text-align": "right" } }, A = { class: "item-row" }, D = { key: 0, class: "item-label" }, F = { style: { color: "#999" } }, H = ["onClick"], K = { key: 0, style: { color: "#999" } }, q = ["onClick"], z = { style: { display: "flex" } }, B = { class: "select-result" }, Z = { key: 0 }, G = { key: 1 }, L = { key: 2 }, Q = { key: 3, style: { "padding-left": "10px" } }, W = { key: 1 }, X = { style: { color: "#999" } }, Y = { class: "button-area" }, ee = e({ __name: "department-user-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: ee2 }) {
|
|
12
|
-
const le = e2, te = l(null);
|
|
13
|
-
let
|
|
12
|
+
const le = e2, te = ee2, ne = l(null);
|
|
13
|
+
let ae = l(null), se = l(false), oe = l(null), re = l([]);
|
|
14
14
|
l([]);
|
|
15
|
-
let
|
|
15
|
+
let ue = l([]), ie = l([]);
|
|
16
16
|
l([]);
|
|
17
|
-
let
|
|
18
|
-
const { t:
|
|
19
|
-
function
|
|
17
|
+
let de = l([]), ce = l([]), pe = l(null), me = l(false), fe = l({ userField: "name", searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }), he = l({ disabled: "disable" }), ve = l(false);
|
|
18
|
+
const { t: ge } = V();
|
|
19
|
+
function ye() {
|
|
20
20
|
M.canShowOrgTree().then((e3) => {
|
|
21
21
|
e3 ? k(le.departmentInfo, "-1", le.limitFilterColumn).then((e4) => {
|
|
22
|
-
|
|
23
|
-
}) :
|
|
22
|
+
re.value = e4, T(ue.value, ce.value);
|
|
23
|
+
}) : re.value = [];
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
le.multiple && (l2 ? le.multiple &&
|
|
26
|
+
function Ie(e3, l2, t2) {
|
|
27
|
+
le.multiple && (l2 ? le.multiple && Te(e3) : (le.multiple || e3.nodeType && "USER" === e3.nodeType) && Ne(e3));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
!le.multiple && e3.nodeType && "USER" === e3.nodeType && (
|
|
29
|
+
function ke(e3, l2, t2, n2) {
|
|
30
|
+
!le.multiple && e3.nodeType && "USER" === e3.nodeType && (ue.value = [e3]);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Te(e3) {
|
|
33
33
|
if (e3.nodeType && "USER" === e3.nodeType) {
|
|
34
|
-
const l2 = re.value.filter((l3) => l3.nodeId === e3.nodeId);
|
|
35
|
-
l2 && 0 !== l2.length || re.value.push(JSON.parse(JSON.stringify(e3)));
|
|
36
|
-
} else {
|
|
37
34
|
const l2 = ue.value.filter((l3) => l3.nodeId === e3.nodeId);
|
|
38
35
|
l2 && 0 !== l2.length || ue.value.push(JSON.parse(JSON.stringify(e3)));
|
|
36
|
+
} else {
|
|
37
|
+
const l2 = ie.value.filter((l3) => l3.nodeId === e3.nodeId);
|
|
38
|
+
l2 && 0 !== l2.length || ie.value.push(JSON.parse(JSON.stringify(e3)));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ne(e3) {
|
|
42
42
|
if (e3.nodeType && "USER" === e3.nodeType) {
|
|
43
|
-
const l2 = re.value.findIndex((l3) => l3.nodeId === e3.nodeId);
|
|
44
|
-
re.value.splice(l2, 1);
|
|
45
|
-
} else {
|
|
46
43
|
const l2 = ue.value.findIndex((l3) => l3.nodeId === e3.nodeId);
|
|
47
44
|
ue.value.splice(l2, 1);
|
|
45
|
+
} else {
|
|
46
|
+
const l2 = ie.value.findIndex((l3) => l3.nodeId === e3.nodeId);
|
|
47
|
+
ie.value.splice(l2, 1);
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
me.value = false;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ue(e3) {
|
|
52
52
|
if (le.multiple)
|
|
53
53
|
if (e3) {
|
|
54
|
-
const e4 =
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
const e4 = re.value.map((e5) => e5.nodeId);
|
|
55
|
+
ne.value.setCheckedKeys(e4, false), re.value.forEach((e5) => {
|
|
56
|
+
Te(e5);
|
|
57
57
|
});
|
|
58
58
|
} else
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
59
|
+
re.value.forEach((e4) => {
|
|
60
|
+
Ne(e4);
|
|
61
|
+
}), ne.value.setCheckedKeys([], false);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function we(e3) {
|
|
64
64
|
U(e3.id, e3.branchId).then((e4) => {
|
|
65
|
-
|
|
65
|
+
re.value = e4, T(ue.value, ce.value);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function Re(e3, l2) {
|
|
69
|
+
de.value.push(e3), we(e3);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
l2 ? (
|
|
71
|
+
function xe(e3, l2, t2) {
|
|
72
|
+
l2 ? (de.value = [], ye()) : (de.value.splice(t2 + 1, de.value.length - (t2 + 1)), we(e3));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function Se() {
|
|
75
|
+
pe.value.showResult();
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
const l2 =
|
|
77
|
+
function Ee(e3) {
|
|
78
|
+
const l2 = re.value.filter((l3) => l3.nodeId === e3.nodeId);
|
|
79
79
|
if (l2 && l2.length > 0) {
|
|
80
80
|
const l3 = [];
|
|
81
|
-
|
|
81
|
+
ue.value.forEach((t2) => {
|
|
82
82
|
t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
|
|
83
|
-
}),
|
|
83
|
+
}), ie.value.forEach((t2) => {
|
|
84
84
|
t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
|
|
85
|
-
}),
|
|
85
|
+
}), ne.value.setCheckedKeys(l3, true);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
Ne(e3);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (0 !==
|
|
89
|
+
function be() {
|
|
90
|
+
if (0 !== ie.value.length || 0 !== ue.value.length)
|
|
91
91
|
if (le.multiple) {
|
|
92
92
|
const e3 = { userIds: [], userNames: [], loginNames: [], userZhNames: [], userEnNames: [], emails: [], telephones: [], users: [], divisionManager: [], divisionManagerName: [] }, l2 = [];
|
|
93
|
-
|
|
93
|
+
ie.value.forEach((e4) => {
|
|
94
94
|
l2.push(e4.id);
|
|
95
|
-
}),
|
|
95
|
+
}), ue.value.forEach((l3) => {
|
|
96
96
|
const t2 = JSON.parse(l3.data);
|
|
97
|
-
E(e3, t2,
|
|
98
|
-
}),
|
|
97
|
+
E(e3, t2, se.value);
|
|
98
|
+
}), ve.value = true, l2.length > 0 ? N(l2).then((l3) => {
|
|
99
99
|
l3 && l3.forEach((l4) => {
|
|
100
|
-
E(e3, l4,
|
|
101
|
-
}),
|
|
100
|
+
E(e3, l4, se.value);
|
|
101
|
+
}), ve.value = false, e3.userIds.length > 0 ? te("close", e3) : $({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
|
|
102
102
|
}).catch(() => {
|
|
103
|
-
|
|
104
|
-
}) : (
|
|
103
|
+
ve.value = false;
|
|
104
|
+
}) : (ve.value = false, e3.userIds.length > 0 ? te("close", e3) : $({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
|
|
105
105
|
} else {
|
|
106
|
-
const e3 = JSON.parse(
|
|
107
|
-
|
|
106
|
+
const e3 = JSON.parse(ue.value[0].data), l2 = b(e3, se.value);
|
|
107
|
+
te("close", l2);
|
|
108
108
|
}
|
|
109
109
|
else
|
|
110
|
-
$({ message:
|
|
110
|
+
$({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
e3 ? (0 === e3.length && $({ message:
|
|
115
|
-
})) :
|
|
112
|
+
function _e() {
|
|
113
|
+
fe.value.searchValue ? (fe.value.searchValue = fe.value.searchValue.trim(), fe.value.departmentInfo = le.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", fe.value).then((e3) => {
|
|
114
|
+
e3 ? (0 === e3.length && $({ message: ge("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), re.value = e3) : $({ message: ge("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
|
|
115
|
+
})) : ye();
|
|
116
116
|
}
|
|
117
117
|
return t(() => {
|
|
118
118
|
w(le.searchField, le.selectUserInfo, le.separator).then((e3) => {
|
|
119
|
-
|
|
119
|
+
ue.value = e3, I().then((e4) => {
|
|
120
120
|
const l2 = e4[0].data;
|
|
121
|
-
|
|
121
|
+
ae.value = JSON.parse(l2), se.value = e4[0].containBranch, oe.value = e4[0].name, ye();
|
|
122
122
|
});
|
|
123
123
|
}), function() {
|
|
124
124
|
const e3 = document.querySelector(".org-tree");
|
|
125
125
|
let l2 = R();
|
|
126
126
|
l2 = l2 - 110 - 60 - 60 - 60, e3.style.height = l2 + "px", e3.style.minHeight = "300px";
|
|
127
127
|
}();
|
|
128
|
-
}), (
|
|
129
|
-
const
|
|
130
|
-
return a(), s("div", null, [o(
|
|
128
|
+
}), (l2, t2) => {
|
|
129
|
+
const I2 = n("el-checkbox"), k2 = n("el-icon"), T2 = n("el-input"), N2 = n("el-col"), U2 = n("el-row"), w2 = n("el-card"), R2 = n("el-empty"), E2 = n("el-tree"), b2 = n("el-button");
|
|
130
|
+
return a(), s("div", null, [o(w2, { class: "card-content", style: { height: "50px" } }, { default: r(() => [o(U2, { class: "item-row item-row-all" }, { default: r(() => [o(N2, { style: { width: "100%" } }, { default: r(() => [u("div", P, [u("div", J, [e2.multiple ? (a(), i(I2, { key: 0, modelValue: d(me), "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => c(me) ? me.value = e3 : me = e3), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: Ue }, null, 8, ["modelValue", "label"])) : p("", true)]), u("div", j, [o(T2, { modelValue: d(fe).searchValue, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => d(fe).searchValue = e3), placeholder: l2.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: _e, onKeyup: m(_e, ["enter"]), onBlur: _e, clearable: "" }, { suffix: r(() => [o(k2, { onClick: _e }, { default: r(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(oe) ? (a(), i(w2, { key: 0, class: "card-content" }, { default: r(() => [o(U2, { class: "item-row item-row-all" }, { default: r(() => [o(N2, { class: "item-label dept-path" }, { default: r(() => [o(_, { tenantName: d(oe), clickDepts: d(de), onClickBreadcrumb: xe }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), o(w2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: r(() => [d(re).length ? (a(), i(E2, { key: 1, ref_key: "orgTreeRef", ref: ne, data: d(re), "show-checkbox": e2.multiple, "node-key": "nodeId", props: d(he), "default-checked-keys": d(ce), onCheckChange: Ie, onNodeClick: ke }, { default: r(({ node: e3, data: l3 }) => [u("div", A, [l3.nodeType && "USER" === l3.nodeType ? (a(), s("div", D, [f(h(l3.showName) + " ", 1), u("span", F, "(" + h(l3.loginName) + h(d(x)(l3) ? "/" + d(x)(l3) : "") + ")", 1)])) : (a(), s("div", { key: 1, class: "item-label", onClick: (e4) => Re(l3) }, [f(h(l3.showName), 1), "-1" !== l3.parentNodeId && d(S)(l3) ? (a(), s("span", K, "(" + h(d(S)(l3)) + ")", 1)) : p("", true)], 8, H)), l3.nodeType && "USER" === l3.nodeType ? p("", true) : (a(), s("div", { key: 2, class: "item-side", onClick: (e4) => Re(l3) }, [o(k2, null, { default: r(() => [o(d(g))]), _: 1 })], 8, q))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (a(), i(R2, { key: 0, image: d(O) }, null, 8, ["image"]))]), _: 1 }), o(w2, { class: "card-footer" }, { default: r(() => [u("div", z, [u("div", B, [e2.multiple ? (a(), s("span", { key: 0, onClick: Se }, [d(ue).length > 0 && d(ie).length > 0 ? (a(), s("span", Z, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: d(ue).length })) + ", " + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ie).length })), 1)) : d(ue).length > 0 ? (a(), s("span", G, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: d(ue).length })), 1)) : d(ie).length > 0 ? (a(), s("span", L, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ie).length })), 1)) : p("", true), d(ue).length > 0 || d(ie).length > 0 ? (a(), s("span", Q, [o(k2, null, { default: r(() => [o(d(y))]), _: 1 })])) : p("", true)])) : d(ue).length > 0 ? (a(), s("span", W, [f(h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(ue)[0].showName), 1), u("span", X, "(" + h(d(ue)[0].loginName) + h(d(x)(d(ue)[0]) ? "/" + d(x)(d(ue)[0]) : "") + ")", 1)])) : p("", true)]), u("div", Y, [o(b2, { size: "large", type: "primary", onClick: be }, { default: r(() => [f(h(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(C, { ref_key: "deptResultRef", ref: pe, selectUsers: d(ue).concat(d(ie)), onRemoveResult: Ee }, null, 8, ["selectUsers"])]);
|
|
131
131
|
};
|
|
132
132
|
} });
|
|
133
133
|
export {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as s, toDisplayString as u, unref as i, Fragment as p, renderList as k } from "vue";
|
|
2
2
|
const m = { key: 1 }, d = ["onClick"], o = { key: 1 }, b = e({ __name: "dept-path", props: { tenantName: { type: String, default: null }, clickDepts: { type: Array, default: null } }, emits: ["clickBreadcrumb"], setup(e2, { emit: b2 }) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const f = b2;
|
|
4
|
+
let y = l(e2.tenantName);
|
|
5
|
+
function h(e3, l2, t2) {
|
|
6
|
+
f("clickBreadcrumb", e3, l2, t2);
|
|
6
7
|
}
|
|
7
8
|
return (l2, b3) => {
|
|
8
|
-
const
|
|
9
|
-
return a(), n(_, { separator: "/" }, { default: c(() => [r(
|
|
9
|
+
const f2 = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
|
|
10
|
+
return a(), n(_, { separator: "/" }, { default: c(() => [r(f2, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => h(null, true)) }, u(i(y)), 1)) : (a(), s("span", m, u(i(y)), 1))]), _: 1 }), (a(true), s(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(f2, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => h(l3, false, t2) }, u(l3.showName), 9, d)) : (a(), s("span", o, u(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
|
|
10
11
|
};
|
|
11
12
|
} });
|
|
12
13
|
export {
|
|
@@ -3,13 +3,14 @@ import { DeleteFilled as f } from "@element-plus/icons-vue";
|
|
|
3
3
|
import { getUserMainDeptName as y, getDeptNamePath as v } from "../../utils/organization.mjs";
|
|
4
4
|
const R = { style: { "text-align": "center" } }, k = { class: "item-row" }, g = { class: "item-label" }, T = { key: 0, style: { color: "#999" } }, _ = { key: 1, style: { color: "#999" } }, w = ["onClick"], U = e({ __name: "dept-result", props: { selectUsers: { type: Array, default: null } }, emits: ["removeResult"], setup(e2, { expose: U2, emit: h }) {
|
|
5
5
|
let x = t(false);
|
|
6
|
+
const z = h;
|
|
6
7
|
return U2({ showResult: function() {
|
|
7
8
|
x.value = true;
|
|
8
9
|
} }), (t2, U3) => {
|
|
9
|
-
const
|
|
10
|
+
const h2 = l("el-icon"), I = l("el-tree"), N = l("el-drawer");
|
|
10
11
|
return o(), s(N, { modelValue: a(x), "onUpdate:modelValue": U3[0] || (U3[0] = (e3) => r(x) ? x.value = e3 : x = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: n(() => [d("div", R, i(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: n(() => [a(x) ? (o(), s(I, { key: 0, ref: "orgResultTreeRef", data: e2.selectUsers, "node-key": "nodeId" }, { default: n(({ node: e3, data: t3 }) => [d("div", k, [d("div", g, [u(i(t3.showName) + " ", 1), t3.nodeType && "USER" === t3.nodeType ? (o(), m("span", T, "(" + i(t3.loginName) + i(a(y)(t3) ? "/" + a(y)(t3) : "") + ")", 1)) : c("", true), "-1" !== t3.parentNodeId && a(v)(t3) ? (o(), m("span", _, "(" + i(a(v)(t3)) + ")", 1)) : c("", true)]), d("div", { class: "item-side", onClick: (e4) => {
|
|
11
|
-
|
|
12
|
-
} }, [p(
|
|
12
|
+
z("removeResult", t3);
|
|
13
|
+
} }, [p(h2, null, { default: n(() => [p(a(f))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])) : c("", true)]), _: 1 }, 8, ["modelValue"]);
|
|
13
14
|
};
|
|
14
15
|
} });
|
|
15
16
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as e, createElementBlock as i, createElementVNode as a, normalizeStyle as p, toDisplayString as m, unref as n } from "vue";
|
|
2
2
|
import { useI18n as r } from "vue-i18n";
|
|
3
3
|
const s = { class: "empty_center_area" }, o = { class: "empty_notAvailable_text" }, l = t({ __name: "index", props: { imageHeight: { type: String, default: "120px" }, imageWidth: { type: String, default: "120px" }, emptyText: { type: String, default: "" } }, setup(t2) {
|
|
4
|
-
const
|
|
5
|
-
return (t3, r2) => (e(), i("div", s, [a("div", { class: "empty_notAvailable", style: p({ width:
|
|
4
|
+
const { t: l2 } = r(), g = t2;
|
|
5
|
+
return (t3, r2) => (e(), i("div", s, [a("div", { class: "empty_notAvailable", style: p({ width: g.imageWidth, height: g.imageHeight }) }, [a("span", o, m(g.emptyText ? g.emptyText : n(l2)("imatrixUIPromptMessage.NoContent")), 1)], 4)]));
|
|
6
6
|
} });
|
|
7
7
|
export {
|
|
8
8
|
l as default
|