widget.qw 1.0.98 → 1.1.1
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/.env.development +1 -1
- package/build/style.css +20 -88
- package/build/widget.qw.es.js +280 -784
- package/build/widget.qw.umd.js +280 -784
- package/package.json +1 -1
- package/src/components/CascaderPicker.vue +53 -32
- package/src/components/CascaderPop.vue +77 -72
- package/src/components/index.js +0 -10
- package/src/router/index.ts +0 -5
- package/src/views/cascaderpicker/userpicker.vue +2 -2
- package/src/views/userpicker/index.vue +3 -2
- package/src/components/UserPicker.vue +0 -107
- package/src/components/UsersPicker.vue +0 -118
- package/src/components/widget/UserPop.vue +0 -346
- package/src/views/userspicker/index.vue +0 -43
package/build/widget.qw.es.js
CHANGED
|
@@ -48,13 +48,13 @@ var _export_sfc = (sfc, props2) => {
|
|
|
48
48
|
}
|
|
49
49
|
return target;
|
|
50
50
|
};
|
|
51
|
-
const _hoisted_1$
|
|
51
|
+
const _hoisted_1$k = {
|
|
52
52
|
class: "enterprise-header"
|
|
53
53
|
};
|
|
54
|
-
const _hoisted_2$
|
|
54
|
+
const _hoisted_2$e = {
|
|
55
55
|
class: "header-title"
|
|
56
56
|
};
|
|
57
|
-
const _sfc_main$
|
|
57
|
+
const _sfc_main$u = {
|
|
58
58
|
__name: "HeadBar",
|
|
59
59
|
props: {
|
|
60
60
|
title: {
|
|
@@ -86,13 +86,13 @@ const _sfc_main$x = {
|
|
|
86
86
|
};
|
|
87
87
|
return (_ctx, _cache) => {
|
|
88
88
|
const _component_van_icon = resolveComponent("van-icon");
|
|
89
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
89
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [unref(canGoBack) ? (openBlock(), createElementBlock("button", {
|
|
90
90
|
key: 0,
|
|
91
91
|
class: "header-btn back-btn",
|
|
92
92
|
onClick: handleBack
|
|
93
93
|
}, [createVNode(_component_van_icon, {
|
|
94
94
|
name: "arrow-left"
|
|
95
|
-
})])) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$
|
|
95
|
+
})])) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$e, toDisplayString(__props2.title), 1), createElementVNode("button", {
|
|
96
96
|
class: "header-btn home-btn",
|
|
97
97
|
onClick: handleHome
|
|
98
98
|
}, [createVNode(_component_van_icon, {
|
|
@@ -101,7 +101,7 @@ const _sfc_main$x = {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
var HeadBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
104
|
+
var HeadBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-435ecee6"]]);
|
|
105
105
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
106
106
|
function getAugmentedNamespace(n) {
|
|
107
107
|
if (n.__esModule)
|
|
@@ -17202,20 +17202,20 @@ var lodash$1 = { exports: {} };
|
|
|
17202
17202
|
var lodash = lodash$1.exports;
|
|
17203
17203
|
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1e9a1a8a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-1e9a1a8a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-1e9a1a8a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-1e9a1a8a] {\n width: 120px;\n}\n.apply-btn[data-v-1e9a1a8a] {\n width: 60vw;\n}\n.task-list[data-v-1e9a1a8a] {\n margin-top: 15px;\n}\n.task-title[data-v-1e9a1a8a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-1e9a1a8a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-1e9a1a8a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
17204
17204
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
17205
|
-
const _hoisted_1$
|
|
17205
|
+
const _hoisted_1$j = {
|
|
17206
17206
|
class: "widget"
|
|
17207
17207
|
};
|
|
17208
|
-
const _hoisted_2$
|
|
17209
|
-
const _hoisted_3$
|
|
17210
|
-
const _hoisted_4$
|
|
17211
|
-
const _hoisted_5$
|
|
17208
|
+
const _hoisted_2$d = /* @__PURE__ */ createTextVNode("\u9A73\u56DE");
|
|
17209
|
+
const _hoisted_3$a = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4");
|
|
17210
|
+
const _hoisted_4$9 = /* @__PURE__ */ createTextVNode("\u7533\u8BF7");
|
|
17211
|
+
const _hoisted_5$8 = {
|
|
17212
17212
|
key: 4,
|
|
17213
17213
|
class: "audit-title"
|
|
17214
17214
|
};
|
|
17215
|
-
const _hoisted_6$
|
|
17215
|
+
const _hoisted_6$7 = {
|
|
17216
17216
|
class: "task-title"
|
|
17217
17217
|
};
|
|
17218
|
-
const _sfc_main$
|
|
17218
|
+
const _sfc_main$t = {
|
|
17219
17219
|
__name: "AuditBar",
|
|
17220
17220
|
props: {
|
|
17221
17221
|
processId: {
|
|
@@ -17482,7 +17482,7 @@ const _sfc_main$w = {
|
|
|
17482
17482
|
const _component_van_popover = resolveComponent("van-popover");
|
|
17483
17483
|
const _component_van_step = resolveComponent("van-step");
|
|
17484
17484
|
const _component_van_steps = resolveComponent("van-steps");
|
|
17485
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17485
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [unref(canPass) || unref(canRefuse) ? (openBlock(), createBlock(_component_van_field, {
|
|
17486
17486
|
key: 0,
|
|
17487
17487
|
modelValue: data2.memo,
|
|
17488
17488
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.memo = $event),
|
|
@@ -17503,7 +17503,7 @@ const _sfc_main$w = {
|
|
|
17503
17503
|
type: "danger",
|
|
17504
17504
|
onClick: onRefuse
|
|
17505
17505
|
}, {
|
|
17506
|
-
default: withCtx(() => [_hoisted_2$
|
|
17506
|
+
default: withCtx(() => [_hoisted_2$d]),
|
|
17507
17507
|
_: 1
|
|
17508
17508
|
})]),
|
|
17509
17509
|
_: 1
|
|
@@ -17514,7 +17514,7 @@ const _sfc_main$w = {
|
|
|
17514
17514
|
"native-type": "submit",
|
|
17515
17515
|
onClick: onPass
|
|
17516
17516
|
}, {
|
|
17517
|
-
default: withCtx(() => [_hoisted_3$
|
|
17517
|
+
default: withCtx(() => [_hoisted_3$a]),
|
|
17518
17518
|
_: 1
|
|
17519
17519
|
})) : createCommentVNode("", true), unref(canApply) ? (openBlock(), createBlock(_component_van_button, {
|
|
17520
17520
|
key: 3,
|
|
@@ -17523,9 +17523,9 @@ const _sfc_main$w = {
|
|
|
17523
17523
|
"native-type": "submit",
|
|
17524
17524
|
onClick: onApply
|
|
17525
17525
|
}, {
|
|
17526
|
-
default: withCtx(() => [_hoisted_4$
|
|
17526
|
+
default: withCtx(() => [_hoisted_4$9]),
|
|
17527
17527
|
_: 1
|
|
17528
|
-
})) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
17528
|
+
})) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createElementBlock("div", _hoisted_5$8, toDisplayString(unref(formatProcessTitle)), 1)) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createBlock(_component_van_steps, {
|
|
17529
17529
|
key: 5,
|
|
17530
17530
|
class: "task-list",
|
|
17531
17531
|
direction: "vertical",
|
|
@@ -17535,7 +17535,7 @@ const _sfc_main$w = {
|
|
|
17535
17535
|
return openBlock(), createBlock(_component_van_step, {
|
|
17536
17536
|
key: i
|
|
17537
17537
|
}, {
|
|
17538
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6$
|
|
17538
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6$7, toDisplayString(formatTitle(task)), 1), task.executors ? (openBlock(true), createElementBlock(Fragment, {
|
|
17539
17539
|
key: 0
|
|
17540
17540
|
}, renderList(task.executors, (executor, j) => {
|
|
17541
17541
|
return openBlock(), createElementBlock("div", {
|
|
@@ -17551,7 +17551,7 @@ const _sfc_main$w = {
|
|
|
17551
17551
|
};
|
|
17552
17552
|
}
|
|
17553
17553
|
};
|
|
17554
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17554
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-1e9a1a8a"]]);
|
|
17555
17555
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
17556
17556
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
17557
17557
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -17619,25 +17619,25 @@ function useVModel(props2, key, emit2, options = {}) {
|
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
17621
17621
|
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17622
|
-
const _hoisted_1$
|
|
17622
|
+
const _hoisted_1$i = {
|
|
17623
17623
|
style: {
|
|
17624
17624
|
"display": "flex",
|
|
17625
17625
|
"align-items": "center"
|
|
17626
17626
|
}
|
|
17627
17627
|
};
|
|
17628
|
-
const _hoisted_2$
|
|
17628
|
+
const _hoisted_2$c = {
|
|
17629
17629
|
style: {
|
|
17630
17630
|
"font-size": "20px",
|
|
17631
17631
|
"color": "#999"
|
|
17632
17632
|
}
|
|
17633
17633
|
};
|
|
17634
|
-
const _hoisted_3$
|
|
17634
|
+
const _hoisted_3$9 = {
|
|
17635
17635
|
style: {
|
|
17636
17636
|
"margin": "15px 0 0 0"
|
|
17637
17637
|
}
|
|
17638
17638
|
};
|
|
17639
|
-
const _hoisted_4$
|
|
17640
|
-
const _sfc_main$
|
|
17639
|
+
const _hoisted_4$8 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
17640
|
+
const _sfc_main$s = {
|
|
17641
17641
|
__name: "Input",
|
|
17642
17642
|
props: {
|
|
17643
17643
|
modelValue: {
|
|
@@ -17752,7 +17752,7 @@ const _sfc_main$v = {
|
|
|
17752
17752
|
"padding": "25px 15px"
|
|
17753
17753
|
}
|
|
17754
17754
|
}, {
|
|
17755
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
17755
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$i, [createElementVNode("span", _hoisted_2$c, toDisplayString(props.modelValue || ""), 1), createVNode(_component_van_field, {
|
|
17756
17756
|
modelValue: data.express,
|
|
17757
17757
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.express = $event),
|
|
17758
17758
|
placeholder: "\u8BF7\u8F93\u5165+/-\u6570\u5B57",
|
|
@@ -17760,12 +17760,12 @@ const _sfc_main$v = {
|
|
|
17760
17760
|
style: {
|
|
17761
17761
|
"font-size": "20px"
|
|
17762
17762
|
}
|
|
17763
|
-
}, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$
|
|
17763
|
+
}, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$9, [createVNode(_component_van_button, {
|
|
17764
17764
|
onClick: onSubmit,
|
|
17765
17765
|
type: "primary",
|
|
17766
17766
|
size: "large"
|
|
17767
17767
|
}, {
|
|
17768
|
-
default: withCtx(() => [_hoisted_4$
|
|
17768
|
+
default: withCtx(() => [_hoisted_4$8]),
|
|
17769
17769
|
_: 1
|
|
17770
17770
|
})])]),
|
|
17771
17771
|
_: 1
|
|
@@ -17785,9 +17785,9 @@ const _sfc_main$v = {
|
|
|
17785
17785
|
};
|
|
17786
17786
|
}
|
|
17787
17787
|
};
|
|
17788
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17788
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-bdbdf60a"]]);
|
|
17789
17789
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17790
|
-
const _sfc_main$
|
|
17790
|
+
const _sfc_main$r = {
|
|
17791
17791
|
__name: "SinglePicker",
|
|
17792
17792
|
props: {
|
|
17793
17793
|
id: String,
|
|
@@ -17903,16 +17903,16 @@ const _sfc_main$u = {
|
|
|
17903
17903
|
};
|
|
17904
17904
|
}
|
|
17905
17905
|
};
|
|
17906
|
-
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17906
|
+
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-3ae83b36"]]);
|
|
17907
17907
|
var DataPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-box[data-v-10d79413] {\r\n min-height: 20vh;\r\n max-height: 40vh;\r\n overflow-y: auto;\n.checkbox-list[data-v-10d79413] {\r\n padding: 15px 25px;\n[data-v-10d79413] .van-checkbox__label {\r\n flex: 1;\r\n text-align: right;\n}\n}\n}\n.select-all-container[data-v-10d79413] {\r\n font-size: 14px;\r\n padding: 15px 25px 0 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-10d79413] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-10d79413] {\r\n margin-left: 8px;\n}\r\n")();
|
|
17908
|
-
const _hoisted_1$
|
|
17908
|
+
const _hoisted_1$h = {
|
|
17909
17909
|
class: "select-all-container"
|
|
17910
17910
|
};
|
|
17911
|
-
const _hoisted_2$
|
|
17912
|
-
const _hoisted_3$
|
|
17911
|
+
const _hoisted_2$b = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
17912
|
+
const _hoisted_3$8 = {
|
|
17913
17913
|
class: "checkbox-list"
|
|
17914
17914
|
};
|
|
17915
|
-
const _sfc_main$
|
|
17915
|
+
const _sfc_main$q = {
|
|
17916
17916
|
__name: "DataPop",
|
|
17917
17917
|
props: {
|
|
17918
17918
|
show: {
|
|
@@ -17959,16 +17959,16 @@ const _sfc_main$t = {
|
|
|
17959
17959
|
position: "bottom",
|
|
17960
17960
|
class: "popup-box"
|
|
17961
17961
|
}, {
|
|
17962
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
17962
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$h, [createVNode(_component_van_checkbox, {
|
|
17963
17963
|
shape: "square",
|
|
17964
17964
|
modelValue: data2.isAllChecked,
|
|
17965
17965
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.isAllChecked = $event),
|
|
17966
17966
|
onClick: onToggleAll,
|
|
17967
17967
|
"label-position": "left"
|
|
17968
17968
|
}, {
|
|
17969
|
-
default: withCtx(() => [_hoisted_2$
|
|
17969
|
+
default: withCtx(() => [_hoisted_2$b]),
|
|
17970
17970
|
_: 1
|
|
17971
|
-
}, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$
|
|
17971
|
+
}, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$8, [createVNode(_component_van_checkbox_group, {
|
|
17972
17972
|
modelValue: unref(modelValue2),
|
|
17973
17973
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue2) ? modelValue2.value = $event : null),
|
|
17974
17974
|
direction: "vertical"
|
|
@@ -17993,12 +17993,12 @@ const _sfc_main$t = {
|
|
|
17993
17993
|
};
|
|
17994
17994
|
}
|
|
17995
17995
|
};
|
|
17996
|
-
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17996
|
+
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-10d79413"]]);
|
|
17997
17997
|
var MultiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.data-item[data-v-17dcd144]{\r\n margin: 0 8px 8px 0;\r\n padding: 2px 5px;\n}\r\n")();
|
|
17998
|
-
const _hoisted_1$
|
|
17998
|
+
const _hoisted_1$g = {
|
|
17999
17999
|
class: "data-list"
|
|
18000
18000
|
};
|
|
18001
|
-
const _sfc_main$
|
|
18001
|
+
const _sfc_main$p = {
|
|
18002
18002
|
__name: "MultiPicker",
|
|
18003
18003
|
props: {
|
|
18004
18004
|
id: String,
|
|
@@ -18113,7 +18113,7 @@ const _sfc_main$s = {
|
|
|
18113
18113
|
_: 2
|
|
18114
18114
|
}, [unref(selectOptions).length > 0 ? {
|
|
18115
18115
|
name: "input",
|
|
18116
|
-
fn: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
18116
|
+
fn: withCtx(() => [createElementVNode("div", _hoisted_1$g, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
18117
18117
|
return openBlock(), createBlock(_component_van_tag, {
|
|
18118
18118
|
class: "data-item",
|
|
18119
18119
|
closeable: !unref(isDisabled2),
|
|
@@ -18136,9 +18136,9 @@ const _sfc_main$s = {
|
|
|
18136
18136
|
};
|
|
18137
18137
|
}
|
|
18138
18138
|
};
|
|
18139
|
-
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18139
|
+
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-17dcd144"]]);
|
|
18140
18140
|
var CheckGroup_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-c848ffbc] .label {\n color: #000 !important;\n}\n[data-v-c848ffbc] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18141
|
-
const _sfc_main$
|
|
18141
|
+
const _sfc_main$o = {
|
|
18142
18142
|
__name: "CheckGroup",
|
|
18143
18143
|
props: {
|
|
18144
18144
|
id: {
|
|
@@ -18264,8 +18264,8 @@ const _sfc_main$r = {
|
|
|
18264
18264
|
};
|
|
18265
18265
|
}
|
|
18266
18266
|
};
|
|
18267
|
-
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18268
|
-
const _sfc_main$
|
|
18267
|
+
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-c848ffbc"]]);
|
|
18268
|
+
const _sfc_main$n = {
|
|
18269
18269
|
__name: "DatetimePop",
|
|
18270
18270
|
props: {
|
|
18271
18271
|
isShow: {
|
|
@@ -18547,7 +18547,7 @@ const _sfc_main$q = {
|
|
|
18547
18547
|
};
|
|
18548
18548
|
}
|
|
18549
18549
|
};
|
|
18550
|
-
const _sfc_main$
|
|
18550
|
+
const _sfc_main$m = {
|
|
18551
18551
|
__name: "DatetimePicker",
|
|
18552
18552
|
props: {
|
|
18553
18553
|
modelValue: {
|
|
@@ -18656,7 +18656,7 @@ const _sfc_main$p = {
|
|
|
18656
18656
|
rules: unref(rules2),
|
|
18657
18657
|
"right-icon": unref(rightIcon),
|
|
18658
18658
|
onClickRightIcon: onToggleShow
|
|
18659
|
-
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "right-icon"])) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
18659
|
+
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "right-icon"])) : createCommentVNode("", true), createVNode(_sfc_main$n, {
|
|
18660
18660
|
isShow: data2.isShow,
|
|
18661
18661
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
18662
18662
|
modelValue: unref(modelValue2),
|
|
@@ -18668,7 +18668,7 @@ const _sfc_main$p = {
|
|
|
18668
18668
|
};
|
|
18669
18669
|
}
|
|
18670
18670
|
};
|
|
18671
|
-
const _sfc_main$
|
|
18671
|
+
const _sfc_main$l = {
|
|
18672
18672
|
__name: "DatetimeDropdown",
|
|
18673
18673
|
props: {
|
|
18674
18674
|
modelValue: {
|
|
@@ -18720,7 +18720,7 @@ const _sfc_main$o = {
|
|
|
18720
18720
|
return openBlock(), createBlock(_component_van_dropdown_item, {
|
|
18721
18721
|
title: unref(formatTitle)
|
|
18722
18722
|
}, {
|
|
18723
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
18723
|
+
default: withCtx(() => [createVNode(_sfc_main$m, {
|
|
18724
18724
|
modelValue: unref(modelValue2),
|
|
18725
18725
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue2) ? modelValue2.value = $event : null),
|
|
18726
18726
|
placeholder: props2.placeholder,
|
|
@@ -18732,23 +18732,23 @@ const _sfc_main$o = {
|
|
|
18732
18732
|
}
|
|
18733
18733
|
};
|
|
18734
18734
|
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-e306bd52] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-e306bd52] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-e306bd52] {\r\n border: 0;\n}\n.flex-between[data-v-e306bd52] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-e306bd52] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-e306bd52] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px);\r\n overflow-y: auto;\n}\n.select-all-container[data-v-e306bd52] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-e306bd52] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-e306bd52] {\r\n margin-left: 8px;\n}\r\n")();
|
|
18735
|
-
const _hoisted_1$
|
|
18735
|
+
const _hoisted_1$f = {
|
|
18736
18736
|
class: "pad10 flex-between showMultipleButton"
|
|
18737
18737
|
};
|
|
18738
|
-
const _hoisted_2$
|
|
18739
|
-
const _hoisted_3$
|
|
18738
|
+
const _hoisted_2$a = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
18739
|
+
const _hoisted_3$7 = {
|
|
18740
18740
|
class: "bold"
|
|
18741
18741
|
};
|
|
18742
|
-
const _hoisted_4$
|
|
18743
|
-
const _hoisted_5$
|
|
18742
|
+
const _hoisted_4$7 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
18743
|
+
const _hoisted_5$7 = {
|
|
18744
18744
|
key: 0,
|
|
18745
18745
|
class: "select-all-container"
|
|
18746
18746
|
};
|
|
18747
|
-
const _hoisted_6$
|
|
18748
|
-
const _hoisted_7$
|
|
18747
|
+
const _hoisted_6$6 = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
18748
|
+
const _hoisted_7$6 = {
|
|
18749
18749
|
class: "checkbox-style"
|
|
18750
18750
|
};
|
|
18751
|
-
const _sfc_main$
|
|
18751
|
+
const _sfc_main$k = {
|
|
18752
18752
|
__name: "data_selector",
|
|
18753
18753
|
props: {
|
|
18754
18754
|
multiple: {
|
|
@@ -18969,20 +18969,20 @@ const _sfc_main$n = {
|
|
|
18969
18969
|
position: "bottom",
|
|
18970
18970
|
class: "popup-style"
|
|
18971
18971
|
}, {
|
|
18972
|
-
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$
|
|
18972
|
+
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$f, [createVNode(_component_van_button, {
|
|
18973
18973
|
plain: "",
|
|
18974
18974
|
size: "normal",
|
|
18975
18975
|
onClick: cancelSelection
|
|
18976
18976
|
}, {
|
|
18977
|
-
default: withCtx(() => [_hoisted_2$
|
|
18977
|
+
default: withCtx(() => [_hoisted_2$a]),
|
|
18978
18978
|
_: 1
|
|
18979
|
-
}), createElementVNode("div", _hoisted_3$
|
|
18979
|
+
}), createElementVNode("div", _hoisted_3$7, toDisplayString(__props2.label), 1), createVNode(_component_van_button, {
|
|
18980
18980
|
plain: "",
|
|
18981
18981
|
type: "primary",
|
|
18982
18982
|
size: "normal",
|
|
18983
18983
|
onClick: confirmSelection
|
|
18984
18984
|
}, {
|
|
18985
|
-
default: withCtx(() => [_hoisted_4$
|
|
18985
|
+
default: withCtx(() => [_hoisted_4$7]),
|
|
18986
18986
|
_: 1
|
|
18987
18987
|
})]), createVNode(_component_van_field, {
|
|
18988
18988
|
"left-icon": "search",
|
|
@@ -18993,16 +18993,16 @@ const _sfc_main$n = {
|
|
|
18993
18993
|
},
|
|
18994
18994
|
clearable: "",
|
|
18995
18995
|
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57"
|
|
18996
|
-
}, null, 8, ["modelValue"]), props2.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
18996
|
+
}, null, 8, ["modelValue"]), props2.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$7, [createVNode(_component_van_checkbox, {
|
|
18997
18997
|
shape: "square",
|
|
18998
18998
|
modelValue: isAllChecked.value,
|
|
18999
18999
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
19000
19000
|
onClick: toggleAllSelect,
|
|
19001
19001
|
"label-position": "left"
|
|
19002
19002
|
}, {
|
|
19003
|
-
default: withCtx(() => [_hoisted_6$
|
|
19003
|
+
default: withCtx(() => [_hoisted_6$6]),
|
|
19004
19004
|
_: 1
|
|
19005
|
-
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$
|
|
19005
|
+
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$6, [props2.multiple ? (openBlock(), createBlock(_component_van_checkbox_group, {
|
|
19006
19006
|
key: 0,
|
|
19007
19007
|
modelValue: checkedValue.value,
|
|
19008
19008
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkedValue.value = $event)
|
|
@@ -19057,16 +19057,16 @@ const _sfc_main$n = {
|
|
|
19057
19057
|
};
|
|
19058
19058
|
}
|
|
19059
19059
|
};
|
|
19060
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19060
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-e306bd52"]]);
|
|
19061
19061
|
var mult_list_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\r\n/* // \u4FEE\u6539 confirmation-group \u548C confirmation-item \u7684\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n padding: 0 16px;\r\n --van-checkbox-disabled-icon-color: black;\n}\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 16px;\r\n margin: 0 -16px;\r\n border-bottom: 1px solid #f5f5f5;\r\n /* \u7981\u7528\u72B6\u6001\u6837\u5F0F */\n}\r\n\r\n/* // \u5728\u4E0B\u65B9\u6DFB\u52A0\u5A92\u4F53\u67E5\u8BE2\u9002\u914D\u5C0F\u5C4F\u5E55 */\n@media (max-width: 320px) {\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 8px;\r\n margin: 0 -8px;\n}\n}\n.confirmation-item[data-v-40a09897]:last-child {\r\n border-bottom: none;\n}\r\n\r\n/* \u65B0\u589E\u6837\u5F0F */\n.confirmation-tips[data-v-40a09897] {\r\n padding: 12px 16px;\r\n background: #f0faff;\r\n border-radius: 8px;\r\n margin: 10px 16px;\r\n display: flex;\r\n align-items: center;\r\n color: #1989fa;\r\n font-size: 13px;\r\n border: 1px solid #d9efff;\n}\n.confirmation-tips .van-icon[data-v-40a09897] {\r\n margin-right: 8px;\n}\r\n\r\n/* \u65B0\u589E\u5B57\u4F53\u7EE7\u627F\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n font-size: inherit; /* \u7EE7\u627F\u7236\u7EA7\u5B57\u4F53\u5927\u5C0F */\n}\n.option-text[data-v-40a09897] {\r\n font-size: 14px; /* \u660E\u786E\u6307\u5B9A\u5B57\u4F53\u5927\u5C0F */\r\n line-height: 1.5; /* \u4FDD\u6301\u884C\u9AD8\u4E00\u81F4 */\r\n /* color:black; */\n}\r\n\r\n/* \u9002\u914D\u79FB\u52A8\u7AEF\u7684\u5B57\u4F53\u8C03\u6574 */\n@media (max-width: 375px) {\n.option-text[data-v-40a09897] {\r\n font-size: 13px;\n}\n}\r\n\r\n/* \u65B0\u589E\u7981\u7528\u72B6\u6001\u6837\u5F0F */\n.custom-checkbox[data-v-40a09897]:disabled .--van-checkbox__icon {\r\n background-color: #f5f5f5;\r\n border-color: #ebedf0;\r\n transition: all 0.3s;\n}\n.custom-checkbox[data-v-40a09897]:disabled .van-checkbox__icon--checked {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\r\n opacity: 0.7;\n}\n.van-checkbox--disabled[data-v-40a09897] .option-text {\r\n color: #969799;\n}\n.van-checkbox--disabled.van-checkbox--checked[data-v-40a09897] .option-text {\r\n color: #1989fa;\r\n opacity: 0.8;\n}\r\n")();
|
|
19062
|
-
const _hoisted_1$
|
|
19062
|
+
const _hoisted_1$e = {
|
|
19063
19063
|
key: 0,
|
|
19064
19064
|
class: "confirmation-tips"
|
|
19065
19065
|
};
|
|
19066
|
-
const _hoisted_2$
|
|
19066
|
+
const _hoisted_2$9 = {
|
|
19067
19067
|
class: "option-text"
|
|
19068
19068
|
};
|
|
19069
|
-
const _sfc_main$
|
|
19069
|
+
const _sfc_main$j = {
|
|
19070
19070
|
__name: "mult_list_selector",
|
|
19071
19071
|
props: {
|
|
19072
19072
|
options: {
|
|
@@ -19101,7 +19101,7 @@ const _sfc_main$m = {
|
|
|
19101
19101
|
const _component_van_icon = resolveComponent("van-icon");
|
|
19102
19102
|
const _component_van_checkbox = resolveComponent("van-checkbox");
|
|
19103
19103
|
const _component_van_checkbox_group = resolveComponent("van-checkbox-group");
|
|
19104
|
-
return openBlock(), createElementBlock(Fragment, null, [__props2.tips && __props2.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19104
|
+
return openBlock(), createElementBlock(Fragment, null, [__props2.tips && __props2.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$e, [createVNode(_component_van_icon, {
|
|
19105
19105
|
name: "info",
|
|
19106
19106
|
color: "#1989fa"
|
|
19107
19107
|
}), createElementVNode("span", null, toDisplayString(__props2.tips), 1)])) : createCommentVNode("", true), createVNode(_component_van_checkbox_group, {
|
|
@@ -19122,7 +19122,7 @@ const _sfc_main$m = {
|
|
|
19122
19122
|
"icon-size": "18px",
|
|
19123
19123
|
class: "custom-checkbox"
|
|
19124
19124
|
}, {
|
|
19125
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_2$
|
|
19125
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_2$9, toDisplayString(item.label), 1)]),
|
|
19126
19126
|
_: 2
|
|
19127
19127
|
}, 1032, ["name"])]);
|
|
19128
19128
|
}), 128))]),
|
|
@@ -19131,26 +19131,26 @@ const _sfc_main$m = {
|
|
|
19131
19131
|
};
|
|
19132
19132
|
}
|
|
19133
19133
|
};
|
|
19134
|
-
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19134
|
+
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-40a09897"]]);
|
|
19135
19135
|
var subdepartment_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.department-popup[data-v-c4c3b896] {\r\n width: 100%;\r\n height: 60vh;\r\n border-radius: 16px 16px 0 0;\n}\n.popup-container[data-v-c4c3b896] {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1;\r\n height: 100%;\n}\n.picker-header[data-v-c4c3b896] {\r\n display: flex;\r\n align-items: center;\r\n padding: 12px;\r\n border-bottom: 1px solid #ebedf0;\r\n gap: 8px;\r\n background: #fff;\r\n /* flex-shrink: 0; */\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n height: 56px;\r\n /* \u56FA\u5B9A\u5934\u90E8\u9AD8\u5EA6 */\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u5934\u90E8\u88AB\u538B\u7F29 */\n}\n.scroll-container[data-v-c4c3b896] {\r\n flex: 1;\r\n height: 0;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n /* height: calc(80vh - 170px); */\r\n /* \u8BA1\u7B97\u65B9\u5F0F\uFF1A\u603B\u9AD8\u5EA6(80vh) - \u5934\u90E8\u9AD8\u5EA6(56px) - \u641C\u7D22\u6846\u9AD8\u5EA6(52px) */\r\n position: relative;\r\n top: -1px;\n}\n.back-button[data-v-c4c3b896] {\r\n margin-right: 8px;\n}\n.current-path[data-v-c4c3b896] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.action-buttons[data-v-c4c3b896] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\r\n\r\n/* .scroll-container {\r\n flex: 1;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n} */\n.cell-content[data-v-c4c3b896] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-c4c3b896] {\r\n width: 20px;\r\n height: 20px;\r\n border: 1px solid #ebedf0;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-c4c3b896] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-c4c3b896] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-c4c3b896] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-c4c3b896] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-c4c3b896] {\r\n color: #969799;\n}\n.search-field[data-v-c4c3b896] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
19136
|
-
const _hoisted_1$
|
|
19136
|
+
const _hoisted_1$d = {
|
|
19137
19137
|
class: "department-selector"
|
|
19138
19138
|
};
|
|
19139
|
-
const _hoisted_2$
|
|
19139
|
+
const _hoisted_2$8 = {
|
|
19140
19140
|
class: "popup-container"
|
|
19141
19141
|
};
|
|
19142
|
-
const _hoisted_3$
|
|
19142
|
+
const _hoisted_3$6 = {
|
|
19143
19143
|
class: "picker-header"
|
|
19144
19144
|
};
|
|
19145
|
-
const _hoisted_4$
|
|
19145
|
+
const _hoisted_4$6 = {
|
|
19146
19146
|
class: "current-path"
|
|
19147
19147
|
};
|
|
19148
|
-
const _hoisted_5$
|
|
19148
|
+
const _hoisted_5$6 = {
|
|
19149
19149
|
class: "action-buttons"
|
|
19150
19150
|
};
|
|
19151
|
-
const _hoisted_6$
|
|
19152
|
-
const _hoisted_7$
|
|
19153
|
-
const _hoisted_8$
|
|
19151
|
+
const _hoisted_6$5 = /* @__PURE__ */ createTextVNode(" \u53D6\u6D88 ");
|
|
19152
|
+
const _hoisted_7$5 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
19153
|
+
const _hoisted_8$4 = {
|
|
19154
19154
|
class: "scroll-container"
|
|
19155
19155
|
};
|
|
19156
19156
|
const _hoisted_9$3 = {
|
|
@@ -19160,7 +19160,7 @@ const _hoisted_10$2 = ["onClick"];
|
|
|
19160
19160
|
const _hoisted_11$2 = {
|
|
19161
19161
|
class: "name"
|
|
19162
19162
|
};
|
|
19163
|
-
const _sfc_main$
|
|
19163
|
+
const _sfc_main$i = {
|
|
19164
19164
|
__name: "subdepartment_selector",
|
|
19165
19165
|
props: {
|
|
19166
19166
|
modelValue: [String, Number],
|
|
@@ -19403,7 +19403,7 @@ const _sfc_main$l = {
|
|
|
19403
19403
|
const _component_van_cell = resolveComponent("van-cell");
|
|
19404
19404
|
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
19405
19405
|
const _component_van_popup = resolveComponent("van-popup");
|
|
19406
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19406
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [!unref(isGone2) ? (openBlock(), createBlock(_component_van_field, {
|
|
19407
19407
|
key: 0,
|
|
19408
19408
|
"model-value": selectedDepartmentPath.value,
|
|
19409
19409
|
readonly: "",
|
|
@@ -19423,18 +19423,18 @@ const _sfc_main$l = {
|
|
|
19423
19423
|
position: "bottom",
|
|
19424
19424
|
class: "department-popup"
|
|
19425
19425
|
}, {
|
|
19426
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
19426
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$8, [createElementVNode("div", _hoisted_3$6, [unref(currentLevel) > 0 ? (openBlock(), createBlock(_component_van_button, {
|
|
19427
19427
|
key: 0,
|
|
19428
19428
|
onClick: goBack,
|
|
19429
19429
|
icon: "arrow-left",
|
|
19430
19430
|
size: "small",
|
|
19431
19431
|
class: "back-button"
|
|
19432
|
-
})) : createCommentVNode("", true), createElementVNode("div", _hoisted_4$
|
|
19432
|
+
})) : createCommentVNode("", true), createElementVNode("div", _hoisted_4$6, toDisplayString(unref(currentPath)), 1), createElementVNode("div", _hoisted_5$6, [createVNode(_component_van_button, {
|
|
19433
19433
|
size: "small",
|
|
19434
19434
|
onClick: handleCancel,
|
|
19435
19435
|
class: "cancel-btn"
|
|
19436
19436
|
}, {
|
|
19437
|
-
default: withCtx(() => [_hoisted_6$
|
|
19437
|
+
default: withCtx(() => [_hoisted_6$5]),
|
|
19438
19438
|
_: 1
|
|
19439
19439
|
}), createVNode(_component_van_button, {
|
|
19440
19440
|
type: "primary",
|
|
@@ -19443,7 +19443,7 @@ const _sfc_main$l = {
|
|
|
19443
19443
|
disabled: !tempSelectedDepartment.value,
|
|
19444
19444
|
class: "confirm-btn"
|
|
19445
19445
|
}, {
|
|
19446
|
-
default: withCtx(() => [_hoisted_7$
|
|
19446
|
+
default: withCtx(() => [_hoisted_7$5]),
|
|
19447
19447
|
_: 1
|
|
19448
19448
|
}, 8, ["disabled"])])]), createVNode(_component_van_field, {
|
|
19449
19449
|
"left-icon": "search",
|
|
@@ -19455,7 +19455,7 @@ const _sfc_main$l = {
|
|
|
19455
19455
|
clearable: "",
|
|
19456
19456
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0\u641C\u7D22",
|
|
19457
19457
|
class: "search-field"
|
|
19458
|
-
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
19458
|
+
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$4, [createVNode(_component_van_cell_group, null, {
|
|
19459
19459
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredDepartments), (item, index) => {
|
|
19460
19460
|
return openBlock(), createBlock(_component_van_cell, {
|
|
19461
19461
|
key: index,
|
|
@@ -19491,28 +19491,28 @@ const _sfc_main$l = {
|
|
|
19491
19491
|
};
|
|
19492
19492
|
}
|
|
19493
19493
|
};
|
|
19494
|
-
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19494
|
+
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-c4c3b896"]]);
|
|
19495
19495
|
var user_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-850c4b52] {\r\n height: 60vh;\r\n width: 100%;\n}\n.picker-header[data-v-850c4b52] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.scroll-container[data-v-850c4b52] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.search-container[data-v-850c4b52] {\r\n padding: 10px;\r\n background: #fff;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\n}\n[data-v-850c4b52] .search-container .van-search {\r\n flex: 1;\n}\n.search-btn[data-v-850c4b52] {\r\n flex-shrink: 0;\n}\n.select-all-container[data-v-850c4b52] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n[data-v-850c4b52] .van-checkbox__icon--square {\r\n border-radius: 4px;\n}\n[data-v-850c4b52] .van-checkbox__label {\r\n margin-left: 8px;\n}\n[data-v-850c4b52] .van-radio-group .van-cell,[data-v-850c4b52] .van-checkbox-group .van-cell {\r\n align-items: center;\n}\n.current-path[data-v-850c4b52] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-850c4b52] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-850c4b52] {\r\n color: #969799;\r\n margin-right: 5px;\n}\r\n")();
|
|
19496
|
-
const _hoisted_1$
|
|
19496
|
+
const _hoisted_1$c = {
|
|
19497
19497
|
class: "user-selector"
|
|
19498
19498
|
};
|
|
19499
|
-
const _hoisted_2$
|
|
19499
|
+
const _hoisted_2$7 = {
|
|
19500
19500
|
class: "popup-container"
|
|
19501
19501
|
};
|
|
19502
|
-
const _hoisted_3$
|
|
19502
|
+
const _hoisted_3$5 = {
|
|
19503
19503
|
class: "picker-header"
|
|
19504
19504
|
};
|
|
19505
|
-
const _hoisted_4$
|
|
19505
|
+
const _hoisted_4$5 = {
|
|
19506
19506
|
class: "header-left"
|
|
19507
19507
|
};
|
|
19508
|
-
const _hoisted_5$
|
|
19508
|
+
const _hoisted_5$5 = {
|
|
19509
19509
|
class: "current-path"
|
|
19510
19510
|
};
|
|
19511
|
-
const _hoisted_6$
|
|
19511
|
+
const _hoisted_6$4 = {
|
|
19512
19512
|
class: "header-right"
|
|
19513
19513
|
};
|
|
19514
|
-
const _hoisted_7$
|
|
19515
|
-
const _hoisted_8$
|
|
19514
|
+
const _hoisted_7$4 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
19515
|
+
const _hoisted_8$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
19516
19516
|
const _hoisted_9$2 = {
|
|
19517
19517
|
key: 0,
|
|
19518
19518
|
class: "select-all-container"
|
|
@@ -19525,7 +19525,7 @@ const _hoisted_12 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
|
19525
19525
|
const _hoisted_13 = {
|
|
19526
19526
|
class: "scroll-container"
|
|
19527
19527
|
};
|
|
19528
|
-
const _sfc_main$
|
|
19528
|
+
const _sfc_main$h = {
|
|
19529
19529
|
__name: "user_selector",
|
|
19530
19530
|
props: {
|
|
19531
19531
|
modelValue: [Array, String, Number],
|
|
@@ -19879,7 +19879,7 @@ const _sfc_main$k = {
|
|
|
19879
19879
|
const _component_van_radio = resolveComponent("van-radio");
|
|
19880
19880
|
const _component_van_radio_group = resolveComponent("van-radio-group");
|
|
19881
19881
|
const _component_van_popup = resolveComponent("van-popup");
|
|
19882
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19882
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [!unref(isGone2) ? (openBlock(), createBlock(_component_van_field, {
|
|
19883
19883
|
key: 0,
|
|
19884
19884
|
"model-value": unref(selectedUserInfo),
|
|
19885
19885
|
clickable: "",
|
|
@@ -19896,18 +19896,18 @@ const _sfc_main$k = {
|
|
|
19896
19896
|
position: "bottom",
|
|
19897
19897
|
class: "user-popup"
|
|
19898
19898
|
}, {
|
|
19899
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
19899
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$7, [createElementVNode("div", _hoisted_3$5, [createElementVNode("div", _hoisted_4$5, [unref(currentLevel) > 0 ? (openBlock(), createBlock(_component_van_button, {
|
|
19900
19900
|
key: 0,
|
|
19901
19901
|
onClick: goBack,
|
|
19902
19902
|
icon: "arrow-left",
|
|
19903
19903
|
size: "small",
|
|
19904
19904
|
class: "back-button"
|
|
19905
|
-
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5$
|
|
19905
|
+
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5$5, toDisplayString(unref(currentPath)), 1), createElementVNode("div", _hoisted_6$4, [createVNode(_component_van_button, {
|
|
19906
19906
|
size: "small",
|
|
19907
19907
|
onClick: handleClear,
|
|
19908
19908
|
class: "cancel-btn"
|
|
19909
19909
|
}, {
|
|
19910
|
-
default: withCtx(() => [_hoisted_7$
|
|
19910
|
+
default: withCtx(() => [_hoisted_7$4]),
|
|
19911
19911
|
_: 1
|
|
19912
19912
|
}), createVNode(_component_van_button, {
|
|
19913
19913
|
type: "primary",
|
|
@@ -19915,7 +19915,7 @@ const _sfc_main$k = {
|
|
|
19915
19915
|
onClick: confirmSelection,
|
|
19916
19916
|
class: "confirm-btn"
|
|
19917
19917
|
}, {
|
|
19918
|
-
default: withCtx(() => [_hoisted_8$
|
|
19918
|
+
default: withCtx(() => [_hoisted_8$3]),
|
|
19919
19919
|
_: 1
|
|
19920
19920
|
})])]), __props2.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [createVNode(_component_van_checkbox, {
|
|
19921
19921
|
shape: "square",
|
|
@@ -20020,12 +20020,12 @@ const _sfc_main$k = {
|
|
|
20020
20020
|
};
|
|
20021
20021
|
}
|
|
20022
20022
|
};
|
|
20023
|
-
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20023
|
+
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-850c4b52"]]);
|
|
20024
20024
|
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-19fa5200] .label {\n color: #000 !important;\n}\n[data-v-19fa5200] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20025
|
-
const _hoisted_1$
|
|
20025
|
+
const _hoisted_1$b = {
|
|
20026
20026
|
class: "image-box"
|
|
20027
20027
|
};
|
|
20028
|
-
const _sfc_main$
|
|
20028
|
+
const _sfc_main$g = {
|
|
20029
20029
|
__name: "image_picker",
|
|
20030
20030
|
props: {
|
|
20031
20031
|
modelValue: {
|
|
@@ -20123,7 +20123,7 @@ const _sfc_main$j = {
|
|
|
20123
20123
|
"label-class": "label",
|
|
20124
20124
|
placeholder: props2.placeholder
|
|
20125
20125
|
}, {
|
|
20126
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
20126
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$b, [props2.capture ? (openBlock(), createBlock(_component_van_uploader, {
|
|
20127
20127
|
key: 0,
|
|
20128
20128
|
modelValue: files.value,
|
|
20129
20129
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
@@ -20152,13 +20152,13 @@ const _sfc_main$j = {
|
|
|
20152
20152
|
};
|
|
20153
20153
|
}
|
|
20154
20154
|
};
|
|
20155
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20155
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-19fa5200"]]);
|
|
20156
20156
|
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-658f6012] {\n width: 80px;\n height: 80px;\n}")();
|
|
20157
|
-
const _hoisted_1$
|
|
20157
|
+
const _hoisted_1$a = {
|
|
20158
20158
|
class: "image-box"
|
|
20159
20159
|
};
|
|
20160
|
-
const _hoisted_2$
|
|
20161
|
-
const _sfc_main$
|
|
20160
|
+
const _hoisted_2$6 = ["src", "onClick"];
|
|
20161
|
+
const _sfc_main$f = {
|
|
20162
20162
|
__name: "images_picker",
|
|
20163
20163
|
props: {
|
|
20164
20164
|
modelValue: {
|
|
@@ -20317,7 +20317,7 @@ const _sfc_main$i = {
|
|
|
20317
20317
|
placeholder: props2.placeholder,
|
|
20318
20318
|
modelValue: unref(modelValue2)
|
|
20319
20319
|
}, {
|
|
20320
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
20320
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$a, [props2.capture && !unref(isReadonly2) && !unref(isDisabled2) ? (openBlock(), createBlock(_component_van_uploader, {
|
|
20321
20321
|
key: 0,
|
|
20322
20322
|
modelValue: files.value,
|
|
20323
20323
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
@@ -20350,7 +20350,7 @@ const _sfc_main$i = {
|
|
|
20350
20350
|
key: i,
|
|
20351
20351
|
src: cover,
|
|
20352
20352
|
onClick: ($event) => onPreview(i)
|
|
20353
|
-
}, null, 8, _hoisted_2$
|
|
20353
|
+
}, null, 8, _hoisted_2$6);
|
|
20354
20354
|
}), 128)) : createCommentVNode("", true), (unref(modelValue2) || []).length > props2.maxPreview && (unref(isReadonly2) || unref(isDisabled2)) ? (openBlock(), createBlock(_component_van_icon, {
|
|
20355
20355
|
key: 3,
|
|
20356
20356
|
name: "ellipsis",
|
|
@@ -20361,12 +20361,12 @@ const _sfc_main$i = {
|
|
|
20361
20361
|
};
|
|
20362
20362
|
}
|
|
20363
20363
|
};
|
|
20364
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20364
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-658f6012"]]);
|
|
20365
20365
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-125192a8] .label {\n color: #000 !important;\n}\n[data-v-125192a8] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20366
|
-
const _hoisted_1$
|
|
20366
|
+
const _hoisted_1$9 = {
|
|
20367
20367
|
class: "file-box"
|
|
20368
20368
|
};
|
|
20369
|
-
const _sfc_main$
|
|
20369
|
+
const _sfc_main$e = {
|
|
20370
20370
|
__name: "FilePicker",
|
|
20371
20371
|
props: {
|
|
20372
20372
|
modelValue: {
|
|
@@ -20508,7 +20508,7 @@ const _sfc_main$h = {
|
|
|
20508
20508
|
"label-class": "label",
|
|
20509
20509
|
placeholder: props2.placeholder
|
|
20510
20510
|
}, {
|
|
20511
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
20511
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$9, [createVNode(_component_van_uploader, {
|
|
20512
20512
|
modelValue: files.value,
|
|
20513
20513
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
20514
20514
|
multiple: props2.multiple,
|
|
@@ -20526,29 +20526,29 @@ const _sfc_main$h = {
|
|
|
20526
20526
|
};
|
|
20527
20527
|
}
|
|
20528
20528
|
};
|
|
20529
|
-
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20529
|
+
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-125192a8"]]);
|
|
20530
20530
|
var SingleUserSelector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-c23caaf6] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-c23caaf6] {\r\n padding: 10px;\n}\n.search-buttons[data-v-c23caaf6] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-c23caaf6] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-c23caaf6] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-c23caaf6] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-c23caaf6] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-c23caaf6] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-c23caaf6] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-c23caaf6] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-c23caaf6] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
20531
|
-
const _hoisted_1$
|
|
20531
|
+
const _hoisted_1$8 = {
|
|
20532
20532
|
class: "department-selector"
|
|
20533
20533
|
};
|
|
20534
|
-
const _hoisted_2$
|
|
20534
|
+
const _hoisted_2$5 = {
|
|
20535
20535
|
class: "picker-header"
|
|
20536
20536
|
};
|
|
20537
|
-
const _hoisted_3$
|
|
20537
|
+
const _hoisted_3$4 = {
|
|
20538
20538
|
class: "header-left"
|
|
20539
20539
|
};
|
|
20540
|
-
const _hoisted_4$
|
|
20540
|
+
const _hoisted_4$4 = {
|
|
20541
20541
|
class: "current-path"
|
|
20542
20542
|
};
|
|
20543
|
-
const _hoisted_5$
|
|
20543
|
+
const _hoisted_5$4 = {
|
|
20544
20544
|
class: "header-right"
|
|
20545
20545
|
};
|
|
20546
|
-
const _hoisted_6$
|
|
20547
|
-
const _hoisted_7$
|
|
20548
|
-
const _hoisted_8$
|
|
20546
|
+
const _hoisted_6$3 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
20547
|
+
const _hoisted_7$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
20548
|
+
const _hoisted_8$2 = {
|
|
20549
20549
|
class: "scroll-container"
|
|
20550
20550
|
};
|
|
20551
|
-
const _sfc_main$
|
|
20551
|
+
const _sfc_main$d = {
|
|
20552
20552
|
__name: "SingleUserSelector",
|
|
20553
20553
|
props: {
|
|
20554
20554
|
modelValue: {
|
|
@@ -20816,16 +20816,16 @@ const _sfc_main$g = {
|
|
|
20816
20816
|
position: "bottom",
|
|
20817
20817
|
class: "user-popup"
|
|
20818
20818
|
}, {
|
|
20819
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
20819
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$8, [createElementVNode("div", _hoisted_2$5, [createElementVNode("div", _hoisted_3$4, [withDirectives(createVNode(_component_van_button, {
|
|
20820
20820
|
onClick: goBack,
|
|
20821
20821
|
icon: "arrow-left",
|
|
20822
20822
|
size: "small"
|
|
20823
|
-
}, null, 512), [[vShow, currentPath.value !== "\u8BF7\u9009\u62E9\u90E8\u95E8"]])]), createElementVNode("div", _hoisted_4$
|
|
20823
|
+
}, null, 512), [[vShow, currentPath.value !== "\u8BF7\u9009\u62E9\u90E8\u95E8"]])]), createElementVNode("div", _hoisted_4$4, toDisplayString(currentPath.value), 1), createElementVNode("div", _hoisted_5$4, [createVNode(_component_van_button, {
|
|
20824
20824
|
size: "small",
|
|
20825
20825
|
onClick: handleClear,
|
|
20826
20826
|
class: "cancel-btn"
|
|
20827
20827
|
}, {
|
|
20828
|
-
default: withCtx(() => [_hoisted_6$
|
|
20828
|
+
default: withCtx(() => [_hoisted_6$3]),
|
|
20829
20829
|
_: 1
|
|
20830
20830
|
}), createVNode(_component_van_button, {
|
|
20831
20831
|
type: "primary",
|
|
@@ -20833,7 +20833,7 @@ const _sfc_main$g = {
|
|
|
20833
20833
|
onClick: confirmSelection,
|
|
20834
20834
|
class: "confirm-btn"
|
|
20835
20835
|
}, {
|
|
20836
|
-
default: withCtx(() => [_hoisted_7$
|
|
20836
|
+
default: withCtx(() => [_hoisted_7$3]),
|
|
20837
20837
|
_: 1
|
|
20838
20838
|
})])]), createVNode(_component_van_search, {
|
|
20839
20839
|
modelValue: searchValue.value,
|
|
@@ -20848,7 +20848,7 @@ const _sfc_main$g = {
|
|
|
20848
20848
|
onClick: handleSearch
|
|
20849
20849
|
}, "\u641C\u7D22")]),
|
|
20850
20850
|
_: 1
|
|
20851
|
-
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
20851
|
+
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
|
|
20852
20852
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(departments), (department) => {
|
|
20853
20853
|
return openBlock(), createBlock(_component_van_cell, {
|
|
20854
20854
|
key: department.id,
|
|
@@ -20883,583 +20883,65 @@ const _sfc_main$g = {
|
|
|
20883
20883
|
};
|
|
20884
20884
|
}
|
|
20885
20885
|
};
|
|
20886
|
-
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20887
|
-
var
|
|
20888
|
-
const _hoisted_1$
|
|
20889
|
-
class: "
|
|
20886
|
+
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-c23caaf6"]]);
|
|
20887
|
+
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-107e26c3] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-107e26c3] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-107e26c3] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-107e26c3] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-107e26c3] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-107e26c3] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-107e26c3]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-107e26c3] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-107e26c3] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
20888
|
+
const _hoisted_1$7 = {
|
|
20889
|
+
class: "widget"
|
|
20890
20890
|
};
|
|
20891
|
-
const _hoisted_2$
|
|
20892
|
-
class: "
|
|
20891
|
+
const _hoisted_2$4 = {
|
|
20892
|
+
class: "user-info"
|
|
20893
20893
|
};
|
|
20894
|
-
const _hoisted_3$
|
|
20895
|
-
class: "
|
|
20894
|
+
const _hoisted_3$3 = {
|
|
20895
|
+
class: "user-info-item"
|
|
20896
20896
|
};
|
|
20897
|
-
const _hoisted_4$
|
|
20898
|
-
class: "
|
|
20897
|
+
const _hoisted_4$3 = {
|
|
20898
|
+
class: "user-info-item"
|
|
20899
20899
|
};
|
|
20900
|
-
const _hoisted_5$
|
|
20901
|
-
class: "
|
|
20900
|
+
const _hoisted_5$3 = {
|
|
20901
|
+
class: "user-info-item"
|
|
20902
20902
|
};
|
|
20903
|
-
const _hoisted_6$
|
|
20904
|
-
|
|
20905
|
-
const _hoisted_8$2 = {
|
|
20906
|
-
class: "scroll-container"
|
|
20903
|
+
const _hoisted_6$2 = {
|
|
20904
|
+
class: "user-jobs"
|
|
20907
20905
|
};
|
|
20908
|
-
const
|
|
20909
|
-
|
|
20906
|
+
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode(" \u6CE8\u9500 ");
|
|
20907
|
+
const _sfc_main$c = {
|
|
20908
|
+
__name: "UserProfile",
|
|
20910
20909
|
props: {
|
|
20911
|
-
|
|
20912
|
-
type:
|
|
20913
|
-
default:
|
|
20910
|
+
avatar: {
|
|
20911
|
+
type: String,
|
|
20912
|
+
default: ""
|
|
20914
20913
|
},
|
|
20915
|
-
|
|
20914
|
+
name: {
|
|
20916
20915
|
type: String,
|
|
20917
|
-
default: "
|
|
20916
|
+
default: ""
|
|
20918
20917
|
},
|
|
20919
|
-
|
|
20918
|
+
position: {
|
|
20919
|
+
type: String,
|
|
20920
|
+
default: ""
|
|
20921
|
+
},
|
|
20922
|
+
mobile: {
|
|
20920
20923
|
type: String,
|
|
20921
20924
|
default: ""
|
|
20925
|
+
},
|
|
20926
|
+
departments: {
|
|
20927
|
+
type: Array,
|
|
20928
|
+
default: []
|
|
20922
20929
|
}
|
|
20923
20930
|
},
|
|
20924
|
-
emits: ["
|
|
20931
|
+
emits: ["logout"],
|
|
20925
20932
|
setup(__props2, {
|
|
20926
20933
|
emit: emit2
|
|
20927
20934
|
}) {
|
|
20928
20935
|
const props2 = __props2;
|
|
20929
|
-
const
|
|
20930
|
-
|
|
20931
|
-
selectedDeptId: "",
|
|
20932
|
-
totalDepts: [],
|
|
20933
|
-
keyword: "",
|
|
20934
|
-
searchUsers: [],
|
|
20935
|
-
selectedUser: null
|
|
20936
|
-
});
|
|
20937
|
-
function findDeptPaths(targetDept, tree, path = []) {
|
|
20938
|
-
var _a;
|
|
20939
|
-
if (!tree || tree.length < 1 || !targetDept || !targetDept.id)
|
|
20940
|
-
return [];
|
|
20941
|
-
for (const dept of tree) {
|
|
20942
|
-
if (dept.id === targetDept.id) {
|
|
20943
|
-
return [...path, dept];
|
|
20944
|
-
}
|
|
20945
|
-
if ((_a = dept.subDepartments) == null ? void 0 : _a.length) {
|
|
20946
|
-
const found = findDeptPaths(targetDept, dept.subDepartments, [...path, dept]);
|
|
20947
|
-
if (found && found.length > 0)
|
|
20948
|
-
return found;
|
|
20949
|
-
}
|
|
20950
|
-
}
|
|
20951
|
-
return [];
|
|
20952
|
-
}
|
|
20953
|
-
const selectedDept = computed(() => {
|
|
20954
|
-
if (!data2.selectedDeptId)
|
|
20955
|
-
return null;
|
|
20956
|
-
let targetDept = findDept(data2.selectedDeptId, data2.totalDepts);
|
|
20957
|
-
return targetDept;
|
|
20958
|
-
});
|
|
20959
|
-
const pathsLabel = computed(() => {
|
|
20960
|
-
let paths = findDeptPaths(selectedDept.value, data2.totalDepts);
|
|
20961
|
-
console.log("paths", paths);
|
|
20962
|
-
let res = "";
|
|
20963
|
-
paths.forEach((dept) => {
|
|
20964
|
-
res += dept.name + "/";
|
|
20965
|
-
});
|
|
20966
|
-
return res;
|
|
20967
|
-
});
|
|
20968
|
-
const subDepts = computed(() => {
|
|
20969
|
-
if (data2.keyword)
|
|
20970
|
-
return [];
|
|
20971
|
-
else if (selectedDept.value)
|
|
20972
|
-
return selectedDept.value.subDepartments;
|
|
20973
|
-
else
|
|
20974
|
-
return data2.totalDepts;
|
|
20975
|
-
});
|
|
20976
|
-
const subUsers = computed(() => {
|
|
20977
|
-
if (data2.keyword)
|
|
20978
|
-
return data2.searchUsers;
|
|
20979
|
-
else if (selectedDept.value)
|
|
20980
|
-
return selectedDept.value.users;
|
|
20981
|
-
else
|
|
20982
|
-
return [];
|
|
20983
|
-
});
|
|
20984
|
-
const queryTotalDepts = () => __async(this, null, function* () {
|
|
20985
|
-
const response = yield util.get_subdepartments_users({
|
|
20986
|
-
departmentId: props2.rootDeptId,
|
|
20987
|
-
hasGrandson: false
|
|
20988
|
-
});
|
|
20989
|
-
let level2Depts = [];
|
|
20990
|
-
if (response.data)
|
|
20991
|
-
level2Depts = response.data.subDepartments;
|
|
20992
|
-
let level2DeptIds = [];
|
|
20993
|
-
if (props2.deptRangeId) {
|
|
20994
|
-
let res = yield util.dictionary_dict({
|
|
20995
|
-
id: props2.deptRangeId
|
|
20996
|
-
});
|
|
20997
|
-
if (res.data.parseValue && res.data.parseValue.length > 0) {
|
|
20998
|
-
level2DeptIds = res.data.parseValue;
|
|
20999
|
-
}
|
|
21000
|
-
}
|
|
21001
|
-
if (props2.deptRangeId) {
|
|
21002
|
-
if (level2DeptIds && level2DeptIds.length > 0) {
|
|
21003
|
-
level2Depts = level2Depts.filter((item) => {
|
|
21004
|
-
return level2DeptIds.includes(item.id);
|
|
21005
|
-
});
|
|
21006
|
-
}
|
|
21007
|
-
}
|
|
21008
|
-
data2.totalDepts = level2Depts || [];
|
|
21009
|
-
});
|
|
21010
|
-
function findDept(deptId, tree) {
|
|
21011
|
-
if (!tree || tree.length < 1)
|
|
21012
|
-
return null;
|
|
21013
|
-
for (const dept of tree) {
|
|
21014
|
-
if (dept.id === deptId) {
|
|
21015
|
-
return dept;
|
|
21016
|
-
}
|
|
21017
|
-
const found = findDept(deptId, dept.subDepartments);
|
|
21018
|
-
if (found)
|
|
21019
|
-
return found;
|
|
21020
|
-
}
|
|
21021
|
-
return null;
|
|
21022
|
-
}
|
|
21023
|
-
const onSearch = () => __async(this, null, function* () {
|
|
21024
|
-
if (!data2.keyword)
|
|
21025
|
-
return;
|
|
21026
|
-
const res = yield util.wx_user_list({
|
|
21027
|
-
keyword: data2.keyword,
|
|
21028
|
-
page: 1,
|
|
21029
|
-
limit: 10
|
|
21030
|
-
});
|
|
21031
|
-
data2.searchUsers = res.data.list;
|
|
21032
|
-
});
|
|
21033
|
-
const onSelectDept = (department) => __async(this, null, function* () {
|
|
21034
|
-
const res = yield util.get_subdepartments_users({
|
|
21035
|
-
departmentId: department.id,
|
|
21036
|
-
hasGrandson: false
|
|
21037
|
-
});
|
|
21038
|
-
let targetDept = findDept(department.id, data2.totalDepts);
|
|
21039
|
-
targetDept.subDepartments = res.data.subDepartments;
|
|
21040
|
-
targetDept.users = res.data.users;
|
|
21041
|
-
data2.selectedDeptId = department.id;
|
|
21042
|
-
});
|
|
21043
|
-
const onBack = () => {
|
|
21044
|
-
data2.keyword = "";
|
|
21045
|
-
let paths = findDeptPaths(selectedDept.value, data2.totalDepts);
|
|
21046
|
-
if (!paths || paths.length <= 1) {
|
|
21047
|
-
data2.selectedDeptId = "";
|
|
21048
|
-
return;
|
|
21049
|
-
}
|
|
21050
|
-
data2.selectedDeptId = paths[paths.length - 2].id;
|
|
21051
|
-
};
|
|
21052
|
-
const reset = () => {
|
|
21053
|
-
data2.selectedDeptId = "";
|
|
21054
|
-
data2.keyword = "";
|
|
21055
|
-
data2.searchUsers = [];
|
|
21056
|
-
data2.selectedUser = {};
|
|
21057
|
-
};
|
|
21058
|
-
const onSubmit2 = () => {
|
|
21059
|
-
if (!data2.selectedUser) {
|
|
21060
|
-
util.warnToast("\u8BF7\u9009\u62E9\u7528\u6237");
|
|
21061
|
-
return;
|
|
21062
|
-
}
|
|
21063
|
-
emit2("select", data2.selectedUser);
|
|
21064
|
-
show.value = false;
|
|
21065
|
-
reset();
|
|
21066
|
-
};
|
|
21067
|
-
const onCancel = () => {
|
|
21068
|
-
show.value = false;
|
|
21069
|
-
reset();
|
|
20936
|
+
const onLogout = () => {
|
|
20937
|
+
emit2("logout");
|
|
21070
20938
|
};
|
|
21071
|
-
onMounted(() =>
|
|
21072
|
-
|
|
21073
|
-
data2.selectedDept = findDept(props2.rootDeptId, data2.totalDepts);
|
|
21074
|
-
}));
|
|
20939
|
+
onMounted(() => {
|
|
20940
|
+
});
|
|
21075
20941
|
return (_ctx, _cache) => {
|
|
20942
|
+
const _component_van_image = resolveComponent("van-image");
|
|
21076
20943
|
const _component_van_button = resolveComponent("van-button");
|
|
21077
|
-
|
|
21078
|
-
const _component_van_cell = resolveComponent("van-cell");
|
|
21079
|
-
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
21080
|
-
const _component_van_radio = resolveComponent("van-radio");
|
|
21081
|
-
const _component_van_radio_group = resolveComponent("van-radio-group");
|
|
21082
|
-
const _component_van_popup = resolveComponent("van-popup");
|
|
21083
|
-
return openBlock(), createBlock(_component_van_popup, {
|
|
21084
|
-
show: unref(show),
|
|
21085
|
-
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(show) ? show.value = $event : null),
|
|
21086
|
-
round: "",
|
|
21087
|
-
position: "bottom",
|
|
21088
|
-
class: "user-popup"
|
|
21089
|
-
}, {
|
|
21090
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$9, [createElementVNode("div", _hoisted_2$5, [createElementVNode("div", _hoisted_3$4, [createVNode(_component_van_button, {
|
|
21091
|
-
onClick: onBack,
|
|
21092
|
-
icon: "arrow-left",
|
|
21093
|
-
size: "small"
|
|
21094
|
-
})]), createElementVNode("div", _hoisted_4$4, toDisplayString(unref(pathsLabel)), 1), createElementVNode("div", _hoisted_5$4, [createVNode(_component_van_button, {
|
|
21095
|
-
size: "small",
|
|
21096
|
-
onClick: onCancel,
|
|
21097
|
-
class: "cancel-btn"
|
|
21098
|
-
}, {
|
|
21099
|
-
default: withCtx(() => [_hoisted_6$3]),
|
|
21100
|
-
_: 1
|
|
21101
|
-
}), createVNode(_component_van_button, {
|
|
21102
|
-
type: "primary",
|
|
21103
|
-
size: "small",
|
|
21104
|
-
onClick: onSubmit2,
|
|
21105
|
-
class: "confirm-btn"
|
|
21106
|
-
}, {
|
|
21107
|
-
default: withCtx(() => [_hoisted_7$3]),
|
|
21108
|
-
_: 1
|
|
21109
|
-
})])]), createVNode(_component_van_search, {
|
|
21110
|
-
modelValue: data2.keyword,
|
|
21111
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.keyword = $event),
|
|
21112
|
-
placeholder: "\u8F93\u5165\u5DE5\u53F7\u67E5\u8BE2",
|
|
21113
|
-
onClear: _ctx.onClear,
|
|
21114
|
-
onSearch,
|
|
21115
|
-
onCancel: _ctx.onClear,
|
|
21116
|
-
"show-action": ""
|
|
21117
|
-
}, {
|
|
21118
|
-
action: withCtx(() => [createElementVNode("div", {
|
|
21119
|
-
onClick: onSearch
|
|
21120
|
-
}, "\u641C\u7D22")]),
|
|
21121
|
-
_: 1
|
|
21122
|
-
}, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
|
|
21123
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(subDepts), (dept) => {
|
|
21124
|
-
return openBlock(), createBlock(_component_van_cell, {
|
|
21125
|
-
key: dept.id,
|
|
21126
|
-
title: dept.name,
|
|
21127
|
-
"is-link": "",
|
|
21128
|
-
onClick: ($event) => onSelectDept(dept)
|
|
21129
|
-
}, null, 8, ["title", "onClick"]);
|
|
21130
|
-
}), 128))]),
|
|
21131
|
-
_: 1
|
|
21132
|
-
}), createVNode(_component_van_radio_group, {
|
|
21133
|
-
modelValue: data2.selectedUser,
|
|
21134
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data2.selectedUser = $event)
|
|
21135
|
-
}, {
|
|
21136
|
-
default: withCtx(() => [createVNode(_component_van_cell_group, null, {
|
|
21137
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(subUsers), (user) => {
|
|
21138
|
-
return openBlock(), createBlock(_component_van_cell, {
|
|
21139
|
-
key: user.id,
|
|
21140
|
-
title: `${user.userid} ${user.name}`
|
|
21141
|
-
}, {
|
|
21142
|
-
"right-icon": withCtx(() => [createVNode(_component_van_radio, {
|
|
21143
|
-
name: user.userid
|
|
21144
|
-
}, null, 8, ["name"])]),
|
|
21145
|
-
_: 2
|
|
21146
|
-
}, 1032, ["title"]);
|
|
21147
|
-
}), 128))]),
|
|
21148
|
-
_: 1
|
|
21149
|
-
})]),
|
|
21150
|
-
_: 1
|
|
21151
|
-
}, 8, ["modelValue"])])])]),
|
|
21152
|
-
_: 1
|
|
21153
|
-
}, 8, ["show"]);
|
|
21154
|
-
};
|
|
21155
|
-
}
|
|
21156
|
-
};
|
|
21157
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-85dea264"]]);
|
|
21158
|
-
var UsersPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-item[data-v-2ccc13b6]{\r\n margin:3px;\n}\r\n")();
|
|
21159
|
-
const _hoisted_1$8 = {
|
|
21160
|
-
class: "user-list"
|
|
21161
|
-
};
|
|
21162
|
-
const _sfc_main$e = {
|
|
21163
|
-
__name: "UsersPicker",
|
|
21164
|
-
props: {
|
|
21165
|
-
modelValue: {
|
|
21166
|
-
type: Array,
|
|
21167
|
-
default: []
|
|
21168
|
-
},
|
|
21169
|
-
label: {
|
|
21170
|
-
type: String,
|
|
21171
|
-
default: "\u9009\u62E9\u4EBA\u5458"
|
|
21172
|
-
},
|
|
21173
|
-
placeholder: {
|
|
21174
|
-
type: String,
|
|
21175
|
-
default: "\u8BF7\u9009\u62E9\u4EBA\u5458"
|
|
21176
|
-
},
|
|
21177
|
-
required: {
|
|
21178
|
-
type: Boolean,
|
|
21179
|
-
default: false
|
|
21180
|
-
},
|
|
21181
|
-
readonly: {
|
|
21182
|
-
type: Boolean,
|
|
21183
|
-
default: false
|
|
21184
|
-
},
|
|
21185
|
-
rules: {
|
|
21186
|
-
type: Array,
|
|
21187
|
-
default: () => []
|
|
21188
|
-
},
|
|
21189
|
-
rootDeptId: {
|
|
21190
|
-
type: String,
|
|
21191
|
-
default: "1"
|
|
21192
|
-
},
|
|
21193
|
-
deptRangeId: {
|
|
21194
|
-
type: String,
|
|
21195
|
-
default: ""
|
|
21196
|
-
},
|
|
21197
|
-
auth: {
|
|
21198
|
-
type: String,
|
|
21199
|
-
default: ""
|
|
21200
|
-
}
|
|
21201
|
-
},
|
|
21202
|
-
emits: ["update:modelValue", "select"],
|
|
21203
|
-
setup(__props2, {
|
|
21204
|
-
emit: emit2
|
|
21205
|
-
}) {
|
|
21206
|
-
const props2 = __props2;
|
|
21207
|
-
const data2 = reactive({
|
|
21208
|
-
isShowPop: false,
|
|
21209
|
-
users: []
|
|
21210
|
-
});
|
|
21211
|
-
const modelValue2 = useVModel(props2, "modelValue", emit2);
|
|
21212
|
-
const {
|
|
21213
|
-
isRequired: isRequired2,
|
|
21214
|
-
isReadonly: isReadonly2,
|
|
21215
|
-
isGone: isGone2,
|
|
21216
|
-
isDisabled: isDisabled2,
|
|
21217
|
-
rules: rules2
|
|
21218
|
-
} = util.props2auth(props2);
|
|
21219
|
-
onMounted(() => {
|
|
21220
|
-
});
|
|
21221
|
-
const onSelectUser = (userId) => {
|
|
21222
|
-
let newAry = [...modelValue2.value || [], userId];
|
|
21223
|
-
modelValue2.value = util.uniq(newAry);
|
|
21224
|
-
};
|
|
21225
|
-
const onDelete = (user) => {
|
|
21226
|
-
modelValue2.value = (modelValue2.value || []).filter((item) => {
|
|
21227
|
-
return item != user.userid;
|
|
21228
|
-
});
|
|
21229
|
-
};
|
|
21230
|
-
watch(() => modelValue2.value, (n, o) => __async(this, null, function* () {
|
|
21231
|
-
if (!modelValue2.value || modelValue2.value.length < 1) {
|
|
21232
|
-
data2.users = [];
|
|
21233
|
-
return;
|
|
21234
|
-
}
|
|
21235
|
-
let ary = [];
|
|
21236
|
-
for (var i = 0; i < modelValue2.value.length; i++) {
|
|
21237
|
-
let res = yield util.get_wxuser_by_id({
|
|
21238
|
-
userId: modelValue2.value[i]
|
|
21239
|
-
});
|
|
21240
|
-
ary.push(res.data);
|
|
21241
|
-
}
|
|
21242
|
-
data2.users = ary;
|
|
21243
|
-
emit2("select", data2.users);
|
|
21244
|
-
}), {
|
|
21245
|
-
immediate: true
|
|
21246
|
-
});
|
|
21247
|
-
return (_ctx, _cache) => {
|
|
21248
|
-
const _component_van_tag = resolveComponent("van-tag");
|
|
21249
|
-
const _component_van_field = resolveComponent("van-field");
|
|
21250
|
-
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone2) ? (openBlock(), createBlock(_component_van_field, {
|
|
21251
|
-
key: 0,
|
|
21252
|
-
label: props2.label,
|
|
21253
|
-
required: unref(isRequired2),
|
|
21254
|
-
rules: unref(rules2),
|
|
21255
|
-
disabled: unref(isDisabled2),
|
|
21256
|
-
modelValue: unref(modelValue2),
|
|
21257
|
-
placeholder: props2.placeholder,
|
|
21258
|
-
"is-link": unref(isReadonly2) ? false : true,
|
|
21259
|
-
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly2)),
|
|
21260
|
-
"label-class": "label"
|
|
21261
|
-
}, {
|
|
21262
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$8, [(openBlock(true), createElementBlock(Fragment, null, renderList(data2.users, (item, i) => {
|
|
21263
|
-
return openBlock(), createBlock(_component_van_tag, {
|
|
21264
|
-
class: "user-item",
|
|
21265
|
-
closeable: !unref(isDisabled2),
|
|
21266
|
-
type: "primary",
|
|
21267
|
-
plain: "",
|
|
21268
|
-
key: item,
|
|
21269
|
-
onClose: withModifiers(($event) => onDelete(item), ["stop"])
|
|
21270
|
-
}, {
|
|
21271
|
-
default: withCtx(() => [createTextVNode(toDisplayString(item.name), 1)]),
|
|
21272
|
-
_: 2
|
|
21273
|
-
}, 1032, ["closeable", "onClose"]);
|
|
21274
|
-
}), 128))])]),
|
|
21275
|
-
_: 1
|
|
21276
|
-
}, 8, ["label", "required", "rules", "disabled", "modelValue", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(UserPop, {
|
|
21277
|
-
show: data2.isShowPop,
|
|
21278
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
21279
|
-
rootDeptId: props2.rootDeptId,
|
|
21280
|
-
deptRangeId: props2.deptRangeId,
|
|
21281
|
-
onSelect: onSelectUser
|
|
21282
|
-
}, null, 8, ["show", "rootDeptId", "deptRangeId"])], 64);
|
|
21283
|
-
};
|
|
21284
|
-
}
|
|
21285
|
-
};
|
|
21286
|
-
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2ccc13b6"]]);
|
|
21287
|
-
var UserPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-d61f4f1a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
21288
|
-
const _sfc_main$d = {
|
|
21289
|
-
__name: "UserPicker",
|
|
21290
|
-
props: {
|
|
21291
|
-
modelValue: {
|
|
21292
|
-
type: String,
|
|
21293
|
-
default: ""
|
|
21294
|
-
},
|
|
21295
|
-
label: {
|
|
21296
|
-
type: String,
|
|
21297
|
-
default: "\u9009\u62E9\u4EBA\u5458"
|
|
21298
|
-
},
|
|
21299
|
-
placeholder: {
|
|
21300
|
-
type: String,
|
|
21301
|
-
default: "\u8BF7\u9009\u62E9\u4EBA\u5458"
|
|
21302
|
-
},
|
|
21303
|
-
required: {
|
|
21304
|
-
type: Boolean,
|
|
21305
|
-
default: false
|
|
21306
|
-
},
|
|
21307
|
-
readonly: {
|
|
21308
|
-
type: Boolean,
|
|
21309
|
-
default: false
|
|
21310
|
-
},
|
|
21311
|
-
rules: {
|
|
21312
|
-
type: Array,
|
|
21313
|
-
default: []
|
|
21314
|
-
},
|
|
21315
|
-
rootDeptId: {
|
|
21316
|
-
type: String,
|
|
21317
|
-
default: "1"
|
|
21318
|
-
},
|
|
21319
|
-
deptRangeId: {
|
|
21320
|
-
type: String,
|
|
21321
|
-
default: ""
|
|
21322
|
-
},
|
|
21323
|
-
auth: {
|
|
21324
|
-
type: String,
|
|
21325
|
-
default: ""
|
|
21326
|
-
}
|
|
21327
|
-
},
|
|
21328
|
-
emits: ["update:modelValue", "select"],
|
|
21329
|
-
setup(__props2, {
|
|
21330
|
-
emit: emit2
|
|
21331
|
-
}) {
|
|
21332
|
-
const props2 = __props2;
|
|
21333
|
-
const data2 = reactive({
|
|
21334
|
-
isShowPop: false,
|
|
21335
|
-
user: {}
|
|
21336
|
-
});
|
|
21337
|
-
const modelValue2 = useVModel(props2, "modelValue", emit2);
|
|
21338
|
-
const {
|
|
21339
|
-
isRequired: isRequired2,
|
|
21340
|
-
isReadonly: isReadonly2,
|
|
21341
|
-
isGone: isGone2,
|
|
21342
|
-
isDisabled: isDisabled2,
|
|
21343
|
-
rules: rules2
|
|
21344
|
-
} = util.props2auth(props2);
|
|
21345
|
-
onMounted(() => {
|
|
21346
|
-
});
|
|
21347
|
-
const onSelectUser = (userId) => {
|
|
21348
|
-
modelValue2.value = userId;
|
|
21349
|
-
};
|
|
21350
|
-
const onDelete = () => {
|
|
21351
|
-
data2.user = {};
|
|
21352
|
-
modelValue2.value = null;
|
|
21353
|
-
};
|
|
21354
|
-
watch(() => modelValue2.value, (n, o) => __async(this, null, function* () {
|
|
21355
|
-
if (!n) {
|
|
21356
|
-
data2.user = {};
|
|
21357
|
-
return;
|
|
21358
|
-
}
|
|
21359
|
-
let res = yield util.get_wxuser_by_id({
|
|
21360
|
-
userId: n
|
|
21361
|
-
});
|
|
21362
|
-
data2.user = res.data;
|
|
21363
|
-
emit2("select", data2.user);
|
|
21364
|
-
}), {
|
|
21365
|
-
immediate: true
|
|
21366
|
-
});
|
|
21367
|
-
return (_ctx, _cache) => {
|
|
21368
|
-
const _component_van_tag = resolveComponent("van-tag");
|
|
21369
|
-
const _component_van_field = resolveComponent("van-field");
|
|
21370
|
-
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone2) ? (openBlock(), createBlock(_component_van_field, {
|
|
21371
|
-
key: 0,
|
|
21372
|
-
label: props2.label,
|
|
21373
|
-
required: unref(isRequired2),
|
|
21374
|
-
rules: unref(rules2),
|
|
21375
|
-
disabled: unref(isDisabled2),
|
|
21376
|
-
placeholder: props2.placeholder,
|
|
21377
|
-
"is-link": unref(isReadonly2) ? false : true,
|
|
21378
|
-
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly2)),
|
|
21379
|
-
"label-class": "label",
|
|
21380
|
-
modelValue: unref(modelValue2)
|
|
21381
|
-
}, {
|
|
21382
|
-
input: withCtx(() => [unref(modelValue2) ? (openBlock(), createBlock(_component_van_tag, {
|
|
21383
|
-
key: 0,
|
|
21384
|
-
class: "user",
|
|
21385
|
-
closeable: !unref(isDisabled2),
|
|
21386
|
-
type: "primary",
|
|
21387
|
-
plain: "",
|
|
21388
|
-
onClose: withModifiers(onDelete, ["stop"])
|
|
21389
|
-
}, {
|
|
21390
|
-
default: withCtx(() => [createTextVNode(toDisplayString(data2.user.name), 1)]),
|
|
21391
|
-
_: 1
|
|
21392
|
-
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)]),
|
|
21393
|
-
_: 1
|
|
21394
|
-
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link", "modelValue"])) : createCommentVNode("", true), createVNode(UserPop, {
|
|
21395
|
-
show: data2.isShowPop,
|
|
21396
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
21397
|
-
rootDeptId: props2.rootDeptId,
|
|
21398
|
-
deptRangeId: props2.deptRangeId,
|
|
21399
|
-
onSelect: onSelectUser
|
|
21400
|
-
}, null, 8, ["show", "rootDeptId", "deptRangeId"])], 64);
|
|
21401
|
-
};
|
|
21402
|
-
}
|
|
21403
|
-
};
|
|
21404
|
-
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-d61f4f1a"]]);
|
|
21405
|
-
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-107e26c3] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-107e26c3] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-107e26c3] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-107e26c3] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-107e26c3] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-107e26c3] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-107e26c3]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-107e26c3] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-107e26c3] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
21406
|
-
const _hoisted_1$7 = {
|
|
21407
|
-
class: "widget"
|
|
21408
|
-
};
|
|
21409
|
-
const _hoisted_2$4 = {
|
|
21410
|
-
class: "user-info"
|
|
21411
|
-
};
|
|
21412
|
-
const _hoisted_3$3 = {
|
|
21413
|
-
class: "user-info-item"
|
|
21414
|
-
};
|
|
21415
|
-
const _hoisted_4$3 = {
|
|
21416
|
-
class: "user-info-item"
|
|
21417
|
-
};
|
|
21418
|
-
const _hoisted_5$3 = {
|
|
21419
|
-
class: "user-info-item"
|
|
21420
|
-
};
|
|
21421
|
-
const _hoisted_6$2 = {
|
|
21422
|
-
class: "user-jobs"
|
|
21423
|
-
};
|
|
21424
|
-
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode(" \u6CE8\u9500 ");
|
|
21425
|
-
const _sfc_main$c = {
|
|
21426
|
-
__name: "UserProfile",
|
|
21427
|
-
props: {
|
|
21428
|
-
avatar: {
|
|
21429
|
-
type: String,
|
|
21430
|
-
default: ""
|
|
21431
|
-
},
|
|
21432
|
-
name: {
|
|
21433
|
-
type: String,
|
|
21434
|
-
default: ""
|
|
21435
|
-
},
|
|
21436
|
-
position: {
|
|
21437
|
-
type: String,
|
|
21438
|
-
default: ""
|
|
21439
|
-
},
|
|
21440
|
-
mobile: {
|
|
21441
|
-
type: String,
|
|
21442
|
-
default: ""
|
|
21443
|
-
},
|
|
21444
|
-
departments: {
|
|
21445
|
-
type: Array,
|
|
21446
|
-
default: []
|
|
21447
|
-
}
|
|
21448
|
-
},
|
|
21449
|
-
emits: ["logout"],
|
|
21450
|
-
setup(__props2, {
|
|
21451
|
-
emit: emit2
|
|
21452
|
-
}) {
|
|
21453
|
-
const props2 = __props2;
|
|
21454
|
-
const onLogout = () => {
|
|
21455
|
-
emit2("logout");
|
|
21456
|
-
};
|
|
21457
|
-
onMounted(() => {
|
|
21458
|
-
});
|
|
21459
|
-
return (_ctx, _cache) => {
|
|
21460
|
-
const _component_van_image = resolveComponent("van-image");
|
|
21461
|
-
const _component_van_button = resolveComponent("van-button");
|
|
21462
|
-
return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_van_image, {
|
|
20944
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_van_image, {
|
|
21463
20945
|
round: "",
|
|
21464
20946
|
width: "80px",
|
|
21465
20947
|
height: "80px",
|
|
@@ -22133,7 +21615,7 @@ const _sfc_main$4 = {
|
|
|
22133
21615
|
}
|
|
22134
21616
|
};
|
|
22135
21617
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ebc14630"]]);
|
|
22136
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
21618
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-3ec31519] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-3ec31519] {\r\n padding: 10px;\n}\n.search-buttons[data-v-3ec31519] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-3ec31519] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-3ec31519] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-3ec31519] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-3ec31519] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-3ec31519] {\r\n flex: 1;\r\n font-size: 14px;\r\n margin-left: 5px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-3ec31519] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-3ec31519] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-3ec31519] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-3ec31519] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-3ec31519] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-3ec31519] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-3ec31519] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-3ec31519] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-3ec31519] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-3ec31519] {\r\n color: #969799;\n}\n.search-field[data-v-3ec31519] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
22137
21619
|
const _hoisted_1$3 = {
|
|
22138
21620
|
class: "cascader-selector"
|
|
22139
21621
|
};
|
|
@@ -22165,8 +21647,12 @@ const _sfc_main$3 = {
|
|
|
22165
21647
|
__name: "CascaderPop",
|
|
22166
21648
|
props: {
|
|
22167
21649
|
modelValue: {
|
|
22168
|
-
type: String,
|
|
22169
|
-
default:
|
|
21650
|
+
type: [String, Array, Number],
|
|
21651
|
+
default: null
|
|
21652
|
+
},
|
|
21653
|
+
multiple: {
|
|
21654
|
+
type: Boolean,
|
|
21655
|
+
default: false
|
|
22170
21656
|
},
|
|
22171
21657
|
show: {
|
|
22172
21658
|
type: Boolean,
|
|
@@ -22197,7 +21683,7 @@ const _sfc_main$3 = {
|
|
|
22197
21683
|
const data2 = reactive({
|
|
22198
21684
|
parentNode: null,
|
|
22199
21685
|
keyword: "",
|
|
22200
|
-
|
|
21686
|
+
selectedNodeIds: []
|
|
22201
21687
|
});
|
|
22202
21688
|
onMounted(() => {
|
|
22203
21689
|
});
|
|
@@ -22241,25 +21727,55 @@ const _sfc_main$3 = {
|
|
|
22241
21727
|
};
|
|
22242
21728
|
const reset = () => {
|
|
22243
21729
|
data2.keyword = "";
|
|
21730
|
+
data2.selectedNodeIds = [];
|
|
22244
21731
|
};
|
|
22245
|
-
const
|
|
22246
|
-
if (!data2.
|
|
21732
|
+
const ids2nodes2 = () => __async(this, null, function* () {
|
|
21733
|
+
if (!data2.selectedNodeIds || data2.selectedNodeIds.length < 1)
|
|
21734
|
+
return [];
|
|
21735
|
+
let promises = data2.selectedNodeIds.map((nodeId) => __async(this, null, function* () {
|
|
21736
|
+
let params = {};
|
|
21737
|
+
params.id = nodeId;
|
|
21738
|
+
params.isReturnParent = true;
|
|
21739
|
+
params.hasChildren = false;
|
|
21740
|
+
params.hasPaths = true;
|
|
21741
|
+
let selectNode = null;
|
|
21742
|
+
yield props2.idQueryNode(params, (node) => {
|
|
21743
|
+
data2.parentNode = node;
|
|
21744
|
+
selectNode = util.findNode(nodeId, data2.parentNode.children);
|
|
21745
|
+
});
|
|
21746
|
+
return selectNode;
|
|
21747
|
+
}));
|
|
21748
|
+
let selectNodes = yield Promise.all(promises);
|
|
21749
|
+
return selectNodes;
|
|
21750
|
+
});
|
|
21751
|
+
const onSubmit2 = () => __async(this, null, function* () {
|
|
21752
|
+
if (!data2.selectedNodeIds || data2.selectedNodeIds.length < 1) {
|
|
22247
21753
|
util.warnToast("\u8BF7\u9009\u62E9");
|
|
22248
21754
|
return;
|
|
22249
21755
|
}
|
|
22250
|
-
|
|
21756
|
+
let selectNodes = yield ids2nodes2();
|
|
21757
|
+
emit2("select", selectNodes);
|
|
21758
|
+
if (!props2.multiple) {
|
|
21759
|
+
modelValue2.value = data2.selectedNodeIds[0];
|
|
21760
|
+
} else {
|
|
21761
|
+
modelValue2.value = data2.selectedNodeIds;
|
|
21762
|
+
}
|
|
22251
21763
|
show.value = false;
|
|
22252
21764
|
reset();
|
|
22253
|
-
};
|
|
21765
|
+
});
|
|
22254
21766
|
const onCancel = () => {
|
|
22255
21767
|
show.value = false;
|
|
22256
21768
|
reset();
|
|
22257
21769
|
};
|
|
22258
21770
|
const onToggle = (node) => {
|
|
22259
|
-
if (data2.
|
|
22260
|
-
data2.
|
|
22261
|
-
else
|
|
22262
|
-
|
|
21771
|
+
if (data2.selectedNodeIds.includes(node.id))
|
|
21772
|
+
data2.selectedNodeIds = data2.selectedNodeIds.filter((item) => item != node.id);
|
|
21773
|
+
else {
|
|
21774
|
+
if (props2.multiple)
|
|
21775
|
+
data2.selectedNodeIds.push(node.id);
|
|
21776
|
+
else
|
|
21777
|
+
data2.selectedNodeIds = [node.id];
|
|
21778
|
+
}
|
|
22263
21779
|
};
|
|
22264
21780
|
const onNextLevel = (node) => {
|
|
22265
21781
|
props2.idQueryNode({
|
|
@@ -22271,55 +21787,27 @@ const _sfc_main$3 = {
|
|
|
22271
21787
|
});
|
|
22272
21788
|
};
|
|
22273
21789
|
const query = () => __async(this, null, function* () {
|
|
22274
|
-
|
|
22275
|
-
if (
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
return;
|
|
22284
|
-
let childNode = util.findNode(modelValue2.value, data2.parentNode.children);
|
|
22285
|
-
emit2("select", childNode);
|
|
22286
|
-
});
|
|
22287
|
-
} else {
|
|
22288
|
-
if (!props2.show) {
|
|
22289
|
-
let params = {};
|
|
22290
|
-
params.id = modelValue2.value;
|
|
22291
|
-
params.isReturnParent = true;
|
|
22292
|
-
params.hasChildren = false;
|
|
22293
|
-
params.hasPaths = true;
|
|
22294
|
-
yield props2.idQueryNode(params, (node) => {
|
|
22295
|
-
data2.parentNode = node;
|
|
22296
|
-
let childNode = util.findNode(modelValue2.value, data2.parentNode.children);
|
|
22297
|
-
emit2("select", childNode);
|
|
22298
|
-
});
|
|
22299
|
-
} else {
|
|
22300
|
-
let params = {};
|
|
22301
|
-
params.id = modelValue2.value;
|
|
22302
|
-
params.isReturnParent = true;
|
|
22303
|
-
params.hasChildren = true;
|
|
22304
|
-
params.hasPaths = true;
|
|
22305
|
-
yield props2.idQueryNode(params, (node) => {
|
|
22306
|
-
data2.parentNode = node;
|
|
22307
|
-
if (!modelValue2.value)
|
|
22308
|
-
return;
|
|
22309
|
-
let childNode = util.findNode(modelValue2.value, data2.parentNode.children);
|
|
22310
|
-
emit2("select", childNode);
|
|
22311
|
-
});
|
|
22312
|
-
}
|
|
22313
|
-
}
|
|
21790
|
+
let params = {};
|
|
21791
|
+
if (data2.selectedNodeIds.length > 0)
|
|
21792
|
+
params.id = data2.selectedNodeIds[0];
|
|
21793
|
+
params.isReturnParent = true;
|
|
21794
|
+
params.hasChildren = true;
|
|
21795
|
+
params.hasPaths = true;
|
|
21796
|
+
yield props2.idQueryNode(params, (node) => {
|
|
21797
|
+
data2.parentNode = node;
|
|
21798
|
+
});
|
|
22314
21799
|
});
|
|
22315
|
-
watch(() => props2.show, () => {
|
|
21800
|
+
watch(() => [props2.show], (n, o) => __async(this, null, function* () {
|
|
22316
21801
|
if (!props2.show)
|
|
22317
21802
|
return;
|
|
22318
|
-
|
|
22319
|
-
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
|
|
21803
|
+
if (!props2.multiple) {
|
|
21804
|
+
data2.selectedNodeIds = [modelValue2.value];
|
|
21805
|
+
} else {
|
|
21806
|
+
if (modelValue2.value && modelValue2.value.length > 0)
|
|
21807
|
+
data2.selectedNodeIds = modelValue2.value;
|
|
21808
|
+
else
|
|
21809
|
+
data2.selectedNodeIds = [];
|
|
21810
|
+
}
|
|
22323
21811
|
query();
|
|
22324
21812
|
}), {
|
|
22325
21813
|
immediate: true
|
|
@@ -22379,12 +21867,12 @@ const _sfc_main$3 = {
|
|
|
22379
21867
|
key: 0,
|
|
22380
21868
|
class: "circle-selector",
|
|
22381
21869
|
onClick: withModifiers(($event) => onToggle(item), ["stop"])
|
|
22382
|
-
}, [data2.
|
|
21870
|
+
}, [data2.selectedNodeIds.includes(item.id) ? (openBlock(), createBlock(_component_van_icon, {
|
|
22383
21871
|
key: 0,
|
|
22384
21872
|
name: "success",
|
|
22385
21873
|
size: "20",
|
|
22386
21874
|
color: "#409eff"
|
|
22387
|
-
})) : createCommentVNode("", true), data2.
|
|
21875
|
+
})) : createCommentVNode("", true), !data2.selectedNodeIds.includes(item.id) ? (openBlock(), createBlock(_component_van_icon, {
|
|
22388
21876
|
key: 1,
|
|
22389
21877
|
name: "circle",
|
|
22390
21878
|
size: "20",
|
|
@@ -22406,7 +21894,7 @@ const _sfc_main$3 = {
|
|
|
22406
21894
|
};
|
|
22407
21895
|
}
|
|
22408
21896
|
};
|
|
22409
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
21897
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3ec31519"]]);
|
|
22410
21898
|
const _hoisted_1$2 = {
|
|
22411
21899
|
style: {
|
|
22412
21900
|
"display": "flex",
|
|
@@ -22468,7 +21956,7 @@ const _sfc_main$2 = {
|
|
|
22468
21956
|
const data2 = reactive({
|
|
22469
21957
|
isShowPop: false,
|
|
22470
21958
|
selectedNodes: [],
|
|
22471
|
-
|
|
21959
|
+
selectedNodeIds: null
|
|
22472
21960
|
});
|
|
22473
21961
|
const modelValue2 = useVModel(props2, "modelValue", emit2);
|
|
22474
21962
|
const {
|
|
@@ -22480,19 +21968,17 @@ const _sfc_main$2 = {
|
|
|
22480
21968
|
} = util.props2auth(props2);
|
|
22481
21969
|
onMounted(() => {
|
|
22482
21970
|
});
|
|
22483
|
-
const onSelect = (
|
|
22484
|
-
if (!
|
|
21971
|
+
const onSelect = (nodes) => {
|
|
21972
|
+
if (!nodes) {
|
|
22485
21973
|
emit2("select", null);
|
|
22486
21974
|
return;
|
|
22487
21975
|
}
|
|
22488
21976
|
if (!props2.multiple) {
|
|
22489
|
-
data2.selectedNodes =
|
|
21977
|
+
data2.selectedNodes = nodes;
|
|
22490
21978
|
emit2("select", data2.selectedNodes[0]);
|
|
22491
|
-
modelValue2.value =
|
|
21979
|
+
modelValue2.value = data2.selectedNodes[0].id;
|
|
22492
21980
|
} else {
|
|
22493
|
-
|
|
22494
|
-
if (!one)
|
|
22495
|
-
data2.selectedNodes = [...data2.selectedNodes, node];
|
|
21981
|
+
data2.selectedNodes = nodes;
|
|
22496
21982
|
emit2("select", data2.selectedNodes);
|
|
22497
21983
|
modelValue2.value = data2.selectedNodes.map((item) => item.id);
|
|
22498
21984
|
}
|
|
@@ -22504,24 +21990,41 @@ const _sfc_main$2 = {
|
|
|
22504
21990
|
modelValue2.value.splice(idx, 1);
|
|
22505
21991
|
}
|
|
22506
21992
|
};
|
|
21993
|
+
const ids2nodes2 = () => __async(this, null, function* () {
|
|
21994
|
+
let ids = [];
|
|
21995
|
+
if (!props2.multiple) {
|
|
21996
|
+
if (modelValue2.value)
|
|
21997
|
+
ids = [modelValue2.value];
|
|
21998
|
+
} else if (modelValue2.value && modelValue2.value.length > 0)
|
|
21999
|
+
ids = modelValue2.value;
|
|
22000
|
+
if (ids.length < 1)
|
|
22001
|
+
return [];
|
|
22002
|
+
let promises = ids.map((nodeId) => __async(this, null, function* () {
|
|
22003
|
+
let params = {};
|
|
22004
|
+
params.id = nodeId;
|
|
22005
|
+
params.isReturnParent = true;
|
|
22006
|
+
params.hasChildren = false;
|
|
22007
|
+
params.hasPaths = true;
|
|
22008
|
+
let selectNode = null;
|
|
22009
|
+
yield props2.idQueryNode(params, (node) => {
|
|
22010
|
+
data2.parentNode = node;
|
|
22011
|
+
selectNode = util.findNode(nodeId, data2.parentNode.children);
|
|
22012
|
+
});
|
|
22013
|
+
return selectNode;
|
|
22014
|
+
}));
|
|
22015
|
+
let selectNodes = yield Promise.all(promises);
|
|
22016
|
+
return selectNodes;
|
|
22017
|
+
});
|
|
22507
22018
|
watch(() => JSON.stringify(modelValue2.value), (n, o) => __async(this, null, function* () {
|
|
22508
22019
|
if (!props2.multiple) {
|
|
22509
|
-
data2.
|
|
22020
|
+
data2.selectedNodeIds = modelValue2.value;
|
|
22510
22021
|
} else {
|
|
22511
|
-
|
|
22512
|
-
|
|
22513
|
-
|
|
22514
|
-
|
|
22515
|
-
params.id = id;
|
|
22516
|
-
params.isReturnParent = false;
|
|
22517
|
-
params.hasChildren = false;
|
|
22518
|
-
params.hasPaths = true;
|
|
22519
|
-
yield props2.idQueryNode(params, (node) => {
|
|
22520
|
-
let selectNode = util.findNode(id, node.children);
|
|
22521
|
-
data2.selectedNodes = [...data2.selectedNodes, selectNode];
|
|
22522
|
-
});
|
|
22523
|
-
}));
|
|
22022
|
+
if (modelValue2.value && modelValue2.value.length > 0)
|
|
22023
|
+
data2.selectedNodeIds = modelValue2.value;
|
|
22024
|
+
else
|
|
22025
|
+
data2.selectedNodeIds = [];
|
|
22524
22026
|
}
|
|
22027
|
+
data2.selectedNodes = yield ids2nodes2();
|
|
22525
22028
|
}), {
|
|
22526
22029
|
immediate: true
|
|
22527
22030
|
});
|
|
@@ -22575,15 +22078,16 @@ const _sfc_main$2 = {
|
|
|
22575
22078
|
}, 1032, ["closeable", "onClose"]);
|
|
22576
22079
|
}), 128)) : createCommentVNode("", true)])])
|
|
22577
22080
|
} : void 0]), 1032, ["label", "modelValue", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
22081
|
+
multiple: props2.multiple,
|
|
22578
22082
|
show: data2.isShowPop,
|
|
22579
22083
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
22580
|
-
modelValue: data2.
|
|
22581
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data2.
|
|
22084
|
+
modelValue: data2.selectedNodeIds,
|
|
22085
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data2.selectedNodeIds = $event),
|
|
22582
22086
|
placeholder: props2.placeholder,
|
|
22583
22087
|
onSelect,
|
|
22584
22088
|
keywordQueryNode: props2.keywordQueryNode,
|
|
22585
22089
|
idQueryNode: props2.idQueryNode
|
|
22586
|
-
}, null, 8, ["show", "modelValue", "placeholder", "keywordQueryNode", "idQueryNode"])], 64);
|
|
22090
|
+
}, null, 8, ["multiple", "show", "modelValue", "placeholder", "keywordQueryNode", "idQueryNode"])], 64);
|
|
22587
22091
|
};
|
|
22588
22092
|
}
|
|
22589
22093
|
};
|
|
@@ -23011,7 +22515,7 @@ const _sfc_main = {
|
|
|
23011
22515
|
disabled: props2.schema[key].auth === "readonly",
|
|
23012
22516
|
modelValue: data2.inputValue[key],
|
|
23013
22517
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
|
|
23014
|
-
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props2.schema[key].type == "Datetime" ? (openBlock(), createBlock(_sfc_main$
|
|
22518
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props2.schema[key].type == "Datetime" ? (openBlock(), createBlock(_sfc_main$m, {
|
|
23015
22519
|
key: 3,
|
|
23016
22520
|
auth: props2.schema[key].auth,
|
|
23017
22521
|
modelValue: data2.inputValue[key],
|
|
@@ -23102,11 +22606,11 @@ const components = [
|
|
|
23102
22606
|
},
|
|
23103
22607
|
{
|
|
23104
22608
|
name: "WidgetQwDatetimePicker",
|
|
23105
|
-
widget: _sfc_main$
|
|
22609
|
+
widget: _sfc_main$m
|
|
23106
22610
|
},
|
|
23107
22611
|
{
|
|
23108
22612
|
name: "WidgetQwDatetimeDropdown",
|
|
23109
|
-
widget: _sfc_main$
|
|
22613
|
+
widget: _sfc_main$l
|
|
23110
22614
|
},
|
|
23111
22615
|
{
|
|
23112
22616
|
name: "WidgetQwDataSelector",
|
|
@@ -23144,14 +22648,6 @@ const components = [
|
|
|
23144
22648
|
name: "WidgetQwUserSelector",
|
|
23145
22649
|
widget: UserSelector
|
|
23146
22650
|
},
|
|
23147
|
-
{
|
|
23148
|
-
name: "WidgetQwUsersPicker",
|
|
23149
|
-
widget: UsersPicker
|
|
23150
|
-
},
|
|
23151
|
-
{
|
|
23152
|
-
name: "WidgetQwUserPicker",
|
|
23153
|
-
widget: UserPicker
|
|
23154
|
-
},
|
|
23155
22651
|
{
|
|
23156
22652
|
name: "WidgetQwUserProfile",
|
|
23157
22653
|
widget: UserProfile
|