widget.qw 1.0.69 → 1.0.71
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 +21 -21
- package/build/widget.qw.es.js +68 -65
- package/build/widget.qw.umd.js +68 -65
- package/package.json +1 -1
- package/src/components/BillCard.vue +37 -28
- package/src/components/FilePicker.vue +1 -7
- package/src/components/ObjsEditor.vue +14 -2
- package/src/components/image_picker.vue +5 -10
- package/src/components/images_picker.vue +4 -11
- package/src/env.d.ts +8 -8
- package/src/views/billcard/index.vue +15 -12
- package/src/views/imagespicker/index.vue +2 -2
- package/src/views/objseditor/index.vue +6 -0
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
package/build/style.css
CHANGED
|
@@ -387,18 +387,18 @@
|
|
|
387
387
|
color: #969799;
|
|
388
388
|
margin-right: 5px;
|
|
389
389
|
}
|
|
390
|
-
[data-v-
|
|
390
|
+
[data-v-16be97a4] .label {
|
|
391
391
|
color: #000 !important;
|
|
392
392
|
}
|
|
393
|
-
[data-v-
|
|
393
|
+
[data-v-16be97a4] .van-field__control:disabled {
|
|
394
394
|
color: #000 !important;
|
|
395
395
|
cursor: not-allowed;
|
|
396
396
|
opacity: 1;
|
|
397
397
|
-webkit-text-fill-color: #000;
|
|
398
|
-
}.widget[data-v-
|
|
398
|
+
}.widget[data-v-8fca1c96] {
|
|
399
399
|
text-align: center;
|
|
400
400
|
}
|
|
401
|
-
.widget .btn[data-v-
|
|
401
|
+
.widget .btn[data-v-8fca1c96] {
|
|
402
402
|
position: fixed;
|
|
403
403
|
bottom: 1rem;
|
|
404
404
|
left: 0;
|
|
@@ -412,10 +412,10 @@
|
|
|
412
412
|
text-align: center;
|
|
413
413
|
display: inline-block;
|
|
414
414
|
border-radius: 2px;
|
|
415
|
-
}[data-v-
|
|
415
|
+
}[data-v-7352dfa0] .label {
|
|
416
416
|
color: #000 !important;
|
|
417
417
|
}
|
|
418
|
-
[data-v-
|
|
418
|
+
[data-v-7352dfa0] .van-field__control:disabled {
|
|
419
419
|
color: #000 !important;
|
|
420
420
|
cursor: not-allowed;
|
|
421
421
|
opacity: 1;
|
|
@@ -614,43 +614,43 @@
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
.widget[data-v-
|
|
617
|
+
.widget[data-v-5f12f3e8] {
|
|
618
618
|
background-color: white;
|
|
619
619
|
border-radius: 8px;
|
|
620
620
|
box-shadow: var(--van-dropdown-menu-shadow);
|
|
621
621
|
color: 14px;
|
|
622
622
|
}
|
|
623
|
-
.widget .card-box[data-v-
|
|
623
|
+
.widget .card-box[data-v-5f12f3e8] {
|
|
624
624
|
padding-bottom: 8px;
|
|
625
625
|
}
|
|
626
|
-
.widget .card-box .card-header[data-v-
|
|
626
|
+
.widget .card-box .card-header[data-v-5f12f3e8] {
|
|
627
627
|
display: flex;
|
|
628
628
|
align-items: center;
|
|
629
629
|
justify-content: space-between;
|
|
630
630
|
padding: 15px 10px;
|
|
631
631
|
border-bottom: 1px solid #eee;
|
|
632
632
|
}
|
|
633
|
-
.widget .card-box .card-header .card-sum[data-v-
|
|
633
|
+
.widget .card-box .card-header .card-sum[data-v-5f12f3e8] {
|
|
634
634
|
flex: 1;
|
|
635
635
|
font-size: 14px;
|
|
636
636
|
text-align: left;
|
|
637
637
|
}
|
|
638
|
-
.widget .card-box .card-header .user-state[data-v-
|
|
638
|
+
.widget .card-box .card-header .user-state[data-v-5f12f3e8] {
|
|
639
639
|
margin-right: 1px;
|
|
640
640
|
}
|
|
641
|
-
[data-v-
|
|
641
|
+
[data-v-5f12f3e8] .van-cell__value {
|
|
642
642
|
flex: 2 !important;
|
|
643
643
|
}
|
|
644
|
-
[data-v-
|
|
644
|
+
[data-v-5f12f3e8] .van-cell__title {
|
|
645
645
|
font-size: 12px !important;
|
|
646
646
|
color: #666 !important;
|
|
647
647
|
text-align: left !important;
|
|
648
648
|
}
|
|
649
|
-
[data-v-
|
|
649
|
+
[data-v-5f12f3e8] .van-cell__value {
|
|
650
650
|
font-size: 12px !important;
|
|
651
651
|
color: #888 !important;
|
|
652
652
|
}
|
|
653
|
-
[data-v-
|
|
653
|
+
[data-v-5f12f3e8] .van-cell {
|
|
654
654
|
padding: 2px 10px !important;
|
|
655
655
|
}[data-v-d8d21ade] .label {
|
|
656
656
|
color: #000 !important;
|
|
@@ -840,14 +840,14 @@
|
|
|
840
840
|
}
|
|
841
841
|
.widget .readonly-field[data-v-0c8e09c0] {
|
|
842
842
|
margin: 4px 0;
|
|
843
|
-
}.widget[data-v-
|
|
843
|
+
}.widget[data-v-1fa437e7] {
|
|
844
844
|
background: #fff;
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
height: 100%;
|
|
847
847
|
text-align: left;
|
|
848
848
|
font-size: 12px;
|
|
849
849
|
}
|
|
850
|
-
.option[data-v-
|
|
850
|
+
.option[data-v-1fa437e7] {
|
|
851
851
|
margin: 0 8px 8px 0;
|
|
852
852
|
padding: 5px 10px;
|
|
853
853
|
border-radius: 6px;
|
|
@@ -857,16 +857,16 @@
|
|
|
857
857
|
display: inline-block;
|
|
858
858
|
position: relative;
|
|
859
859
|
}
|
|
860
|
-
[data-v-
|
|
860
|
+
[data-v-1fa437e7] .van-field__label {
|
|
861
861
|
margin: auto;
|
|
862
862
|
}
|
|
863
|
-
[data-v-
|
|
863
|
+
[data-v-1fa437e7] .van-cell {
|
|
864
864
|
font-size: 12px;
|
|
865
865
|
padding: 5px 5px;
|
|
866
866
|
}
|
|
867
|
-
[data-v-
|
|
867
|
+
[data-v-1fa437e7] .van-icon {
|
|
868
868
|
font-size: 12px;
|
|
869
869
|
}
|
|
870
|
-
[data-v-
|
|
870
|
+
[data-v-1fa437e7] .van-popup .van-cell {
|
|
871
871
|
padding: 5px 25px;
|
|
872
872
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -17586,10 +17586,10 @@ const _hoisted_5$7 = {
|
|
|
17586
17586
|
};
|
|
17587
17587
|
const _hoisted_6$6 = /* @__PURE__ */ createTextVNode(" \u53D6\u6D88 ");
|
|
17588
17588
|
const _hoisted_7$6 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
17589
|
-
const _hoisted_8$
|
|
17589
|
+
const _hoisted_8$5 = {
|
|
17590
17590
|
class: "scroll-container"
|
|
17591
17591
|
};
|
|
17592
|
-
const _hoisted_9$
|
|
17592
|
+
const _hoisted_9$3 = {
|
|
17593
17593
|
class: "cell-content"
|
|
17594
17594
|
};
|
|
17595
17595
|
const _hoisted_10$2 = ["onClick"];
|
|
@@ -17891,7 +17891,7 @@ const _sfc_main$l = {
|
|
|
17891
17891
|
clearable: "",
|
|
17892
17892
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0\u641C\u7D22",
|
|
17893
17893
|
class: "search-field"
|
|
17894
|
-
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
17894
|
+
}, null, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$5, [createVNode(_component_van_cell_group, null, {
|
|
17895
17895
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredDepartments), (item, index) => {
|
|
17896
17896
|
return openBlock(), createBlock(_component_van_cell, {
|
|
17897
17897
|
key: index,
|
|
@@ -17900,7 +17900,7 @@ const _sfc_main$l = {
|
|
|
17900
17900
|
}, {
|
|
17901
17901
|
title: withCtx(() => {
|
|
17902
17902
|
var _a, _b;
|
|
17903
|
-
return [createElementVNode("div", _hoisted_9$
|
|
17903
|
+
return [createElementVNode("div", _hoisted_9$3, [createElementVNode("div", {
|
|
17904
17904
|
class: normalizeClass(["circle-selector", {
|
|
17905
17905
|
"selected": ((_a = tempSelectedDepartment.value) == null ? void 0 : _a.id) === item.id
|
|
17906
17906
|
}]),
|
|
@@ -17948,8 +17948,8 @@ const _hoisted_6$5 = {
|
|
|
17948
17948
|
class: "header-right"
|
|
17949
17949
|
};
|
|
17950
17950
|
const _hoisted_7$5 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
17951
|
-
const _hoisted_8$
|
|
17952
|
-
const _hoisted_9$
|
|
17951
|
+
const _hoisted_8$4 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
17952
|
+
const _hoisted_9$2 = {
|
|
17953
17953
|
key: 0,
|
|
17954
17954
|
class: "select-all-container"
|
|
17955
17955
|
};
|
|
@@ -18350,9 +18350,9 @@ const _sfc_main$k = {
|
|
|
18350
18350
|
onClick: confirmSelection,
|
|
18351
18351
|
class: "confirm-btn"
|
|
18352
18352
|
}, {
|
|
18353
|
-
default: withCtx(() => [_hoisted_8$
|
|
18353
|
+
default: withCtx(() => [_hoisted_8$4]),
|
|
18354
18354
|
_: 1
|
|
18355
|
-
})])]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
18355
|
+
})])]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [createVNode(_component_van_checkbox, {
|
|
18356
18356
|
shape: "square",
|
|
18357
18357
|
modelValue: isAllChecked.value,
|
|
18358
18358
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
@@ -18456,7 +18456,7 @@ const _sfc_main$k = {
|
|
|
18456
18456
|
}
|
|
18457
18457
|
};
|
|
18458
18458
|
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18459
|
-
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18459
|
+
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-16be97a4] .label {\n color: #000 !important;\n}\n[data-v-16be97a4] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18460
18460
|
const _hoisted_1$d = {
|
|
18461
18461
|
class: "image-box"
|
|
18462
18462
|
};
|
|
@@ -18533,10 +18533,6 @@ const _sfc_main$j = {
|
|
|
18533
18533
|
modelValue.value = "";
|
|
18534
18534
|
return Promise.resolve(e);
|
|
18535
18535
|
};
|
|
18536
|
-
const onPreview = (e) => {
|
|
18537
|
-
console.log("onPreview", e);
|
|
18538
|
-
window.open(e.url, "_blank");
|
|
18539
|
-
};
|
|
18540
18536
|
watch(() => props.modelValue, (newVal, oldVal) => {
|
|
18541
18537
|
if (!props.modelValue) {
|
|
18542
18538
|
files.value = [];
|
|
@@ -18569,10 +18565,10 @@ const _sfc_main$j = {
|
|
|
18569
18565
|
accept: "image/jpeg,image/png",
|
|
18570
18566
|
afterRead: onAfterRead,
|
|
18571
18567
|
disabled: unref(isDisabled),
|
|
18572
|
-
deletable: !unref(isDisabled),
|
|
18568
|
+
deletable: !unref(isReadonly) && !unref(isDisabled),
|
|
18573
18569
|
"before-delete": onBeforeDelete,
|
|
18574
|
-
|
|
18575
|
-
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18570
|
+
"show-upload": !unref(isReadonly)
|
|
18571
|
+
}, null, 8, ["modelValue", "capture", "disabled", "deletable", "show-upload"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18576
18572
|
key: 1,
|
|
18577
18573
|
modelValue: files.value,
|
|
18578
18574
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
@@ -18580,17 +18576,17 @@ const _sfc_main$j = {
|
|
|
18580
18576
|
accept: "image/jpeg,image/png",
|
|
18581
18577
|
afterRead: onAfterRead,
|
|
18582
18578
|
disabled: unref(isDisabled),
|
|
18583
|
-
deletable: !unref(isDisabled),
|
|
18579
|
+
deletable: !unref(isReadonly) && !unref(isDisabled),
|
|
18584
18580
|
"before-delete": onBeforeDelete,
|
|
18585
|
-
|
|
18586
|
-
}, null, 8, ["modelValue", "disabled", "deletable"]))])]),
|
|
18581
|
+
"show-upload": !unref(isReadonly)
|
|
18582
|
+
}, null, 8, ["modelValue", "disabled", "deletable", "show-upload"]))])]),
|
|
18587
18583
|
_: 1
|
|
18588
18584
|
}, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
|
|
18589
18585
|
};
|
|
18590
18586
|
}
|
|
18591
18587
|
};
|
|
18592
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
18593
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
18588
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-16be97a4"]]);
|
|
18589
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-8fca1c96] {\n text-align: center;\n}\n.widget .btn[data-v-8fca1c96] {\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}")();
|
|
18594
18590
|
const _hoisted_1$c = {
|
|
18595
18591
|
class: "image-box"
|
|
18596
18592
|
};
|
|
@@ -18679,10 +18675,6 @@ const _sfc_main$i = {
|
|
|
18679
18675
|
emit("update:modelValue", newUrls);
|
|
18680
18676
|
return Promise.resolve(e);
|
|
18681
18677
|
};
|
|
18682
|
-
const onPreview = (e) => {
|
|
18683
|
-
console.log("onPreview", e);
|
|
18684
|
-
window.open(e.url, "_blank");
|
|
18685
|
-
};
|
|
18686
18678
|
watch(() => props.modelValue, (newVal, oldVal) => {
|
|
18687
18679
|
if (!props.modelValue || props.modelValue.length < 1) {
|
|
18688
18680
|
files.value = [];
|
|
@@ -18716,29 +18708,29 @@ const _sfc_main$i = {
|
|
|
18716
18708
|
capture: props.capture,
|
|
18717
18709
|
accept: "image/jpeg,image/png",
|
|
18718
18710
|
disabled: unref(isDisabled),
|
|
18719
|
-
deletable: !unref(isDisabled),
|
|
18711
|
+
deletable: !unref(isRequired) && !unref(isDisabled),
|
|
18720
18712
|
afterRead: onAfterRead,
|
|
18721
18713
|
"before-delete": onBeforeDelete,
|
|
18722
|
-
|
|
18723
|
-
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18714
|
+
"show-upload": !unref(isReadonly)
|
|
18715
|
+
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable", "show-upload"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18724
18716
|
key: 1,
|
|
18725
18717
|
modelValue: files.value,
|
|
18726
18718
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
18727
18719
|
"max-count": props.max,
|
|
18728
18720
|
accept: "image/jpeg,image/png",
|
|
18729
18721
|
disabled: unref(isDisabled),
|
|
18730
|
-
deletable: !unref(isDisabled),
|
|
18722
|
+
deletable: !unref(isReadonly) && !unref(isDisabled),
|
|
18731
18723
|
afterRead: onAfterRead,
|
|
18732
18724
|
"before-delete": onBeforeDelete,
|
|
18733
|
-
|
|
18734
|
-
}, null, 8, ["modelValue", "max-count", "disabled", "deletable"]))])]),
|
|
18725
|
+
"show-upload": !unref(isReadonly)
|
|
18726
|
+
}, null, 8, ["modelValue", "max-count", "disabled", "deletable", "show-upload"]))])]),
|
|
18735
18727
|
_: 1
|
|
18736
18728
|
}, 8, ["label", "required", "rules", "placeholder"]);
|
|
18737
18729
|
};
|
|
18738
18730
|
}
|
|
18739
18731
|
};
|
|
18740
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18741
|
-
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18732
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-8fca1c96"]]);
|
|
18733
|
+
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-7352dfa0] .label {\n color: #000 !important;\n}\n[data-v-7352dfa0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18742
18734
|
const _hoisted_1$b = {
|
|
18743
18735
|
class: "image-box"
|
|
18744
18736
|
};
|
|
@@ -18807,10 +18799,6 @@ const _sfc_main$h = {
|
|
|
18807
18799
|
modelValue.value = "";
|
|
18808
18800
|
return Promise.resolve(e);
|
|
18809
18801
|
};
|
|
18810
|
-
const onPreview = (e) => {
|
|
18811
|
-
console.log("onPreview", e);
|
|
18812
|
-
window.open(e.url, "_blank");
|
|
18813
|
-
};
|
|
18814
18802
|
watch(() => props.modelValue, (newVal, oldVal) => {
|
|
18815
18803
|
if (!props.modelValue) {
|
|
18816
18804
|
files.value = [];
|
|
@@ -18843,15 +18831,14 @@ const _sfc_main$h = {
|
|
|
18843
18831
|
accept: props.accept,
|
|
18844
18832
|
"upload-icon": "plus",
|
|
18845
18833
|
deletable: !unref(isDisabled),
|
|
18846
|
-
"before-delete": onBeforeDelete
|
|
18847
|
-
onClickPreview: onPreview
|
|
18834
|
+
"before-delete": onBeforeDelete
|
|
18848
18835
|
}, null, 8, ["modelValue", "disabled", "accept", "deletable"])])]),
|
|
18849
18836
|
_: 1
|
|
18850
18837
|
}, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
|
|
18851
18838
|
};
|
|
18852
18839
|
}
|
|
18853
18840
|
};
|
|
18854
|
-
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18841
|
+
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-7352dfa0"]]);
|
|
18855
18842
|
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")();
|
|
18856
18843
|
const _hoisted_1$a = {
|
|
18857
18844
|
class: "department-selector"
|
|
@@ -18870,7 +18857,7 @@ const _hoisted_5$5 = {
|
|
|
18870
18857
|
};
|
|
18871
18858
|
const _hoisted_6$4 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
|
|
18872
18859
|
const _hoisted_7$4 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
18873
|
-
const _hoisted_8$
|
|
18860
|
+
const _hoisted_8$3 = {
|
|
18874
18861
|
class: "scroll-container"
|
|
18875
18862
|
};
|
|
18876
18863
|
const _sfc_main$g = {
|
|
@@ -19172,7 +19159,7 @@ const _sfc_main$g = {
|
|
|
19172
19159
|
onClick: handleSearch
|
|
19173
19160
|
}, "\u641C\u7D22")]),
|
|
19174
19161
|
_: 1
|
|
19175
|
-
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$
|
|
19162
|
+
}, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$3, [createVNode(_component_van_cell_group, null, {
|
|
19176
19163
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(departments), (department) => {
|
|
19177
19164
|
return openBlock(), createBlock(_component_van_cell, {
|
|
19178
19165
|
key: department.id,
|
|
@@ -19226,7 +19213,7 @@ const _hoisted_5$4 = {
|
|
|
19226
19213
|
};
|
|
19227
19214
|
const _hoisted_6$3 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
19228
19215
|
const _hoisted_7$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
19229
|
-
const _hoisted_8$
|
|
19216
|
+
const _hoisted_8$2 = {
|
|
19230
19217
|
class: "scroll-container"
|
|
19231
19218
|
};
|
|
19232
19219
|
const _sfc_main$f = {
|
|
@@ -19444,7 +19431,7 @@ const _sfc_main$f = {
|
|
|
19444
19431
|
onClick: onSearch
|
|
19445
19432
|
}, "\u641C\u7D22")]),
|
|
19446
19433
|
_: 1
|
|
19447
|
-
}, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$
|
|
19434
|
+
}, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
|
|
19448
19435
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(subDepts), (dept) => {
|
|
19449
19436
|
return openBlock(), createBlock(_component_van_cell, {
|
|
19450
19437
|
key: dept.id,
|
|
@@ -19803,7 +19790,7 @@ const _sfc_main$c = {
|
|
|
19803
19790
|
}
|
|
19804
19791
|
};
|
|
19805
19792
|
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-107e26c3"]]);
|
|
19806
|
-
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
19793
|
+
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-5f12f3e8] {\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-5f12f3e8] {\n padding-bottom: 8px;\n}\n.widget .card-box .card-header[data-v-5f12f3e8] {\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-5f12f3e8] {\n flex: 1;\n font-size: 14px;\n text-align: left;\n}\n.widget .card-box .card-header .user-state[data-v-5f12f3e8] {\n margin-right: 1px;\n}\n[data-v-5f12f3e8] .van-cell__value {\n flex: 2 !important;\n}\n[data-v-5f12f3e8] .van-cell__title {\n font-size: 12px !important;\n color: #666 !important;\n text-align: left !important;\n}\n[data-v-5f12f3e8] .van-cell__value {\n font-size: 12px !important;\n color: #888 !important;\n}\n[data-v-5f12f3e8] .van-cell {\n padding: 2px 10px !important;\n}")();
|
|
19807
19794
|
const _hoisted_1$6 = {
|
|
19808
19795
|
class: "widget"
|
|
19809
19796
|
};
|
|
@@ -19927,13 +19914,13 @@ const _sfc_main$b = {
|
|
|
19927
19914
|
border: false,
|
|
19928
19915
|
key: i
|
|
19929
19916
|
}, null, 8, ["title", "value"]);
|
|
19930
|
-
}), 128))]),
|
|
19931
|
-
_:
|
|
19917
|
+
}), 128)), renderSlot(_ctx.$slots, "foot", {}, void 0, true)]),
|
|
19918
|
+
_: 3
|
|
19932
19919
|
})]);
|
|
19933
19920
|
};
|
|
19934
19921
|
}
|
|
19935
19922
|
};
|
|
19936
|
-
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
19923
|
+
var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-5f12f3e8"]]);
|
|
19937
19924
|
const _sfc_main$a = {
|
|
19938
19925
|
__name: "YearDropdown",
|
|
19939
19926
|
props: {
|
|
@@ -20466,10 +20453,10 @@ const _hoisted_5$1 = {
|
|
|
20466
20453
|
};
|
|
20467
20454
|
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
20468
20455
|
const _hoisted_7$1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
20469
|
-
const _hoisted_8 = {
|
|
20456
|
+
const _hoisted_8$1 = {
|
|
20470
20457
|
class: "scroll-container"
|
|
20471
20458
|
};
|
|
20472
|
-
const _hoisted_9 = {
|
|
20459
|
+
const _hoisted_9$1 = {
|
|
20473
20460
|
class: "cell-content"
|
|
20474
20461
|
};
|
|
20475
20462
|
const _hoisted_10 = ["onClick"];
|
|
@@ -20684,12 +20671,12 @@ const _sfc_main$3 = {
|
|
|
20684
20671
|
onClick: onSearch
|
|
20685
20672
|
}, "\u641C\u7D22")]),
|
|
20686
20673
|
_: 1
|
|
20687
|
-
}, 8, ["modelValue", "placeholder"]), createElementVNode("div", _hoisted_8, [createVNode(_component_van_cell_group, null, {
|
|
20674
|
+
}, 8, ["modelValue", "placeholder"]), createElementVNode("div", _hoisted_8$1, [createVNode(_component_van_cell_group, null, {
|
|
20688
20675
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionNodes), (item, i) => {
|
|
20689
20676
|
return openBlock(), createBlock(_component_van_cell, {
|
|
20690
20677
|
key: i
|
|
20691
20678
|
}, createSlots({
|
|
20692
|
-
title: withCtx(() => [createElementVNode("div", _hoisted_9, [item.canCheck ? (openBlock(), createElementBlock("div", {
|
|
20679
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_9$1, [item.canCheck ? (openBlock(), createElementBlock("div", {
|
|
20693
20680
|
key: 0,
|
|
20694
20681
|
class: "circle-selector",
|
|
20695
20682
|
onClick: withModifiers(($event) => onToggle(item), ["stop"])
|
|
@@ -20997,7 +20984,7 @@ const _sfc_main$1 = {
|
|
|
20997
20984
|
}
|
|
20998
20985
|
};
|
|
20999
20986
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
21000
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
20987
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1fa437e7] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-1fa437e7] {\n margin: 0 8px 8px 0;\n padding: 5px 10px;\n border-radius: 6px;\n border: 2px solid #e1e1e1;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n color: #666;\n display: inline-block;\n position: relative;\n}\n[data-v-1fa437e7] .van-field__label {\n margin: auto;\n}\n[data-v-1fa437e7] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-1fa437e7] .van-icon {\n font-size: 12px;\n}\n[data-v-1fa437e7] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
21001
20988
|
const _hoisted_1 = {
|
|
21002
20989
|
class: "widget-box"
|
|
21003
20990
|
};
|
|
@@ -21014,13 +21001,19 @@ const _hoisted_3 = {
|
|
|
21014
21001
|
}
|
|
21015
21002
|
};
|
|
21016
21003
|
const _hoisted_4 = {
|
|
21004
|
+
key: 0
|
|
21005
|
+
};
|
|
21006
|
+
const _hoisted_5 = {
|
|
21007
|
+
key: 1
|
|
21008
|
+
};
|
|
21009
|
+
const _hoisted_6 = {
|
|
21017
21010
|
style: {
|
|
21018
21011
|
"display": "flex",
|
|
21019
21012
|
"flex-direction": "column",
|
|
21020
21013
|
"cursor": "pointer"
|
|
21021
21014
|
}
|
|
21022
21015
|
};
|
|
21023
|
-
const
|
|
21016
|
+
const _hoisted_7 = {
|
|
21024
21017
|
style: {
|
|
21025
21018
|
"margin": "16px",
|
|
21026
21019
|
"display": "flex",
|
|
@@ -21028,8 +21021,8 @@ const _hoisted_5 = {
|
|
|
21028
21021
|
"justify-content": "center"
|
|
21029
21022
|
}
|
|
21030
21023
|
};
|
|
21031
|
-
const
|
|
21032
|
-
const
|
|
21024
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
21025
|
+
const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
21033
21026
|
const _sfc_main = {
|
|
21034
21027
|
__name: "ObjsEditor",
|
|
21035
21028
|
props: {
|
|
@@ -21124,7 +21117,9 @@ const _sfc_main = {
|
|
|
21124
21117
|
var _a, _b, _c, _d;
|
|
21125
21118
|
console.log("key2value", key, item[key], item);
|
|
21126
21119
|
let v = item[key];
|
|
21127
|
-
if (
|
|
21120
|
+
if (props.schema[key].type === "Images") {
|
|
21121
|
+
return (v || []).join(",");
|
|
21122
|
+
} else if (Array.isArray(v)) {
|
|
21128
21123
|
let formatValues = v.map((e) => {
|
|
21129
21124
|
let kvs = Object.keys(e).map((k) => {
|
|
21130
21125
|
var _a2, _b2, _c2, _d2;
|
|
@@ -21231,8 +21226,12 @@ const _sfc_main = {
|
|
|
21231
21226
|
"padding": "2px 2px",
|
|
21232
21227
|
"font-size": "12px"
|
|
21233
21228
|
}
|
|
21234
|
-
}, toDisplayString(`${key2name(k)}:${key2value(k, item)}`), 1)
|
|
21235
|
-
|
|
21229
|
+
}, [props.schema[k].type != "Images" ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(`${key2name(k)}:${key2value(k, item)}`), 1)) : (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(ImagesPicker, {
|
|
21230
|
+
modelValue: item[k],
|
|
21231
|
+
"onUpdate:modelValue": ($event) => item[k] = $event,
|
|
21232
|
+
readonly: ""
|
|
21233
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]))]);
|
|
21234
|
+
}), 128))]), createElementVNode("div", _hoisted_6, [props.schema.auth != "readonly" && props.auth != "readonly" && props.auth != "disabled" ? (openBlock(), createBlock(_component_van_icon, {
|
|
21236
21235
|
key: 0,
|
|
21237
21236
|
name: "edit",
|
|
21238
21237
|
onClick: withModifiers(($event) => onEdit(index), ["stop"])
|
|
@@ -21283,9 +21282,13 @@ const _sfc_main = {
|
|
|
21283
21282
|
modelValue: data2.inputValue[key],
|
|
21284
21283
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21285
21284
|
placeholder: "\u9009\u62E9\u65F6\u95F4"
|
|
21286
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true),
|
|
21285
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Images" ? (openBlock(), createBlock(ImagesPicker, {
|
|
21287
21286
|
key: 4,
|
|
21288
21287
|
modelValue: data2.inputValue[key],
|
|
21288
|
+
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
|
|
21289
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (openBlock(), createBlock(DataSelector, {
|
|
21290
|
+
key: 5,
|
|
21291
|
+
modelValue: data2.inputValue[key],
|
|
21289
21292
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21290
21293
|
options: (_h = (_g = props.schema[key]) == null ? void 0 : _g.schema) == null ? void 0 : _h.options,
|
|
21291
21294
|
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
@@ -21295,7 +21298,7 @@ const _sfc_main = {
|
|
|
21295
21298
|
},
|
|
21296
21299
|
onSelect: ($event) => onChangeOption(key)
|
|
21297
21300
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "columnsFieldNames", "onSelect"])) : createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (openBlock(), createBlock(_component_ObjsEditor, {
|
|
21298
|
-
key:
|
|
21301
|
+
key: 6,
|
|
21299
21302
|
modelValue: data2.inputValue[key],
|
|
21300
21303
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
21301
21304
|
schema: props.schema[key].schema
|
|
@@ -21303,19 +21306,19 @@ const _sfc_main = {
|
|
|
21303
21306
|
}),
|
|
21304
21307
|
_: 2
|
|
21305
21308
|
}, 1032, ["label", "required", "disabled"])), [[vShow, props.schema[key].auth != "gone"]]);
|
|
21306
|
-
}), 128)), createElementVNode("div",
|
|
21309
|
+
}), 128)), createElementVNode("div", _hoisted_7, [data2.isShowInput ? (openBlock(), createBlock(_component_van_button, {
|
|
21307
21310
|
key: 0,
|
|
21308
21311
|
onClick: onInputConfirm,
|
|
21309
21312
|
size: "mini"
|
|
21310
21313
|
}, {
|
|
21311
|
-
default: withCtx(() => [
|
|
21314
|
+
default: withCtx(() => [_hoisted_8]),
|
|
21312
21315
|
_: 1
|
|
21313
21316
|
})) : createCommentVNode("", true), data2.isShowInput ? (openBlock(), createBlock(_component_van_button, {
|
|
21314
21317
|
key: 1,
|
|
21315
21318
|
onClick: onInputCancel,
|
|
21316
21319
|
size: "mini"
|
|
21317
21320
|
}, {
|
|
21318
|
-
default: withCtx(() => [
|
|
21321
|
+
default: withCtx(() => [_hoisted_9]),
|
|
21319
21322
|
_: 1
|
|
21320
21323
|
})) : createCommentVNode("", true)])]),
|
|
21321
21324
|
_: 1
|
|
@@ -21330,7 +21333,7 @@ const _sfc_main = {
|
|
|
21330
21333
|
};
|
|
21331
21334
|
}
|
|
21332
21335
|
};
|
|
21333
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21336
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1fa437e7"]]);
|
|
21334
21337
|
const secret_notify = () => {
|
|
21335
21338
|
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 });
|
|
21336
21339
|
};
|