widget.qw 1.0.70 → 1.0.72

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 CHANGED
@@ -387,18 +387,18 @@
387
387
  color: #969799;
388
388
  margin-right: 5px;
389
389
  }
390
- [data-v-b587c824] .label {
390
+ [data-v-16be97a4] .label {
391
391
  color: #000 !important;
392
392
  }
393
- [data-v-b587c824] .van-field__control:disabled {
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-1b4c046a] {
398
+ }.widget[data-v-8fca1c96] {
399
399
  text-align: center;
400
400
  }
401
- .widget .btn[data-v-1b4c046a] {
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-7352dfa0] .label {
415
+ }[data-v-0c20dca4] .label {
416
416
  color: #000 !important;
417
417
  }
418
- [data-v-7352dfa0] .van-field__control:disabled {
418
+ [data-v-0c20dca4] .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-68bdd6bc] {
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-68bdd6bc] {
623
+ .widget .card-box[data-v-5f12f3e8] {
624
624
  padding-bottom: 8px;
625
625
  }
626
- .widget .card-box .card-header[data-v-68bdd6bc] {
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-68bdd6bc] {
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-68bdd6bc] {
638
+ .widget .card-box .card-header .user-state[data-v-5f12f3e8] {
639
639
  margin-right: 1px;
640
640
  }
641
- [data-v-68bdd6bc] .van-cell__value {
641
+ [data-v-5f12f3e8] .van-cell__value {
642
642
  flex: 2 !important;
643
643
  }
644
- [data-v-68bdd6bc] .van-cell__title {
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-68bdd6bc] .van-cell__value {
649
+ [data-v-5f12f3e8] .van-cell__value {
650
650
  font-size: 12px !important;
651
651
  color: #888 !important;
652
652
  }
653
- [data-v-68bdd6bc] .van-cell {
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-7359377c] {
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-7359377c] {
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-7359377c] .van-field__label {
860
+ [data-v-1fa437e7] .van-field__label {
861
861
  margin: auto;
862
862
  }
863
- [data-v-7359377c] .van-cell {
863
+ [data-v-1fa437e7] .van-cell {
864
864
  font-size: 12px;
865
865
  padding: 5px 5px;
866
866
  }
867
- [data-v-7359377c] .van-icon {
867
+ [data-v-1fa437e7] .van-icon {
868
868
  font-size: 12px;
869
869
  }
870
- [data-v-7359377c] .van-popup .van-cell {
870
+ [data-v-1fa437e7] .van-popup .van-cell {
871
871
  padding: 5px 25px;
872
872
  }
@@ -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$4 = {
17589
+ const _hoisted_8$5 = {
17590
17590
  class: "scroll-container"
17591
17591
  };
17592
- const _hoisted_9$2 = {
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$4, [createVNode(_component_van_cell_group, null, {
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$2, [createElementVNode("div", {
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$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
17952
- const _hoisted_9$1 = {
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$3]),
18353
+ default: withCtx(() => [_hoisted_8$4]),
18354
18354
  _: 1
18355
- })])]), __props.mode === "multiple" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [createVNode(_component_van_checkbox, {
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-b587c824] .label {\n color: #000 !important;\n}\n[data-v-b587c824] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
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
  };
@@ -18565,9 +18565,10 @@ const _sfc_main$j = {
18565
18565
  accept: "image/jpeg,image/png",
18566
18566
  afterRead: onAfterRead,
18567
18567
  disabled: unref(isDisabled),
18568
- deletable: !unref(isDisabled),
18569
- "before-delete": onBeforeDelete
18570
- }, null, 8, ["modelValue", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
18568
+ deletable: !unref(isReadonly) && !unref(isDisabled),
18569
+ "before-delete": onBeforeDelete,
18570
+ "show-upload": !unref(isReadonly)
18571
+ }, null, 8, ["modelValue", "capture", "disabled", "deletable", "show-upload"])) : (openBlock(), createBlock(_component_van_uploader, {
18571
18572
  key: 1,
18572
18573
  modelValue: files.value,
18573
18574
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
@@ -18575,16 +18576,17 @@ const _sfc_main$j = {
18575
18576
  accept: "image/jpeg,image/png",
18576
18577
  afterRead: onAfterRead,
18577
18578
  disabled: unref(isDisabled),
18578
- deletable: !unref(isDisabled),
18579
- "before-delete": onBeforeDelete
18580
- }, null, 8, ["modelValue", "disabled", "deletable"]))])]),
18579
+ deletable: !unref(isReadonly) && !unref(isDisabled),
18580
+ "before-delete": onBeforeDelete,
18581
+ "show-upload": !unref(isReadonly)
18582
+ }, null, 8, ["modelValue", "disabled", "deletable", "show-upload"]))])]),
18581
18583
  _: 1
18582
18584
  }, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
18583
18585
  };
18584
18586
  }
18585
18587
  };
18586
- var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-b587c824"]]);
18587
- 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}")();
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}")();
18588
18590
  const _hoisted_1$c = {
18589
18591
  class: "image-box"
18590
18592
  };
@@ -18706,41 +18708,47 @@ const _sfc_main$i = {
18706
18708
  capture: props.capture,
18707
18709
  accept: "image/jpeg,image/png",
18708
18710
  disabled: unref(isDisabled),
18709
- deletable: !unref(isDisabled),
18711
+ deletable: !unref(isRequired) && !unref(isDisabled),
18710
18712
  afterRead: onAfterRead,
18711
- "before-delete": onBeforeDelete
18712
- }, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
18713
+ "before-delete": onBeforeDelete,
18714
+ "show-upload": !unref(isReadonly)
18715
+ }, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable", "show-upload"])) : (openBlock(), createBlock(_component_van_uploader, {
18713
18716
  key: 1,
18714
18717
  modelValue: files.value,
18715
18718
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
18716
18719
  "max-count": props.max,
18717
18720
  accept: "image/jpeg,image/png",
18718
18721
  disabled: unref(isDisabled),
18719
- deletable: !unref(isDisabled),
18722
+ deletable: !unref(isReadonly) && !unref(isDisabled),
18720
18723
  afterRead: onAfterRead,
18721
- "before-delete": onBeforeDelete
18722
- }, null, 8, ["modelValue", "max-count", "disabled", "deletable"]))])]),
18724
+ "before-delete": onBeforeDelete,
18725
+ "show-upload": !unref(isReadonly)
18726
+ }, null, 8, ["modelValue", "max-count", "disabled", "deletable", "show-upload"]))])]),
18723
18727
  _: 1
18724
18728
  }, 8, ["label", "required", "rules", "placeholder"]);
18725
18729
  };
18726
18730
  }
18727
18731
  };
18728
- var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1b4c046a"]]);
18729
- 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}")();
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-0c20dca4] .label {\n color: #000 !important;\n}\n[data-v-0c20dca4] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
18730
18734
  const _hoisted_1$b = {
18731
- class: "image-box"
18735
+ class: "file-box"
18732
18736
  };
18733
18737
  const _sfc_main$h = {
18734
18738
  __name: "FilePicker",
18735
18739
  props: {
18736
18740
  modelValue: {
18737
- type: String,
18738
- default: ""
18741
+ type: [String, Array],
18742
+ default: null
18739
18743
  },
18740
18744
  label: {
18741
18745
  type: String,
18742
18746
  default: ""
18743
18747
  },
18748
+ multiple: {
18749
+ type: Boolean,
18750
+ default: false
18751
+ },
18744
18752
  required: {
18745
18753
  type: Boolean,
18746
18754
  default: false
@@ -18787,22 +18795,44 @@ const _sfc_main$h = {
18787
18795
  file: file.file
18788
18796
  };
18789
18797
  return util.file_upload(params).then((res) => {
18790
- modelValue.value = res.data;
18798
+ if (props.multiple)
18799
+ modelValue.value = [...modelValue.value || [], res.data];
18800
+ else
18801
+ modelValue.value = res.data;
18791
18802
  return Promise.resolve(file);
18792
18803
  });
18793
18804
  });
18794
18805
  const onBeforeDelete = (e) => {
18795
- modelValue.value = "";
18806
+ if (props.multiple) {
18807
+ let newUrls = props.modelValue.filter((item) => {
18808
+ return item != e.url;
18809
+ });
18810
+ emit("update:modelValue", newUrls);
18811
+ } else {
18812
+ modelValue.value = "";
18813
+ }
18796
18814
  return Promise.resolve(e);
18797
18815
  };
18798
18816
  watch(() => props.modelValue, (newVal, oldVal) => {
18799
- if (!props.modelValue) {
18800
- files.value = [];
18801
- return;
18817
+ if (props.multiple) {
18818
+ if (!props.modelValue || props.modelValue.length < 1) {
18819
+ files.value = [];
18820
+ return;
18821
+ }
18822
+ files.value = props.modelValue.map((item) => {
18823
+ return {
18824
+ url: item
18825
+ };
18826
+ });
18827
+ } else {
18828
+ if (!props.modelValue) {
18829
+ files.value = [];
18830
+ return;
18831
+ }
18832
+ files.value = [{
18833
+ url: props.modelValue
18834
+ }];
18802
18835
  }
18803
- files.value = [{
18804
- url: props.modelValue
18805
- }];
18806
18836
  }, {
18807
18837
  immediate: true
18808
18838
  });
@@ -18821,20 +18851,20 @@ const _sfc_main$h = {
18821
18851
  input: withCtx(() => [createElementVNode("div", _hoisted_1$b, [createVNode(_component_van_uploader, {
18822
18852
  modelValue: files.value,
18823
18853
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
18824
- "max-count": 1,
18854
+ "max-count": props.max,
18825
18855
  afterRead: onAfterRead,
18826
18856
  disabled: unref(isDisabled),
18827
18857
  accept: props.accept,
18828
18858
  "upload-icon": "plus",
18829
18859
  deletable: !unref(isDisabled),
18830
18860
  "before-delete": onBeforeDelete
18831
- }, null, 8, ["modelValue", "disabled", "accept", "deletable"])])]),
18861
+ }, null, 8, ["modelValue", "max-count", "disabled", "accept", "deletable"])])]),
18832
18862
  _: 1
18833
18863
  }, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
18834
18864
  };
18835
18865
  }
18836
18866
  };
18837
- var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-7352dfa0"]]);
18867
+ var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0c20dca4"]]);
18838
18868
  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")();
18839
18869
  const _hoisted_1$a = {
18840
18870
  class: "department-selector"
@@ -18853,7 +18883,7 @@ const _hoisted_5$5 = {
18853
18883
  };
18854
18884
  const _hoisted_6$4 = /* @__PURE__ */ createTextVNode("\u6E05\u7A7A");
18855
18885
  const _hoisted_7$4 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
18856
- const _hoisted_8$2 = {
18886
+ const _hoisted_8$3 = {
18857
18887
  class: "scroll-container"
18858
18888
  };
18859
18889
  const _sfc_main$g = {
@@ -19155,7 +19185,7 @@ const _sfc_main$g = {
19155
19185
  onClick: handleSearch
19156
19186
  }, "\u641C\u7D22")]),
19157
19187
  _: 1
19158
- }, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
19188
+ }, 8, ["modelValue"]), createElementVNode("div", _hoisted_8$3, [createVNode(_component_van_cell_group, null, {
19159
19189
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(departments), (department) => {
19160
19190
  return openBlock(), createBlock(_component_van_cell, {
19161
19191
  key: department.id,
@@ -19209,7 +19239,7 @@ const _hoisted_5$4 = {
19209
19239
  };
19210
19240
  const _hoisted_6$3 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
19211
19241
  const _hoisted_7$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
19212
- const _hoisted_8$1 = {
19242
+ const _hoisted_8$2 = {
19213
19243
  class: "scroll-container"
19214
19244
  };
19215
19245
  const _sfc_main$f = {
@@ -19427,7 +19457,7 @@ const _sfc_main$f = {
19427
19457
  onClick: onSearch
19428
19458
  }, "\u641C\u7D22")]),
19429
19459
  _: 1
19430
- }, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$1, [createVNode(_component_van_cell_group, null, {
19460
+ }, 8, ["modelValue", "onClear", "onCancel"]), createElementVNode("div", _hoisted_8$2, [createVNode(_component_van_cell_group, null, {
19431
19461
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(subDepts), (dept) => {
19432
19462
  return openBlock(), createBlock(_component_van_cell, {
19433
19463
  key: dept.id,
@@ -19786,7 +19816,7 @@ const _sfc_main$c = {
19786
19816
  }
19787
19817
  };
19788
19818
  var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-107e26c3"]]);
19789
- 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}")();
19819
+ 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}")();
19790
19820
  const _hoisted_1$6 = {
19791
19821
  class: "widget"
19792
19822
  };
@@ -19910,13 +19940,13 @@ const _sfc_main$b = {
19910
19940
  border: false,
19911
19941
  key: i
19912
19942
  }, null, 8, ["title", "value"]);
19913
- }), 128))]),
19914
- _: 1
19943
+ }), 128)), renderSlot(_ctx.$slots, "foot", {}, void 0, true)]),
19944
+ _: 3
19915
19945
  })]);
19916
19946
  };
19917
19947
  }
19918
19948
  };
19919
- var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-68bdd6bc"]]);
19949
+ var BillCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-5f12f3e8"]]);
19920
19950
  const _sfc_main$a = {
19921
19951
  __name: "YearDropdown",
19922
19952
  props: {
@@ -20449,10 +20479,10 @@ const _hoisted_5$1 = {
20449
20479
  };
20450
20480
  const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
20451
20481
  const _hoisted_7$1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
20452
- const _hoisted_8 = {
20482
+ const _hoisted_8$1 = {
20453
20483
  class: "scroll-container"
20454
20484
  };
20455
- const _hoisted_9 = {
20485
+ const _hoisted_9$1 = {
20456
20486
  class: "cell-content"
20457
20487
  };
20458
20488
  const _hoisted_10 = ["onClick"];
@@ -20667,12 +20697,12 @@ const _sfc_main$3 = {
20667
20697
  onClick: onSearch
20668
20698
  }, "\u641C\u7D22")]),
20669
20699
  _: 1
20670
- }, 8, ["modelValue", "placeholder"]), createElementVNode("div", _hoisted_8, [createVNode(_component_van_cell_group, null, {
20700
+ }, 8, ["modelValue", "placeholder"]), createElementVNode("div", _hoisted_8$1, [createVNode(_component_van_cell_group, null, {
20671
20701
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionNodes), (item, i) => {
20672
20702
  return openBlock(), createBlock(_component_van_cell, {
20673
20703
  key: i
20674
20704
  }, createSlots({
20675
- title: withCtx(() => [createElementVNode("div", _hoisted_9, [item.canCheck ? (openBlock(), createElementBlock("div", {
20705
+ title: withCtx(() => [createElementVNode("div", _hoisted_9$1, [item.canCheck ? (openBlock(), createElementBlock("div", {
20676
20706
  key: 0,
20677
20707
  class: "circle-selector",
20678
20708
  onClick: withModifiers(($event) => onToggle(item), ["stop"])
@@ -20980,7 +21010,7 @@ const _sfc_main$1 = {
20980
21010
  }
20981
21011
  };
20982
21012
  var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
20983
- var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-7359377c] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-7359377c] {\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-7359377c] .van-field__label {\n margin: auto;\n}\n[data-v-7359377c] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-7359377c] .van-icon {\n font-size: 12px;\n}\n[data-v-7359377c] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
21013
+ 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}")();
20984
21014
  const _hoisted_1 = {
20985
21015
  class: "widget-box"
20986
21016
  };
@@ -20997,13 +21027,19 @@ const _hoisted_3 = {
20997
21027
  }
20998
21028
  };
20999
21029
  const _hoisted_4 = {
21030
+ key: 0
21031
+ };
21032
+ const _hoisted_5 = {
21033
+ key: 1
21034
+ };
21035
+ const _hoisted_6 = {
21000
21036
  style: {
21001
21037
  "display": "flex",
21002
21038
  "flex-direction": "column",
21003
21039
  "cursor": "pointer"
21004
21040
  }
21005
21041
  };
21006
- const _hoisted_5 = {
21042
+ const _hoisted_7 = {
21007
21043
  style: {
21008
21044
  "margin": "16px",
21009
21045
  "display": "flex",
@@ -21011,8 +21047,8 @@ const _hoisted_5 = {
21011
21047
  "justify-content": "center"
21012
21048
  }
21013
21049
  };
21014
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
21015
- const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
21050
+ const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
21051
+ const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
21016
21052
  const _sfc_main = {
21017
21053
  __name: "ObjsEditor",
21018
21054
  props: {
@@ -21107,7 +21143,9 @@ const _sfc_main = {
21107
21143
  var _a, _b, _c, _d;
21108
21144
  console.log("key2value", key, item[key], item);
21109
21145
  let v = item[key];
21110
- if (Array.isArray(v)) {
21146
+ if (props.schema[key].type === "Images") {
21147
+ return (v || []).join(",");
21148
+ } else if (Array.isArray(v)) {
21111
21149
  let formatValues = v.map((e) => {
21112
21150
  let kvs = Object.keys(e).map((k) => {
21113
21151
  var _a2, _b2, _c2, _d2;
@@ -21214,8 +21252,12 @@ const _sfc_main = {
21214
21252
  "padding": "2px 2px",
21215
21253
  "font-size": "12px"
21216
21254
  }
21217
- }, toDisplayString(`${key2name(k)}:${key2value(k, item)}`), 1);
21218
- }), 128))]), createElementVNode("div", _hoisted_4, [props.schema.auth != "readonly" && props.auth != "readonly" && props.auth != "disabled" ? (openBlock(), createBlock(_component_van_icon, {
21255
+ }, [props.schema[k].type != "Images" ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(`${key2name(k)}:${key2value(k, item)}`), 1)) : (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(ImagesPicker, {
21256
+ modelValue: item[k],
21257
+ "onUpdate:modelValue": ($event) => item[k] = $event,
21258
+ readonly: ""
21259
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]))]);
21260
+ }), 128))]), createElementVNode("div", _hoisted_6, [props.schema.auth != "readonly" && props.auth != "readonly" && props.auth != "disabled" ? (openBlock(), createBlock(_component_van_icon, {
21219
21261
  key: 0,
21220
21262
  name: "edit",
21221
21263
  onClick: withModifiers(($event) => onEdit(index), ["stop"])
@@ -21266,9 +21308,13 @@ const _sfc_main = {
21266
21308
  modelValue: data2.inputValue[key],
21267
21309
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21268
21310
  placeholder: "\u9009\u62E9\u65F6\u95F4"
21269
- }, 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, {
21311
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Images" ? (openBlock(), createBlock(ImagesPicker, {
21270
21312
  key: 4,
21271
21313
  modelValue: data2.inputValue[key],
21314
+ "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
21315
+ }, 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, {
21316
+ key: 5,
21317
+ modelValue: data2.inputValue[key],
21272
21318
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21273
21319
  options: (_h = (_g = props.schema[key]) == null ? void 0 : _g.schema) == null ? void 0 : _h.options,
21274
21320
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
@@ -21278,7 +21324,7 @@ const _sfc_main = {
21278
21324
  },
21279
21325
  onSelect: ($event) => onChangeOption(key)
21280
21326
  }, 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, {
21281
- key: 5,
21327
+ key: 6,
21282
21328
  modelValue: data2.inputValue[key],
21283
21329
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21284
21330
  schema: props.schema[key].schema
@@ -21286,19 +21332,19 @@ const _sfc_main = {
21286
21332
  }),
21287
21333
  _: 2
21288
21334
  }, 1032, ["label", "required", "disabled"])), [[vShow, props.schema[key].auth != "gone"]]);
21289
- }), 128)), createElementVNode("div", _hoisted_5, [data2.isShowInput ? (openBlock(), createBlock(_component_van_button, {
21335
+ }), 128)), createElementVNode("div", _hoisted_7, [data2.isShowInput ? (openBlock(), createBlock(_component_van_button, {
21290
21336
  key: 0,
21291
21337
  onClick: onInputConfirm,
21292
21338
  size: "mini"
21293
21339
  }, {
21294
- default: withCtx(() => [_hoisted_6]),
21340
+ default: withCtx(() => [_hoisted_8]),
21295
21341
  _: 1
21296
21342
  })) : createCommentVNode("", true), data2.isShowInput ? (openBlock(), createBlock(_component_van_button, {
21297
21343
  key: 1,
21298
21344
  onClick: onInputCancel,
21299
21345
  size: "mini"
21300
21346
  }, {
21301
- default: withCtx(() => [_hoisted_7]),
21347
+ default: withCtx(() => [_hoisted_9]),
21302
21348
  _: 1
21303
21349
  })) : createCommentVNode("", true)])]),
21304
21350
  _: 1
@@ -21313,7 +21359,7 @@ const _sfc_main = {
21313
21359
  };
21314
21360
  }
21315
21361
  };
21316
- var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7359377c"]]);
21362
+ var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1fa437e7"]]);
21317
21363
  const secret_notify = () => {
21318
21364
  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 });
21319
21365
  };