widget.qw 0.0.2 → 1.0.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/build/style.css +101 -0
- package/build/widget.qw.es.js +612 -206
- package/build/widget.qw.umd.js +612 -206
- package/package.json +1 -1
- package/src/api/index.js +16 -0
- package/src/components/CascaderPicker.vue +107 -0
- package/src/components/CascaderPop.vue +313 -0
- package/src/components/index.js +10 -0
- package/src/router/index.ts +10 -0
- package/src/util/tree_util.js +34 -0
- package/src/views/cascaderpicker/index.vue +86 -0
- package/src/views/cascaderpop/index.vue +91 -0
- package/src/views/home/index.vue +2 -0
- package/vite.config.ts +2 -2
package/build/widget.qw.es.js
CHANGED
|
@@ -2949,7 +2949,7 @@ var lib = {
|
|
|
2949
2949
|
parse,
|
|
2950
2950
|
stringify
|
|
2951
2951
|
};
|
|
2952
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2952
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2953
2953
|
const NEED_LOGIN_CODES = [
|
|
2954
2954
|
NEED_LOGIN
|
|
2955
2955
|
];
|
|
@@ -2959,11 +2959,10 @@ function setCacheValueByKey(key, val) {
|
|
|
2959
2959
|
function removeCacheByKey(key) {
|
|
2960
2960
|
localStorage.removeItem(key);
|
|
2961
2961
|
}
|
|
2962
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2963
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2962
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2963
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2964
2964
|
function getToken() {
|
|
2965
|
-
|
|
2966
|
-
return vm.tokenCallback();
|
|
2965
|
+
return TOKEN_PREFIX + { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_DEBUG_TOKEN;
|
|
2967
2966
|
}
|
|
2968
2967
|
function setToken(token2) {
|
|
2969
2968
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3292,6 +3291,20 @@ const auth_get_user_info = (data2) => {
|
|
|
3292
3291
|
data: data2
|
|
3293
3292
|
});
|
|
3294
3293
|
};
|
|
3294
|
+
const part_children = (data2) => {
|
|
3295
|
+
return service$3({
|
|
3296
|
+
url: vm.urlCallback() + "/ac-api/part/children",
|
|
3297
|
+
method: "POST",
|
|
3298
|
+
data: data2
|
|
3299
|
+
});
|
|
3300
|
+
};
|
|
3301
|
+
const part_detail = (data2) => {
|
|
3302
|
+
return service$3({
|
|
3303
|
+
url: vm.urlCallback() + "/ac-api/part/detail",
|
|
3304
|
+
method: "POST",
|
|
3305
|
+
data: data2
|
|
3306
|
+
});
|
|
3307
|
+
};
|
|
3295
3308
|
var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3296
3309
|
__proto__: null,
|
|
3297
3310
|
process_can_apply,
|
|
@@ -3307,7 +3320,9 @@ var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
3307
3320
|
get_wxuser_by_id,
|
|
3308
3321
|
wx_user_list,
|
|
3309
3322
|
file_upload,
|
|
3310
|
-
auth_get_user_info
|
|
3323
|
+
auth_get_user_info,
|
|
3324
|
+
part_children,
|
|
3325
|
+
part_detail
|
|
3311
3326
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3312
3327
|
function noop() {
|
|
3313
3328
|
}
|
|
@@ -10197,6 +10212,32 @@ const findNode = (id, nodes) => {
|
|
|
10197
10212
|
}
|
|
10198
10213
|
return res[res.length - 1];
|
|
10199
10214
|
};
|
|
10215
|
+
const findPaths = (targetId, nodes, path = []) => {
|
|
10216
|
+
var _a;
|
|
10217
|
+
if (!nodes || nodes.length < 1 || !targetId)
|
|
10218
|
+
return [];
|
|
10219
|
+
for (const node of nodes) {
|
|
10220
|
+
if (node.id === targetId) {
|
|
10221
|
+
return [...path, node];
|
|
10222
|
+
}
|
|
10223
|
+
if ((_a = node.children) == null ? void 0 : _a.length) {
|
|
10224
|
+
const founds = findPaths(targetId, node.children, [...path, node]);
|
|
10225
|
+
if (founds && founds.length > 0)
|
|
10226
|
+
return founds;
|
|
10227
|
+
}
|
|
10228
|
+
}
|
|
10229
|
+
return [];
|
|
10230
|
+
};
|
|
10231
|
+
const findParent = (id, nodes) => {
|
|
10232
|
+
if (!nodes || !id) {
|
|
10233
|
+
return null;
|
|
10234
|
+
}
|
|
10235
|
+
let paths = findPaths(id, nodes);
|
|
10236
|
+
if (!paths || paths.length < 2) {
|
|
10237
|
+
return null;
|
|
10238
|
+
}
|
|
10239
|
+
return paths[paths.length - 2];
|
|
10240
|
+
};
|
|
10200
10241
|
const ids2nodes = (ids, totalNodes) => {
|
|
10201
10242
|
if (!totalNodes || totalNodes.length < 1 || !ids || ids.length < 1)
|
|
10202
10243
|
return [];
|
|
@@ -10257,6 +10298,8 @@ var TreeUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
10257
10298
|
__proto__: null,
|
|
10258
10299
|
findNodes,
|
|
10259
10300
|
findNode,
|
|
10301
|
+
findPaths,
|
|
10302
|
+
findParent,
|
|
10260
10303
|
ids2nodes,
|
|
10261
10304
|
concatNodes,
|
|
10262
10305
|
data2columns,
|
|
@@ -15716,20 +15759,20 @@ var _export_sfc = (sfc, props) => {
|
|
|
15716
15759
|
}
|
|
15717
15760
|
return target;
|
|
15718
15761
|
};
|
|
15719
|
-
const _hoisted_1$
|
|
15762
|
+
const _hoisted_1$j = {
|
|
15720
15763
|
class: "widget"
|
|
15721
15764
|
};
|
|
15722
|
-
const _hoisted_2$
|
|
15723
|
-
const _hoisted_3$
|
|
15724
|
-
const _hoisted_4$
|
|
15725
|
-
const _hoisted_5$
|
|
15765
|
+
const _hoisted_2$b = /* @__PURE__ */ createTextVNode("\u9A73\u56DE");
|
|
15766
|
+
const _hoisted_3$9 = /* @__PURE__ */ createTextVNode("\u540C\u610F");
|
|
15767
|
+
const _hoisted_4$8 = /* @__PURE__ */ createTextVNode("\u7533\u8BF7");
|
|
15768
|
+
const _hoisted_5$8 = {
|
|
15726
15769
|
key: 4,
|
|
15727
15770
|
class: "audit-title"
|
|
15728
15771
|
};
|
|
15729
|
-
const _hoisted_6$
|
|
15772
|
+
const _hoisted_6$7 = {
|
|
15730
15773
|
class: "task-title"
|
|
15731
15774
|
};
|
|
15732
|
-
const _sfc_main$
|
|
15775
|
+
const _sfc_main$w = {
|
|
15733
15776
|
__name: "AuditBar",
|
|
15734
15777
|
props: {
|
|
15735
15778
|
processId: Number,
|
|
@@ -15959,7 +16002,7 @@ const _sfc_main$u = {
|
|
|
15959
16002
|
const _component_van_popover = resolveComponent("van-popover");
|
|
15960
16003
|
const _component_van_step = resolveComponent("van-step");
|
|
15961
16004
|
const _component_van_steps = resolveComponent("van-steps");
|
|
15962
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16005
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [unref(canPass) || unref(canRefuse) ? (openBlock(), createBlock(_component_van_field, {
|
|
15963
16006
|
key: 0,
|
|
15964
16007
|
modelValue: data2.memo,
|
|
15965
16008
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.memo = $event),
|
|
@@ -15980,7 +16023,7 @@ const _sfc_main$u = {
|
|
|
15980
16023
|
type: "danger",
|
|
15981
16024
|
onClick: onRefuse
|
|
15982
16025
|
}, {
|
|
15983
|
-
default: withCtx(() => [_hoisted_2$
|
|
16026
|
+
default: withCtx(() => [_hoisted_2$b]),
|
|
15984
16027
|
_: 1
|
|
15985
16028
|
})]),
|
|
15986
16029
|
_: 1
|
|
@@ -15991,7 +16034,7 @@ const _sfc_main$u = {
|
|
|
15991
16034
|
"native-type": "submit",
|
|
15992
16035
|
onClick: onPass
|
|
15993
16036
|
}, {
|
|
15994
|
-
default: withCtx(() => [_hoisted_3$
|
|
16037
|
+
default: withCtx(() => [_hoisted_3$9]),
|
|
15995
16038
|
_: 1
|
|
15996
16039
|
})) : createCommentVNode("", true), data2.canApply ? (openBlock(), createBlock(_component_van_button, {
|
|
15997
16040
|
key: 3,
|
|
@@ -16000,9 +16043,9 @@ const _sfc_main$u = {
|
|
|
16000
16043
|
"native-type": "submit",
|
|
16001
16044
|
onClick: onApply
|
|
16002
16045
|
}, {
|
|
16003
|
-
default: withCtx(() => [_hoisted_4$
|
|
16046
|
+
default: withCtx(() => [_hoisted_4$8]),
|
|
16004
16047
|
_: 1
|
|
16005
|
-
})) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
16048
|
+
})) : 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, {
|
|
16006
16049
|
key: 5,
|
|
16007
16050
|
class: "task-list",
|
|
16008
16051
|
direction: "vertical",
|
|
@@ -16012,7 +16055,7 @@ const _sfc_main$u = {
|
|
|
16012
16055
|
return openBlock(), createBlock(_component_van_step, {
|
|
16013
16056
|
key: i
|
|
16014
16057
|
}, {
|
|
16015
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6$
|
|
16058
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6$7, toDisplayString(formatTitle(task)), 1), task.executors ? (openBlock(true), createElementBlock(Fragment, {
|
|
16016
16059
|
key: 0
|
|
16017
16060
|
}, renderList(task.executors, (executor, j) => {
|
|
16018
16061
|
return openBlock(), createElementBlock("div", {
|
|
@@ -16028,7 +16071,7 @@ const _sfc_main$u = {
|
|
|
16028
16071
|
};
|
|
16029
16072
|
}
|
|
16030
16073
|
};
|
|
16031
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16074
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-87892c3e"]]);
|
|
16032
16075
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16033
16076
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16034
16077
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16096,7 +16139,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
16096
16139
|
}
|
|
16097
16140
|
}
|
|
16098
16141
|
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-5653f0d0] .label {\n color: #000 !important;\n}\n[data-v-5653f0d0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16099
|
-
const _sfc_main$
|
|
16142
|
+
const _sfc_main$v = {
|
|
16100
16143
|
__name: "Input",
|
|
16101
16144
|
props: {
|
|
16102
16145
|
modelValue: {
|
|
@@ -16172,9 +16215,9 @@ const _sfc_main$t = {
|
|
|
16172
16215
|
};
|
|
16173
16216
|
}
|
|
16174
16217
|
};
|
|
16175
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16218
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-5653f0d0"]]);
|
|
16176
16219
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16177
|
-
const _sfc_main$
|
|
16220
|
+
const _sfc_main$u = {
|
|
16178
16221
|
__name: "SinglePicker",
|
|
16179
16222
|
props: {
|
|
16180
16223
|
id: String,
|
|
@@ -16290,16 +16333,16 @@ const _sfc_main$s = {
|
|
|
16290
16333
|
};
|
|
16291
16334
|
}
|
|
16292
16335
|
};
|
|
16293
|
-
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16336
|
+
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-24e62c3a"]]);
|
|
16294
16337
|
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")();
|
|
16295
|
-
const _hoisted_1$
|
|
16338
|
+
const _hoisted_1$i = {
|
|
16296
16339
|
class: "select-all-container"
|
|
16297
16340
|
};
|
|
16298
|
-
const _hoisted_2$
|
|
16299
|
-
const _hoisted_3$
|
|
16341
|
+
const _hoisted_2$a = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
16342
|
+
const _hoisted_3$8 = {
|
|
16300
16343
|
class: "checkbox-list"
|
|
16301
16344
|
};
|
|
16302
|
-
const _sfc_main$
|
|
16345
|
+
const _sfc_main$t = {
|
|
16303
16346
|
__name: "DataPop",
|
|
16304
16347
|
props: {
|
|
16305
16348
|
show: {
|
|
@@ -16346,16 +16389,16 @@ const _sfc_main$r = {
|
|
|
16346
16389
|
position: "bottom",
|
|
16347
16390
|
class: "popup-box"
|
|
16348
16391
|
}, {
|
|
16349
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
16392
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$i, [createVNode(_component_van_checkbox, {
|
|
16350
16393
|
shape: "square",
|
|
16351
16394
|
modelValue: data2.isAllChecked,
|
|
16352
16395
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.isAllChecked = $event),
|
|
16353
16396
|
onClick: onToggleAll,
|
|
16354
16397
|
"label-position": "left"
|
|
16355
16398
|
}, {
|
|
16356
|
-
default: withCtx(() => [_hoisted_2$
|
|
16399
|
+
default: withCtx(() => [_hoisted_2$a]),
|
|
16357
16400
|
_: 1
|
|
16358
|
-
}, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$
|
|
16401
|
+
}, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$8, [createVNode(_component_van_checkbox_group, {
|
|
16359
16402
|
modelValue: unref(modelValue),
|
|
16360
16403
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
16361
16404
|
direction: "vertical"
|
|
@@ -16380,12 +16423,12 @@ const _sfc_main$r = {
|
|
|
16380
16423
|
};
|
|
16381
16424
|
}
|
|
16382
16425
|
};
|
|
16383
|
-
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16426
|
+
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-10d79413"]]);
|
|
16384
16427
|
var MultiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.data-item[data-v-95e8cb3c]{\r\n margin: 0 8px 8px 0;\r\n padding: 2px 5px;\n}\r\n")();
|
|
16385
|
-
const _hoisted_1$
|
|
16428
|
+
const _hoisted_1$h = {
|
|
16386
16429
|
class: "data-list"
|
|
16387
16430
|
};
|
|
16388
|
-
const _sfc_main$
|
|
16431
|
+
const _sfc_main$s = {
|
|
16389
16432
|
__name: "MultiPicker",
|
|
16390
16433
|
props: {
|
|
16391
16434
|
id: String,
|
|
@@ -16498,7 +16541,7 @@ const _sfc_main$q = {
|
|
|
16498
16541
|
_: 2
|
|
16499
16542
|
}, [unref(selectOptions).length > 0 ? {
|
|
16500
16543
|
name: "input",
|
|
16501
|
-
fn: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
16544
|
+
fn: withCtx(() => [createElementVNode("div", _hoisted_1$h, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
16502
16545
|
return openBlock(), createBlock(_component_van_tag, {
|
|
16503
16546
|
class: "data-item",
|
|
16504
16547
|
closeable: !unref(isDisabled),
|
|
@@ -16521,9 +16564,9 @@ const _sfc_main$q = {
|
|
|
16521
16564
|
};
|
|
16522
16565
|
}
|
|
16523
16566
|
};
|
|
16524
|
-
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16567
|
+
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-95e8cb3c"]]);
|
|
16525
16568
|
var CheckGroup_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-7f5a06de] .label {\n color: #000 !important;\n}\n[data-v-7f5a06de] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16526
|
-
const _sfc_main$
|
|
16569
|
+
const _sfc_main$r = {
|
|
16527
16570
|
__name: "CheckGroup",
|
|
16528
16571
|
props: {
|
|
16529
16572
|
id: {
|
|
@@ -16647,8 +16690,8 @@ const _sfc_main$p = {
|
|
|
16647
16690
|
};
|
|
16648
16691
|
}
|
|
16649
16692
|
};
|
|
16650
|
-
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16651
|
-
const _sfc_main$
|
|
16693
|
+
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-7f5a06de"]]);
|
|
16694
|
+
const _sfc_main$q = {
|
|
16652
16695
|
__name: "DatetimePop",
|
|
16653
16696
|
props: {
|
|
16654
16697
|
isShow: {
|
|
@@ -16930,7 +16973,7 @@ const _sfc_main$o = {
|
|
|
16930
16973
|
};
|
|
16931
16974
|
}
|
|
16932
16975
|
};
|
|
16933
|
-
const _sfc_main$
|
|
16976
|
+
const _sfc_main$p = {
|
|
16934
16977
|
__name: "index",
|
|
16935
16978
|
props: {
|
|
16936
16979
|
modelValue: {
|
|
@@ -17025,7 +17068,7 @@ const _sfc_main$n = {
|
|
|
17025
17068
|
}, {
|
|
17026
17069
|
input: withCtx(() => [createTextVNode(toDisplayString(formatTime(props.modelValue)), 1)]),
|
|
17027
17070
|
_: 1
|
|
17028
|
-
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
17071
|
+
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : createCommentVNode("", true), createVNode(_sfc_main$q, {
|
|
17029
17072
|
isShow: data2.isShow,
|
|
17030
17073
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
17031
17074
|
modelValue: unref(modelValue),
|
|
@@ -17038,23 +17081,23 @@ const _sfc_main$n = {
|
|
|
17038
17081
|
}
|
|
17039
17082
|
};
|
|
17040
17083
|
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-57cfd397] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-57cfd397] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-57cfd397] {\r\n border: 0;\n}\n.flex-between[data-v-57cfd397] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-57cfd397] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-57cfd397] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-57cfd397] {\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-57cfd397] {\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-57cfd397] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17041
|
-
const _hoisted_1$
|
|
17084
|
+
const _hoisted_1$g = {
|
|
17042
17085
|
class: "pad10 flex-between showMultipleButton"
|
|
17043
17086
|
};
|
|
17044
|
-
const _hoisted_2$
|
|
17045
|
-
const _hoisted_3$
|
|
17087
|
+
const _hoisted_2$9 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
17088
|
+
const _hoisted_3$7 = {
|
|
17046
17089
|
class: "bold"
|
|
17047
17090
|
};
|
|
17048
|
-
const _hoisted_4$
|
|
17049
|
-
const _hoisted_5$
|
|
17091
|
+
const _hoisted_4$7 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
17092
|
+
const _hoisted_5$7 = {
|
|
17050
17093
|
key: 0,
|
|
17051
17094
|
class: "select-all-container"
|
|
17052
17095
|
};
|
|
17053
|
-
const _hoisted_6$
|
|
17054
|
-
const _hoisted_7$
|
|
17096
|
+
const _hoisted_6$6 = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
17097
|
+
const _hoisted_7$6 = {
|
|
17055
17098
|
class: "checkbox-style"
|
|
17056
17099
|
};
|
|
17057
|
-
const _sfc_main$
|
|
17100
|
+
const _sfc_main$o = {
|
|
17058
17101
|
__name: "data_selector",
|
|
17059
17102
|
props: {
|
|
17060
17103
|
mode: {
|
|
@@ -17241,20 +17284,20 @@ const _sfc_main$m = {
|
|
|
17241
17284
|
position: "bottom",
|
|
17242
17285
|
class: "popup-style"
|
|
17243
17286
|
}, {
|
|
17244
|
-
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$
|
|
17287
|
+
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$g, [createVNode(_component_van_button, {
|
|
17245
17288
|
plain: "",
|
|
17246
17289
|
size: "normal",
|
|
17247
17290
|
onClick: cancelSelection
|
|
17248
17291
|
}, {
|
|
17249
|
-
default: withCtx(() => [_hoisted_2$
|
|
17292
|
+
default: withCtx(() => [_hoisted_2$9]),
|
|
17250
17293
|
_: 1
|
|
17251
|
-
}), createElementVNode("div", _hoisted_3$
|
|
17294
|
+
}), createElementVNode("div", _hoisted_3$7, toDisplayString(__props.label), 1), createVNode(_component_van_button, {
|
|
17252
17295
|
plain: "",
|
|
17253
17296
|
type: "primary",
|
|
17254
17297
|
size: "normal",
|
|
17255
17298
|
onClick: confirmSelection
|
|
17256
17299
|
}, {
|
|
17257
|
-
default: withCtx(() => [_hoisted_4$
|
|
17300
|
+
default: withCtx(() => [_hoisted_4$7]),
|
|
17258
17301
|
_: 1
|
|
17259
17302
|
})]), createVNode(_component_van_field, {
|
|
17260
17303
|
"left-icon": "search",
|
|
@@ -17265,16 +17308,16 @@ const _sfc_main$m = {
|
|
|
17265
17308
|
},
|
|
17266
17309
|
clearable: "",
|
|
17267
17310
|
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57"
|
|
17268
|
-
}, null, 8, ["modelValue"]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
17311
|
+
}, null, 8, ["modelValue"]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_5$7, [createVNode(_component_van_checkbox, {
|
|
17269
17312
|
shape: "square",
|
|
17270
17313
|
modelValue: isAllChecked.value,
|
|
17271
17314
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
17272
17315
|
onClick: toggleAllSelect,
|
|
17273
17316
|
"label-position": "left"
|
|
17274
17317
|
}, {
|
|
17275
|
-
default: withCtx(() => [_hoisted_6$
|
|
17318
|
+
default: withCtx(() => [_hoisted_6$6]),
|
|
17276
17319
|
_: 1
|
|
17277
|
-
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$
|
|
17320
|
+
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$6, [__props.mode === "multiple" ? (openBlock(), createBlock(_component_van_checkbox_group, {
|
|
17278
17321
|
key: 0,
|
|
17279
17322
|
modelValue: checkedValue.value,
|
|
17280
17323
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkedValue.value = $event)
|
|
@@ -17329,16 +17372,16 @@ const _sfc_main$m = {
|
|
|
17329
17372
|
};
|
|
17330
17373
|
}
|
|
17331
17374
|
};
|
|
17332
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17375
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-57cfd397"]]);
|
|
17333
17376
|
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")();
|
|
17334
|
-
const _hoisted_1$
|
|
17377
|
+
const _hoisted_1$f = {
|
|
17335
17378
|
key: 0,
|
|
17336
17379
|
class: "confirmation-tips"
|
|
17337
17380
|
};
|
|
17338
|
-
const _hoisted_2$
|
|
17381
|
+
const _hoisted_2$8 = {
|
|
17339
17382
|
class: "option-text"
|
|
17340
17383
|
};
|
|
17341
|
-
const _sfc_main$
|
|
17384
|
+
const _sfc_main$n = {
|
|
17342
17385
|
__name: "mult_list_selector",
|
|
17343
17386
|
props: {
|
|
17344
17387
|
options: {
|
|
@@ -17373,7 +17416,7 @@ const _sfc_main$l = {
|
|
|
17373
17416
|
const _component_van_icon = resolveComponent("van-icon");
|
|
17374
17417
|
const _component_van_checkbox = resolveComponent("van-checkbox");
|
|
17375
17418
|
const _component_van_checkbox_group = resolveComponent("van-checkbox-group");
|
|
17376
|
-
return openBlock(), createElementBlock(Fragment, null, [__props.tips && __props.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17419
|
+
return openBlock(), createElementBlock(Fragment, null, [__props.tips && __props.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$f, [createVNode(_component_van_icon, {
|
|
17377
17420
|
name: "info",
|
|
17378
17421
|
color: "#1989fa"
|
|
17379
17422
|
}), createElementVNode("span", null, toDisplayString(__props.tips), 1)])) : createCommentVNode("", true), createVNode(_component_van_checkbox_group, {
|
|
@@ -17394,7 +17437,7 @@ const _sfc_main$l = {
|
|
|
17394
17437
|
"icon-size": "18px",
|
|
17395
17438
|
class: "custom-checkbox"
|
|
17396
17439
|
}, {
|
|
17397
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_2$
|
|
17440
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_2$8, toDisplayString(item.label), 1)]),
|
|
17398
17441
|
_: 2
|
|
17399
17442
|
}, 1032, ["name"])]);
|
|
17400
17443
|
}), 128))]),
|
|
@@ -17403,12 +17446,12 @@ const _sfc_main$l = {
|
|
|
17403
17446
|
};
|
|
17404
17447
|
}
|
|
17405
17448
|
};
|
|
17406
|
-
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17449
|
+
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-40a09897"]]);
|
|
17407
17450
|
var product_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.project-selector[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-cell {\r\n align-items: center;\n}\n[data-v-dbc5bf54] .van-field__label {\r\n width: 90px;\r\n flex: none;\n}\n.readonly-field[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-field__control {\r\n color: #323233;\r\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\r\n padding-right: 16px;\n}\r\n\r\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n&.van-field--required[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-field__label::before {\r\n margin-right: 4px;\n}\n}\n}\r\n\r\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n.readonly-field[data-v-dbc5bf54] {\r\n margin: 4px 0;\n}\n}\r\n")();
|
|
17408
|
-
const _hoisted_1$
|
|
17451
|
+
const _hoisted_1$e = {
|
|
17409
17452
|
class: "project-selector"
|
|
17410
17453
|
};
|
|
17411
|
-
const _sfc_main$
|
|
17454
|
+
const _sfc_main$m = {
|
|
17412
17455
|
__name: "product_selector",
|
|
17413
17456
|
props: {
|
|
17414
17457
|
modelValue: {
|
|
@@ -17512,7 +17555,7 @@ const _sfc_main$k = {
|
|
|
17512
17555
|
}));
|
|
17513
17556
|
return (_ctx, _cache) => {
|
|
17514
17557
|
const _component_van_field = resolveComponent("van-field");
|
|
17515
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17558
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [createVNode(DataSelector, {
|
|
17516
17559
|
modelValue: selectedProjectCode.value,
|
|
17517
17560
|
"onUpdate:modelValue": [_cache[0] || (_cache[0] = ($event) => selectedProjectCode.value = $event), handleProjectChange],
|
|
17518
17561
|
label: "\u4EA7\u54C1\u540D\u79F0",
|
|
@@ -17535,36 +17578,36 @@ const _sfc_main$k = {
|
|
|
17535
17578
|
};
|
|
17536
17579
|
}
|
|
17537
17580
|
};
|
|
17538
|
-
var ProductSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17581
|
+
var ProductSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-dbc5bf54"]]);
|
|
17539
17582
|
var subdepartment_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.department-popup[data-v-73eb43f3] {\r\n width: 100%;\r\n height: 60vh;\r\n border-radius: 16px 16px 0 0;\n}\n.popup-container[data-v-73eb43f3] {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1;\r\n height: 100%;\n}\n.picker-header[data-v-73eb43f3] {\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-73eb43f3] {\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-73eb43f3] {\r\n margin-right: 8px;\n}\n.current-path[data-v-73eb43f3] {\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-73eb43f3] {\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-73eb43f3] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-73eb43f3] {\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-73eb43f3] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-73eb43f3] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-73eb43f3] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-73eb43f3] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-73eb43f3] {\r\n color: #969799;\n}\n.search-field[data-v-73eb43f3] {\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")();
|
|
17540
|
-
const _hoisted_1$
|
|
17583
|
+
const _hoisted_1$d = {
|
|
17541
17584
|
class: "department-selector"
|
|
17542
17585
|
};
|
|
17543
|
-
const _hoisted_2$
|
|
17586
|
+
const _hoisted_2$7 = {
|
|
17544
17587
|
class: "popup-container"
|
|
17545
17588
|
};
|
|
17546
|
-
const _hoisted_3$
|
|
17589
|
+
const _hoisted_3$6 = {
|
|
17547
17590
|
class: "picker-header"
|
|
17548
17591
|
};
|
|
17549
|
-
const _hoisted_4$
|
|
17592
|
+
const _hoisted_4$6 = {
|
|
17550
17593
|
class: "current-path"
|
|
17551
17594
|
};
|
|
17552
|
-
const _hoisted_5$
|
|
17595
|
+
const _hoisted_5$6 = {
|
|
17553
17596
|
class: "action-buttons"
|
|
17554
17597
|
};
|
|
17555
|
-
const _hoisted_6$
|
|
17556
|
-
const _hoisted_7$
|
|
17557
|
-
const _hoisted_8$
|
|
17598
|
+
const _hoisted_6$5 = /* @__PURE__ */ createTextVNode(" \u53D6\u6D88 ");
|
|
17599
|
+
const _hoisted_7$5 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
17600
|
+
const _hoisted_8$5 = {
|
|
17558
17601
|
class: "scroll-container"
|
|
17559
17602
|
};
|
|
17560
|
-
const _hoisted_9$
|
|
17603
|
+
const _hoisted_9$2 = {
|
|
17561
17604
|
class: "cell-content"
|
|
17562
17605
|
};
|
|
17563
|
-
const _hoisted_10$
|
|
17564
|
-
const _hoisted_11$
|
|
17606
|
+
const _hoisted_10$2 = ["onClick"];
|
|
17607
|
+
const _hoisted_11$2 = {
|
|
17565
17608
|
class: "name"
|
|
17566
17609
|
};
|
|
17567
|
-
const _sfc_main$
|
|
17610
|
+
const _sfc_main$l = {
|
|
17568
17611
|
__name: "subdepartment_selector",
|
|
17569
17612
|
props: {
|
|
17570
17613
|
modelValue: [String, Number],
|
|
@@ -17807,7 +17850,7 @@ const _sfc_main$j = {
|
|
|
17807
17850
|
const _component_van_cell = resolveComponent("van-cell");
|
|
17808
17851
|
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
17809
17852
|
const _component_van_popup = resolveComponent("van-popup");
|
|
17810
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17853
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
17811
17854
|
key: 0,
|
|
17812
17855
|
"model-value": selectedDepartmentPath.value,
|
|
17813
17856
|
readonly: "",
|
|
@@ -17827,18 +17870,18 @@ const _sfc_main$j = {
|
|
|
17827
17870
|
position: "bottom",
|
|
17828
17871
|
class: "department-popup"
|
|
17829
17872
|
}, {
|
|
17830
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
17873
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$7, [createElementVNode("div", _hoisted_3$6, [unref(currentLevel) > 0 ? (openBlock(), createBlock(_component_van_button, {
|
|
17831
17874
|
key: 0,
|
|
17832
17875
|
onClick: goBack,
|
|
17833
17876
|
icon: "arrow-left",
|
|
17834
17877
|
size: "small",
|
|
17835
17878
|
class: "back-button"
|
|
17836
|
-
})) : createCommentVNode("", true), createElementVNode("div", _hoisted_4$
|
|
17879
|
+
})) : createCommentVNode("", true), createElementVNode("div", _hoisted_4$6, toDisplayString(unref(currentPath)), 1), createElementVNode("div", _hoisted_5$6, [createVNode(_component_van_button, {
|
|
17837
17880
|
size: "small",
|
|
17838
17881
|
onClick: handleCancel,
|
|
17839
17882
|
class: "cancel-btn"
|
|
17840
17883
|
}, {
|
|
17841
|
-
default: withCtx(() => [_hoisted_6$
|
|
17884
|
+
default: withCtx(() => [_hoisted_6$5]),
|
|
17842
17885
|
_: 1
|
|
17843
17886
|
}), createVNode(_component_van_button, {
|
|
17844
17887
|
type: "primary",
|
|
@@ -17847,7 +17890,7 @@ const _sfc_main$j = {
|
|
|
17847
17890
|
disabled: !tempSelectedDepartment.value,
|
|
17848
17891
|
class: "confirm-btn"
|
|
17849
17892
|
}, {
|
|
17850
|
-
default: withCtx(() => [_hoisted_7$
|
|
17893
|
+
default: withCtx(() => [_hoisted_7$5]),
|
|
17851
17894
|
_: 1
|
|
17852
17895
|
}, 8, ["disabled"])])]), createVNode(_component_van_field, {
|
|
17853
17896
|
"left-icon": "search",
|
|
@@ -17859,7 +17902,7 @@ const _sfc_main$j = {
|
|
|
17859
17902
|
clearable: "",
|
|
17860
17903
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0\u641C\u7D22",
|
|
17861
17904
|
class: "search-field"
|
|
17862
|
-
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
17905
|
+
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$5, [createVNode(_component_van_cell_group, null, {
|
|
17863
17906
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredDepartments), (item, index) => {
|
|
17864
17907
|
return openBlock(), createBlock(_component_van_cell, {
|
|
17865
17908
|
key: index,
|
|
@@ -17868,7 +17911,7 @@ const _sfc_main$j = {
|
|
|
17868
17911
|
}, {
|
|
17869
17912
|
title: withCtx(() => {
|
|
17870
17913
|
var _a, _b;
|
|
17871
|
-
return [createElementVNode("div", _hoisted_9$
|
|
17914
|
+
return [createElementVNode("div", _hoisted_9$2, [createElementVNode("div", {
|
|
17872
17915
|
class: normalizeClass(["circle-selector", {
|
|
17873
17916
|
"selected": ((_a = tempSelectedDepartment.value) == null ? void 0 : _a.id) === item.id
|
|
17874
17917
|
}]),
|
|
@@ -17876,7 +17919,7 @@ const _sfc_main$j = {
|
|
|
17876
17919
|
}, [((_b = tempSelectedDepartment.value) == null ? void 0 : _b.id) === item.id ? (openBlock(), createBlock(_component_van_icon, {
|
|
17877
17920
|
key: 0,
|
|
17878
17921
|
name: "success"
|
|
17879
|
-
})) : createCommentVNode("", true)], 10, _hoisted_10$
|
|
17922
|
+
})) : createCommentVNode("", true)], 10, _hoisted_10$2), createElementVNode("span", _hoisted_11$2, toDisplayString(item.fullPath || item.name), 1)])];
|
|
17880
17923
|
}),
|
|
17881
17924
|
"right-icon": withCtx(() => {
|
|
17882
17925
|
var _a;
|
|
@@ -17895,41 +17938,41 @@ const _sfc_main$j = {
|
|
|
17895
17938
|
};
|
|
17896
17939
|
}
|
|
17897
17940
|
};
|
|
17898
|
-
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17941
|
+
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-73eb43f3"]]);
|
|
17899
17942
|
var user_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-6c4b4fc8] {\r\n height: 60vh;\r\n width: 100%;\n}\n.picker-header[data-v-6c4b4fc8] {\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-6c4b4fc8] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.search-container[data-v-6c4b4fc8] {\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-6c4b4fc8] .search-container .van-search {\r\n flex: 1;\n}\n.search-btn[data-v-6c4b4fc8] {\r\n flex-shrink: 0;\n}\n.select-all-container[data-v-6c4b4fc8] {\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-6c4b4fc8] .van-checkbox__icon--square {\r\n border-radius: 4px;\n}\n[data-v-6c4b4fc8] .van-checkbox__label {\r\n margin-left: 8px;\n}\n[data-v-6c4b4fc8] .van-radio-group .van-cell,[data-v-6c4b4fc8] .van-checkbox-group .van-cell {\r\n align-items: center;\n}\n.current-path[data-v-6c4b4fc8] {\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-6c4b4fc8] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-6c4b4fc8] {\r\n color: #969799;\r\n margin-right: 5px;\n}\r\n")();
|
|
17900
|
-
const _hoisted_1$
|
|
17943
|
+
const _hoisted_1$c = {
|
|
17901
17944
|
class: "user-selector"
|
|
17902
17945
|
};
|
|
17903
|
-
const _hoisted_2$
|
|
17946
|
+
const _hoisted_2$6 = {
|
|
17904
17947
|
class: "popup-container"
|
|
17905
17948
|
};
|
|
17906
|
-
const _hoisted_3$
|
|
17949
|
+
const _hoisted_3$5 = {
|
|
17907
17950
|
class: "picker-header"
|
|
17908
17951
|
};
|
|
17909
|
-
const _hoisted_4$
|
|
17952
|
+
const _hoisted_4$5 = {
|
|
17910
17953
|
class: "header-left"
|
|
17911
17954
|
};
|
|
17912
|
-
const _hoisted_5$
|
|
17955
|
+
const _hoisted_5$5 = {
|
|
17913
17956
|
class: "current-path"
|
|
17914
17957
|
};
|
|
17915
|
-
const _hoisted_6$
|
|
17958
|
+
const _hoisted_6$4 = {
|
|
17916
17959
|
class: "header-right"
|
|
17917
17960
|
};
|
|
17918
|
-
const _hoisted_7$
|
|
17919
|
-
const _hoisted_8$
|
|
17920
|
-
const _hoisted_9 = {
|
|
17961
|
+
const _hoisted_7$4 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
17962
|
+
const _hoisted_8$4 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
17963
|
+
const _hoisted_9$1 = {
|
|
17921
17964
|
key: 0,
|
|
17922
17965
|
class: "select-all-container"
|
|
17923
17966
|
};
|
|
17924
|
-
const _hoisted_10 = /* @__PURE__ */ createTextVNode(" \u5168\u9009 ");
|
|
17925
|
-
const _hoisted_11 = {
|
|
17967
|
+
const _hoisted_10$1 = /* @__PURE__ */ createTextVNode(" \u5168\u9009 ");
|
|
17968
|
+
const _hoisted_11$1 = {
|
|
17926
17969
|
class: "search-container"
|
|
17927
17970
|
};
|
|
17928
17971
|
const _hoisted_12 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
17929
17972
|
const _hoisted_13 = {
|
|
17930
17973
|
class: "scroll-container"
|
|
17931
17974
|
};
|
|
17932
|
-
const _sfc_main$
|
|
17975
|
+
const _sfc_main$k = {
|
|
17933
17976
|
__name: "user_selector",
|
|
17934
17977
|
props: {
|
|
17935
17978
|
modelValue: [Array, String, Number],
|
|
@@ -18282,7 +18325,7 @@ const _sfc_main$i = {
|
|
|
18282
18325
|
const _component_van_radio = resolveComponent("van-radio");
|
|
18283
18326
|
const _component_van_radio_group = resolveComponent("van-radio-group");
|
|
18284
18327
|
const _component_van_popup = resolveComponent("van-popup");
|
|
18285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18328
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
18286
18329
|
key: 0,
|
|
18287
18330
|
"model-value": unref(selectedUserInfo),
|
|
18288
18331
|
clickable: "",
|
|
@@ -18299,18 +18342,18 @@ const _sfc_main$i = {
|
|
|
18299
18342
|
position: "bottom",
|
|
18300
18343
|
class: "user-popup"
|
|
18301
18344
|
}, {
|
|
18302
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
18345
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$6, [createElementVNode("div", _hoisted_3$5, [createElementVNode("div", _hoisted_4$5, [unref(currentLevel) > 0 ? (openBlock(), createBlock(_component_van_button, {
|
|
18303
18346
|
key: 0,
|
|
18304
18347
|
onClick: goBack,
|
|
18305
18348
|
icon: "arrow-left",
|
|
18306
18349
|
size: "small",
|
|
18307
18350
|
class: "back-button"
|
|
18308
|
-
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5$
|
|
18351
|
+
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5$5, toDisplayString(unref(currentPath)), 1), createElementVNode("div", _hoisted_6$4, [createVNode(_component_van_button, {
|
|
18309
18352
|
size: "small",
|
|
18310
18353
|
onClick: handleClear,
|
|
18311
18354
|
class: "cancel-btn"
|
|
18312
18355
|
}, {
|
|
18313
|
-
default: withCtx(() => [_hoisted_7$
|
|
18356
|
+
default: withCtx(() => [_hoisted_7$4]),
|
|
18314
18357
|
_: 1
|
|
18315
18358
|
}), createVNode(_component_van_button, {
|
|
18316
18359
|
type: "primary",
|
|
@@ -18318,18 +18361,18 @@ const _sfc_main$i = {
|
|
|
18318
18361
|
onClick: confirmSelection,
|
|
18319
18362
|
class: "confirm-btn"
|
|
18320
18363
|
}, {
|
|
18321
|
-
default: withCtx(() => [_hoisted_8$
|
|
18364
|
+
default: withCtx(() => [_hoisted_8$4]),
|
|
18322
18365
|
_: 1
|
|
18323
|
-
})])]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9, [createVNode(_component_van_checkbox, {
|
|
18366
|
+
})])]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [createVNode(_component_van_checkbox, {
|
|
18324
18367
|
shape: "square",
|
|
18325
18368
|
modelValue: isAllChecked.value,
|
|
18326
18369
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
18327
18370
|
onClick: toggleAllSelect,
|
|
18328
18371
|
"label-position": "left"
|
|
18329
18372
|
}, {
|
|
18330
|
-
default: withCtx(() => [_hoisted_10]),
|
|
18373
|
+
default: withCtx(() => [_hoisted_10$1]),
|
|
18331
18374
|
_: 1
|
|
18332
|
-
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_11, [createVNode(_component_van_search, {
|
|
18375
|
+
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_11$1, [createVNode(_component_van_search, {
|
|
18333
18376
|
modelValue: searchInput.value,
|
|
18334
18377
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchInput.value = $event),
|
|
18335
18378
|
placeholder: "\u8F93\u5165\u5DE5\u53F7\u67E5\u8BE2",
|
|
@@ -18423,12 +18466,12 @@ const _sfc_main$i = {
|
|
|
18423
18466
|
};
|
|
18424
18467
|
}
|
|
18425
18468
|
};
|
|
18426
|
-
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18469
|
+
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18427
18470
|
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-7a64f836] .label {\n color: #000 !important;\n}\n[data-v-7a64f836] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18428
|
-
const _hoisted_1$
|
|
18471
|
+
const _hoisted_1$b = {
|
|
18429
18472
|
class: "image-box"
|
|
18430
18473
|
};
|
|
18431
|
-
const _sfc_main$
|
|
18474
|
+
const _sfc_main$j = {
|
|
18432
18475
|
__name: "image_picker",
|
|
18433
18476
|
props: {
|
|
18434
18477
|
modelValue: {
|
|
@@ -18520,7 +18563,7 @@ const _sfc_main$h = {
|
|
|
18520
18563
|
"label-class": "label",
|
|
18521
18564
|
placeholder: props.placeholder
|
|
18522
18565
|
}, {
|
|
18523
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
18566
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$b, [createVNode(_component_van_uploader, {
|
|
18524
18567
|
modelValue: files.value,
|
|
18525
18568
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18526
18569
|
"max-count": 1,
|
|
@@ -18535,12 +18578,12 @@ const _sfc_main$h = {
|
|
|
18535
18578
|
};
|
|
18536
18579
|
}
|
|
18537
18580
|
};
|
|
18538
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18581
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-7a64f836"]]);
|
|
18539
18582
|
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-d659bcb6] {\n text-align: center;\n}\n.widget .btn[data-v-d659bcb6] {\n position: fixed;\n bottom: 1rem;\n left: 0;\n right: 0;\n margin: auto auto;\n color: white;\n font-size: 14px;\n background: rgb(58, 136, 255);\n padding: 8px 35px;\n width: 100px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n}")();
|
|
18540
|
-
const _hoisted_1$
|
|
18583
|
+
const _hoisted_1$a = {
|
|
18541
18584
|
class: "image-box"
|
|
18542
18585
|
};
|
|
18543
|
-
const _sfc_main$
|
|
18586
|
+
const _sfc_main$i = {
|
|
18544
18587
|
__name: "images_picker",
|
|
18545
18588
|
props: {
|
|
18546
18589
|
modelValue: {
|
|
@@ -18646,7 +18689,7 @@ const _sfc_main$g = {
|
|
|
18646
18689
|
"label-class": "label",
|
|
18647
18690
|
placeholder: props.placeholder
|
|
18648
18691
|
}, {
|
|
18649
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
18692
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$a, [createVNode(_component_van_uploader, {
|
|
18650
18693
|
modelValue: files.value,
|
|
18651
18694
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18652
18695
|
"max-count": props.max,
|
|
@@ -18661,12 +18704,12 @@ const _sfc_main$g = {
|
|
|
18661
18704
|
};
|
|
18662
18705
|
}
|
|
18663
18706
|
};
|
|
18664
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18707
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-d659bcb6"]]);
|
|
18665
18708
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-78f50d19] .label {\n color: #000 !important;\n}\n[data-v-78f50d19] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18666
|
-
const _hoisted_1$
|
|
18709
|
+
const _hoisted_1$9 = {
|
|
18667
18710
|
class: "image-box"
|
|
18668
18711
|
};
|
|
18669
|
-
const _sfc_main$
|
|
18712
|
+
const _sfc_main$h = {
|
|
18670
18713
|
__name: "FilePicker",
|
|
18671
18714
|
props: {
|
|
18672
18715
|
modelValue: {
|
|
@@ -18758,7 +18801,7 @@ const _sfc_main$f = {
|
|
|
18758
18801
|
"label-class": "label",
|
|
18759
18802
|
placeholder: props.placeholder
|
|
18760
18803
|
}, {
|
|
18761
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
18804
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$9, [createVNode(_component_van_uploader, {
|
|
18762
18805
|
modelValue: files.value,
|
|
18763
18806
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18764
18807
|
"max-count": 1,
|
|
@@ -18775,29 +18818,29 @@ const _sfc_main$f = {
|
|
|
18775
18818
|
};
|
|
18776
18819
|
}
|
|
18777
18820
|
};
|
|
18778
|
-
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18821
|
+
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-78f50d19"]]);
|
|
18779
18822
|
var SingleUserSelector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-a489ca4c] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-a489ca4c] {\r\n padding: 10px;\n}\n.search-buttons[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-a489ca4c] {\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-a489ca4c] {\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-a489ca4c] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-a489ca4c] {\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-a489ca4c] {\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-a489ca4c] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-a489ca4c] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-a489ca4c] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
18780
|
-
const _hoisted_1$
|
|
18823
|
+
const _hoisted_1$8 = {
|
|
18781
18824
|
class: "department-selector"
|
|
18782
18825
|
};
|
|
18783
|
-
const _hoisted_2$
|
|
18826
|
+
const _hoisted_2$5 = {
|
|
18784
18827
|
class: "picker-header"
|
|
18785
18828
|
};
|
|
18786
|
-
const _hoisted_3$
|
|
18829
|
+
const _hoisted_3$4 = {
|
|
18787
18830
|
class: "header-left"
|
|
18788
18831
|
};
|
|
18789
|
-
const _hoisted_4$
|
|
18832
|
+
const _hoisted_4$4 = {
|
|
18790
18833
|
class: "current-path"
|
|
18791
18834
|
};
|
|
18792
|
-
const _hoisted_5$
|
|
18835
|
+
const _hoisted_5$4 = {
|
|
18793
18836
|
class: "header-right"
|
|
18794
18837
|
};
|
|
18795
|
-
const _hoisted_6$
|
|
18796
|
-
const _hoisted_7$
|
|
18797
|
-
const _hoisted_8$
|
|
18838
|
+
const _hoisted_6$3 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
18839
|
+
const _hoisted_7$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
18840
|
+
const _hoisted_8$3 = {
|
|
18798
18841
|
class: "scroll-container"
|
|
18799
18842
|
};
|
|
18800
|
-
const _sfc_main$
|
|
18843
|
+
const _sfc_main$g = {
|
|
18801
18844
|
__name: "SingleUserSelector",
|
|
18802
18845
|
props: {
|
|
18803
18846
|
modelValue: {
|
|
@@ -19064,16 +19107,16 @@ const _sfc_main$e = {
|
|
|
19064
19107
|
position: "bottom",
|
|
19065
19108
|
class: "user-popup"
|
|
19066
19109
|
}, {
|
|
19067
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
19110
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$8, [createElementVNode("div", _hoisted_2$5, [createElementVNode("div", _hoisted_3$4, [withDirectives(createVNode(_component_van_button, {
|
|
19068
19111
|
onClick: goBack,
|
|
19069
19112
|
icon: "arrow-left",
|
|
19070
19113
|
size: "small"
|
|
19071
|
-
}, null, 512), [[vShow, currentPath.value !== "\u8BF7\u9009\u62E9\u90E8\u95E8"]])]), createElementVNode("div", _hoisted_4$
|
|
19114
|
+
}, 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, {
|
|
19072
19115
|
size: "small",
|
|
19073
19116
|
onClick: handleClear,
|
|
19074
19117
|
class: "cancel-btn"
|
|
19075
19118
|
}, {
|
|
19076
|
-
default: withCtx(() => [_hoisted_6$
|
|
19119
|
+
default: withCtx(() => [_hoisted_6$3]),
|
|
19077
19120
|
_: 1
|
|
19078
19121
|
}), createVNode(_component_van_button, {
|
|
19079
19122
|
type: "primary",
|
|
@@ -19081,7 +19124,7 @@ const _sfc_main$e = {
|
|
|
19081
19124
|
onClick: confirmSelection,
|
|
19082
19125
|
class: "confirm-btn"
|
|
19083
19126
|
}, {
|
|
19084
|
-
default: withCtx(() => [_hoisted_7$
|
|
19127
|
+
default: withCtx(() => [_hoisted_7$3]),
|
|
19085
19128
|
_: 1
|
|
19086
19129
|
})])]), createVNode(_component_van_search, {
|
|
19087
19130
|
modelValue: searchValue.value,
|
|
@@ -19096,7 +19139,7 @@ const _sfc_main$e = {
|
|
|
19096
19139
|
onClick: handleSearch
|
|
19097
19140
|
}, "\u641C\u7D22")]),
|
|
19098
19141
|
_: 1
|
|
19099
|
-
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
19142
|
+
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$3, [createVNode(_component_van_cell_group, null, {
|
|
19100
19143
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(departments), (department) => {
|
|
19101
19144
|
return openBlock(), createBlock(_component_van_cell, {
|
|
19102
19145
|
key: department.id,
|
|
@@ -19131,29 +19174,29 @@ const _sfc_main$e = {
|
|
|
19131
19174
|
};
|
|
19132
19175
|
}
|
|
19133
19176
|
};
|
|
19134
|
-
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19177
|
+
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a489ca4c"]]);
|
|
19135
19178
|
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-78c036bd] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-78c036bd] {\r\n padding: 10px;\n}\n.search-buttons[data-v-78c036bd] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-78c036bd] {\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-78c036bd] {\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-78c036bd] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-78c036bd] {\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-78c036bd] {\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-78c036bd] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-78c036bd] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-78c036bd] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
19136
|
-
const _hoisted_1$
|
|
19179
|
+
const _hoisted_1$7 = {
|
|
19137
19180
|
class: "department-selector"
|
|
19138
19181
|
};
|
|
19139
|
-
const _hoisted_2$
|
|
19182
|
+
const _hoisted_2$4 = {
|
|
19140
19183
|
class: "picker-header"
|
|
19141
19184
|
};
|
|
19142
|
-
const _hoisted_3$
|
|
19185
|
+
const _hoisted_3$3 = {
|
|
19143
19186
|
class: "header-left"
|
|
19144
19187
|
};
|
|
19145
|
-
const _hoisted_4$
|
|
19188
|
+
const _hoisted_4$3 = {
|
|
19146
19189
|
class: "current-path"
|
|
19147
19190
|
};
|
|
19148
|
-
const _hoisted_5$
|
|
19191
|
+
const _hoisted_5$3 = {
|
|
19149
19192
|
class: "header-right"
|
|
19150
19193
|
};
|
|
19151
|
-
const _hoisted_6$
|
|
19152
|
-
const _hoisted_7$
|
|
19153
|
-
const _hoisted_8$
|
|
19194
|
+
const _hoisted_6$2 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
19195
|
+
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
19196
|
+
const _hoisted_8$2 = {
|
|
19154
19197
|
class: "scroll-container"
|
|
19155
19198
|
};
|
|
19156
|
-
const _sfc_main$
|
|
19199
|
+
const _sfc_main$f = {
|
|
19157
19200
|
__name: "UserPop",
|
|
19158
19201
|
props: {
|
|
19159
19202
|
show: {
|
|
@@ -19336,16 +19379,16 @@ const _sfc_main$d = {
|
|
|
19336
19379
|
position: "bottom",
|
|
19337
19380
|
class: "user-popup"
|
|
19338
19381
|
}, {
|
|
19339
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
19382
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$7, [createElementVNode("div", _hoisted_2$4, [createElementVNode("div", _hoisted_3$3, [createVNode(_component_van_button, {
|
|
19340
19383
|
onClick: onBack,
|
|
19341
19384
|
icon: "arrow-left",
|
|
19342
19385
|
size: "small"
|
|
19343
|
-
})]), createElementVNode("div", _hoisted_4$
|
|
19386
|
+
})]), createElementVNode("div", _hoisted_4$3, toDisplayString(unref(pathsLabel)), 1), createElementVNode("div", _hoisted_5$3, [createVNode(_component_van_button, {
|
|
19344
19387
|
size: "small",
|
|
19345
19388
|
onClick: onCancel,
|
|
19346
19389
|
class: "cancel-btn"
|
|
19347
19390
|
}, {
|
|
19348
|
-
default: withCtx(() => [_hoisted_6$
|
|
19391
|
+
default: withCtx(() => [_hoisted_6$2]),
|
|
19349
19392
|
_: 1
|
|
19350
19393
|
}), createVNode(_component_van_button, {
|
|
19351
19394
|
type: "primary",
|
|
@@ -19353,7 +19396,7 @@ const _sfc_main$d = {
|
|
|
19353
19396
|
onClick: onSubmit,
|
|
19354
19397
|
class: "confirm-btn"
|
|
19355
19398
|
}, {
|
|
19356
|
-
default: withCtx(() => [_hoisted_7$
|
|
19399
|
+
default: withCtx(() => [_hoisted_7$2]),
|
|
19357
19400
|
_: 1
|
|
19358
19401
|
})])]), createVNode(_component_van_search, {
|
|
19359
19402
|
modelValue: data2.keyword,
|
|
@@ -19368,7 +19411,7 @@ const _sfc_main$d = {
|
|
|
19368
19411
|
onClick: onSearch
|
|
19369
19412
|
}, "\u641C\u7D22")]),
|
|
19370
19413
|
_: 1
|
|
19371
|
-
}, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$
|
|
19414
|
+
}, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
|
|
19372
19415
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(subDepts), (dept) => {
|
|
19373
19416
|
return openBlock(), createBlock(_component_van_cell, {
|
|
19374
19417
|
key: dept.id,
|
|
@@ -19403,12 +19446,12 @@ const _sfc_main$d = {
|
|
|
19403
19446
|
};
|
|
19404
19447
|
}
|
|
19405
19448
|
};
|
|
19406
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19449
|
+
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-78c036bd"]]);
|
|
19407
19450
|
var UsersPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-item[data-v-4022cd82]{\r\n margin:3px;\n}\r\n")();
|
|
19408
|
-
const _hoisted_1$
|
|
19451
|
+
const _hoisted_1$6 = {
|
|
19409
19452
|
class: "user-list"
|
|
19410
19453
|
};
|
|
19411
|
-
const _sfc_main$
|
|
19454
|
+
const _sfc_main$e = {
|
|
19412
19455
|
__name: "UsersPicker",
|
|
19413
19456
|
props: {
|
|
19414
19457
|
modelValue: {
|
|
@@ -19506,7 +19549,7 @@ const _sfc_main$c = {
|
|
|
19506
19549
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
19507
19550
|
"label-class": "label"
|
|
19508
19551
|
}, {
|
|
19509
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
19552
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$6, [(openBlock(true), createElementBlock(Fragment, null, renderList(data2.users, (item, i) => {
|
|
19510
19553
|
return openBlock(), createBlock(_component_van_tag, {
|
|
19511
19554
|
class: "user-item",
|
|
19512
19555
|
closeable: !unref(isDisabled),
|
|
@@ -19530,9 +19573,9 @@ const _sfc_main$c = {
|
|
|
19530
19573
|
};
|
|
19531
19574
|
}
|
|
19532
19575
|
};
|
|
19533
|
-
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19576
|
+
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-4022cd82"]]);
|
|
19534
19577
|
var UserPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-58929b5a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
19535
|
-
const _sfc_main$
|
|
19578
|
+
const _sfc_main$d = {
|
|
19536
19579
|
__name: "UserPicker",
|
|
19537
19580
|
props: {
|
|
19538
19581
|
modelValue: {
|
|
@@ -19646,31 +19689,31 @@ const _sfc_main$b = {
|
|
|
19646
19689
|
};
|
|
19647
19690
|
}
|
|
19648
19691
|
};
|
|
19649
|
-
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19692
|
+
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-58929b5a"]]);
|
|
19650
19693
|
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-5ebf8c56] {\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-5ebf8c56] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-5ebf8c56] {\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-5ebf8c56] {\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-5ebf8c56] {\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-5ebf8c56] {\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-5ebf8c56]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-5ebf8c56] {\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-5ebf8c56] {\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")();
|
|
19651
|
-
const _hoisted_1$
|
|
19694
|
+
const _hoisted_1$5 = {
|
|
19652
19695
|
class: "widget"
|
|
19653
19696
|
};
|
|
19654
|
-
const _hoisted_2$
|
|
19697
|
+
const _hoisted_2$3 = {
|
|
19655
19698
|
class: "user-info"
|
|
19656
19699
|
};
|
|
19657
|
-
const _hoisted_3$
|
|
19700
|
+
const _hoisted_3$2 = {
|
|
19658
19701
|
class: "user-info-item"
|
|
19659
19702
|
};
|
|
19660
|
-
const _hoisted_4$
|
|
19703
|
+
const _hoisted_4$2 = {
|
|
19661
19704
|
class: "user-info-item"
|
|
19662
19705
|
};
|
|
19663
|
-
const _hoisted_5$
|
|
19706
|
+
const _hoisted_5$2 = {
|
|
19664
19707
|
class: "user-info-item"
|
|
19665
19708
|
};
|
|
19666
|
-
const _hoisted_6 = {
|
|
19709
|
+
const _hoisted_6$1 = {
|
|
19667
19710
|
class: "user-info-item"
|
|
19668
19711
|
};
|
|
19669
|
-
const _hoisted_7 = {
|
|
19712
|
+
const _hoisted_7$1 = {
|
|
19670
19713
|
class: "user-jobs"
|
|
19671
19714
|
};
|
|
19672
|
-
const _hoisted_8 = /* @__PURE__ */ createTextVNode(" \u6CE8\u9500 ");
|
|
19673
|
-
const _sfc_main$
|
|
19715
|
+
const _hoisted_8$1 = /* @__PURE__ */ createTextVNode(" \u6CE8\u9500 ");
|
|
19716
|
+
const _sfc_main$c = {
|
|
19674
19717
|
__name: "UserProfile",
|
|
19675
19718
|
emits: ["logout"],
|
|
19676
19719
|
setup(__props, {
|
|
@@ -19702,13 +19745,13 @@ const _sfc_main$a = {
|
|
|
19702
19745
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
19703
19746
|
const _component_van_image = resolveComponent("van-image");
|
|
19704
19747
|
const _component_van_button = resolveComponent("van-button");
|
|
19705
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19748
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [createVNode(_component_van_image, {
|
|
19706
19749
|
round: "",
|
|
19707
19750
|
width: "80px",
|
|
19708
19751
|
height: "80px",
|
|
19709
19752
|
src: (_b = (_a = data2.userInfo) == null ? void 0 : _a.wxUser) == null ? void 0 : _b.avatar,
|
|
19710
19753
|
class: "user-avatar"
|
|
19711
|
-
}, null, 8, ["src"]), createElementVNode("div", _hoisted_2$
|
|
19754
|
+
}, null, 8, ["src"]), createElementVNode("div", _hoisted_2$3, [createElementVNode("span", _hoisted_3$2, toDisplayString((_d = (_c = data2.userInfo) == null ? void 0 : _c.wxUser) == null ? void 0 : _d.userid), 1), createElementVNode("span", _hoisted_4$2, toDisplayString((_f = (_e = data2.userInfo) == null ? void 0 : _e.wxUser) == null ? void 0 : _f.name), 1), createElementVNode("span", _hoisted_5$2, toDisplayString((_h = (_g = data2.userInfo) == null ? void 0 : _g.wxUser) == null ? void 0 : _h.position), 1), createElementVNode("span", _hoisted_6$1, toDisplayString((_j = (_i = data2.userInfo) == null ? void 0 : _i.wxUser) == null ? void 0 : _j.mobile), 1)]), createElementVNode("div", _hoisted_7$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(deptPaths), (item, i) => {
|
|
19712
19755
|
return openBlock(), createElementBlock("span", {
|
|
19713
19756
|
class: "job-item",
|
|
19714
19757
|
key: i
|
|
@@ -19718,18 +19761,18 @@ const _sfc_main$a = {
|
|
|
19718
19761
|
class: "logout-button",
|
|
19719
19762
|
onClick: onLogout
|
|
19720
19763
|
}, {
|
|
19721
|
-
default: withCtx(() => [_hoisted_8]),
|
|
19764
|
+
default: withCtx(() => [_hoisted_8$1]),
|
|
19722
19765
|
_: 1
|
|
19723
19766
|
})]);
|
|
19724
19767
|
};
|
|
19725
19768
|
}
|
|
19726
19769
|
};
|
|
19727
|
-
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19770
|
+
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-5ebf8c56"]]);
|
|
19728
19771
|
var ProjectPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-47f94e12] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-47f94e12] .van-cell {\n align-items: center;\n}\n.widget[data-v-47f94e12] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-47f94e12] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-47f94e12] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-47f94e12] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-47f94e12] {\n margin: 4px 0;\n}')();
|
|
19729
|
-
const _hoisted_1$
|
|
19772
|
+
const _hoisted_1$4 = {
|
|
19730
19773
|
class: "widget"
|
|
19731
19774
|
};
|
|
19732
|
-
const _sfc_main$
|
|
19775
|
+
const _sfc_main$b = {
|
|
19733
19776
|
__name: "ProjectPicker",
|
|
19734
19777
|
props: {
|
|
19735
19778
|
modelValue: {
|
|
@@ -19801,7 +19844,7 @@ const _sfc_main$9 = {
|
|
|
19801
19844
|
query();
|
|
19802
19845
|
}));
|
|
19803
19846
|
return (_ctx, _cache) => {
|
|
19804
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19847
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [!unref(isGone) ? (openBlock(), createBlock(DataSelector, {
|
|
19805
19848
|
key: 0,
|
|
19806
19849
|
modelValue: unref(modelValue),
|
|
19807
19850
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
@@ -19818,24 +19861,24 @@ const _sfc_main$9 = {
|
|
|
19818
19861
|
};
|
|
19819
19862
|
}
|
|
19820
19863
|
};
|
|
19821
|
-
var ProjectPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19864
|
+
var ProjectPicker = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-47f94e12"]]);
|
|
19822
19865
|
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-68bdd6bc] {\n background-color: white;\n border-radius: 8px;\n box-shadow: var(--van-dropdown-menu-shadow);\n color: 14px;\n}\n.widget .card-box[data-v-68bdd6bc] {\n padding-bottom: 8px;\n}\n.widget .card-box .card-header[data-v-68bdd6bc] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 15px 10px;\n border-bottom: 1px solid #eee;\n}\n.widget .card-box .card-header .card-sum[data-v-68bdd6bc] {\n flex: 1;\n font-size: 14px;\n text-align: left;\n}\n.widget .card-box .card-header .user-state[data-v-68bdd6bc] {\n margin-right: 1px;\n}\n[data-v-68bdd6bc] .van-cell__value {\n flex: 2 !important;\n}\n[data-v-68bdd6bc] .van-cell__title {\n font-size: 12px !important;\n color: #666 !important;\n text-align: left !important;\n}\n[data-v-68bdd6bc] .van-cell__value {\n font-size: 12px !important;\n color: #888 !important;\n}\n[data-v-68bdd6bc] .van-cell {\n padding: 2px 10px !important;\n}")();
|
|
19823
|
-
const _hoisted_1$
|
|
19866
|
+
const _hoisted_1$3 = {
|
|
19824
19867
|
class: "widget"
|
|
19825
19868
|
};
|
|
19826
|
-
const _hoisted_2$
|
|
19869
|
+
const _hoisted_2$2 = {
|
|
19827
19870
|
class: "card-header"
|
|
19828
19871
|
};
|
|
19829
|
-
const _hoisted_3 = {
|
|
19872
|
+
const _hoisted_3$1 = {
|
|
19830
19873
|
class: "card-sum"
|
|
19831
19874
|
};
|
|
19832
|
-
const _hoisted_4 = {
|
|
19875
|
+
const _hoisted_4$1 = {
|
|
19833
19876
|
class: "card-type"
|
|
19834
19877
|
};
|
|
19835
|
-
const _hoisted_5 = {
|
|
19878
|
+
const _hoisted_5$1 = {
|
|
19836
19879
|
class: "card-no"
|
|
19837
19880
|
};
|
|
19838
|
-
const _sfc_main$
|
|
19881
|
+
const _sfc_main$a = {
|
|
19839
19882
|
__name: "BillCard",
|
|
19840
19883
|
props: {
|
|
19841
19884
|
category: {
|
|
@@ -19916,11 +19959,11 @@ const _sfc_main$8 = {
|
|
|
19916
19959
|
const _component_van_tag = resolveComponent("van-tag");
|
|
19917
19960
|
const _component_van_cell = resolveComponent("van-cell");
|
|
19918
19961
|
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
19919
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19962
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [createVNode(_component_van_cell_group, {
|
|
19920
19963
|
inset: "",
|
|
19921
19964
|
class: "card-box"
|
|
19922
19965
|
}, {
|
|
19923
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
19966
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$2, [createElementVNode("div", _hoisted_3$1, [createElementVNode("div", _hoisted_4$1, toDisplayString(props.category), 1), createElementVNode("div", _hoisted_5$1, toDisplayString(props.no), 1)]), createVNode(_component_van_tag, {
|
|
19924
19967
|
class: "user-state",
|
|
19925
19968
|
size: "large",
|
|
19926
19969
|
color: userState2color(props.userState)
|
|
@@ -19949,8 +19992,8 @@ const _sfc_main$8 = {
|
|
|
19949
19992
|
};
|
|
19950
19993
|
}
|
|
19951
19994
|
};
|
|
19952
|
-
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19953
|
-
const _sfc_main$
|
|
19995
|
+
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-68bdd6bc"]]);
|
|
19996
|
+
const _sfc_main$9 = {
|
|
19954
19997
|
__name: "YearDropdown",
|
|
19955
19998
|
props: {
|
|
19956
19999
|
modelValue: {
|
|
@@ -20008,7 +20051,7 @@ const _sfc_main$7 = {
|
|
|
20008
20051
|
};
|
|
20009
20052
|
}
|
|
20010
20053
|
};
|
|
20011
|
-
const _sfc_main$
|
|
20054
|
+
const _sfc_main$8 = {
|
|
20012
20055
|
__name: "MonthDropdown",
|
|
20013
20056
|
props: {
|
|
20014
20057
|
modelValue: {
|
|
@@ -20058,7 +20101,7 @@ const _sfc_main$6 = {
|
|
|
20058
20101
|
};
|
|
20059
20102
|
}
|
|
20060
20103
|
};
|
|
20061
|
-
const _sfc_main$
|
|
20104
|
+
const _sfc_main$7 = {
|
|
20062
20105
|
__name: "DayDropdown",
|
|
20063
20106
|
props: {
|
|
20064
20107
|
year: {
|
|
@@ -20117,7 +20160,7 @@ const _sfc_main$5 = {
|
|
|
20117
20160
|
};
|
|
20118
20161
|
}
|
|
20119
20162
|
};
|
|
20120
|
-
const _sfc_main$
|
|
20163
|
+
const _sfc_main$6 = {
|
|
20121
20164
|
__name: "ProjectDropdown",
|
|
20122
20165
|
props: {
|
|
20123
20166
|
modelValue: {
|
|
@@ -20180,7 +20223,7 @@ const _sfc_main$4 = {
|
|
|
20180
20223
|
}
|
|
20181
20224
|
};
|
|
20182
20225
|
var Switch_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-d8d21ade] .label {\n color: #000 !important;\n}\n[data-v-d8d21ade] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20183
|
-
const _sfc_main$
|
|
20226
|
+
const _sfc_main$5 = {
|
|
20184
20227
|
__name: "Switch",
|
|
20185
20228
|
props: {
|
|
20186
20229
|
modelValue: {
|
|
@@ -20248,17 +20291,17 @@ const _sfc_main$3 = {
|
|
|
20248
20291
|
};
|
|
20249
20292
|
}
|
|
20250
20293
|
};
|
|
20251
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20294
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-d8d21ade"]]);
|
|
20252
20295
|
var Sheet_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".item-box[data-v-2bd62a7a] {\n position: relative;\n padding-bottom: 5px;\n border-bottom: 1px solid #e1e1e1;\n}\n.actionbar[data-v-2bd62a7a] {\n display: flex;\n justify-content: center;\n margin-top: 5px;\n}\n[data-v-2bd62a7a] .label {\n color: #000 !important;\n}\n[data-v-2bd62a7a] .van-field__control--custom {\n display: block;\n}")();
|
|
20253
|
-
const _hoisted_1$
|
|
20296
|
+
const _hoisted_1$2 = {
|
|
20254
20297
|
key: 0,
|
|
20255
20298
|
class: "actionbar"
|
|
20256
20299
|
};
|
|
20257
|
-
const _hoisted_2 = {
|
|
20300
|
+
const _hoisted_2$1 = {
|
|
20258
20301
|
key: 0,
|
|
20259
20302
|
class: "actionbar"
|
|
20260
20303
|
};
|
|
20261
|
-
const _sfc_main$
|
|
20304
|
+
const _sfc_main$4 = {
|
|
20262
20305
|
__name: "Sheet",
|
|
20263
20306
|
props: {
|
|
20264
20307
|
modelValue: {
|
|
@@ -20322,7 +20365,7 @@ const _sfc_main$2 = {
|
|
|
20322
20365
|
required: unref(isRequired),
|
|
20323
20366
|
placeholder: props.placeholder
|
|
20324
20367
|
}, {
|
|
20325
|
-
input: withCtx(() => [!unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20368
|
+
input: withCtx(() => [!unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createVNode(_component_van_button, {
|
|
20326
20369
|
icon: "plus",
|
|
20327
20370
|
type: "primary",
|
|
20328
20371
|
size: "mini",
|
|
@@ -20334,7 +20377,7 @@ const _sfc_main$2 = {
|
|
|
20334
20377
|
}, [renderSlot(_ctx.$slots, "item", {
|
|
20335
20378
|
item,
|
|
20336
20379
|
auth: props.auth
|
|
20337
|
-
}, void 0, true), !unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_component_van_button, {
|
|
20380
|
+
}, void 0, true), !unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(_component_van_button, {
|
|
20338
20381
|
icon: "plus",
|
|
20339
20382
|
type: "primary",
|
|
20340
20383
|
size: "mini",
|
|
@@ -20351,9 +20394,9 @@ const _sfc_main$2 = {
|
|
|
20351
20394
|
};
|
|
20352
20395
|
}
|
|
20353
20396
|
};
|
|
20354
|
-
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20397
|
+
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2bd62a7a"]]);
|
|
20355
20398
|
var TreePop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-box[data-v-571370f8] {\r\n min-height: 20vh;\r\n max-height: 40vh;\r\n overflow-y: auto;\n.checkbox-list[data-v-571370f8] {\r\n padding: 15px 25px;\n[data-v-571370f8] .van-checkbox__label {\r\n flex: 1;\r\n text-align: right;\n}\n}\n}\n.select-all-container[data-v-571370f8] {\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-571370f8] {\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-571370f8] {\r\n margin-left: 8px;\n}\r\n")();
|
|
20356
|
-
const _sfc_main$
|
|
20399
|
+
const _sfc_main$3 = {
|
|
20357
20400
|
__name: "TreePop",
|
|
20358
20401
|
props: {
|
|
20359
20402
|
show: {
|
|
@@ -20402,12 +20445,12 @@ const _sfc_main$1 = {
|
|
|
20402
20445
|
};
|
|
20403
20446
|
}
|
|
20404
20447
|
};
|
|
20405
|
-
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20448
|
+
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-571370f8"]]);
|
|
20406
20449
|
var TreePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.select-item[data-v-6744b874]{\r\n margin:3px;\n}\r\n")();
|
|
20407
|
-
const _hoisted_1 = {
|
|
20450
|
+
const _hoisted_1$1 = {
|
|
20408
20451
|
class: "select-list"
|
|
20409
20452
|
};
|
|
20410
|
-
const _sfc_main = {
|
|
20453
|
+
const _sfc_main$2 = {
|
|
20411
20454
|
__name: "TreePicker",
|
|
20412
20455
|
props: {
|
|
20413
20456
|
modelValue: {
|
|
@@ -20501,7 +20544,7 @@ const _sfc_main = {
|
|
|
20501
20544
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
20502
20545
|
"label-class": "label"
|
|
20503
20546
|
}, {
|
|
20504
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
20547
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
20505
20548
|
return openBlock(), createBlock(_component_van_tag, {
|
|
20506
20549
|
class: "select-item",
|
|
20507
20550
|
closeable: !unref(isDisabled),
|
|
@@ -20525,7 +20568,362 @@ const _sfc_main = {
|
|
|
20525
20568
|
};
|
|
20526
20569
|
}
|
|
20527
20570
|
};
|
|
20528
|
-
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6744b874"]]);
|
|
20571
|
+
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6744b874"]]);
|
|
20572
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-54dee272] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-54dee272] {\r\n padding: 10px;\n}\n.search-buttons[data-v-54dee272] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-54dee272] {\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-54dee272] {\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-54dee272] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-54dee272] {\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-54dee272] {\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-54dee272] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-54dee272] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-54dee272] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-54dee272] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-54dee272] {\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-54dee272] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-54dee272] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-54dee272] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-54dee272] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-54dee272] {\r\n color: #969799;\n}\r\n")();
|
|
20573
|
+
const _hoisted_1 = {
|
|
20574
|
+
class: "cascader-selector"
|
|
20575
|
+
};
|
|
20576
|
+
const _hoisted_2 = {
|
|
20577
|
+
class: "cascader-header"
|
|
20578
|
+
};
|
|
20579
|
+
const _hoisted_3 = {
|
|
20580
|
+
class: "header-left"
|
|
20581
|
+
};
|
|
20582
|
+
const _hoisted_4 = {
|
|
20583
|
+
class: "current-path"
|
|
20584
|
+
};
|
|
20585
|
+
const _hoisted_5 = {
|
|
20586
|
+
class: "header-right"
|
|
20587
|
+
};
|
|
20588
|
+
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
20589
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
20590
|
+
const _hoisted_8 = {
|
|
20591
|
+
class: "scroll-container"
|
|
20592
|
+
};
|
|
20593
|
+
const _hoisted_9 = {
|
|
20594
|
+
class: "cell-content"
|
|
20595
|
+
};
|
|
20596
|
+
const _hoisted_10 = ["onClick"];
|
|
20597
|
+
const _hoisted_11 = {
|
|
20598
|
+
class: "name"
|
|
20599
|
+
};
|
|
20600
|
+
const _sfc_main$1 = {
|
|
20601
|
+
__name: "CascaderPop",
|
|
20602
|
+
props: {
|
|
20603
|
+
modelValue: {
|
|
20604
|
+
type: String,
|
|
20605
|
+
default: ""
|
|
20606
|
+
},
|
|
20607
|
+
show: {
|
|
20608
|
+
type: Boolean,
|
|
20609
|
+
default: false
|
|
20610
|
+
},
|
|
20611
|
+
placeholder: {
|
|
20612
|
+
type: String,
|
|
20613
|
+
default: ""
|
|
20614
|
+
},
|
|
20615
|
+
queryNodes: {
|
|
20616
|
+
type: Function,
|
|
20617
|
+
default: () => {
|
|
20618
|
+
}
|
|
20619
|
+
},
|
|
20620
|
+
queryNode: {
|
|
20621
|
+
type: Function,
|
|
20622
|
+
default: () => {
|
|
20623
|
+
}
|
|
20624
|
+
}
|
|
20625
|
+
},
|
|
20626
|
+
emits: ["update:show", "select"],
|
|
20627
|
+
setup(__props, {
|
|
20628
|
+
emit
|
|
20629
|
+
}) {
|
|
20630
|
+
const props = __props;
|
|
20631
|
+
const show = useVModel(props, "show", emit);
|
|
20632
|
+
const modelValue = useVModel(props, "modelValue", emit);
|
|
20633
|
+
const data2 = reactive({
|
|
20634
|
+
totalNodes: [],
|
|
20635
|
+
keyword: "",
|
|
20636
|
+
searchNodes: [],
|
|
20637
|
+
currentNode: null,
|
|
20638
|
+
selectedNodeId: ""
|
|
20639
|
+
});
|
|
20640
|
+
const optionNodes = computed(() => {
|
|
20641
|
+
var _a;
|
|
20642
|
+
if (data2.keyword)
|
|
20643
|
+
return data2.searchNodes;
|
|
20644
|
+
else if (data2.currentNode)
|
|
20645
|
+
return ((_a = data2.currentNode) == null ? void 0 : _a.children) ? data2.currentNode.children : [];
|
|
20646
|
+
else
|
|
20647
|
+
return data2.totalNodes ? data2.totalNodes : [];
|
|
20648
|
+
});
|
|
20649
|
+
const pathsLabel = computed(() => {
|
|
20650
|
+
if (!data2.currentNode || !data2.currentNode.id)
|
|
20651
|
+
return "";
|
|
20652
|
+
let paths = util.findPaths(data2.currentNode.id, data2.totalNodes);
|
|
20653
|
+
console.log("paths", paths);
|
|
20654
|
+
let res = paths.map((item) => item.label).join("/");
|
|
20655
|
+
return res;
|
|
20656
|
+
});
|
|
20657
|
+
const queryTotalNodes = () => __async(this, null, function* () {
|
|
20658
|
+
yield props.queryNodes({
|
|
20659
|
+
keyword: data2.keyword,
|
|
20660
|
+
parentId: ""
|
|
20661
|
+
}, (nodes) => {
|
|
20662
|
+
data2.totalNodes = nodes;
|
|
20663
|
+
});
|
|
20664
|
+
});
|
|
20665
|
+
const onSearch = () => __async(this, null, function* () {
|
|
20666
|
+
yield util.queryNodes({
|
|
20667
|
+
keyword: data2.keyword,
|
|
20668
|
+
parentId: ""
|
|
20669
|
+
}, (nodes) => {
|
|
20670
|
+
data2.searchNodes = nodes;
|
|
20671
|
+
});
|
|
20672
|
+
});
|
|
20673
|
+
const onBack = () => {
|
|
20674
|
+
if (!data2.currentNode || !data2.currentNode.id)
|
|
20675
|
+
return;
|
|
20676
|
+
data2.keyword = "";
|
|
20677
|
+
data2.currentNode = util.findParent(data2.currentNode.id, data2.totalNodes);
|
|
20678
|
+
};
|
|
20679
|
+
const onClear = () => {
|
|
20680
|
+
data2.keyword = "";
|
|
20681
|
+
data2.searchNodes = [];
|
|
20682
|
+
};
|
|
20683
|
+
const reset = () => {
|
|
20684
|
+
data2.currentNode = null;
|
|
20685
|
+
data2.keyword = "";
|
|
20686
|
+
};
|
|
20687
|
+
const onSubmit = () => {
|
|
20688
|
+
if (!data2.selectedNodeId) {
|
|
20689
|
+
util.warnToast("\u8BF7\u9009\u62E9");
|
|
20690
|
+
return;
|
|
20691
|
+
}
|
|
20692
|
+
let selectedNode = util.findNode(data2.selectedNodeId, data2.totalNodes);
|
|
20693
|
+
modelValue.value = selectedNode.id;
|
|
20694
|
+
emit("select", selectedNode);
|
|
20695
|
+
show.value = false;
|
|
20696
|
+
reset();
|
|
20697
|
+
};
|
|
20698
|
+
const onCancel = () => {
|
|
20699
|
+
show.value = false;
|
|
20700
|
+
reset();
|
|
20701
|
+
};
|
|
20702
|
+
const onToggle = (node) => {
|
|
20703
|
+
if (data2.selectedNodeId == node.id)
|
|
20704
|
+
data2.selectedNodeId = "";
|
|
20705
|
+
else
|
|
20706
|
+
data2.selectedNodeId = node.id;
|
|
20707
|
+
};
|
|
20708
|
+
const onNextLevel = (node) => {
|
|
20709
|
+
props.queryNodes({
|
|
20710
|
+
keyword: data2.keyword,
|
|
20711
|
+
parentId: node.id
|
|
20712
|
+
}, (nodes) => {
|
|
20713
|
+
node.children = nodes;
|
|
20714
|
+
data2.currentNode = node;
|
|
20715
|
+
});
|
|
20716
|
+
};
|
|
20717
|
+
onMounted(() => __async(this, null, function* () {
|
|
20718
|
+
yield queryTotalNodes();
|
|
20719
|
+
}));
|
|
20720
|
+
watch(() => props.modelValue, () => {
|
|
20721
|
+
data2.currentNode = util.findParent(props.modelValue, data2.totalNodes);
|
|
20722
|
+
}, {
|
|
20723
|
+
immediate: true
|
|
20724
|
+
});
|
|
20725
|
+
return (_ctx, _cache) => {
|
|
20726
|
+
const _component_van_button = resolveComponent("van-button");
|
|
20727
|
+
const _component_van_search = resolveComponent("van-search");
|
|
20728
|
+
const _component_van_icon = resolveComponent("van-icon");
|
|
20729
|
+
const _component_van_cell = resolveComponent("van-cell");
|
|
20730
|
+
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
20731
|
+
const _component_van_popup = resolveComponent("van-popup");
|
|
20732
|
+
return openBlock(), createBlock(_component_van_popup, {
|
|
20733
|
+
show: unref(show),
|
|
20734
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => isRef(show) ? show.value = $event : null),
|
|
20735
|
+
round: "",
|
|
20736
|
+
position: "bottom",
|
|
20737
|
+
class: "cascader-pop"
|
|
20738
|
+
}, {
|
|
20739
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(_component_van_button, {
|
|
20740
|
+
onClick: onBack,
|
|
20741
|
+
icon: "arrow-left",
|
|
20742
|
+
size: "small"
|
|
20743
|
+
})]), createElementVNode("div", _hoisted_4, toDisplayString(unref(pathsLabel)), 1), createElementVNode("div", _hoisted_5, [createVNode(_component_van_button, {
|
|
20744
|
+
size: "small",
|
|
20745
|
+
onClick: onCancel,
|
|
20746
|
+
class: "cancel-btn"
|
|
20747
|
+
}, {
|
|
20748
|
+
default: withCtx(() => [_hoisted_6]),
|
|
20749
|
+
_: 1
|
|
20750
|
+
}), createVNode(_component_van_button, {
|
|
20751
|
+
type: "primary",
|
|
20752
|
+
size: "small",
|
|
20753
|
+
onClick: onSubmit,
|
|
20754
|
+
class: "confirm-btn"
|
|
20755
|
+
}, {
|
|
20756
|
+
default: withCtx(() => [_hoisted_7]),
|
|
20757
|
+
_: 1
|
|
20758
|
+
})])]), createVNode(_component_van_search, {
|
|
20759
|
+
modelValue: data2.keyword,
|
|
20760
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.keyword = $event),
|
|
20761
|
+
placeholder: props.placeholder,
|
|
20762
|
+
onClear,
|
|
20763
|
+
onSearch,
|
|
20764
|
+
onCancel: onClear,
|
|
20765
|
+
"show-action": ""
|
|
20766
|
+
}, {
|
|
20767
|
+
action: withCtx(() => [createElementVNode("div", {
|
|
20768
|
+
onClick: onSearch
|
|
20769
|
+
}, "\u641C\u7D22")]),
|
|
20770
|
+
_: 1
|
|
20771
|
+
}, 8, ["modelValue", "placeholder"]), createElementVNode("div", _hoisted_8, [createVNode(_component_van_cell_group, null, {
|
|
20772
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionNodes), (item, i) => {
|
|
20773
|
+
return openBlock(), createBlock(_component_van_cell, {
|
|
20774
|
+
key: i
|
|
20775
|
+
}, createSlots({
|
|
20776
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_9, [createElementVNode("div", {
|
|
20777
|
+
class: "circle-selector",
|
|
20778
|
+
onClick: withModifiers(($event) => onToggle(item), ["stop"])
|
|
20779
|
+
}, [data2.selectedNodeId === item.id ? (openBlock(), createBlock(_component_van_icon, {
|
|
20780
|
+
key: 0,
|
|
20781
|
+
name: "success",
|
|
20782
|
+
size: "20",
|
|
20783
|
+
color: "#409eff"
|
|
20784
|
+
})) : createCommentVNode("", true), data2.selectedNodeId != item.id ? (openBlock(), createBlock(_component_van_icon, {
|
|
20785
|
+
key: 1,
|
|
20786
|
+
name: "circle",
|
|
20787
|
+
size: "20",
|
|
20788
|
+
color: "#e0e0e0"
|
|
20789
|
+
})) : createCommentVNode("", true)], 8, _hoisted_10), createElementVNode("span", _hoisted_11, toDisplayString(item.label), 1)])]),
|
|
20790
|
+
_: 2
|
|
20791
|
+
}, [item.hasChildren ? {
|
|
20792
|
+
name: "right-icon",
|
|
20793
|
+
fn: withCtx(() => [createVNode(_component_van_icon, {
|
|
20794
|
+
name: "arrow",
|
|
20795
|
+
onClick: withModifiers(($event) => onNextLevel(item), ["stop"])
|
|
20796
|
+
}, null, 8, ["onClick"])])
|
|
20797
|
+
} : void 0]), 1024);
|
|
20798
|
+
}), 128))]),
|
|
20799
|
+
_: 1
|
|
20800
|
+
})])])]),
|
|
20801
|
+
_: 1
|
|
20802
|
+
}, 8, ["show"]);
|
|
20803
|
+
};
|
|
20804
|
+
}
|
|
20805
|
+
};
|
|
20806
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-54dee272"]]);
|
|
20807
|
+
var CascaderPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-50c3a19a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
20808
|
+
const _sfc_main = {
|
|
20809
|
+
__name: "CascaderPicker",
|
|
20810
|
+
props: {
|
|
20811
|
+
modelValue: {
|
|
20812
|
+
type: String,
|
|
20813
|
+
default: ""
|
|
20814
|
+
},
|
|
20815
|
+
label: {
|
|
20816
|
+
type: String,
|
|
20817
|
+
default: ""
|
|
20818
|
+
},
|
|
20819
|
+
placeholder: {
|
|
20820
|
+
type: String,
|
|
20821
|
+
default: ""
|
|
20822
|
+
},
|
|
20823
|
+
required: {
|
|
20824
|
+
type: Boolean,
|
|
20825
|
+
default: false
|
|
20826
|
+
},
|
|
20827
|
+
readonly: {
|
|
20828
|
+
type: Boolean,
|
|
20829
|
+
default: false
|
|
20830
|
+
},
|
|
20831
|
+
rules: {
|
|
20832
|
+
type: Array,
|
|
20833
|
+
default: []
|
|
20834
|
+
},
|
|
20835
|
+
auth: {
|
|
20836
|
+
type: String,
|
|
20837
|
+
default: ""
|
|
20838
|
+
},
|
|
20839
|
+
queryNodes: {
|
|
20840
|
+
type: Function,
|
|
20841
|
+
default: () => {
|
|
20842
|
+
}
|
|
20843
|
+
},
|
|
20844
|
+
queryNode: {
|
|
20845
|
+
type: Function,
|
|
20846
|
+
default: () => {
|
|
20847
|
+
}
|
|
20848
|
+
}
|
|
20849
|
+
},
|
|
20850
|
+
emits: ["update:modelValue", "select"],
|
|
20851
|
+
setup(__props, {
|
|
20852
|
+
emit
|
|
20853
|
+
}) {
|
|
20854
|
+
const props = __props;
|
|
20855
|
+
const data2 = reactive({
|
|
20856
|
+
isShowPop: false,
|
|
20857
|
+
selectedNode: {}
|
|
20858
|
+
});
|
|
20859
|
+
const modelValue = useVModel(props, "modelValue", emit);
|
|
20860
|
+
const {
|
|
20861
|
+
isRequired,
|
|
20862
|
+
isReadonly,
|
|
20863
|
+
isGone,
|
|
20864
|
+
isDisabled
|
|
20865
|
+
} = util.props2auth(props);
|
|
20866
|
+
onMounted(() => {
|
|
20867
|
+
});
|
|
20868
|
+
const onSelect = (node) => {
|
|
20869
|
+
data2.selectedNode = node;
|
|
20870
|
+
};
|
|
20871
|
+
const onDelete = () => {
|
|
20872
|
+
data2.selectedNode = {};
|
|
20873
|
+
modelValue.value = null;
|
|
20874
|
+
};
|
|
20875
|
+
watch(() => modelValue.value, (n, o) => __async(this, null, function* () {
|
|
20876
|
+
if (!n) {
|
|
20877
|
+
data2.selectedNode = {};
|
|
20878
|
+
return;
|
|
20879
|
+
}
|
|
20880
|
+
props.queryNode((node) => {
|
|
20881
|
+
data2.selectedNode = node;
|
|
20882
|
+
emit("select", data2.selectedNode);
|
|
20883
|
+
});
|
|
20884
|
+
}), {
|
|
20885
|
+
immediate: true
|
|
20886
|
+
});
|
|
20887
|
+
return (_ctx, _cache) => {
|
|
20888
|
+
const _component_van_tag = resolveComponent("van-tag");
|
|
20889
|
+
const _component_van_field = resolveComponent("van-field");
|
|
20890
|
+
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
20891
|
+
key: 0,
|
|
20892
|
+
label: props.label,
|
|
20893
|
+
required: unref(isRequired),
|
|
20894
|
+
rules: props.rules,
|
|
20895
|
+
disabled: unref(isDisabled),
|
|
20896
|
+
placeholder: props.placeholder,
|
|
20897
|
+
"is-link": unref(isReadonly) ? false : true,
|
|
20898
|
+
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
20899
|
+
"label-class": "label"
|
|
20900
|
+
}, {
|
|
20901
|
+
input: withCtx(() => [unref(modelValue) ? (openBlock(), createBlock(_component_van_tag, {
|
|
20902
|
+
key: 0,
|
|
20903
|
+
class: "selected-node",
|
|
20904
|
+
closeable: !unref(isDisabled),
|
|
20905
|
+
type: "primary",
|
|
20906
|
+
size: "medium",
|
|
20907
|
+
onClose: withModifiers(onDelete, ["stop"])
|
|
20908
|
+
}, {
|
|
20909
|
+
default: withCtx(() => [createTextVNode(toDisplayString(data2.selectedNode.formatLabel), 1)]),
|
|
20910
|
+
_: 1
|
|
20911
|
+
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)]),
|
|
20912
|
+
_: 1
|
|
20913
|
+
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
20914
|
+
show: data2.isShowPop,
|
|
20915
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
20916
|
+
modelValue: unref(modelValue),
|
|
20917
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
20918
|
+
placeholder: props.placeholder,
|
|
20919
|
+
onSelect,
|
|
20920
|
+
queryNodes: props.queryNodes,
|
|
20921
|
+
queryNode: props.queryNode
|
|
20922
|
+
}, null, 8, ["show", "modelValue", "placeholder", "queryNodes", "queryNode"])], 64);
|
|
20923
|
+
};
|
|
20924
|
+
}
|
|
20925
|
+
};
|
|
20926
|
+
var CascaderPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50c3a19a"]]);
|
|
20529
20927
|
const secret_notify = () => {
|
|
20530
20928
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20531
20929
|
};
|
|
@@ -20552,7 +20950,7 @@ const components = [
|
|
|
20552
20950
|
},
|
|
20553
20951
|
{
|
|
20554
20952
|
name: "WidgetQwDatetimePicker",
|
|
20555
|
-
widget: _sfc_main$
|
|
20953
|
+
widget: _sfc_main$p
|
|
20556
20954
|
},
|
|
20557
20955
|
{
|
|
20558
20956
|
name: "WidgetQwDataSelector",
|
|
@@ -20612,19 +21010,19 @@ const components = [
|
|
|
20612
21010
|
},
|
|
20613
21011
|
{
|
|
20614
21012
|
name: "WidgetQwYearDropdown",
|
|
20615
|
-
widget: _sfc_main$
|
|
21013
|
+
widget: _sfc_main$9
|
|
20616
21014
|
},
|
|
20617
21015
|
{
|
|
20618
21016
|
name: "WidgetQwMonthDropdown",
|
|
20619
|
-
widget: _sfc_main$
|
|
21017
|
+
widget: _sfc_main$8
|
|
20620
21018
|
},
|
|
20621
21019
|
{
|
|
20622
21020
|
name: "WidgetQwDayDropdown",
|
|
20623
|
-
widget: _sfc_main$
|
|
21021
|
+
widget: _sfc_main$7
|
|
20624
21022
|
},
|
|
20625
21023
|
{
|
|
20626
21024
|
name: "WidgetQwProjectDropdown",
|
|
20627
|
-
widget: _sfc_main$
|
|
21025
|
+
widget: _sfc_main$6
|
|
20628
21026
|
},
|
|
20629
21027
|
{
|
|
20630
21028
|
name: "WidgetQwSwitch",
|
|
@@ -20637,6 +21035,14 @@ const components = [
|
|
|
20637
21035
|
{
|
|
20638
21036
|
name: "WidgetQwTreePicker",
|
|
20639
21037
|
widget: TreePicker
|
|
21038
|
+
},
|
|
21039
|
+
{
|
|
21040
|
+
name: "WidgetQwCascaderPop",
|
|
21041
|
+
widget: CascaderPop
|
|
21042
|
+
},
|
|
21043
|
+
{
|
|
21044
|
+
name: "WidgetQwCascaderPicker",
|
|
21045
|
+
widget: CascaderPicker
|
|
20640
21046
|
}
|
|
20641
21047
|
];
|
|
20642
21048
|
const WidgetQw = {
|