widget.qw 1.0.43 → 1.0.45
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 +26 -9
- package/build/widget.qw.es.js +520 -201
- package/build/widget.qw.umd.js +520 -201
- package/package.json +1 -1
- package/src/components/CascaderPicker.vue +2 -1
- package/src/components/ObjsEditor.vue +254 -0
- package/src/components/data_selector.vue +27 -9
- package/src/components/index.js +6 -1
- package/src/env.d.ts +8 -8
- package/src/router/index.ts +5 -0
- package/src/util/index.js +2 -0
- package/src/util/uuid_util.js +9 -0
- package/src/views/home/index.vue +0 -0
- package/src/views/objseditor/index.vue +180 -0
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
package/build/widget.qw.umd.js
CHANGED
|
@@ -10315,7 +10315,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10315
10315
|
isChildNode,
|
|
10316
10316
|
isExistChildNode
|
|
10317
10317
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10318
|
-
|
|
10318
|
+
function uuid8() {
|
|
10319
|
+
let hex = Date.now().toString(16).slice(-8);
|
|
10320
|
+
if (hex.length < 8) {
|
|
10321
|
+
hex = "0".repeat(8 - hex.length) + hex;
|
|
10322
|
+
}
|
|
10323
|
+
return hex;
|
|
10324
|
+
}
|
|
10325
|
+
var UuidUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10326
|
+
__proto__: null,
|
|
10327
|
+
uuid8
|
|
10328
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
10329
|
+
var util = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, AuthUtil), ArrayUtil), StrUtil), BoolUtil), RouteUtil), TimeUtil), ApiUtil), ToastUtil), EvalUtil), ImageUtil), TreeUtil), UuidUtil), {
|
|
10319
10330
|
href(url) {
|
|
10320
10331
|
window.location.href = url;
|
|
10321
10332
|
},
|
|
@@ -15767,20 +15778,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15767
15778
|
}
|
|
15768
15779
|
return target;
|
|
15769
15780
|
};
|
|
15770
|
-
const _hoisted_1$
|
|
15781
|
+
const _hoisted_1$j = {
|
|
15771
15782
|
class: "widget"
|
|
15772
15783
|
};
|
|
15773
|
-
const _hoisted_2$
|
|
15774
|
-
const _hoisted_3$
|
|
15775
|
-
const _hoisted_4$
|
|
15776
|
-
const _hoisted_5$
|
|
15784
|
+
const _hoisted_2$c = /* @__PURE__ */ vue.createTextVNode("\u9A73\u56DE");
|
|
15785
|
+
const _hoisted_3$a = /* @__PURE__ */ vue.createTextVNode("\u63D0\u4EA4");
|
|
15786
|
+
const _hoisted_4$9 = /* @__PURE__ */ vue.createTextVNode("\u7533\u8BF7");
|
|
15787
|
+
const _hoisted_5$9 = {
|
|
15777
15788
|
key: 4,
|
|
15778
15789
|
class: "audit-title"
|
|
15779
15790
|
};
|
|
15780
|
-
const _hoisted_6$
|
|
15791
|
+
const _hoisted_6$8 = {
|
|
15781
15792
|
class: "task-title"
|
|
15782
15793
|
};
|
|
15783
|
-
const _sfc_main$
|
|
15794
|
+
const _sfc_main$v = {
|
|
15784
15795
|
__name: "AuditBar",
|
|
15785
15796
|
props: {
|
|
15786
15797
|
processId: Number,
|
|
@@ -16014,7 +16025,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16014
16025
|
const _component_van_popover = vue.resolveComponent("van-popover");
|
|
16015
16026
|
const _component_van_step = vue.resolveComponent("van-step");
|
|
16016
16027
|
const _component_van_steps = vue.resolveComponent("van-steps");
|
|
16017
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
16028
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [vue.unref(canPass) || vue.unref(canRefuse) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
16018
16029
|
key: 0,
|
|
16019
16030
|
modelValue: data2.memo,
|
|
16020
16031
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.memo = $event),
|
|
@@ -16035,7 +16046,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16035
16046
|
type: "danger",
|
|
16036
16047
|
onClick: onRefuse
|
|
16037
16048
|
}, {
|
|
16038
|
-
default: vue.withCtx(() => [_hoisted_2$
|
|
16049
|
+
default: vue.withCtx(() => [_hoisted_2$c]),
|
|
16039
16050
|
_: 1
|
|
16040
16051
|
})]),
|
|
16041
16052
|
_: 1
|
|
@@ -16046,7 +16057,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16046
16057
|
"native-type": "submit",
|
|
16047
16058
|
onClick: onPass
|
|
16048
16059
|
}, {
|
|
16049
|
-
default: vue.withCtx(() => [_hoisted_3$
|
|
16060
|
+
default: vue.withCtx(() => [_hoisted_3$a]),
|
|
16050
16061
|
_: 1
|
|
16051
16062
|
})) : vue.createCommentVNode("", true), data2.canApply ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
16052
16063
|
key: 3,
|
|
@@ -16055,9 +16066,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16055
16066
|
"native-type": "submit",
|
|
16056
16067
|
onClick: onApply
|
|
16057
16068
|
}, {
|
|
16058
|
-
default: vue.withCtx(() => [_hoisted_4$
|
|
16069
|
+
default: vue.withCtx(() => [_hoisted_4$9]),
|
|
16059
16070
|
_: 1
|
|
16060
|
-
})) : vue.createCommentVNode("", true), data2.process && data2.process.id ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
16071
|
+
})) : vue.createCommentVNode("", true), data2.process && data2.process.id ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9, vue.toDisplayString(vue.unref(formatProcessTitle)), 1)) : vue.createCommentVNode("", true), data2.process && data2.process.id ? (vue.openBlock(), vue.createBlock(_component_van_steps, {
|
|
16061
16072
|
key: 5,
|
|
16062
16073
|
class: "task-list",
|
|
16063
16074
|
direction: "vertical",
|
|
@@ -16067,7 +16078,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16067
16078
|
return vue.openBlock(), vue.createBlock(_component_van_step, {
|
|
16068
16079
|
key: i
|
|
16069
16080
|
}, {
|
|
16070
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_6$
|
|
16081
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_6$8, vue.toDisplayString(formatTitle(task)), 1), task.executors ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
16071
16082
|
key: 0
|
|
16072
16083
|
}, vue.renderList(task.executors, (executor, j) => {
|
|
16073
16084
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -16083,7 +16094,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16083
16094
|
};
|
|
16084
16095
|
}
|
|
16085
16096
|
};
|
|
16086
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16097
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c9c18a98"]]);
|
|
16087
16098
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16088
16099
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16089
16100
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16151,7 +16162,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16151
16162
|
}
|
|
16152
16163
|
}
|
|
16153
16164
|
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-ec78c334] .label {\n color: #000 !important;\n}\n[data-v-ec78c334] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16154
|
-
const _sfc_main$
|
|
16165
|
+
const _sfc_main$u = {
|
|
16155
16166
|
__name: "Input",
|
|
16156
16167
|
props: {
|
|
16157
16168
|
modelValue: {
|
|
@@ -16246,9 +16257,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16246
16257
|
};
|
|
16247
16258
|
}
|
|
16248
16259
|
};
|
|
16249
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16260
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-ec78c334"]]);
|
|
16250
16261
|
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}")();
|
|
16251
|
-
const _sfc_main$
|
|
16262
|
+
const _sfc_main$t = {
|
|
16252
16263
|
__name: "SinglePicker",
|
|
16253
16264
|
props: {
|
|
16254
16265
|
id: String,
|
|
@@ -16364,16 +16375,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16364
16375
|
};
|
|
16365
16376
|
}
|
|
16366
16377
|
};
|
|
16367
|
-
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16378
|
+
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-24e62c3a"]]);
|
|
16368
16379
|
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")();
|
|
16369
|
-
const _hoisted_1$
|
|
16380
|
+
const _hoisted_1$i = {
|
|
16370
16381
|
class: "select-all-container"
|
|
16371
16382
|
};
|
|
16372
|
-
const _hoisted_2$
|
|
16373
|
-
const _hoisted_3$
|
|
16383
|
+
const _hoisted_2$b = /* @__PURE__ */ vue.createTextVNode("\u5168\u9009");
|
|
16384
|
+
const _hoisted_3$9 = {
|
|
16374
16385
|
class: "checkbox-list"
|
|
16375
16386
|
};
|
|
16376
|
-
const _sfc_main$
|
|
16387
|
+
const _sfc_main$s = {
|
|
16377
16388
|
__name: "DataPop",
|
|
16378
16389
|
props: {
|
|
16379
16390
|
show: {
|
|
@@ -16420,16 +16431,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16420
16431
|
position: "bottom",
|
|
16421
16432
|
class: "popup-box"
|
|
16422
16433
|
}, {
|
|
16423
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
16434
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$i, [vue.createVNode(_component_van_checkbox, {
|
|
16424
16435
|
shape: "square",
|
|
16425
16436
|
modelValue: data2.isAllChecked,
|
|
16426
16437
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.isAllChecked = $event),
|
|
16427
16438
|
onClick: onToggleAll,
|
|
16428
16439
|
"label-position": "left"
|
|
16429
16440
|
}, {
|
|
16430
|
-
default: vue.withCtx(() => [_hoisted_2$
|
|
16441
|
+
default: vue.withCtx(() => [_hoisted_2$b]),
|
|
16431
16442
|
_: 1
|
|
16432
|
-
}, 8, ["modelValue"])]), vue.createElementVNode("div", _hoisted_3$
|
|
16443
|
+
}, 8, ["modelValue"])]), vue.createElementVNode("div", _hoisted_3$9, [vue.createVNode(_component_van_checkbox_group, {
|
|
16433
16444
|
modelValue: vue.unref(modelValue),
|
|
16434
16445
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
16435
16446
|
direction: "vertical"
|
|
@@ -16454,12 +16465,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16454
16465
|
};
|
|
16455
16466
|
}
|
|
16456
16467
|
};
|
|
16457
|
-
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16468
|
+
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-10d79413"]]);
|
|
16458
16469
|
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")();
|
|
16459
|
-
const _hoisted_1$
|
|
16470
|
+
const _hoisted_1$h = {
|
|
16460
16471
|
class: "data-list"
|
|
16461
16472
|
};
|
|
16462
|
-
const _sfc_main$
|
|
16473
|
+
const _sfc_main$r = {
|
|
16463
16474
|
__name: "MultiPicker",
|
|
16464
16475
|
props: {
|
|
16465
16476
|
id: String,
|
|
@@ -16572,7 +16583,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16572
16583
|
_: 2
|
|
16573
16584
|
}, [vue.unref(selectOptions).length > 0 ? {
|
|
16574
16585
|
name: "input",
|
|
16575
|
-
fn: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
16586
|
+
fn: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$h, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectOptions), (item, i) => {
|
|
16576
16587
|
return vue.openBlock(), vue.createBlock(_component_van_tag, {
|
|
16577
16588
|
class: "data-item",
|
|
16578
16589
|
closeable: !vue.unref(isDisabled),
|
|
@@ -16595,9 +16606,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16595
16606
|
};
|
|
16596
16607
|
}
|
|
16597
16608
|
};
|
|
16598
|
-
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16609
|
+
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-95e8cb3c"]]);
|
|
16599
16610
|
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}")();
|
|
16600
|
-
const _sfc_main$
|
|
16611
|
+
const _sfc_main$q = {
|
|
16601
16612
|
__name: "CheckGroup",
|
|
16602
16613
|
props: {
|
|
16603
16614
|
id: {
|
|
@@ -16721,8 +16732,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16721
16732
|
};
|
|
16722
16733
|
}
|
|
16723
16734
|
};
|
|
16724
|
-
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16725
|
-
const _sfc_main$
|
|
16735
|
+
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-7f5a06de"]]);
|
|
16736
|
+
const _sfc_main$p = {
|
|
16726
16737
|
__name: "DatetimePop",
|
|
16727
16738
|
props: {
|
|
16728
16739
|
isShow: {
|
|
@@ -17004,7 +17015,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17004
17015
|
};
|
|
17005
17016
|
}
|
|
17006
17017
|
};
|
|
17007
|
-
const _sfc_main$
|
|
17018
|
+
const _sfc_main$o = {
|
|
17008
17019
|
__name: "index",
|
|
17009
17020
|
props: {
|
|
17010
17021
|
modelValue: {
|
|
@@ -17099,7 +17110,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17099
17110
|
}, {
|
|
17100
17111
|
input: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString(formatTime(props.modelValue)), 1)]),
|
|
17101
17112
|
_: 1
|
|
17102
|
-
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$
|
|
17113
|
+
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$p, {
|
|
17103
17114
|
isShow: data2.isShow,
|
|
17104
17115
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
17105
17116
|
modelValue: vue.unref(modelValue),
|
|
@@ -17111,24 +17122,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17111
17122
|
};
|
|
17112
17123
|
}
|
|
17113
17124
|
};
|
|
17114
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
17115
|
-
const _hoisted_1$
|
|
17125
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-778dc594] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-778dc594] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-778dc594] {\r\n border: 0;\n}\n.flex-between[data-v-778dc594] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-778dc594] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-778dc594] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-778dc594] {\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-778dc594] {\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-778dc594] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17126
|
+
const _hoisted_1$g = {
|
|
17116
17127
|
class: "pad10 flex-between showMultipleButton"
|
|
17117
17128
|
};
|
|
17118
|
-
const _hoisted_2$
|
|
17119
|
-
const _hoisted_3$
|
|
17129
|
+
const _hoisted_2$a = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
17130
|
+
const _hoisted_3$8 = {
|
|
17120
17131
|
class: "bold"
|
|
17121
17132
|
};
|
|
17122
|
-
const _hoisted_4$
|
|
17123
|
-
const _hoisted_5$
|
|
17133
|
+
const _hoisted_4$8 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
17134
|
+
const _hoisted_5$8 = {
|
|
17124
17135
|
key: 0,
|
|
17125
17136
|
class: "select-all-container"
|
|
17126
17137
|
};
|
|
17127
|
-
const _hoisted_6$
|
|
17128
|
-
const _hoisted_7$
|
|
17138
|
+
const _hoisted_6$7 = /* @__PURE__ */ vue.createTextVNode("\u5168\u9009");
|
|
17139
|
+
const _hoisted_7$7 = {
|
|
17129
17140
|
class: "checkbox-style"
|
|
17130
17141
|
};
|
|
17131
|
-
const _sfc_main$
|
|
17142
|
+
const _sfc_main$n = {
|
|
17132
17143
|
__name: "data_selector",
|
|
17133
17144
|
props: {
|
|
17134
17145
|
multiple: {
|
|
@@ -17142,6 +17153,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17142
17153
|
modelValue: {
|
|
17143
17154
|
type: [Array, String, Number]
|
|
17144
17155
|
},
|
|
17156
|
+
columnsFieldNames: {
|
|
17157
|
+
type: Object,
|
|
17158
|
+
default: {
|
|
17159
|
+
text: "text",
|
|
17160
|
+
value: "value"
|
|
17161
|
+
}
|
|
17162
|
+
},
|
|
17145
17163
|
rules: {
|
|
17146
17164
|
type: Array,
|
|
17147
17165
|
default: () => []
|
|
@@ -17183,6 +17201,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17183
17201
|
const checkboxRefs = vue.ref([]);
|
|
17184
17202
|
const checkedValue = vue.ref([]);
|
|
17185
17203
|
const isAllChecked = vue.ref(false);
|
|
17204
|
+
const formatOptions = vue.computed(() => {
|
|
17205
|
+
if (!props.options)
|
|
17206
|
+
return [];
|
|
17207
|
+
return props.options.map((item) => {
|
|
17208
|
+
return {
|
|
17209
|
+
text: item[props.columnsFieldNames.text],
|
|
17210
|
+
value: item[props.columnsFieldNames.value]
|
|
17211
|
+
};
|
|
17212
|
+
});
|
|
17213
|
+
});
|
|
17186
17214
|
const findTextsByValues = (valuesToFind, data2) => {
|
|
17187
17215
|
return valuesToFind.map((value) => {
|
|
17188
17216
|
const foundItem = data2.find((item) => item.value === value);
|
|
@@ -17190,18 +17218,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17190
17218
|
});
|
|
17191
17219
|
};
|
|
17192
17220
|
const values2items = (values) => {
|
|
17193
|
-
if (!values || values.length < 1 || !
|
|
17221
|
+
if (!values || values.length < 1 || !formatOptions.value || formatOptions.value.length < 1)
|
|
17194
17222
|
return [];
|
|
17195
|
-
let res =
|
|
17223
|
+
let res = formatOptions.value.filter((option) => values.includes(option.value));
|
|
17196
17224
|
return res;
|
|
17197
17225
|
};
|
|
17198
17226
|
const reShow = () => {
|
|
17199
17227
|
if (props.modelValue) {
|
|
17200
|
-
if (Array.isArray(
|
|
17228
|
+
if (Array.isArray(formatOptions.value)) {
|
|
17201
17229
|
if (props.multiple) {
|
|
17202
|
-
selectedItems.value = findTextsByValues(props.modelValue,
|
|
17230
|
+
selectedItems.value = findTextsByValues(props.modelValue, formatOptions.value);
|
|
17203
17231
|
} else {
|
|
17204
|
-
const foundItem =
|
|
17232
|
+
const foundItem = formatOptions.value.find((item) => item.value === props.modelValue);
|
|
17205
17233
|
selectedItems.value = foundItem ? [foundItem.text] : [];
|
|
17206
17234
|
}
|
|
17207
17235
|
}
|
|
@@ -17234,11 +17262,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17234
17262
|
};
|
|
17235
17263
|
const confirmSelection = () => {
|
|
17236
17264
|
if (props.multiple) {
|
|
17237
|
-
selectedItems.value = findTextsByValues(checkedValue.value,
|
|
17265
|
+
selectedItems.value = findTextsByValues(checkedValue.value, formatOptions.value);
|
|
17238
17266
|
emit("update:modelValue", checkedValue.value);
|
|
17239
17267
|
emit("select", values2items(checkedValue.value));
|
|
17240
17268
|
} else {
|
|
17241
|
-
const foundItem =
|
|
17269
|
+
const foundItem = formatOptions.value.find((item) => item.value === checkedValue.value);
|
|
17242
17270
|
selectedItems.value = foundItem ? [foundItem.text] : [];
|
|
17243
17271
|
emit("update:modelValue", checkedValue.value);
|
|
17244
17272
|
emit("select", foundItem);
|
|
@@ -17256,7 +17284,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17256
17284
|
checkedValue.value = value;
|
|
17257
17285
|
};
|
|
17258
17286
|
const filteredColumns = vue.computed(() => {
|
|
17259
|
-
return
|
|
17287
|
+
return formatOptions.value.filter((item) => {
|
|
17260
17288
|
return item.text.includes(searchKeyword.value) || item.value.includes(searchKeyword.value);
|
|
17261
17289
|
});
|
|
17262
17290
|
});
|
|
@@ -17279,7 +17307,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17279
17307
|
deep: true,
|
|
17280
17308
|
immediate: true
|
|
17281
17309
|
});
|
|
17282
|
-
vue.watch(() =>
|
|
17310
|
+
vue.watch(() => formatOptions.value, () => {
|
|
17283
17311
|
reShow();
|
|
17284
17312
|
}, {
|
|
17285
17313
|
deep: true
|
|
@@ -17318,20 +17346,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17318
17346
|
position: "bottom",
|
|
17319
17347
|
class: "popup-style"
|
|
17320
17348
|
}, {
|
|
17321
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", null, [vue.createElementVNode("div", _hoisted_1$
|
|
17349
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", null, [vue.createElementVNode("div", _hoisted_1$g, [vue.createVNode(_component_van_button, {
|
|
17322
17350
|
plain: "",
|
|
17323
17351
|
size: "normal",
|
|
17324
17352
|
onClick: cancelSelection
|
|
17325
17353
|
}, {
|
|
17326
|
-
default: vue.withCtx(() => [_hoisted_2$
|
|
17354
|
+
default: vue.withCtx(() => [_hoisted_2$a]),
|
|
17327
17355
|
_: 1
|
|
17328
|
-
}), vue.createElementVNode("div", _hoisted_3$
|
|
17356
|
+
}), vue.createElementVNode("div", _hoisted_3$8, vue.toDisplayString(__props.label), 1), vue.createVNode(_component_van_button, {
|
|
17329
17357
|
plain: "",
|
|
17330
17358
|
type: "primary",
|
|
17331
17359
|
size: "normal",
|
|
17332
17360
|
onClick: confirmSelection
|
|
17333
17361
|
}, {
|
|
17334
|
-
default: vue.withCtx(() => [_hoisted_4$
|
|
17362
|
+
default: vue.withCtx(() => [_hoisted_4$8]),
|
|
17335
17363
|
_: 1
|
|
17336
17364
|
})]), vue.createVNode(_component_van_field, {
|
|
17337
17365
|
"left-icon": "search",
|
|
@@ -17342,16 +17370,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17342
17370
|
},
|
|
17343
17371
|
clearable: "",
|
|
17344
17372
|
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57"
|
|
17345
|
-
}, null, 8, ["modelValue"]), props.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
17373
|
+
}, null, 8, ["modelValue"]), props.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [vue.createVNode(_component_van_checkbox, {
|
|
17346
17374
|
shape: "square",
|
|
17347
17375
|
modelValue: isAllChecked.value,
|
|
17348
17376
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
17349
17377
|
onClick: toggleAllSelect,
|
|
17350
17378
|
"label-position": "left"
|
|
17351
17379
|
}, {
|
|
17352
|
-
default: vue.withCtx(() => [_hoisted_6$
|
|
17380
|
+
default: vue.withCtx(() => [_hoisted_6$7]),
|
|
17353
17381
|
_: 1
|
|
17354
|
-
}, 8, ["modelValue"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_7$
|
|
17382
|
+
}, 8, ["modelValue"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_7$7, [props.multiple ? (vue.openBlock(), vue.createBlock(_component_van_checkbox_group, {
|
|
17355
17383
|
key: 0,
|
|
17356
17384
|
modelValue: checkedValue.value,
|
|
17357
17385
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkedValue.value = $event)
|
|
@@ -17406,16 +17434,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17406
17434
|
};
|
|
17407
17435
|
}
|
|
17408
17436
|
};
|
|
17409
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17437
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-778dc594"]]);
|
|
17410
17438
|
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")();
|
|
17411
|
-
const _hoisted_1$
|
|
17439
|
+
const _hoisted_1$f = {
|
|
17412
17440
|
key: 0,
|
|
17413
17441
|
class: "confirmation-tips"
|
|
17414
17442
|
};
|
|
17415
|
-
const _hoisted_2$
|
|
17443
|
+
const _hoisted_2$9 = {
|
|
17416
17444
|
class: "option-text"
|
|
17417
17445
|
};
|
|
17418
|
-
const _sfc_main$
|
|
17446
|
+
const _sfc_main$m = {
|
|
17419
17447
|
__name: "mult_list_selector",
|
|
17420
17448
|
props: {
|
|
17421
17449
|
options: {
|
|
@@ -17450,7 +17478,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17450
17478
|
const _component_van_icon = vue.resolveComponent("van-icon");
|
|
17451
17479
|
const _component_van_checkbox = vue.resolveComponent("van-checkbox");
|
|
17452
17480
|
const _component_van_checkbox_group = vue.resolveComponent("van-checkbox-group");
|
|
17453
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [__props.tips && __props.tips.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17481
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [__props.tips && __props.tips.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [vue.createVNode(_component_van_icon, {
|
|
17454
17482
|
name: "info",
|
|
17455
17483
|
color: "#1989fa"
|
|
17456
17484
|
}), vue.createElementVNode("span", null, vue.toDisplayString(__props.tips), 1)])) : vue.createCommentVNode("", true), vue.createVNode(_component_van_checkbox_group, {
|
|
@@ -17471,7 +17499,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17471
17499
|
"icon-size": "18px",
|
|
17472
17500
|
class: "custom-checkbox"
|
|
17473
17501
|
}, {
|
|
17474
|
-
default: vue.withCtx(() => [vue.createElementVNode("span", _hoisted_2$
|
|
17502
|
+
default: vue.withCtx(() => [vue.createElementVNode("span", _hoisted_2$9, vue.toDisplayString(item.label), 1)]),
|
|
17475
17503
|
_: 2
|
|
17476
17504
|
}, 1032, ["name"])]);
|
|
17477
17505
|
}), 128))]),
|
|
@@ -17480,25 +17508,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17480
17508
|
};
|
|
17481
17509
|
}
|
|
17482
17510
|
};
|
|
17483
|
-
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17511
|
+
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-40a09897"]]);
|
|
17484
17512
|
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")();
|
|
17485
|
-
const _hoisted_1$
|
|
17513
|
+
const _hoisted_1$e = {
|
|
17486
17514
|
class: "department-selector"
|
|
17487
17515
|
};
|
|
17488
|
-
const _hoisted_2$
|
|
17516
|
+
const _hoisted_2$8 = {
|
|
17489
17517
|
class: "popup-container"
|
|
17490
17518
|
};
|
|
17491
|
-
const _hoisted_3$
|
|
17519
|
+
const _hoisted_3$7 = {
|
|
17492
17520
|
class: "picker-header"
|
|
17493
17521
|
};
|
|
17494
|
-
const _hoisted_4$
|
|
17522
|
+
const _hoisted_4$7 = {
|
|
17495
17523
|
class: "current-path"
|
|
17496
17524
|
};
|
|
17497
|
-
const _hoisted_5$
|
|
17525
|
+
const _hoisted_5$7 = {
|
|
17498
17526
|
class: "action-buttons"
|
|
17499
17527
|
};
|
|
17500
|
-
const _hoisted_6$
|
|
17501
|
-
const _hoisted_7$
|
|
17528
|
+
const _hoisted_6$6 = /* @__PURE__ */ vue.createTextVNode(" \u53D6\u6D88 ");
|
|
17529
|
+
const _hoisted_7$6 = /* @__PURE__ */ vue.createTextVNode(" \u786E\u5B9A ");
|
|
17502
17530
|
const _hoisted_8$4 = {
|
|
17503
17531
|
class: "scroll-container"
|
|
17504
17532
|
};
|
|
@@ -17509,7 +17537,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17509
17537
|
const _hoisted_11$2 = {
|
|
17510
17538
|
class: "name"
|
|
17511
17539
|
};
|
|
17512
|
-
const _sfc_main$
|
|
17540
|
+
const _sfc_main$l = {
|
|
17513
17541
|
__name: "subdepartment_selector",
|
|
17514
17542
|
props: {
|
|
17515
17543
|
modelValue: [String, Number],
|
|
@@ -17752,7 +17780,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17752
17780
|
const _component_van_cell = vue.resolveComponent("van-cell");
|
|
17753
17781
|
const _component_van_cell_group = vue.resolveComponent("van-cell-group");
|
|
17754
17782
|
const _component_van_popup = vue.resolveComponent("van-popup");
|
|
17755
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17783
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
17756
17784
|
key: 0,
|
|
17757
17785
|
"model-value": selectedDepartmentPath.value,
|
|
17758
17786
|
readonly: "",
|
|
@@ -17772,18 +17800,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17772
17800
|
position: "bottom",
|
|
17773
17801
|
class: "department-popup"
|
|
17774
17802
|
}, {
|
|
17775
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$
|
|
17803
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$8, [vue.createElementVNode("div", _hoisted_3$7, [vue.unref(currentLevel) > 0 ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
17776
17804
|
key: 0,
|
|
17777
17805
|
onClick: goBack,
|
|
17778
17806
|
icon: "arrow-left",
|
|
17779
17807
|
size: "small",
|
|
17780
17808
|
class: "back-button"
|
|
17781
|
-
})) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_4$
|
|
17809
|
+
})) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_4$7, vue.toDisplayString(vue.unref(currentPath)), 1), vue.createElementVNode("div", _hoisted_5$7, [vue.createVNode(_component_van_button, {
|
|
17782
17810
|
size: "small",
|
|
17783
17811
|
onClick: handleCancel,
|
|
17784
17812
|
class: "cancel-btn"
|
|
17785
17813
|
}, {
|
|
17786
|
-
default: vue.withCtx(() => [_hoisted_6$
|
|
17814
|
+
default: vue.withCtx(() => [_hoisted_6$6]),
|
|
17787
17815
|
_: 1
|
|
17788
17816
|
}), vue.createVNode(_component_van_button, {
|
|
17789
17817
|
type: "primary",
|
|
@@ -17792,7 +17820,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17792
17820
|
disabled: !tempSelectedDepartment.value,
|
|
17793
17821
|
class: "confirm-btn"
|
|
17794
17822
|
}, {
|
|
17795
|
-
default: vue.withCtx(() => [_hoisted_7$
|
|
17823
|
+
default: vue.withCtx(() => [_hoisted_7$6]),
|
|
17796
17824
|
_: 1
|
|
17797
17825
|
}, 8, ["disabled"])])]), vue.createVNode(_component_van_field, {
|
|
17798
17826
|
"left-icon": "search",
|
|
@@ -17840,27 +17868,27 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17840
17868
|
};
|
|
17841
17869
|
}
|
|
17842
17870
|
};
|
|
17843
|
-
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17871
|
+
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-73eb43f3"]]);
|
|
17844
17872
|
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")();
|
|
17845
|
-
const _hoisted_1$
|
|
17873
|
+
const _hoisted_1$d = {
|
|
17846
17874
|
class: "user-selector"
|
|
17847
17875
|
};
|
|
17848
|
-
const _hoisted_2$
|
|
17876
|
+
const _hoisted_2$7 = {
|
|
17849
17877
|
class: "popup-container"
|
|
17850
17878
|
};
|
|
17851
|
-
const _hoisted_3$
|
|
17879
|
+
const _hoisted_3$6 = {
|
|
17852
17880
|
class: "picker-header"
|
|
17853
17881
|
};
|
|
17854
|
-
const _hoisted_4$
|
|
17882
|
+
const _hoisted_4$6 = {
|
|
17855
17883
|
class: "header-left"
|
|
17856
17884
|
};
|
|
17857
|
-
const _hoisted_5$
|
|
17885
|
+
const _hoisted_5$6 = {
|
|
17858
17886
|
class: "current-path"
|
|
17859
17887
|
};
|
|
17860
|
-
const _hoisted_6$
|
|
17888
|
+
const _hoisted_6$5 = {
|
|
17861
17889
|
class: "header-right"
|
|
17862
17890
|
};
|
|
17863
|
-
const _hoisted_7$
|
|
17891
|
+
const _hoisted_7$5 = /* @__PURE__ */ vue.createTextVNode("\u6E05\u7A7A");
|
|
17864
17892
|
const _hoisted_8$3 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
17865
17893
|
const _hoisted_9$1 = {
|
|
17866
17894
|
key: 0,
|
|
@@ -17874,7 +17902,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17874
17902
|
const _hoisted_13 = {
|
|
17875
17903
|
class: "scroll-container"
|
|
17876
17904
|
};
|
|
17877
|
-
const _sfc_main$
|
|
17905
|
+
const _sfc_main$k = {
|
|
17878
17906
|
__name: "user_selector",
|
|
17879
17907
|
props: {
|
|
17880
17908
|
modelValue: [Array, String, Number],
|
|
@@ -18227,7 +18255,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18227
18255
|
const _component_van_radio = vue.resolveComponent("van-radio");
|
|
18228
18256
|
const _component_van_radio_group = vue.resolveComponent("van-radio-group");
|
|
18229
18257
|
const _component_van_popup = vue.resolveComponent("van-popup");
|
|
18230
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18258
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
18231
18259
|
key: 0,
|
|
18232
18260
|
"model-value": vue.unref(selectedUserInfo),
|
|
18233
18261
|
clickable: "",
|
|
@@ -18244,18 +18272,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18244
18272
|
position: "bottom",
|
|
18245
18273
|
class: "user-popup"
|
|
18246
18274
|
}, {
|
|
18247
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$
|
|
18275
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$7, [vue.createElementVNode("div", _hoisted_3$6, [vue.createElementVNode("div", _hoisted_4$6, [vue.unref(currentLevel) > 0 ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
18248
18276
|
key: 0,
|
|
18249
18277
|
onClick: goBack,
|
|
18250
18278
|
icon: "arrow-left",
|
|
18251
18279
|
size: "small",
|
|
18252
18280
|
class: "back-button"
|
|
18253
|
-
})) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_5$
|
|
18281
|
+
})) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_5$6, vue.toDisplayString(vue.unref(currentPath)), 1), vue.createElementVNode("div", _hoisted_6$5, [vue.createVNode(_component_van_button, {
|
|
18254
18282
|
size: "small",
|
|
18255
18283
|
onClick: handleClear,
|
|
18256
18284
|
class: "cancel-btn"
|
|
18257
18285
|
}, {
|
|
18258
|
-
default: vue.withCtx(() => [_hoisted_7$
|
|
18286
|
+
default: vue.withCtx(() => [_hoisted_7$5]),
|
|
18259
18287
|
_: 1
|
|
18260
18288
|
}), vue.createVNode(_component_van_button, {
|
|
18261
18289
|
type: "primary",
|
|
@@ -18368,12 +18396,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18368
18396
|
};
|
|
18369
18397
|
}
|
|
18370
18398
|
};
|
|
18371
|
-
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18399
|
+
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18372
18400
|
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-6008668e] .label {\n color: #000 !important;\n}\n[data-v-6008668e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18373
|
-
const _hoisted_1$
|
|
18401
|
+
const _hoisted_1$c = {
|
|
18374
18402
|
class: "image-box"
|
|
18375
18403
|
};
|
|
18376
|
-
const _sfc_main$
|
|
18404
|
+
const _sfc_main$j = {
|
|
18377
18405
|
__name: "image_picker",
|
|
18378
18406
|
props: {
|
|
18379
18407
|
modelValue: {
|
|
@@ -18469,7 +18497,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18469
18497
|
"label-class": "label",
|
|
18470
18498
|
placeholder: props.placeholder
|
|
18471
18499
|
}, {
|
|
18472
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
18500
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$c, [props.capture ? (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18473
18501
|
key: 0,
|
|
18474
18502
|
modelValue: files.value,
|
|
18475
18503
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
@@ -18496,12 +18524,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18496
18524
|
};
|
|
18497
18525
|
}
|
|
18498
18526
|
};
|
|
18499
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18527
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6008668e"]]);
|
|
18500
18528
|
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1b4c046a] {\n text-align: center;\n}\n.widget .btn[data-v-1b4c046a] {\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}")();
|
|
18501
|
-
const _hoisted_1$
|
|
18529
|
+
const _hoisted_1$b = {
|
|
18502
18530
|
class: "image-box"
|
|
18503
18531
|
};
|
|
18504
|
-
const _sfc_main$
|
|
18532
|
+
const _sfc_main$i = {
|
|
18505
18533
|
__name: "images_picker",
|
|
18506
18534
|
props: {
|
|
18507
18535
|
modelValue: {
|
|
@@ -18611,7 +18639,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18611
18639
|
"label-class": "label",
|
|
18612
18640
|
placeholder: props.placeholder
|
|
18613
18641
|
}, {
|
|
18614
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
18642
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$b, [props.capture ? (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18615
18643
|
key: 0,
|
|
18616
18644
|
modelValue: files.value,
|
|
18617
18645
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
@@ -18638,12 +18666,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18638
18666
|
};
|
|
18639
18667
|
}
|
|
18640
18668
|
};
|
|
18641
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18669
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1b4c046a"]]);
|
|
18642
18670
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-a0846250] .label {\n color: #000 !important;\n}\n[data-v-a0846250] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18643
|
-
const _hoisted_1$
|
|
18671
|
+
const _hoisted_1$a = {
|
|
18644
18672
|
class: "image-box"
|
|
18645
18673
|
};
|
|
18646
|
-
const _sfc_main$
|
|
18674
|
+
const _sfc_main$h = {
|
|
18647
18675
|
__name: "FilePicker",
|
|
18648
18676
|
props: {
|
|
18649
18677
|
modelValue: {
|
|
@@ -18735,7 +18763,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18735
18763
|
"label-class": "label",
|
|
18736
18764
|
placeholder: props.placeholder
|
|
18737
18765
|
}, {
|
|
18738
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
18766
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$a, [vue.createVNode(_component_van_uploader, {
|
|
18739
18767
|
modelValue: files.value,
|
|
18740
18768
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18741
18769
|
"max-count": 1,
|
|
@@ -18752,29 +18780,29 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18752
18780
|
};
|
|
18753
18781
|
}
|
|
18754
18782
|
};
|
|
18755
|
-
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18783
|
+
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a0846250"]]);
|
|
18756
18784
|
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")();
|
|
18757
|
-
const _hoisted_1$
|
|
18785
|
+
const _hoisted_1$9 = {
|
|
18758
18786
|
class: "department-selector"
|
|
18759
18787
|
};
|
|
18760
|
-
const _hoisted_2$
|
|
18788
|
+
const _hoisted_2$6 = {
|
|
18761
18789
|
class: "picker-header"
|
|
18762
18790
|
};
|
|
18763
|
-
const _hoisted_3$
|
|
18791
|
+
const _hoisted_3$5 = {
|
|
18764
18792
|
class: "header-left"
|
|
18765
18793
|
};
|
|
18766
|
-
const _hoisted_4$
|
|
18794
|
+
const _hoisted_4$5 = {
|
|
18767
18795
|
class: "current-path"
|
|
18768
18796
|
};
|
|
18769
|
-
const _hoisted_5$
|
|
18797
|
+
const _hoisted_5$5 = {
|
|
18770
18798
|
class: "header-right"
|
|
18771
18799
|
};
|
|
18772
|
-
const _hoisted_6$
|
|
18773
|
-
const _hoisted_7$
|
|
18800
|
+
const _hoisted_6$4 = /* @__PURE__ */ vue.createTextVNode("\u6E05\u7A7A");
|
|
18801
|
+
const _hoisted_7$4 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
18774
18802
|
const _hoisted_8$2 = {
|
|
18775
18803
|
class: "scroll-container"
|
|
18776
18804
|
};
|
|
18777
|
-
const _sfc_main$
|
|
18805
|
+
const _sfc_main$g = {
|
|
18778
18806
|
__name: "SingleUserSelector",
|
|
18779
18807
|
props: {
|
|
18780
18808
|
modelValue: {
|
|
@@ -19041,16 +19069,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19041
19069
|
position: "bottom",
|
|
19042
19070
|
class: "user-popup"
|
|
19043
19071
|
}, {
|
|
19044
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
19072
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$9, [vue.createElementVNode("div", _hoisted_2$6, [vue.createElementVNode("div", _hoisted_3$5, [vue.withDirectives(vue.createVNode(_component_van_button, {
|
|
19045
19073
|
onClick: goBack,
|
|
19046
19074
|
icon: "arrow-left",
|
|
19047
19075
|
size: "small"
|
|
19048
|
-
}, null, 512), [[vue.vShow, currentPath.value !== "\u8BF7\u9009\u62E9\u90E8\u95E8"]])]), vue.createElementVNode("div", _hoisted_4$
|
|
19076
|
+
}, null, 512), [[vue.vShow, currentPath.value !== "\u8BF7\u9009\u62E9\u90E8\u95E8"]])]), vue.createElementVNode("div", _hoisted_4$5, vue.toDisplayString(currentPath.value), 1), vue.createElementVNode("div", _hoisted_5$5, [vue.createVNode(_component_van_button, {
|
|
19049
19077
|
size: "small",
|
|
19050
19078
|
onClick: handleClear,
|
|
19051
19079
|
class: "cancel-btn"
|
|
19052
19080
|
}, {
|
|
19053
|
-
default: vue.withCtx(() => [_hoisted_6$
|
|
19081
|
+
default: vue.withCtx(() => [_hoisted_6$4]),
|
|
19054
19082
|
_: 1
|
|
19055
19083
|
}), vue.createVNode(_component_van_button, {
|
|
19056
19084
|
type: "primary",
|
|
@@ -19058,7 +19086,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19058
19086
|
onClick: confirmSelection,
|
|
19059
19087
|
class: "confirm-btn"
|
|
19060
19088
|
}, {
|
|
19061
|
-
default: vue.withCtx(() => [_hoisted_7$
|
|
19089
|
+
default: vue.withCtx(() => [_hoisted_7$4]),
|
|
19062
19090
|
_: 1
|
|
19063
19091
|
})])]), vue.createVNode(_component_van_search, {
|
|
19064
19092
|
modelValue: searchValue.value,
|
|
@@ -19108,29 +19136,29 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19108
19136
|
};
|
|
19109
19137
|
}
|
|
19110
19138
|
};
|
|
19111
|
-
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19139
|
+
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a489ca4c"]]);
|
|
19112
19140
|
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")();
|
|
19113
|
-
const _hoisted_1$
|
|
19141
|
+
const _hoisted_1$8 = {
|
|
19114
19142
|
class: "department-selector"
|
|
19115
19143
|
};
|
|
19116
|
-
const _hoisted_2$
|
|
19144
|
+
const _hoisted_2$5 = {
|
|
19117
19145
|
class: "picker-header"
|
|
19118
19146
|
};
|
|
19119
|
-
const _hoisted_3$
|
|
19147
|
+
const _hoisted_3$4 = {
|
|
19120
19148
|
class: "header-left"
|
|
19121
19149
|
};
|
|
19122
|
-
const _hoisted_4$
|
|
19150
|
+
const _hoisted_4$4 = {
|
|
19123
19151
|
class: "current-path"
|
|
19124
19152
|
};
|
|
19125
|
-
const _hoisted_5$
|
|
19153
|
+
const _hoisted_5$4 = {
|
|
19126
19154
|
class: "header-right"
|
|
19127
19155
|
};
|
|
19128
|
-
const _hoisted_6$
|
|
19129
|
-
const _hoisted_7$
|
|
19156
|
+
const _hoisted_6$3 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
19157
|
+
const _hoisted_7$3 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
19130
19158
|
const _hoisted_8$1 = {
|
|
19131
19159
|
class: "scroll-container"
|
|
19132
19160
|
};
|
|
19133
|
-
const _sfc_main$
|
|
19161
|
+
const _sfc_main$f = {
|
|
19134
19162
|
__name: "UserPop",
|
|
19135
19163
|
props: {
|
|
19136
19164
|
show: {
|
|
@@ -19313,16 +19341,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19313
19341
|
position: "bottom",
|
|
19314
19342
|
class: "user-popup"
|
|
19315
19343
|
}, {
|
|
19316
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
19344
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$8, [vue.createElementVNode("div", _hoisted_2$5, [vue.createElementVNode("div", _hoisted_3$4, [vue.createVNode(_component_van_button, {
|
|
19317
19345
|
onClick: onBack,
|
|
19318
19346
|
icon: "arrow-left",
|
|
19319
19347
|
size: "small"
|
|
19320
|
-
})]), vue.createElementVNode("div", _hoisted_4$
|
|
19348
|
+
})]), vue.createElementVNode("div", _hoisted_4$4, vue.toDisplayString(vue.unref(pathsLabel)), 1), vue.createElementVNode("div", _hoisted_5$4, [vue.createVNode(_component_van_button, {
|
|
19321
19349
|
size: "small",
|
|
19322
19350
|
onClick: onCancel,
|
|
19323
19351
|
class: "cancel-btn"
|
|
19324
19352
|
}, {
|
|
19325
|
-
default: vue.withCtx(() => [_hoisted_6$
|
|
19353
|
+
default: vue.withCtx(() => [_hoisted_6$3]),
|
|
19326
19354
|
_: 1
|
|
19327
19355
|
}), vue.createVNode(_component_van_button, {
|
|
19328
19356
|
type: "primary",
|
|
@@ -19330,7 +19358,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19330
19358
|
onClick: onSubmit,
|
|
19331
19359
|
class: "confirm-btn"
|
|
19332
19360
|
}, {
|
|
19333
|
-
default: vue.withCtx(() => [_hoisted_7$
|
|
19361
|
+
default: vue.withCtx(() => [_hoisted_7$3]),
|
|
19334
19362
|
_: 1
|
|
19335
19363
|
})])]), vue.createVNode(_component_van_search, {
|
|
19336
19364
|
modelValue: data2.keyword,
|
|
@@ -19380,12 +19408,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19380
19408
|
};
|
|
19381
19409
|
}
|
|
19382
19410
|
};
|
|
19383
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19411
|
+
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-78c036bd"]]);
|
|
19384
19412
|
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")();
|
|
19385
|
-
const _hoisted_1$
|
|
19413
|
+
const _hoisted_1$7 = {
|
|
19386
19414
|
class: "user-list"
|
|
19387
19415
|
};
|
|
19388
|
-
const _sfc_main$
|
|
19416
|
+
const _sfc_main$e = {
|
|
19389
19417
|
__name: "UsersPicker",
|
|
19390
19418
|
props: {
|
|
19391
19419
|
modelValue: {
|
|
@@ -19483,7 +19511,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19483
19511
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !vue.unref(isReadonly)),
|
|
19484
19512
|
"label-class": "label"
|
|
19485
19513
|
}, {
|
|
19486
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
19514
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$7, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data2.users, (item, i) => {
|
|
19487
19515
|
return vue.openBlock(), vue.createBlock(_component_van_tag, {
|
|
19488
19516
|
class: "user-item",
|
|
19489
19517
|
closeable: !vue.unref(isDisabled),
|
|
@@ -19507,9 +19535,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19507
19535
|
};
|
|
19508
19536
|
}
|
|
19509
19537
|
};
|
|
19510
|
-
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19538
|
+
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-4022cd82"]]);
|
|
19511
19539
|
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")();
|
|
19512
|
-
const _sfc_main$
|
|
19540
|
+
const _sfc_main$d = {
|
|
19513
19541
|
__name: "UserPicker",
|
|
19514
19542
|
props: {
|
|
19515
19543
|
modelValue: {
|
|
@@ -19623,28 +19651,28 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19623
19651
|
};
|
|
19624
19652
|
}
|
|
19625
19653
|
};
|
|
19626
|
-
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19654
|
+
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-58929b5a"]]);
|
|
19627
19655
|
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-107e26c3] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-107e26c3] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-107e26c3] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-107e26c3] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-107e26c3] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-107e26c3] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-107e26c3]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-107e26c3] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-107e26c3] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
19628
|
-
const _hoisted_1$
|
|
19656
|
+
const _hoisted_1$6 = {
|
|
19629
19657
|
class: "widget"
|
|
19630
19658
|
};
|
|
19631
|
-
const _hoisted_2$
|
|
19659
|
+
const _hoisted_2$4 = {
|
|
19632
19660
|
class: "user-info"
|
|
19633
19661
|
};
|
|
19634
|
-
const _hoisted_3$
|
|
19662
|
+
const _hoisted_3$3 = {
|
|
19635
19663
|
class: "user-info-item"
|
|
19636
19664
|
};
|
|
19637
|
-
const _hoisted_4$
|
|
19665
|
+
const _hoisted_4$3 = {
|
|
19638
19666
|
class: "user-info-item"
|
|
19639
19667
|
};
|
|
19640
|
-
const _hoisted_5$
|
|
19668
|
+
const _hoisted_5$3 = {
|
|
19641
19669
|
class: "user-info-item"
|
|
19642
19670
|
};
|
|
19643
|
-
const _hoisted_6$
|
|
19671
|
+
const _hoisted_6$2 = {
|
|
19644
19672
|
class: "user-jobs"
|
|
19645
19673
|
};
|
|
19646
|
-
const _hoisted_7$
|
|
19647
|
-
const _sfc_main$
|
|
19674
|
+
const _hoisted_7$2 = /* @__PURE__ */ vue.createTextVNode(" \u6CE8\u9500 ");
|
|
19675
|
+
const _sfc_main$c = {
|
|
19648
19676
|
__name: "UserProfile",
|
|
19649
19677
|
props: {
|
|
19650
19678
|
avatar: {
|
|
@@ -19681,13 +19709,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19681
19709
|
return (_ctx, _cache) => {
|
|
19682
19710
|
const _component_van_image = vue.resolveComponent("van-image");
|
|
19683
19711
|
const _component_van_button = vue.resolveComponent("van-button");
|
|
19684
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19712
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [vue.createVNode(_component_van_image, {
|
|
19685
19713
|
round: "",
|
|
19686
19714
|
width: "80px",
|
|
19687
19715
|
height: "80px",
|
|
19688
19716
|
src: props.avatar,
|
|
19689
19717
|
class: "user-avatar"
|
|
19690
|
-
}, null, 8, ["src"]), vue.createElementVNode("div", _hoisted_2$
|
|
19718
|
+
}, null, 8, ["src"]), vue.createElementVNode("div", _hoisted_2$4, [vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(props.name), 1), vue.createElementVNode("span", _hoisted_4$3, vue.toDisplayString(props.position), 1), vue.createElementVNode("span", _hoisted_5$3, vue.toDisplayString(props.mobile), 1)]), vue.createElementVNode("div", _hoisted_6$2, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.departments, (item, i) => {
|
|
19691
19719
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
19692
19720
|
class: "job-item",
|
|
19693
19721
|
key: i
|
|
@@ -19697,30 +19725,30 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19697
19725
|
class: "logout-button",
|
|
19698
19726
|
onClick: onLogout
|
|
19699
19727
|
}, {
|
|
19700
|
-
default: vue.withCtx(() => [_hoisted_7$
|
|
19728
|
+
default: vue.withCtx(() => [_hoisted_7$2]),
|
|
19701
19729
|
_: 1
|
|
19702
19730
|
})]);
|
|
19703
19731
|
};
|
|
19704
19732
|
}
|
|
19705
19733
|
};
|
|
19706
|
-
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19734
|
+
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-107e26c3"]]);
|
|
19707
19735
|
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}")();
|
|
19708
|
-
const _hoisted_1$
|
|
19736
|
+
const _hoisted_1$5 = {
|
|
19709
19737
|
class: "widget"
|
|
19710
19738
|
};
|
|
19711
|
-
const _hoisted_2$
|
|
19739
|
+
const _hoisted_2$3 = {
|
|
19712
19740
|
class: "card-header"
|
|
19713
19741
|
};
|
|
19714
|
-
const _hoisted_3$
|
|
19742
|
+
const _hoisted_3$2 = {
|
|
19715
19743
|
class: "card-sum"
|
|
19716
19744
|
};
|
|
19717
|
-
const _hoisted_4$
|
|
19745
|
+
const _hoisted_4$2 = {
|
|
19718
19746
|
class: "card-type"
|
|
19719
19747
|
};
|
|
19720
|
-
const _hoisted_5$
|
|
19748
|
+
const _hoisted_5$2 = {
|
|
19721
19749
|
class: "card-no"
|
|
19722
19750
|
};
|
|
19723
|
-
const _sfc_main$
|
|
19751
|
+
const _sfc_main$b = {
|
|
19724
19752
|
__name: "BillCard",
|
|
19725
19753
|
props: {
|
|
19726
19754
|
category: {
|
|
@@ -19801,11 +19829,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19801
19829
|
const _component_van_tag = vue.resolveComponent("van-tag");
|
|
19802
19830
|
const _component_van_cell = vue.resolveComponent("van-cell");
|
|
19803
19831
|
const _component_van_cell_group = vue.resolveComponent("van-cell-group");
|
|
19804
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19832
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [vue.createVNode(_component_van_cell_group, {
|
|
19805
19833
|
inset: "",
|
|
19806
19834
|
class: "card-box"
|
|
19807
19835
|
}, {
|
|
19808
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$
|
|
19836
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$3, [vue.createElementVNode("div", _hoisted_3$2, [vue.createElementVNode("div", _hoisted_4$2, vue.toDisplayString(props.category), 1), vue.createElementVNode("div", _hoisted_5$2, vue.toDisplayString(props.no), 1)]), vue.createVNode(_component_van_tag, {
|
|
19809
19837
|
class: "user-state",
|
|
19810
19838
|
size: "large",
|
|
19811
19839
|
color: userState2color(props.userState)
|
|
@@ -19834,8 +19862,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19834
19862
|
};
|
|
19835
19863
|
}
|
|
19836
19864
|
};
|
|
19837
|
-
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19838
|
-
const _sfc_main$
|
|
19865
|
+
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-68bdd6bc"]]);
|
|
19866
|
+
const _sfc_main$a = {
|
|
19839
19867
|
__name: "YearDropdown",
|
|
19840
19868
|
props: {
|
|
19841
19869
|
modelValue: {
|
|
@@ -19893,7 +19921,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19893
19921
|
};
|
|
19894
19922
|
}
|
|
19895
19923
|
};
|
|
19896
|
-
const _sfc_main$
|
|
19924
|
+
const _sfc_main$9 = {
|
|
19897
19925
|
__name: "MonthDropdown",
|
|
19898
19926
|
props: {
|
|
19899
19927
|
modelValue: {
|
|
@@ -19943,7 +19971,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19943
19971
|
};
|
|
19944
19972
|
}
|
|
19945
19973
|
};
|
|
19946
|
-
const _sfc_main$
|
|
19974
|
+
const _sfc_main$8 = {
|
|
19947
19975
|
__name: "DayDropdown",
|
|
19948
19976
|
props: {
|
|
19949
19977
|
year: {
|
|
@@ -20003,7 +20031,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20003
20031
|
}
|
|
20004
20032
|
};
|
|
20005
20033
|
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}")();
|
|
20006
|
-
const _sfc_main$
|
|
20034
|
+
const _sfc_main$7 = {
|
|
20007
20035
|
__name: "Switch",
|
|
20008
20036
|
props: {
|
|
20009
20037
|
modelValue: {
|
|
@@ -20071,17 +20099,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20071
20099
|
};
|
|
20072
20100
|
}
|
|
20073
20101
|
};
|
|
20074
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20102
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d8d21ade"]]);
|
|
20075
20103
|
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}")();
|
|
20076
|
-
const _hoisted_1$
|
|
20104
|
+
const _hoisted_1$4 = {
|
|
20077
20105
|
key: 0,
|
|
20078
20106
|
class: "actionbar"
|
|
20079
20107
|
};
|
|
20080
|
-
const _hoisted_2$
|
|
20108
|
+
const _hoisted_2$2 = {
|
|
20081
20109
|
key: 0,
|
|
20082
20110
|
class: "actionbar"
|
|
20083
20111
|
};
|
|
20084
|
-
const _sfc_main$
|
|
20112
|
+
const _sfc_main$6 = {
|
|
20085
20113
|
__name: "Sheet",
|
|
20086
20114
|
props: {
|
|
20087
20115
|
modelValue: {
|
|
@@ -20145,7 +20173,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20145
20173
|
required: vue.unref(isRequired),
|
|
20146
20174
|
placeholder: props.placeholder
|
|
20147
20175
|
}, {
|
|
20148
|
-
input: vue.withCtx(() => [!vue.unref(isGone) && !vue.unref(isDisabled) && !vue.unref(isReadonly) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20176
|
+
input: vue.withCtx(() => [!vue.unref(isGone) && !vue.unref(isDisabled) && !vue.unref(isReadonly) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [vue.createVNode(_component_van_button, {
|
|
20149
20177
|
icon: "plus",
|
|
20150
20178
|
type: "primary",
|
|
20151
20179
|
size: "mini",
|
|
@@ -20157,7 +20185,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20157
20185
|
}, [vue.renderSlot(_ctx.$slots, "item", {
|
|
20158
20186
|
item,
|
|
20159
20187
|
auth: props.auth
|
|
20160
|
-
}, void 0, true), !vue.unref(isGone) && !vue.unref(isDisabled) && !vue.unref(isReadonly) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
20188
|
+
}, void 0, true), !vue.unref(isGone) && !vue.unref(isDisabled) && !vue.unref(isReadonly) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [vue.createVNode(_component_van_button, {
|
|
20161
20189
|
icon: "plus",
|
|
20162
20190
|
type: "primary",
|
|
20163
20191
|
size: "mini",
|
|
@@ -20174,9 +20202,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20174
20202
|
};
|
|
20175
20203
|
}
|
|
20176
20204
|
};
|
|
20177
|
-
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20205
|
+
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2bd62a7a"]]);
|
|
20178
20206
|
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")();
|
|
20179
|
-
const _sfc_main$
|
|
20207
|
+
const _sfc_main$5 = {
|
|
20180
20208
|
__name: "TreePop",
|
|
20181
20209
|
props: {
|
|
20182
20210
|
show: {
|
|
@@ -20225,12 +20253,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20225
20253
|
};
|
|
20226
20254
|
}
|
|
20227
20255
|
};
|
|
20228
|
-
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20256
|
+
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-571370f8"]]);
|
|
20229
20257
|
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")();
|
|
20230
|
-
const _hoisted_1$
|
|
20258
|
+
const _hoisted_1$3 = {
|
|
20231
20259
|
class: "select-list"
|
|
20232
20260
|
};
|
|
20233
|
-
const _sfc_main$
|
|
20261
|
+
const _sfc_main$4 = {
|
|
20234
20262
|
__name: "TreePicker",
|
|
20235
20263
|
props: {
|
|
20236
20264
|
modelValue: {
|
|
@@ -20324,7 +20352,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20324
20352
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !vue.unref(isReadonly)),
|
|
20325
20353
|
"label-class": "label"
|
|
20326
20354
|
}, {
|
|
20327
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
20355
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectOptions), (item, i) => {
|
|
20328
20356
|
return vue.openBlock(), vue.createBlock(_component_van_tag, {
|
|
20329
20357
|
class: "select-item",
|
|
20330
20358
|
closeable: !vue.unref(isDisabled),
|
|
@@ -20348,25 +20376,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20348
20376
|
};
|
|
20349
20377
|
}
|
|
20350
20378
|
};
|
|
20351
|
-
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20379
|
+
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6744b874"]]);
|
|
20352
20380
|
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-0f636c64] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-0f636c64] {\r\n padding: 10px;\n}\n.search-buttons[data-v-0f636c64] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-0f636c64] {\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-0f636c64] {\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-0f636c64] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-0f636c64] {\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-0f636c64] {\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-0f636c64] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-0f636c64] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-0f636c64] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-0f636c64] {\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-0f636c64] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-0f636c64] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-0f636c64] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-0f636c64] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\n}\n.search-field[data-v-0f636c64] {\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")();
|
|
20353
|
-
const _hoisted_1$
|
|
20381
|
+
const _hoisted_1$2 = {
|
|
20354
20382
|
class: "cascader-selector"
|
|
20355
20383
|
};
|
|
20356
|
-
const _hoisted_2 = {
|
|
20384
|
+
const _hoisted_2$1 = {
|
|
20357
20385
|
class: "cascader-header"
|
|
20358
20386
|
};
|
|
20359
|
-
const _hoisted_3 = {
|
|
20387
|
+
const _hoisted_3$1 = {
|
|
20360
20388
|
class: "header-left"
|
|
20361
20389
|
};
|
|
20362
|
-
const _hoisted_4 = {
|
|
20390
|
+
const _hoisted_4$1 = {
|
|
20363
20391
|
class: "current-path"
|
|
20364
20392
|
};
|
|
20365
|
-
const _hoisted_5 = {
|
|
20393
|
+
const _hoisted_5$1 = {
|
|
20366
20394
|
class: "header-right"
|
|
20367
20395
|
};
|
|
20368
|
-
const _hoisted_6 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
20369
|
-
const _hoisted_7 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
20396
|
+
const _hoisted_6$1 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
20397
|
+
const _hoisted_7$1 = /* @__PURE__ */ vue.createTextVNode("\u786E\u5B9A");
|
|
20370
20398
|
const _hoisted_8 = {
|
|
20371
20399
|
class: "scroll-container"
|
|
20372
20400
|
};
|
|
@@ -20377,7 +20405,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20377
20405
|
const _hoisted_11 = {
|
|
20378
20406
|
class: "name"
|
|
20379
20407
|
};
|
|
20380
|
-
const _sfc_main$
|
|
20408
|
+
const _sfc_main$3 = {
|
|
20381
20409
|
__name: "CascaderPop",
|
|
20382
20410
|
props: {
|
|
20383
20411
|
modelValue: {
|
|
@@ -20514,16 +20542,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20514
20542
|
position: "bottom",
|
|
20515
20543
|
class: "cascader-pop"
|
|
20516
20544
|
}, {
|
|
20517
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$
|
|
20545
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$2, [vue.createElementVNode("div", _hoisted_2$1, [vue.createElementVNode("div", _hoisted_3$1, [vue.createVNode(_component_van_button, {
|
|
20518
20546
|
onClick: onBack,
|
|
20519
20547
|
icon: "arrow-left",
|
|
20520
20548
|
size: "small"
|
|
20521
|
-
})]), vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(vue.unref(pathsLabel)), 1), vue.createElementVNode("div", _hoisted_5, [vue.createVNode(_component_van_button, {
|
|
20549
|
+
})]), vue.createElementVNode("div", _hoisted_4$1, vue.toDisplayString(vue.unref(pathsLabel)), 1), vue.createElementVNode("div", _hoisted_5$1, [vue.createVNode(_component_van_button, {
|
|
20522
20550
|
size: "small",
|
|
20523
20551
|
onClick: onCancel,
|
|
20524
20552
|
class: "cancel-btn"
|
|
20525
20553
|
}, {
|
|
20526
|
-
default: vue.withCtx(() => [_hoisted_6]),
|
|
20554
|
+
default: vue.withCtx(() => [_hoisted_6$1]),
|
|
20527
20555
|
_: 1
|
|
20528
20556
|
}), vue.createVNode(_component_van_button, {
|
|
20529
20557
|
type: "primary",
|
|
@@ -20531,7 +20559,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20531
20559
|
onClick: onSubmit,
|
|
20532
20560
|
class: "confirm-btn"
|
|
20533
20561
|
}, {
|
|
20534
|
-
default: vue.withCtx(() => [_hoisted_7]),
|
|
20562
|
+
default: vue.withCtx(() => [_hoisted_7$1]),
|
|
20535
20563
|
_: 1
|
|
20536
20564
|
})])]), vue.createVNode(_component_van_search, {
|
|
20537
20565
|
modelValue: data2.keyword,
|
|
@@ -20582,8 +20610,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20582
20610
|
};
|
|
20583
20611
|
}
|
|
20584
20612
|
};
|
|
20585
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20586
|
-
const _sfc_main$
|
|
20613
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-0f636c64"]]);
|
|
20614
|
+
const _sfc_main$2 = {
|
|
20587
20615
|
__name: "CascaderPicker",
|
|
20588
20616
|
props: {
|
|
20589
20617
|
modelValue: {
|
|
@@ -20673,7 +20701,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20673
20701
|
data2.selectedNodeId = modelValue.value;
|
|
20674
20702
|
} else {
|
|
20675
20703
|
data2.selectedNodes = [];
|
|
20676
|
-
modelValue.value
|
|
20704
|
+
let ids = modelValue.value || [];
|
|
20705
|
+
ids.forEach((id) => __async(this, null, function* () {
|
|
20677
20706
|
let params = {};
|
|
20678
20707
|
params.id = id;
|
|
20679
20708
|
params.isReturnParent = false;
|
|
@@ -20752,10 +20781,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20752
20781
|
}
|
|
20753
20782
|
};
|
|
20754
20783
|
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-0c8e09c0] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-0c8e09c0] .van-cell {\n align-items: center;\n}\n.widget[data-v-0c8e09c0] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-0c8e09c0] .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-0c8e09c0] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n margin: 4px 0;\n}')();
|
|
20755
|
-
const _hoisted_1 = {
|
|
20784
|
+
const _hoisted_1$1 = {
|
|
20756
20785
|
class: "widget"
|
|
20757
20786
|
};
|
|
20758
|
-
const _sfc_main = {
|
|
20787
|
+
const _sfc_main$1 = {
|
|
20759
20788
|
__name: "SingleApiPicker",
|
|
20760
20789
|
props: {
|
|
20761
20790
|
label: {
|
|
@@ -20825,7 +20854,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20825
20854
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
20826
20855
|
const _component_van_picker = vue.resolveComponent("van-picker");
|
|
20827
20856
|
const _component_van_popup = vue.resolveComponent("van-popup");
|
|
20828
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
20857
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
20829
20858
|
key: 0,
|
|
20830
20859
|
modelValue: vue.unref(formatLabel),
|
|
20831
20860
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formatLabel) ? formatLabel.value = $event : null),
|
|
@@ -20853,7 +20882,293 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20853
20882
|
};
|
|
20854
20883
|
}
|
|
20855
20884
|
};
|
|
20856
|
-
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20885
|
+
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20886
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-39b86a7f] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-39b86a7f] {\n margin: 8px 8px;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-39b86a7f] .van-field__label {\n margin: auto;\n}")();
|
|
20887
|
+
const _hoisted_1 = {
|
|
20888
|
+
class: "widget"
|
|
20889
|
+
};
|
|
20890
|
+
const _hoisted_2 = {
|
|
20891
|
+
style: {
|
|
20892
|
+
"display": "flex",
|
|
20893
|
+
"align-items": "center"
|
|
20894
|
+
}
|
|
20895
|
+
};
|
|
20896
|
+
const _hoisted_3 = {
|
|
20897
|
+
style: {
|
|
20898
|
+
"padding": "5px 5px"
|
|
20899
|
+
}
|
|
20900
|
+
};
|
|
20901
|
+
const _hoisted_4 = {
|
|
20902
|
+
style: {
|
|
20903
|
+
"display": "flex",
|
|
20904
|
+
"flex-direction": "column",
|
|
20905
|
+
"cursor": "pointer"
|
|
20906
|
+
}
|
|
20907
|
+
};
|
|
20908
|
+
const _hoisted_5 = {
|
|
20909
|
+
style: {
|
|
20910
|
+
"margin": "16px",
|
|
20911
|
+
"display": "flex",
|
|
20912
|
+
"align-items": "center",
|
|
20913
|
+
"justify-content": "center"
|
|
20914
|
+
}
|
|
20915
|
+
};
|
|
20916
|
+
const _hoisted_6 = /* @__PURE__ */ vue.createTextVNode("\u4FDD\u5B58");
|
|
20917
|
+
const _hoisted_7 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
20918
|
+
const _sfc_main = {
|
|
20919
|
+
__name: "ObjsEditor",
|
|
20920
|
+
props: {
|
|
20921
|
+
modelValue: {
|
|
20922
|
+
type: Array,
|
|
20923
|
+
default: []
|
|
20924
|
+
},
|
|
20925
|
+
isShowAdd: {
|
|
20926
|
+
type: Boolean,
|
|
20927
|
+
default: true
|
|
20928
|
+
},
|
|
20929
|
+
schema: {
|
|
20930
|
+
type: Object,
|
|
20931
|
+
default: {
|
|
20932
|
+
type: "String",
|
|
20933
|
+
label: "\u540D\u79F0",
|
|
20934
|
+
default: "",
|
|
20935
|
+
auth: "option"
|
|
20936
|
+
}
|
|
20937
|
+
}
|
|
20938
|
+
},
|
|
20939
|
+
emits: ["update:modelValue"],
|
|
20940
|
+
setup(__props, {
|
|
20941
|
+
emit
|
|
20942
|
+
}) {
|
|
20943
|
+
const props = __props;
|
|
20944
|
+
const modelValue = useVModel(props, "modelValue", emit);
|
|
20945
|
+
const data2 = vue.reactive({
|
|
20946
|
+
inputValue: {},
|
|
20947
|
+
isShowInput: false,
|
|
20948
|
+
selectIndex: -1
|
|
20949
|
+
});
|
|
20950
|
+
const keys2 = Object.keys(props.schema);
|
|
20951
|
+
const visiableKeys = keys2.filter((k) => props.schema[k].auth != "gone");
|
|
20952
|
+
vue.onMounted(() => {
|
|
20953
|
+
init();
|
|
20954
|
+
});
|
|
20955
|
+
const init = () => {
|
|
20956
|
+
if (modelValue.value)
|
|
20957
|
+
return;
|
|
20958
|
+
modelValue.value = [];
|
|
20959
|
+
};
|
|
20960
|
+
const makeDefaultValue = () => {
|
|
20961
|
+
let res = {};
|
|
20962
|
+
keys2.forEach((key) => {
|
|
20963
|
+
if (props.schema[key].default === "uuid")
|
|
20964
|
+
res[key] = util.uuid8();
|
|
20965
|
+
else
|
|
20966
|
+
res[key] = JSON.parse(JSON.stringify(props.schema[key].default));
|
|
20967
|
+
});
|
|
20968
|
+
return res;
|
|
20969
|
+
};
|
|
20970
|
+
const onForward = (index) => {
|
|
20971
|
+
util.arySwapPrev(modelValue.value, index);
|
|
20972
|
+
};
|
|
20973
|
+
const onBack = (index) => {
|
|
20974
|
+
util.arySwapNext(modelValue.value, index);
|
|
20975
|
+
};
|
|
20976
|
+
const onDelete = (index) => {
|
|
20977
|
+
modelValue.value.splice(index, 1);
|
|
20978
|
+
};
|
|
20979
|
+
const key2name = (key) => {
|
|
20980
|
+
return props.schema[key].label;
|
|
20981
|
+
};
|
|
20982
|
+
const key2value = (key, item) => {
|
|
20983
|
+
var _a, _b, _c, _d;
|
|
20984
|
+
console.log("key2value", key, item[key], item);
|
|
20985
|
+
let v = item[key];
|
|
20986
|
+
if (Array.isArray(v)) {
|
|
20987
|
+
let formatValues = v.map((e) => {
|
|
20988
|
+
let kvs = Object.keys(e).map((k) => {
|
|
20989
|
+
var _a2, _b2, _c2, _d2;
|
|
20990
|
+
let label = props.schema[key].schema[k].label;
|
|
20991
|
+
let formatValue = e[k];
|
|
20992
|
+
if ((_b2 = (_a2 = props.schema[key].schema[k]) == null ? void 0 : _a2.schema) == null ? void 0 : _b2.options) {
|
|
20993
|
+
let one = (_d2 = (_c2 = props.schema[key].schema[k]) == null ? void 0 : _c2.schema) == null ? void 0 : _d2.options.find((item2) => item2[Object.keys(item2)[1]] === formatValue);
|
|
20994
|
+
formatValue = one[Object.keys(one)[0]];
|
|
20995
|
+
}
|
|
20996
|
+
return `${label}:${formatValue}`;
|
|
20997
|
+
});
|
|
20998
|
+
return kvs.join(",");
|
|
20999
|
+
});
|
|
21000
|
+
return formatValues.join(" > ");
|
|
21001
|
+
} else if ((_b = (_a = props.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) {
|
|
21002
|
+
let one = (_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
21003
|
+
return one[Object.keys(one)[0]];
|
|
21004
|
+
} else {
|
|
21005
|
+
return v;
|
|
21006
|
+
}
|
|
21007
|
+
};
|
|
21008
|
+
const onEdit = (index) => {
|
|
21009
|
+
data2.isShowInput = true;
|
|
21010
|
+
data2.selectIndex = index;
|
|
21011
|
+
data2.inputValue = modelValue.value[data2.selectIndex];
|
|
21012
|
+
};
|
|
21013
|
+
const onNewOption = () => {
|
|
21014
|
+
data2.selectIndex = -1;
|
|
21015
|
+
data2.inputValue = makeDefaultValue();
|
|
21016
|
+
data2.isShowInput = true;
|
|
21017
|
+
};
|
|
21018
|
+
const onInputConfirm = () => {
|
|
21019
|
+
let idx = modelValue.value.indexOf((item) => JSON.stringify(item) === JSON.stringify(data2.inputValue));
|
|
21020
|
+
if (idx > -1 && idx != data2.selectIndex) {
|
|
21021
|
+
util.warnToast("\u91CD\u590D\u6DFB\u52A0");
|
|
21022
|
+
return;
|
|
21023
|
+
}
|
|
21024
|
+
if (!data2.inputValue) {
|
|
21025
|
+
data2.isShowInput = false;
|
|
21026
|
+
data2.inputValue = makeDefaultValue();
|
|
21027
|
+
return;
|
|
21028
|
+
}
|
|
21029
|
+
if (data2.selectIndex < 0) {
|
|
21030
|
+
modelValue.value.push(data2.inputValue);
|
|
21031
|
+
} else {
|
|
21032
|
+
modelValue.value[data2.selectIndex] = data2.inputValue;
|
|
21033
|
+
}
|
|
21034
|
+
data2.isShowInput = false;
|
|
21035
|
+
data2.inputValue = makeDefaultValue();
|
|
21036
|
+
};
|
|
21037
|
+
const onInputCancel = () => {
|
|
21038
|
+
data2.isShowInput = false;
|
|
21039
|
+
data2.inputValue = makeDefaultValue();
|
|
21040
|
+
};
|
|
21041
|
+
const onChangeOption = (key) => {
|
|
21042
|
+
var _a, _b;
|
|
21043
|
+
console.log("onChangeOption", key, data2.inputValue[key], (_b = (_a = props.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options);
|
|
21044
|
+
let val = data2.inputValue[key];
|
|
21045
|
+
let options = props.schema[key].schema.options;
|
|
21046
|
+
let option = options.find((item) => item[Object.keys(item)[1]] === val);
|
|
21047
|
+
Object.keys(option).forEach((k) => {
|
|
21048
|
+
if (props.schema[k])
|
|
21049
|
+
data2.inputValue[k] = option[k];
|
|
21050
|
+
});
|
|
21051
|
+
};
|
|
21052
|
+
return (_ctx, _cache) => {
|
|
21053
|
+
const _component_van_icon = vue.resolveComponent("van-icon");
|
|
21054
|
+
const _component_van_field = vue.resolveComponent("van-field");
|
|
21055
|
+
const _component_van_switch = vue.resolveComponent("van-switch");
|
|
21056
|
+
const _component_ObjsEditor = vue.resolveComponent("ObjsEditor", true);
|
|
21057
|
+
const _component_van_button = vue.resolveComponent("van-button");
|
|
21058
|
+
const _component_van_form = vue.resolveComponent("van-form");
|
|
21059
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(modelValue), (item, index) => {
|
|
21060
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21061
|
+
class: "option",
|
|
21062
|
+
key: index
|
|
21063
|
+
}, [vue.createElementVNode("div", _hoisted_2, [vue.createVNode(_component_van_icon, {
|
|
21064
|
+
name: "arrow-left",
|
|
21065
|
+
onClick: vue.withModifiers(($event) => onForward(index), ["stop"])
|
|
21066
|
+
}, null, 8, ["onClick"]), vue.createElementVNode("div", _hoisted_3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(visiableKeys), (k, j) => {
|
|
21067
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21068
|
+
key: j,
|
|
21069
|
+
style: {
|
|
21070
|
+
"padding": "2px 2px"
|
|
21071
|
+
}
|
|
21072
|
+
}, vue.toDisplayString(`${key2name(k)}:${key2value(k, item)}`), 1);
|
|
21073
|
+
}), 128))]), vue.createElementVNode("div", _hoisted_4, [props.schema.auth != "readonly" ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
21074
|
+
key: 0,
|
|
21075
|
+
name: "edit",
|
|
21076
|
+
onClick: vue.withModifiers(($event) => onEdit(index), ["stop"])
|
|
21077
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true), vue.createVNode(_component_van_icon, {
|
|
21078
|
+
name: "arrow",
|
|
21079
|
+
onClick: vue.withModifiers(($event) => onBack(index), ["stop"]),
|
|
21080
|
+
style: {
|
|
21081
|
+
"margin": "8px 0"
|
|
21082
|
+
}
|
|
21083
|
+
}, null, 8, ["onClick"]), props.schema.auth != "readonly" ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
21084
|
+
key: 1,
|
|
21085
|
+
name: "cross",
|
|
21086
|
+
onClick: vue.withModifiers(($event) => onDelete(index), ["stop"])
|
|
21087
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)])])]);
|
|
21088
|
+
}), 128)), props.isShowAdd && !data2.isShowInput ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
21089
|
+
key: 0,
|
|
21090
|
+
name: "plus",
|
|
21091
|
+
onClick: onNewOption
|
|
21092
|
+
})) : vue.createCommentVNode("", true), data2.isShowInput ? (vue.openBlock(), vue.createBlock(_component_van_form, {
|
|
21093
|
+
key: 1,
|
|
21094
|
+
model: data2.inputValue
|
|
21095
|
+
}, {
|
|
21096
|
+
default: vue.withCtx(() => [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(keys2), (key, i) => {
|
|
21097
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
21098
|
+
key: i,
|
|
21099
|
+
label: props.schema[key].label,
|
|
21100
|
+
required: props.schema[key].auth === "required",
|
|
21101
|
+
disabled: props.schema[key].auth === "readonly"
|
|
21102
|
+
}, {
|
|
21103
|
+
input: vue.withCtx(() => {
|
|
21104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
21105
|
+
return [props.schema[key].type == "String" && !((_b = (_a = props.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
21106
|
+
key: 0,
|
|
21107
|
+
modelValue: data2.inputValue[key],
|
|
21108
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21109
|
+
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
21110
|
+
type: "text"
|
|
21111
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Number" && !((_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
21112
|
+
key: 1,
|
|
21113
|
+
modelValue: data2.inputValue[key],
|
|
21114
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21115
|
+
modelModifiers: {
|
|
21116
|
+
number: true
|
|
21117
|
+
},
|
|
21118
|
+
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
21119
|
+
type: "number"
|
|
21120
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Boolean" ? (vue.openBlock(), vue.createBlock(_component_van_switch, {
|
|
21121
|
+
key: 2,
|
|
21122
|
+
modelValue: data2.inputValue[key],
|
|
21123
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
|
|
21124
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), props.schema[key].type == "Datetime" ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
21125
|
+
key: 3,
|
|
21126
|
+
modelValue: data2.inputValue[key],
|
|
21127
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21128
|
+
placeholder: "\u9009\u62E9\u65F6\u95F4"
|
|
21129
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (vue.openBlock(), vue.createBlock(DataSelector, {
|
|
21130
|
+
key: 4,
|
|
21131
|
+
modelValue: data2.inputValue[key],
|
|
21132
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21133
|
+
options: (_h = (_g = props.schema[key]) == null ? void 0 : _g.schema) == null ? void 0 : _h.options,
|
|
21134
|
+
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
21135
|
+
columnsFieldNames: {
|
|
21136
|
+
text: (((_j = (_i = props.schema[key]) == null ? void 0 : _i.schema) == null ? void 0 : _j.options) || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[0] : "",
|
|
21137
|
+
value: (((_l = (_k = props.schema[key]) == null ? void 0 : _k.schema) == null ? void 0 : _l.options) || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[1] : ""
|
|
21138
|
+
},
|
|
21139
|
+
onSelect: ($event) => onChangeOption(key)
|
|
21140
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "columnsFieldNames", "onSelect"])) : vue.createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (vue.openBlock(), vue.createBlock(_component_ObjsEditor, {
|
|
21141
|
+
key: 5,
|
|
21142
|
+
modelValue: data2.inputValue[key],
|
|
21143
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21144
|
+
schema: props.schema[key].schema
|
|
21145
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])) : vue.createCommentVNode("", true)];
|
|
21146
|
+
}),
|
|
21147
|
+
_: 2
|
|
21148
|
+
}, 1032, ["label", "required", "disabled"])), [[vue.vShow, props.schema[key].auth != "gone"]]);
|
|
21149
|
+
}), 128)), vue.createElementVNode("div", _hoisted_5, [data2.isShowInput ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
21150
|
+
key: 0,
|
|
21151
|
+
onClick: onInputConfirm,
|
|
21152
|
+
type: "primary",
|
|
21153
|
+
size: "mini"
|
|
21154
|
+
}, {
|
|
21155
|
+
default: vue.withCtx(() => [_hoisted_6]),
|
|
21156
|
+
_: 1
|
|
21157
|
+
})) : vue.createCommentVNode("", true), data2.isShowInput ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
21158
|
+
key: 1,
|
|
21159
|
+
onClick: onInputCancel,
|
|
21160
|
+
type: "primary",
|
|
21161
|
+
size: "mini"
|
|
21162
|
+
}, {
|
|
21163
|
+
default: vue.withCtx(() => [_hoisted_7]),
|
|
21164
|
+
_: 1
|
|
21165
|
+
})) : vue.createCommentVNode("", true)])]),
|
|
21166
|
+
_: 1
|
|
21167
|
+
}, 8, ["model"])) : vue.createCommentVNode("", true)]);
|
|
21168
|
+
};
|
|
21169
|
+
}
|
|
21170
|
+
};
|
|
21171
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39b86a7f"]]);
|
|
20857
21172
|
const secret_notify = () => {
|
|
20858
21173
|
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 });
|
|
20859
21174
|
};
|
|
@@ -20880,7 +21195,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20880
21195
|
},
|
|
20881
21196
|
{
|
|
20882
21197
|
name: "WidgetQwDatetimePicker",
|
|
20883
|
-
widget: _sfc_main$
|
|
21198
|
+
widget: _sfc_main$o
|
|
20884
21199
|
},
|
|
20885
21200
|
{
|
|
20886
21201
|
name: "WidgetQwDataSelector",
|
|
@@ -20932,15 +21247,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20932
21247
|
},
|
|
20933
21248
|
{
|
|
20934
21249
|
name: "WidgetQwYearDropdown",
|
|
20935
|
-
widget: _sfc_main$
|
|
21250
|
+
widget: _sfc_main$a
|
|
20936
21251
|
},
|
|
20937
21252
|
{
|
|
20938
21253
|
name: "WidgetQwMonthDropdown",
|
|
20939
|
-
widget: _sfc_main$
|
|
21254
|
+
widget: _sfc_main$9
|
|
20940
21255
|
},
|
|
20941
21256
|
{
|
|
20942
21257
|
name: "WidgetQwDayDropdown",
|
|
20943
|
-
widget: _sfc_main$
|
|
21258
|
+
widget: _sfc_main$8
|
|
20944
21259
|
},
|
|
20945
21260
|
{
|
|
20946
21261
|
name: "WidgetQwSwitch",
|
|
@@ -20960,11 +21275,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20960
21275
|
},
|
|
20961
21276
|
{
|
|
20962
21277
|
name: "WidgetQwCascaderPicker",
|
|
20963
|
-
widget: _sfc_main$
|
|
21278
|
+
widget: _sfc_main$2
|
|
20964
21279
|
},
|
|
20965
21280
|
{
|
|
20966
21281
|
name: "WidgetQwSingleApiPicker",
|
|
20967
21282
|
widget: SingleApiPicker
|
|
21283
|
+
},
|
|
21284
|
+
{
|
|
21285
|
+
name: "WidgetQwObjsEditor",
|
|
21286
|
+
widget: ObjsEditor
|
|
20968
21287
|
}
|
|
20969
21288
|
];
|
|
20970
21289
|
const WidgetQw = {
|