command-center-v3-common 0.0.32 → 0.0.34

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.
@@ -0,0 +1,65 @@
1
+ import { defineComponent as x, ref as h, resolveComponent as y, openBlock as t, createElementBlock as o, createCommentVNode as r, createVNode as g, withCtx as w, createElementVNode as n, unref as e, toDisplayString as l, Fragment as v, renderList as b } from "vue";
2
+ import { h as k, _ as D, $ as i } from "./command-center-v3-common-DAVahsX-.js";
3
+ function N(u) {
4
+ return k.post({
5
+ // /organization/orgTree
6
+ url: "/organization/orgTree",
7
+ data: u,
8
+ isFormData: !0
9
+ });
10
+ }
11
+ const S = { class: "h-full overflow-auto" }, C = {
12
+ key: 1,
13
+ class: "h-[500px]"
14
+ }, V = { class: "box-border rounded h-[40px] w-full mb-1 box-hy-border-2 bg-hy-page-bg-3 text-hy-main text-xs flex items-center justify-center px-1" }, $ = /* @__PURE__ */ n("s", { class: "flex-shrink-0 inline-block w-[10px] h-[10px] mr-1 rounded-full bg-hy-main" }, null, -1), z = { class: "max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-center text-hy-hy-text-main" }, B = { key: 0 }, L = { key: 1 }, T = { class: "text-hy-main" }, F = /* @__PURE__ */ x({
15
+ __name: "hy-test",
16
+ setup(u) {
17
+ async function p(s) {
18
+ const c = await N(s);
19
+ if (c.code === 200)
20
+ return c.data;
21
+ }
22
+ const m = h(!1), a = h([]);
23
+ function _(s) {
24
+ a.value = s.selectedData || [], console.log(a.value);
25
+ }
26
+ return (s, c) => (y("el-tooltip"), t(), o("div", S, [
27
+ r("", !0),
28
+ (t(), o("div", C, [
29
+ g(D, {
30
+ "item-size": 36,
31
+ "get-data": p,
32
+ "show-online-only": !1,
33
+ "show-checkbox": !0,
34
+ "hide-org-no-data": !0,
35
+ "parent-checkbox": !1,
36
+ onOnSelectedData: _
37
+ }, {
38
+ "below-the-input": w(() => [
39
+ n("div", null, [
40
+ n("div", V, [
41
+ $,
42
+ n("div", z, [
43
+ e(a).length === 0 ? (t(), o("span", B, l(e(i)("pleaseSelectWhatYouWantToViewBelow")) + l(e(m) ? e(i)("department") : e(i)("equipment")), 1)) : (t(), o("span", L, [
44
+ n("span", T, l(e(i)("currentlySelected")), 1),
45
+ (t(!0), o(v, null, b(e(a), (d, f) => (t(), o("span", {
46
+ key: `${f}_selectedDataList`,
47
+ class: "text-hy-text-main"
48
+ }, l(d.devName || d.companyName || d.orgName), 1))), 128))
49
+ ]))
50
+ ])
51
+ ])
52
+ ])
53
+ ]),
54
+ _: 1
55
+ })
56
+ ])),
57
+ r("", !0),
58
+ r("", !0),
59
+ r("", !0)
60
+ ]));
61
+ }
62
+ });
63
+ export {
64
+ F as default
65
+ };