widget.qw 1.0.96 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +1 -1
- package/build/style.css +47 -47
- package/build/widget.qw.es.js +60 -41
- package/build/widget.qw.umd.js +60 -41
- package/package.json +1 -1
- package/src/api/index.js +1 -1
- package/src/components/CascaderPicker.vue +9 -2
- package/src/components/CascaderPop.vue +1 -0
- package/src/components/Input.vue +12 -12
- package/src/components/ObjsEditor.vue +6 -5
- package/src/components/data_selector.vue +0 -1
- package/src/components/widget/UserPop.vue +0 -1
- package/src/views/cascaderpicker/userpicker.vue +10 -31
- package/src/views/userpicker/index.vue +9 -19
package/.env.development
CHANGED
package/build/style.css
CHANGED
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
:root:root {
|
|
90
90
|
--van-popover-action-width: 70vw;
|
|
91
91
|
}
|
|
92
|
-
[data-v-
|
|
92
|
+
[data-v-bdbdf60a] .label {
|
|
93
93
|
color: #000 !important;
|
|
94
94
|
}
|
|
95
|
-
[data-v-
|
|
95
|
+
[data-v-bdbdf60a] .van-field__control:disabled {
|
|
96
96
|
color: #000 !important;
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
opacity: 1;
|
|
@@ -148,31 +148,31 @@
|
|
|
148
148
|
opacity: 1;
|
|
149
149
|
-webkit-text-fill-color: #000;
|
|
150
150
|
}
|
|
151
|
-
.popup-style[data-v-
|
|
151
|
+
.popup-style[data-v-e306bd52] {
|
|
152
152
|
height: 21.25rem;
|
|
153
153
|
}
|
|
154
|
-
.showMultipleButton[data-v-
|
|
154
|
+
.showMultipleButton[data-v-e306bd52] {
|
|
155
155
|
padding-bottom: 0;
|
|
156
156
|
}
|
|
157
|
-
.showMultipleButton .van-button[data-v-
|
|
157
|
+
.showMultipleButton .van-button[data-v-e306bd52] {
|
|
158
158
|
border: 0;
|
|
159
159
|
}
|
|
160
|
-
.flex-between[data-v-
|
|
160
|
+
.flex-between[data-v-e306bd52] {
|
|
161
161
|
padding: 10px;
|
|
162
162
|
display: flex;
|
|
163
163
|
justify-content: space-between;
|
|
164
164
|
align-items: center;
|
|
165
165
|
}
|
|
166
|
-
.bold[data-v-
|
|
166
|
+
.bold[data-v-e306bd52] {
|
|
167
167
|
font-weight: bold;
|
|
168
168
|
color: #444;
|
|
169
169
|
}
|
|
170
|
-
.checkbox-style[data-v-
|
|
170
|
+
.checkbox-style[data-v-e306bd52] {
|
|
171
171
|
/* height: 220px; */
|
|
172
172
|
height: calc(220px - 30px);
|
|
173
173
|
overflow-y: auto;
|
|
174
174
|
}
|
|
175
|
-
.select-all-container[data-v-
|
|
175
|
+
.select-all-container[data-v-e306bd52] {
|
|
176
176
|
font-size: 14px;
|
|
177
177
|
padding: 0 16px;
|
|
178
178
|
margin: 10px 0;
|
|
@@ -180,12 +180,12 @@
|
|
|
180
180
|
justify-content: flex-end;
|
|
181
181
|
align-items: center;
|
|
182
182
|
}
|
|
183
|
-
.select-all-container .van-checkbox[data-v-
|
|
183
|
+
.select-all-container .van-checkbox[data-v-e306bd52] {
|
|
184
184
|
margin-left: auto;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/* 新增:调整方形复选框的边距 */
|
|
188
|
-
.van-checkbox--square[data-v-
|
|
188
|
+
.van-checkbox--square[data-v-e306bd52] {
|
|
189
189
|
margin-left: 8px;
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -515,25 +515,25 @@
|
|
|
515
515
|
overflow-y: auto;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
.user-popup[data-v-
|
|
518
|
+
.user-popup[data-v-85dea264] {
|
|
519
519
|
width: 100%;
|
|
520
520
|
overflow: hidden;
|
|
521
521
|
}
|
|
522
|
-
.department-selector[data-v-
|
|
522
|
+
.department-selector[data-v-85dea264] {
|
|
523
523
|
padding: 10px;
|
|
524
524
|
}
|
|
525
|
-
.search-buttons[data-v-
|
|
525
|
+
.search-buttons[data-v-85dea264] {
|
|
526
526
|
display: flex;
|
|
527
527
|
gap: 10px;
|
|
528
528
|
}
|
|
529
|
-
.clear-btn[data-v-
|
|
529
|
+
.clear-btn[data-v-85dea264] {
|
|
530
530
|
background-color: #f2f3f5;
|
|
531
531
|
border: none;
|
|
532
532
|
border-radius: 4px;
|
|
533
533
|
padding: 4px 8px;
|
|
534
534
|
font-size: 14px;
|
|
535
535
|
}
|
|
536
|
-
.confirm-btn[data-v-
|
|
536
|
+
.confirm-btn[data-v-85dea264] {
|
|
537
537
|
background-color: #1989fa;
|
|
538
538
|
color: white;
|
|
539
539
|
border: none;
|
|
@@ -541,19 +541,19 @@
|
|
|
541
541
|
padding: 4px 8px;
|
|
542
542
|
font-size: 14px;
|
|
543
543
|
}
|
|
544
|
-
.no-results[data-v-
|
|
544
|
+
.no-results[data-v-85dea264] {
|
|
545
545
|
text-align: center;
|
|
546
546
|
padding: 20px;
|
|
547
547
|
color: #969799;
|
|
548
548
|
}
|
|
549
|
-
.picker-header[data-v-
|
|
549
|
+
.picker-header[data-v-85dea264] {
|
|
550
550
|
padding: 10px;
|
|
551
551
|
border-bottom: 1px solid #ebedf0;
|
|
552
552
|
display: flex;
|
|
553
553
|
justify-content: space-between;
|
|
554
554
|
align-items: center;
|
|
555
555
|
}
|
|
556
|
-
.current-path[data-v-
|
|
556
|
+
.current-path[data-v-85dea264] {
|
|
557
557
|
flex: 1;
|
|
558
558
|
font-size: 14px;
|
|
559
559
|
color: #323233;
|
|
@@ -561,16 +561,16 @@
|
|
|
561
561
|
overflow: hidden;
|
|
562
562
|
text-overflow: ellipsis;
|
|
563
563
|
}
|
|
564
|
-
.header-right[data-v-
|
|
564
|
+
.header-right[data-v-85dea264] {
|
|
565
565
|
display: flex;
|
|
566
566
|
gap: 8px;
|
|
567
567
|
margin-left: auto;
|
|
568
568
|
}
|
|
569
|
-
.cancel-btn[data-v-
|
|
569
|
+
.cancel-btn[data-v-85dea264] {
|
|
570
570
|
color: #969799;
|
|
571
571
|
margin-right: 5px;
|
|
572
572
|
}
|
|
573
|
-
.scroll-container[data-v-
|
|
573
|
+
.scroll-container[data-v-85dea264] {
|
|
574
574
|
height: calc(80vh - 150px);
|
|
575
575
|
overflow-y: auto;
|
|
576
576
|
}
|
|
@@ -743,25 +743,25 @@
|
|
|
743
743
|
margin:3px;
|
|
744
744
|
}
|
|
745
745
|
|
|
746
|
-
.cascader-pop[data-v-
|
|
746
|
+
.cascader-pop[data-v-37dc4af2] {
|
|
747
747
|
width: 100%;
|
|
748
748
|
overflow: hidden;
|
|
749
749
|
}
|
|
750
|
-
.cascader-selector[data-v-
|
|
750
|
+
.cascader-selector[data-v-37dc4af2] {
|
|
751
751
|
padding: 10px;
|
|
752
752
|
}
|
|
753
|
-
.search-buttons[data-v-
|
|
753
|
+
.search-buttons[data-v-37dc4af2] {
|
|
754
754
|
display: flex;
|
|
755
755
|
gap: 10px;
|
|
756
756
|
}
|
|
757
|
-
.clear-btn[data-v-
|
|
757
|
+
.clear-btn[data-v-37dc4af2] {
|
|
758
758
|
background-color: #f2f3f5;
|
|
759
759
|
border: none;
|
|
760
760
|
border-radius: 4px;
|
|
761
761
|
padding: 4px 8px;
|
|
762
762
|
font-size: 14px;
|
|
763
763
|
}
|
|
764
|
-
.confirm-btn[data-v-
|
|
764
|
+
.confirm-btn[data-v-37dc4af2] {
|
|
765
765
|
background-color: #1989fa;
|
|
766
766
|
color: white;
|
|
767
767
|
border: none;
|
|
@@ -769,19 +769,19 @@
|
|
|
769
769
|
padding: 4px 8px;
|
|
770
770
|
font-size: 14px;
|
|
771
771
|
}
|
|
772
|
-
.no-results[data-v-
|
|
772
|
+
.no-results[data-v-37dc4af2] {
|
|
773
773
|
text-align: center;
|
|
774
774
|
padding: 20px;
|
|
775
775
|
color: #969799;
|
|
776
776
|
}
|
|
777
|
-
.cascader-header[data-v-
|
|
777
|
+
.cascader-header[data-v-37dc4af2] {
|
|
778
778
|
padding: 10px;
|
|
779
779
|
border-bottom: 1px solid #ebedf0;
|
|
780
780
|
display: flex;
|
|
781
781
|
justify-content: space-between;
|
|
782
782
|
align-items: center;
|
|
783
783
|
}
|
|
784
|
-
.current-path[data-v-
|
|
784
|
+
.current-path[data-v-37dc4af2] {
|
|
785
785
|
flex: 1;
|
|
786
786
|
font-size: 14px;
|
|
787
787
|
margin-left:5px;
|
|
@@ -790,25 +790,25 @@
|
|
|
790
790
|
overflow: hidden;
|
|
791
791
|
text-overflow: ellipsis;
|
|
792
792
|
}
|
|
793
|
-
.header-right[data-v-
|
|
793
|
+
.header-right[data-v-37dc4af2] {
|
|
794
794
|
display: flex;
|
|
795
795
|
gap: 8px;
|
|
796
796
|
margin-left: auto;
|
|
797
797
|
}
|
|
798
|
-
.cancel-btn[data-v-
|
|
798
|
+
.cancel-btn[data-v-37dc4af2] {
|
|
799
799
|
color: #969799;
|
|
800
800
|
margin-right: 5px;
|
|
801
801
|
}
|
|
802
|
-
.scroll-container[data-v-
|
|
802
|
+
.scroll-container[data-v-37dc4af2] {
|
|
803
803
|
height: calc(80vh - 150px);
|
|
804
804
|
overflow-y: auto;
|
|
805
805
|
}
|
|
806
|
-
.cell-content[data-v-
|
|
806
|
+
.cell-content[data-v-37dc4af2] {
|
|
807
807
|
display: flex;
|
|
808
808
|
align-items: center;
|
|
809
809
|
gap: 12px;
|
|
810
810
|
}
|
|
811
|
-
.circle-selector[data-v-
|
|
811
|
+
.circle-selector[data-v-37dc4af2] {
|
|
812
812
|
width: 20px;
|
|
813
813
|
height: 20px;
|
|
814
814
|
border-radius: 50%;
|
|
@@ -818,29 +818,29 @@
|
|
|
818
818
|
transition: all 0.2s;
|
|
819
819
|
flex-shrink: 0;
|
|
820
820
|
}
|
|
821
|
-
.circle-selector.selected[data-v-
|
|
821
|
+
.circle-selector.selected[data-v-37dc4af2] {
|
|
822
822
|
background-color: #1989fa;
|
|
823
823
|
border-color: #1989fa;
|
|
824
824
|
}
|
|
825
|
-
.circle-selector.selected .van-icon[data-v-
|
|
825
|
+
.circle-selector.selected .van-icon[data-v-37dc4af2] {
|
|
826
826
|
color: white;
|
|
827
827
|
font-size: 14px;
|
|
828
828
|
}
|
|
829
|
-
.van-cell__right-icon[data-v-
|
|
829
|
+
.van-cell__right-icon[data-v-37dc4af2] {
|
|
830
830
|
color: #969799;
|
|
831
831
|
font-size: 16px;
|
|
832
832
|
margin-left: 8px;
|
|
833
833
|
}
|
|
834
|
-
.name[data-v-
|
|
834
|
+
.name[data-v-37dc4af2] {
|
|
835
835
|
flex: 1;
|
|
836
836
|
overflow: hidden;
|
|
837
837
|
text-overflow: ellipsis;
|
|
838
838
|
white-space: nowrap;
|
|
839
839
|
}
|
|
840
|
-
.cancel-btn[data-v-
|
|
840
|
+
.cancel-btn[data-v-37dc4af2] {
|
|
841
841
|
color: #969799;
|
|
842
842
|
}
|
|
843
|
-
.search-field[data-v-
|
|
843
|
+
.search-field[data-v-37dc4af2] {
|
|
844
844
|
background: #fff;
|
|
845
845
|
padding: 10px 16px;
|
|
846
846
|
border-bottom: 1px solid #ebedf0;
|
|
@@ -875,14 +875,14 @@
|
|
|
875
875
|
}
|
|
876
876
|
.widget .readonly-field[data-v-e7bb4e5c] {
|
|
877
877
|
margin: 4px 0;
|
|
878
|
-
}.widget[data-v-
|
|
878
|
+
}.widget[data-v-febc3832] {
|
|
879
879
|
background: #fff;
|
|
880
880
|
box-sizing: border-box;
|
|
881
881
|
height: 100%;
|
|
882
882
|
text-align: left;
|
|
883
883
|
font-size: 12px;
|
|
884
884
|
}
|
|
885
|
-
.option[data-v-
|
|
885
|
+
.option[data-v-febc3832] {
|
|
886
886
|
margin: 0 8px 8px 0;
|
|
887
887
|
padding: 5px 10px;
|
|
888
888
|
border-radius: 6px;
|
|
@@ -892,16 +892,16 @@
|
|
|
892
892
|
display: inline-block;
|
|
893
893
|
position: relative;
|
|
894
894
|
}
|
|
895
|
-
[data-v-
|
|
895
|
+
[data-v-febc3832] .van-field__label {
|
|
896
896
|
margin: auto;
|
|
897
897
|
}
|
|
898
|
-
[data-v-
|
|
898
|
+
[data-v-febc3832] .van-cell {
|
|
899
899
|
font-size: 12px;
|
|
900
900
|
padding: 5px 5px;
|
|
901
901
|
}
|
|
902
|
-
[data-v-
|
|
902
|
+
[data-v-febc3832] .van-icon {
|
|
903
903
|
font-size: 12px;
|
|
904
904
|
}
|
|
905
|
-
[data-v-
|
|
905
|
+
[data-v-febc3832] .van-popup .van-cell {
|
|
906
906
|
padding: 5px 25px;
|
|
907
907
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -3337,7 +3337,7 @@ const get_wxuser_by_id = (data2) => {
|
|
|
3337
3337
|
};
|
|
3338
3338
|
function auth_children(data2) {
|
|
3339
3339
|
return service$3({
|
|
3340
|
-
url: vm.urlCallback() + "/
|
|
3340
|
+
url: vm.urlCallback() + "/ac-api/qw/auth/children",
|
|
3341
3341
|
method: "POST",
|
|
3342
3342
|
data: data2
|
|
3343
3343
|
});
|
|
@@ -17206,8 +17206,8 @@ const _hoisted_1$l = {
|
|
|
17206
17206
|
class: "widget"
|
|
17207
17207
|
};
|
|
17208
17208
|
const _hoisted_2$e = /* @__PURE__ */ createTextVNode("\u9A73\u56DE");
|
|
17209
|
-
const _hoisted_3$
|
|
17210
|
-
const _hoisted_4$
|
|
17209
|
+
const _hoisted_3$b = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4");
|
|
17210
|
+
const _hoisted_4$a = /* @__PURE__ */ createTextVNode("\u7533\u8BF7");
|
|
17211
17211
|
const _hoisted_5$9 = {
|
|
17212
17212
|
key: 4,
|
|
17213
17213
|
class: "audit-title"
|
|
@@ -17514,7 +17514,7 @@ const _sfc_main$w = {
|
|
|
17514
17514
|
"native-type": "submit",
|
|
17515
17515
|
onClick: onPass
|
|
17516
17516
|
}, {
|
|
17517
|
-
default: withCtx(() => [_hoisted_3$
|
|
17517
|
+
default: withCtx(() => [_hoisted_3$b]),
|
|
17518
17518
|
_: 1
|
|
17519
17519
|
})) : createCommentVNode("", true), unref(canApply) ? (openBlock(), createBlock(_component_van_button, {
|
|
17520
17520
|
key: 3,
|
|
@@ -17523,7 +17523,7 @@ const _sfc_main$w = {
|
|
|
17523
17523
|
"native-type": "submit",
|
|
17524
17524
|
onClick: onApply
|
|
17525
17525
|
}, {
|
|
17526
|
-
default: withCtx(() => [_hoisted_4$
|
|
17526
|
+
default: withCtx(() => [_hoisted_4$a]),
|
|
17527
17527
|
_: 1
|
|
17528
17528
|
})) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createElementBlock("div", _hoisted_5$9, toDisplayString(unref(formatProcessTitle)), 1)) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createBlock(_component_van_steps, {
|
|
17529
17529
|
key: 5,
|
|
@@ -17618,9 +17618,25 @@ function useVModel(props2, key, emit2, options = {}) {
|
|
|
17618
17618
|
});
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
17621
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
17622
|
-
const _hoisted_1$k =
|
|
17623
|
-
|
|
17621
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17622
|
+
const _hoisted_1$k = {
|
|
17623
|
+
style: {
|
|
17624
|
+
"display": "flex",
|
|
17625
|
+
"align-items": "center"
|
|
17626
|
+
}
|
|
17627
|
+
};
|
|
17628
|
+
const _hoisted_2$d = {
|
|
17629
|
+
style: {
|
|
17630
|
+
"font-size": "20px",
|
|
17631
|
+
"color": "#999"
|
|
17632
|
+
}
|
|
17633
|
+
};
|
|
17634
|
+
const _hoisted_3$a = {
|
|
17635
|
+
style: {
|
|
17636
|
+
"margin": "15px 0 0 0"
|
|
17637
|
+
}
|
|
17638
|
+
};
|
|
17639
|
+
const _hoisted_4$9 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
17624
17640
|
const _sfc_main$v = {
|
|
17625
17641
|
__name: "Input",
|
|
17626
17642
|
props: {
|
|
@@ -17702,8 +17718,9 @@ const _sfc_main$v = {
|
|
|
17702
17718
|
onMounted(() => {
|
|
17703
17719
|
});
|
|
17704
17720
|
return (_ctx, _cache) => {
|
|
17705
|
-
const
|
|
17721
|
+
const _component_van_icon = resolveComponent("van-icon");
|
|
17706
17722
|
const _component_van_field = resolveComponent("van-field");
|
|
17723
|
+
const _component_van_button = resolveComponent("van-button");
|
|
17707
17724
|
const _component_van_popup = resolveComponent("van-popup");
|
|
17708
17725
|
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) && props.type === "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
17709
17726
|
key: 0,
|
|
@@ -17721,35 +17738,36 @@ const _sfc_main$v = {
|
|
|
17721
17738
|
autosize: props.autosize,
|
|
17722
17739
|
rules: unref(rules)
|
|
17723
17740
|
}, {
|
|
17724
|
-
button: withCtx(() => [createVNode(
|
|
17725
|
-
|
|
17741
|
+
button: withCtx(() => [createVNode(_component_van_icon, {
|
|
17742
|
+
name: "plus",
|
|
17726
17743
|
onClick: onCalc
|
|
17727
|
-
}, {
|
|
17728
|
-
default: withCtx(() => [_hoisted_1$k]),
|
|
17729
|
-
_: 1
|
|
17730
17744
|
})]),
|
|
17731
17745
|
_: 1
|
|
17732
17746
|
}, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true), createVNode(_component_van_popup, {
|
|
17733
17747
|
show: data.isShowPop,
|
|
17734
17748
|
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => data.isShowPop = $event),
|
|
17735
17749
|
position: "bottom",
|
|
17736
|
-
round: ""
|
|
17750
|
+
round: "",
|
|
17751
|
+
style: {
|
|
17752
|
+
"padding": "25px 15px"
|
|
17753
|
+
}
|
|
17737
17754
|
}, {
|
|
17738
|
-
default: withCtx(() => [createVNode(_component_van_field, {
|
|
17755
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$k, [createElementVNode("span", _hoisted_2$d, toDisplayString(props.modelValue || ""), 1), createVNode(_component_van_field, {
|
|
17739
17756
|
modelValue: data.express,
|
|
17740
17757
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.express = $event),
|
|
17741
17758
|
placeholder: "\u8BF7\u8F93\u5165+/-\u6570\u5B57",
|
|
17742
|
-
type: "text"
|
|
17759
|
+
type: "text",
|
|
17760
|
+
style: {
|
|
17761
|
+
"font-size": "20px"
|
|
17762
|
+
}
|
|
17763
|
+
}, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$a, [createVNode(_component_van_button, {
|
|
17764
|
+
onClick: onSubmit,
|
|
17765
|
+
type: "primary",
|
|
17766
|
+
size: "large"
|
|
17743
17767
|
}, {
|
|
17744
|
-
|
|
17745
|
-
size: "small",
|
|
17746
|
-
onClick: onSubmit
|
|
17747
|
-
}, {
|
|
17748
|
-
default: withCtx(() => [_hoisted_2$d]),
|
|
17749
|
-
_: 1
|
|
17750
|
-
})]),
|
|
17768
|
+
default: withCtx(() => [_hoisted_4$9]),
|
|
17751
17769
|
_: 1
|
|
17752
|
-
}
|
|
17770
|
+
})])]),
|
|
17753
17771
|
_: 1
|
|
17754
17772
|
}, 8, ["show"]), !unref(isGone) && props.type != "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
17755
17773
|
key: 1,
|
|
@@ -17767,7 +17785,7 @@ const _sfc_main$v = {
|
|
|
17767
17785
|
};
|
|
17768
17786
|
}
|
|
17769
17787
|
};
|
|
17770
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
17788
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bdbdf60a"]]);
|
|
17771
17789
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17772
17790
|
const _sfc_main$u = {
|
|
17773
17791
|
__name: "SinglePicker",
|
|
@@ -18713,7 +18731,7 @@ const _sfc_main$o = {
|
|
|
18713
18731
|
};
|
|
18714
18732
|
}
|
|
18715
18733
|
};
|
|
18716
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
18734
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-e306bd52] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-e306bd52] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-e306bd52] {\r\n border: 0;\n}\n.flex-between[data-v-e306bd52] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-e306bd52] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-e306bd52] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px);\r\n overflow-y: auto;\n}\n.select-all-container[data-v-e306bd52] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-e306bd52] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-e306bd52] {\r\n margin-left: 8px;\n}\r\n")();
|
|
18717
18735
|
const _hoisted_1$h = {
|
|
18718
18736
|
class: "pad10 flex-between showMultipleButton"
|
|
18719
18737
|
};
|
|
@@ -18838,7 +18856,6 @@ const _sfc_main$n = {
|
|
|
18838
18856
|
});
|
|
18839
18857
|
});
|
|
18840
18858
|
const onClear = () => {
|
|
18841
|
-
console.log("11111111111111");
|
|
18842
18859
|
selectedItems.value = [];
|
|
18843
18860
|
if (props2.multiple) {
|
|
18844
18861
|
emit2("update:modelValue", []);
|
|
@@ -19040,7 +19057,7 @@ const _sfc_main$n = {
|
|
|
19040
19057
|
};
|
|
19041
19058
|
}
|
|
19042
19059
|
};
|
|
19043
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
19060
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-e306bd52"]]);
|
|
19044
19061
|
var mult_list_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\r\n/* // \u4FEE\u6539 confirmation-group \u548C confirmation-item \u7684\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n padding: 0 16px;\r\n --van-checkbox-disabled-icon-color: black;\n}\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 16px;\r\n margin: 0 -16px;\r\n border-bottom: 1px solid #f5f5f5;\r\n /* \u7981\u7528\u72B6\u6001\u6837\u5F0F */\n}\r\n\r\n/* // \u5728\u4E0B\u65B9\u6DFB\u52A0\u5A92\u4F53\u67E5\u8BE2\u9002\u914D\u5C0F\u5C4F\u5E55 */\n@media (max-width: 320px) {\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 8px;\r\n margin: 0 -8px;\n}\n}\n.confirmation-item[data-v-40a09897]:last-child {\r\n border-bottom: none;\n}\r\n\r\n/* \u65B0\u589E\u6837\u5F0F */\n.confirmation-tips[data-v-40a09897] {\r\n padding: 12px 16px;\r\n background: #f0faff;\r\n border-radius: 8px;\r\n margin: 10px 16px;\r\n display: flex;\r\n align-items: center;\r\n color: #1989fa;\r\n font-size: 13px;\r\n border: 1px solid #d9efff;\n}\n.confirmation-tips .van-icon[data-v-40a09897] {\r\n margin-right: 8px;\n}\r\n\r\n/* \u65B0\u589E\u5B57\u4F53\u7EE7\u627F\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n font-size: inherit; /* \u7EE7\u627F\u7236\u7EA7\u5B57\u4F53\u5927\u5C0F */\n}\n.option-text[data-v-40a09897] {\r\n font-size: 14px; /* \u660E\u786E\u6307\u5B9A\u5B57\u4F53\u5927\u5C0F */\r\n line-height: 1.5; /* \u4FDD\u6301\u884C\u9AD8\u4E00\u81F4 */\r\n /* color:black; */\n}\r\n\r\n/* \u9002\u914D\u79FB\u52A8\u7AEF\u7684\u5B57\u4F53\u8C03\u6574 */\n@media (max-width: 375px) {\n.option-text[data-v-40a09897] {\r\n font-size: 13px;\n}\n}\r\n\r\n/* \u65B0\u589E\u7981\u7528\u72B6\u6001\u6837\u5F0F */\n.custom-checkbox[data-v-40a09897]:disabled .--van-checkbox__icon {\r\n background-color: #f5f5f5;\r\n border-color: #ebedf0;\r\n transition: all 0.3s;\n}\n.custom-checkbox[data-v-40a09897]:disabled .van-checkbox__icon--checked {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\r\n opacity: 0.7;\n}\n.van-checkbox--disabled[data-v-40a09897] .option-text {\r\n color: #969799;\n}\n.van-checkbox--disabled.van-checkbox--checked[data-v-40a09897] .option-text {\r\n color: #1989fa;\r\n opacity: 0.8;\n}\r\n")();
|
|
19045
19062
|
const _hoisted_1$g = {
|
|
19046
19063
|
key: 0,
|
|
@@ -20867,7 +20884,7 @@ const _sfc_main$g = {
|
|
|
20867
20884
|
}
|
|
20868
20885
|
};
|
|
20869
20886
|
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-c23caaf6"]]);
|
|
20870
|
-
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-
|
|
20887
|
+
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-85dea264] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-85dea264] {\r\n padding: 10px;\n}\n.search-buttons[data-v-85dea264] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-85dea264] {\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-85dea264] {\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-85dea264] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-85dea264] {\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-85dea264] {\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-85dea264] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-85dea264] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-85dea264] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
20871
20888
|
const _hoisted_1$9 = {
|
|
20872
20889
|
class: "department-selector"
|
|
20873
20890
|
};
|
|
@@ -21026,7 +21043,6 @@ const _sfc_main$f = {
|
|
|
21026
21043
|
const onBack = () => {
|
|
21027
21044
|
data2.keyword = "";
|
|
21028
21045
|
let paths = findDeptPaths(selectedDept.value, data2.totalDepts);
|
|
21029
|
-
console.log("22222222", paths);
|
|
21030
21046
|
if (!paths || paths.length <= 1) {
|
|
21031
21047
|
data2.selectedDeptId = "";
|
|
21032
21048
|
return;
|
|
@@ -21138,7 +21154,7 @@ const _sfc_main$f = {
|
|
|
21138
21154
|
};
|
|
21139
21155
|
}
|
|
21140
21156
|
};
|
|
21141
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
21157
|
+
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-85dea264"]]);
|
|
21142
21158
|
var UsersPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-item[data-v-2ccc13b6]{\r\n margin:3px;\n}\r\n")();
|
|
21143
21159
|
const _hoisted_1$8 = {
|
|
21144
21160
|
class: "user-list"
|
|
@@ -22117,7 +22133,7 @@ const _sfc_main$4 = {
|
|
|
22117
22133
|
}
|
|
22118
22134
|
};
|
|
22119
22135
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ebc14630"]]);
|
|
22120
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
22136
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-37dc4af2] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-37dc4af2] {\r\n padding: 10px;\n}\n.search-buttons[data-v-37dc4af2] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-37dc4af2] {\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-37dc4af2] {\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-37dc4af2] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-37dc4af2] {\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-37dc4af2] {\r\n flex: 1;\r\n font-size: 14px;\r\n margin-left:5px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-37dc4af2] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-37dc4af2] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-37dc4af2] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-37dc4af2] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-37dc4af2] {\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-37dc4af2] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-37dc4af2] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-37dc4af2] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-37dc4af2] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-37dc4af2] {\r\n color: #969799;\n}\n.search-field[data-v-37dc4af2] {\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")();
|
|
22121
22137
|
const _hoisted_1$3 = {
|
|
22122
22138
|
class: "cascader-selector"
|
|
22123
22139
|
};
|
|
@@ -22390,7 +22406,7 @@ const _sfc_main$3 = {
|
|
|
22390
22406
|
};
|
|
22391
22407
|
}
|
|
22392
22408
|
};
|
|
22393
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
22409
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-37dc4af2"]]);
|
|
22394
22410
|
const _hoisted_1$2 = {
|
|
22395
22411
|
style: {
|
|
22396
22412
|
"display": "flex",
|
|
@@ -22501,7 +22517,8 @@ const _sfc_main$2 = {
|
|
|
22501
22517
|
params.hasChildren = false;
|
|
22502
22518
|
params.hasPaths = true;
|
|
22503
22519
|
yield props2.idQueryNode(params, (node) => {
|
|
22504
|
-
|
|
22520
|
+
let selectNode = util.findNode(id, node.children);
|
|
22521
|
+
data2.selectedNodes = [...data2.selectedNodes, selectNode];
|
|
22505
22522
|
});
|
|
22506
22523
|
}));
|
|
22507
22524
|
}
|
|
@@ -22679,7 +22696,7 @@ const _sfc_main$1 = {
|
|
|
22679
22696
|
}
|
|
22680
22697
|
};
|
|
22681
22698
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22682
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22699
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-febc3832] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-febc3832] {\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-febc3832] .van-field__label {\n margin: auto;\n}\n[data-v-febc3832] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-febc3832] .van-icon {\n font-size: 12px;\n}\n[data-v-febc3832] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22683
22700
|
const _hoisted_1 = {
|
|
22684
22701
|
class: "widget-box"
|
|
22685
22702
|
};
|
|
@@ -22846,11 +22863,13 @@ const _sfc_main = {
|
|
|
22846
22863
|
} else if ((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) {
|
|
22847
22864
|
let one = (_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
22848
22865
|
return one ? one[Object.keys(one)[0]] : "";
|
|
22849
|
-
} else {
|
|
22850
|
-
|
|
22851
|
-
|
|
22866
|
+
} else if (props2.schema[key].type === "Boolean") {
|
|
22867
|
+
v = v ? "\u662F" : "\u5426";
|
|
22868
|
+
return v;
|
|
22869
|
+
} else if (v == null) {
|
|
22870
|
+
return "";
|
|
22871
|
+
} else
|
|
22852
22872
|
return v;
|
|
22853
|
-
}
|
|
22854
22873
|
};
|
|
22855
22874
|
const onEdit = (index) => {
|
|
22856
22875
|
data2.selectIndex = index;
|
|
@@ -23052,7 +23071,7 @@ const _sfc_main = {
|
|
|
23052
23071
|
};
|
|
23053
23072
|
}
|
|
23054
23073
|
};
|
|
23055
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23074
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-febc3832"]]);
|
|
23056
23075
|
const secret_notify = () => {
|
|
23057
23076
|
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 });
|
|
23058
23077
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -3340,7 +3340,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3340
3340
|
};
|
|
3341
3341
|
function auth_children(data2) {
|
|
3342
3342
|
return service$3({
|
|
3343
|
-
url: vm.urlCallback() + "/
|
|
3343
|
+
url: vm.urlCallback() + "/ac-api/qw/auth/children",
|
|
3344
3344
|
method: "POST",
|
|
3345
3345
|
data: data2
|
|
3346
3346
|
});
|
|
@@ -17209,8 +17209,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17209
17209
|
class: "widget"
|
|
17210
17210
|
};
|
|
17211
17211
|
const _hoisted_2$e = /* @__PURE__ */ vue.createTextVNode("\u9A73\u56DE");
|
|
17212
|
-
const _hoisted_3$
|
|
17213
|
-
const _hoisted_4$
|
|
17212
|
+
const _hoisted_3$b = /* @__PURE__ */ vue.createTextVNode("\u63D0\u4EA4");
|
|
17213
|
+
const _hoisted_4$a = /* @__PURE__ */ vue.createTextVNode("\u7533\u8BF7");
|
|
17214
17214
|
const _hoisted_5$9 = {
|
|
17215
17215
|
key: 4,
|
|
17216
17216
|
class: "audit-title"
|
|
@@ -17517,7 +17517,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17517
17517
|
"native-type": "submit",
|
|
17518
17518
|
onClick: onPass
|
|
17519
17519
|
}, {
|
|
17520
|
-
default: vue.withCtx(() => [_hoisted_3$
|
|
17520
|
+
default: vue.withCtx(() => [_hoisted_3$b]),
|
|
17521
17521
|
_: 1
|
|
17522
17522
|
})) : vue.createCommentVNode("", true), vue.unref(canApply) ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
17523
17523
|
key: 3,
|
|
@@ -17526,7 +17526,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17526
17526
|
"native-type": "submit",
|
|
17527
17527
|
onClick: onApply
|
|
17528
17528
|
}, {
|
|
17529
|
-
default: vue.withCtx(() => [_hoisted_4$
|
|
17529
|
+
default: vue.withCtx(() => [_hoisted_4$a]),
|
|
17530
17530
|
_: 1
|
|
17531
17531
|
})) : 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, {
|
|
17532
17532
|
key: 5,
|
|
@@ -17621,9 +17621,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17621
17621
|
});
|
|
17622
17622
|
}
|
|
17623
17623
|
}
|
|
17624
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
17625
|
-
const _hoisted_1$k =
|
|
17626
|
-
|
|
17624
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17625
|
+
const _hoisted_1$k = {
|
|
17626
|
+
style: {
|
|
17627
|
+
"display": "flex",
|
|
17628
|
+
"align-items": "center"
|
|
17629
|
+
}
|
|
17630
|
+
};
|
|
17631
|
+
const _hoisted_2$d = {
|
|
17632
|
+
style: {
|
|
17633
|
+
"font-size": "20px",
|
|
17634
|
+
"color": "#999"
|
|
17635
|
+
}
|
|
17636
|
+
};
|
|
17637
|
+
const _hoisted_3$a = {
|
|
17638
|
+
style: {
|
|
17639
|
+
"margin": "15px 0 0 0"
|
|
17640
|
+
}
|
|
17641
|
+
};
|
|
17642
|
+
const _hoisted_4$9 = /* @__PURE__ */ vue.createTextVNode(" \u786E\u5B9A ");
|
|
17627
17643
|
const _sfc_main$v = {
|
|
17628
17644
|
__name: "Input",
|
|
17629
17645
|
props: {
|
|
@@ -17705,8 +17721,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17705
17721
|
vue.onMounted(() => {
|
|
17706
17722
|
});
|
|
17707
17723
|
return (_ctx, _cache) => {
|
|
17708
|
-
const
|
|
17724
|
+
const _component_van_icon = vue.resolveComponent("van-icon");
|
|
17709
17725
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
17726
|
+
const _component_van_button = vue.resolveComponent("van-button");
|
|
17710
17727
|
const _component_van_popup = vue.resolveComponent("van-popup");
|
|
17711
17728
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) && props.type === "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
17712
17729
|
key: 0,
|
|
@@ -17724,35 +17741,36 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17724
17741
|
autosize: props.autosize,
|
|
17725
17742
|
rules: vue.unref(rules)
|
|
17726
17743
|
}, {
|
|
17727
|
-
button: vue.withCtx(() => [vue.createVNode(
|
|
17728
|
-
|
|
17744
|
+
button: vue.withCtx(() => [vue.createVNode(_component_van_icon, {
|
|
17745
|
+
name: "plus",
|
|
17729
17746
|
onClick: onCalc
|
|
17730
|
-
}, {
|
|
17731
|
-
default: vue.withCtx(() => [_hoisted_1$k]),
|
|
17732
|
-
_: 1
|
|
17733
17747
|
})]),
|
|
17734
17748
|
_: 1
|
|
17735
17749
|
}, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true), vue.createVNode(_component_van_popup, {
|
|
17736
17750
|
show: data.isShowPop,
|
|
17737
17751
|
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => data.isShowPop = $event),
|
|
17738
17752
|
position: "bottom",
|
|
17739
|
-
round: ""
|
|
17753
|
+
round: "",
|
|
17754
|
+
style: {
|
|
17755
|
+
"padding": "25px 15px"
|
|
17756
|
+
}
|
|
17740
17757
|
}, {
|
|
17741
|
-
default: vue.withCtx(() => [vue.createVNode(_component_van_field, {
|
|
17758
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$k, [vue.createElementVNode("span", _hoisted_2$d, vue.toDisplayString(props.modelValue || ""), 1), vue.createVNode(_component_van_field, {
|
|
17742
17759
|
modelValue: data.express,
|
|
17743
17760
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.express = $event),
|
|
17744
17761
|
placeholder: "\u8BF7\u8F93\u5165+/-\u6570\u5B57",
|
|
17745
|
-
type: "text"
|
|
17762
|
+
type: "text",
|
|
17763
|
+
style: {
|
|
17764
|
+
"font-size": "20px"
|
|
17765
|
+
}
|
|
17766
|
+
}, null, 8, ["modelValue"])]), vue.createElementVNode("div", _hoisted_3$a, [vue.createVNode(_component_van_button, {
|
|
17767
|
+
onClick: onSubmit,
|
|
17768
|
+
type: "primary",
|
|
17769
|
+
size: "large"
|
|
17746
17770
|
}, {
|
|
17747
|
-
|
|
17748
|
-
size: "small",
|
|
17749
|
-
onClick: onSubmit
|
|
17750
|
-
}, {
|
|
17751
|
-
default: vue.withCtx(() => [_hoisted_2$d]),
|
|
17752
|
-
_: 1
|
|
17753
|
-
})]),
|
|
17771
|
+
default: vue.withCtx(() => [_hoisted_4$9]),
|
|
17754
17772
|
_: 1
|
|
17755
|
-
}
|
|
17773
|
+
})])]),
|
|
17756
17774
|
_: 1
|
|
17757
17775
|
}, 8, ["show"]), !vue.unref(isGone) && props.type != "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
17758
17776
|
key: 1,
|
|
@@ -17770,7 +17788,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17770
17788
|
};
|
|
17771
17789
|
}
|
|
17772
17790
|
};
|
|
17773
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
17791
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bdbdf60a"]]);
|
|
17774
17792
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17775
17793
|
const _sfc_main$u = {
|
|
17776
17794
|
__name: "SinglePicker",
|
|
@@ -18716,7 +18734,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18716
18734
|
};
|
|
18717
18735
|
}
|
|
18718
18736
|
};
|
|
18719
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
18737
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-e306bd52] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-e306bd52] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-e306bd52] {\r\n border: 0;\n}\n.flex-between[data-v-e306bd52] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-e306bd52] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-e306bd52] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px);\r\n overflow-y: auto;\n}\n.select-all-container[data-v-e306bd52] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-e306bd52] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-e306bd52] {\r\n margin-left: 8px;\n}\r\n")();
|
|
18720
18738
|
const _hoisted_1$h = {
|
|
18721
18739
|
class: "pad10 flex-between showMultipleButton"
|
|
18722
18740
|
};
|
|
@@ -18841,7 +18859,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18841
18859
|
});
|
|
18842
18860
|
});
|
|
18843
18861
|
const onClear = () => {
|
|
18844
|
-
console.log("11111111111111");
|
|
18845
18862
|
selectedItems.value = [];
|
|
18846
18863
|
if (props2.multiple) {
|
|
18847
18864
|
emit2("update:modelValue", []);
|
|
@@ -19043,7 +19060,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19043
19060
|
};
|
|
19044
19061
|
}
|
|
19045
19062
|
};
|
|
19046
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
19063
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-e306bd52"]]);
|
|
19047
19064
|
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")();
|
|
19048
19065
|
const _hoisted_1$g = {
|
|
19049
19066
|
key: 0,
|
|
@@ -20870,7 +20887,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20870
20887
|
}
|
|
20871
20888
|
};
|
|
20872
20889
|
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-c23caaf6"]]);
|
|
20873
|
-
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-
|
|
20890
|
+
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-85dea264] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-85dea264] {\r\n padding: 10px;\n}\n.search-buttons[data-v-85dea264] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-85dea264] {\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-85dea264] {\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-85dea264] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-85dea264] {\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-85dea264] {\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-85dea264] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-85dea264] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-85dea264] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
20874
20891
|
const _hoisted_1$9 = {
|
|
20875
20892
|
class: "department-selector"
|
|
20876
20893
|
};
|
|
@@ -21029,7 +21046,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21029
21046
|
const onBack = () => {
|
|
21030
21047
|
data2.keyword = "";
|
|
21031
21048
|
let paths = findDeptPaths(selectedDept.value, data2.totalDepts);
|
|
21032
|
-
console.log("22222222", paths);
|
|
21033
21049
|
if (!paths || paths.length <= 1) {
|
|
21034
21050
|
data2.selectedDeptId = "";
|
|
21035
21051
|
return;
|
|
@@ -21141,7 +21157,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21141
21157
|
};
|
|
21142
21158
|
}
|
|
21143
21159
|
};
|
|
21144
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
21160
|
+
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-85dea264"]]);
|
|
21145
21161
|
var UsersPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-item[data-v-2ccc13b6]{\r\n margin:3px;\n}\r\n")();
|
|
21146
21162
|
const _hoisted_1$8 = {
|
|
21147
21163
|
class: "user-list"
|
|
@@ -22120,7 +22136,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22120
22136
|
}
|
|
22121
22137
|
};
|
|
22122
22138
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ebc14630"]]);
|
|
22123
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
22139
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-37dc4af2] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-37dc4af2] {\r\n padding: 10px;\n}\n.search-buttons[data-v-37dc4af2] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-37dc4af2] {\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-37dc4af2] {\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-37dc4af2] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-37dc4af2] {\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-37dc4af2] {\r\n flex: 1;\r\n font-size: 14px;\r\n margin-left:5px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-37dc4af2] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-37dc4af2] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-37dc4af2] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-37dc4af2] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-37dc4af2] {\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-37dc4af2] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-37dc4af2] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-37dc4af2] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-37dc4af2] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-37dc4af2] {\r\n color: #969799;\n}\n.search-field[data-v-37dc4af2] {\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")();
|
|
22124
22140
|
const _hoisted_1$3 = {
|
|
22125
22141
|
class: "cascader-selector"
|
|
22126
22142
|
};
|
|
@@ -22393,7 +22409,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22393
22409
|
};
|
|
22394
22410
|
}
|
|
22395
22411
|
};
|
|
22396
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
22412
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-37dc4af2"]]);
|
|
22397
22413
|
const _hoisted_1$2 = {
|
|
22398
22414
|
style: {
|
|
22399
22415
|
"display": "flex",
|
|
@@ -22504,7 +22520,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22504
22520
|
params.hasChildren = false;
|
|
22505
22521
|
params.hasPaths = true;
|
|
22506
22522
|
yield props2.idQueryNode(params, (node) => {
|
|
22507
|
-
|
|
22523
|
+
let selectNode = util.findNode(id, node.children);
|
|
22524
|
+
data2.selectedNodes = [...data2.selectedNodes, selectNode];
|
|
22508
22525
|
});
|
|
22509
22526
|
}));
|
|
22510
22527
|
}
|
|
@@ -22682,7 +22699,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22682
22699
|
}
|
|
22683
22700
|
};
|
|
22684
22701
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22685
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22702
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-febc3832] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-febc3832] {\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-febc3832] .van-field__label {\n margin: auto;\n}\n[data-v-febc3832] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-febc3832] .van-icon {\n font-size: 12px;\n}\n[data-v-febc3832] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22686
22703
|
const _hoisted_1 = {
|
|
22687
22704
|
class: "widget-box"
|
|
22688
22705
|
};
|
|
@@ -22849,11 +22866,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22849
22866
|
} else if ((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) {
|
|
22850
22867
|
let one = (_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
22851
22868
|
return one ? one[Object.keys(one)[0]] : "";
|
|
22852
|
-
} else {
|
|
22853
|
-
|
|
22854
|
-
|
|
22869
|
+
} else if (props2.schema[key].type === "Boolean") {
|
|
22870
|
+
v = v ? "\u662F" : "\u5426";
|
|
22871
|
+
return v;
|
|
22872
|
+
} else if (v == null) {
|
|
22873
|
+
return "";
|
|
22874
|
+
} else
|
|
22855
22875
|
return v;
|
|
22856
|
-
}
|
|
22857
22876
|
};
|
|
22858
22877
|
const onEdit = (index) => {
|
|
22859
22878
|
data2.selectIndex = index;
|
|
@@ -23055,7 +23074,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23055
23074
|
};
|
|
23056
23075
|
}
|
|
23057
23076
|
};
|
|
23058
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23077
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-febc3832"]]);
|
|
23059
23078
|
const secret_notify = () => {
|
|
23060
23079
|
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 });
|
|
23061
23080
|
};
|
package/package.json
CHANGED
package/src/api/index.js
CHANGED
|
@@ -102,7 +102,7 @@ export const get_wxuser_by_id = (data) => {
|
|
|
102
102
|
|
|
103
103
|
export function auth_children(data) {
|
|
104
104
|
return request_json({
|
|
105
|
-
url: vm.urlCallback() + "/
|
|
105
|
+
url: vm.urlCallback() + "/ac-api/qw/auth/children",
|
|
106
106
|
method: "POST",
|
|
107
107
|
data: data,
|
|
108
108
|
});
|
|
@@ -114,9 +114,12 @@ const onDelete = (idx) => {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
watch(() => JSON.stringify(modelValue.value), async (n, o) => {
|
|
117
|
+
//单用户选择时,将用户id记录在selectedNodeId,用户对象存入selectedNodes的第一个元素
|
|
117
118
|
if (!props.multiple) {
|
|
118
119
|
data.selectedNodeId = modelValue.value
|
|
119
|
-
}
|
|
120
|
+
}
|
|
121
|
+
//多用户选择时,遍历回调接口获取多用户对象列表,记录在selectedNodes
|
|
122
|
+
else {
|
|
120
123
|
data.selectedNodes = []
|
|
121
124
|
let ids = modelValue.value || []
|
|
122
125
|
ids.forEach(async (id) => {
|
|
@@ -126,7 +129,11 @@ watch(() => JSON.stringify(modelValue.value), async (n, o) => {
|
|
|
126
129
|
params.hasChildren = false
|
|
127
130
|
params.hasPaths= true
|
|
128
131
|
await props.idQueryNode(params, (node) => {
|
|
129
|
-
|
|
132
|
+
//在部门的children中查找id对应的用户
|
|
133
|
+
//部门的children中既有子部门又有部门的员工
|
|
134
|
+
let selectNode = util.findNode(id, node.children)
|
|
135
|
+
//将用户对象放入选中用户列表中
|
|
136
|
+
data.selectedNodes = [...data.selectedNodes, selectNode]
|
|
130
137
|
})
|
|
131
138
|
})
|
|
132
139
|
}
|
package/src/components/Input.vue
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
:rows="props.rows" :autosize="props.autosize" :rules="rules">
|
|
6
6
|
<!-- 右侧插槽按钮 -->
|
|
7
7
|
<template #button>
|
|
8
|
-
<van-
|
|
9
|
-
+
|
|
10
|
-
</van-button>
|
|
8
|
+
<van-icon name="plus" @click="onCalc" />
|
|
11
9
|
</template>
|
|
12
10
|
</van-field>
|
|
13
|
-
<van-popup v-model:show="data.isShowPop" position="bottom" round>
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
<van-popup v-model:show="data.isShowPop" position="bottom" round style="padding: 25px 15px;">
|
|
12
|
+
<div style="display: flex; align-items: center;">
|
|
13
|
+
<span style="font-size: 20px; color: #999;">{{ props.modelValue || '' }}</span>
|
|
14
|
+
<van-field v-model="data.express" placeholder="请输入+/-数字" type="text" style="font-size: 20px;"/>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="margin:15px 0 0 0;">
|
|
17
|
+
<van-button @click="onSubmit" type="primary" size="large">
|
|
18
|
+
确定
|
|
19
|
+
</van-button>
|
|
20
|
+
</div>
|
|
21
21
|
</van-popup>
|
|
22
22
|
<!-- 文本类型 -->
|
|
23
23
|
<van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type != 'number'" :disabled="isDisabled"
|
|
@@ -96,7 +96,7 @@ const onSubmit = () => {
|
|
|
96
96
|
throw new Error("非法表达式");
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
let fullExpress = modelValue.value+''+data.express
|
|
99
|
+
let fullExpress = modelValue.value + '' + data.express
|
|
100
100
|
|
|
101
101
|
modelValue.value = eval(fullExpress)
|
|
102
102
|
|
|
@@ -242,12 +242,13 @@ const key2value = (key, item) => {
|
|
|
242
242
|
let one = props.schema[key]?.schema?.options.find(item => item[Object.keys(item)[1]] === v)
|
|
243
243
|
return one ? one[Object.keys(one)[0]] : ''
|
|
244
244
|
}
|
|
245
|
-
else {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
else if (props.schema[key].type === 'Boolean'){
|
|
246
|
+
v = v ? '是' : '否'
|
|
247
|
+
return v
|
|
248
|
+
}else if(null == v){
|
|
249
|
+
return ''
|
|
250
|
+
}else
|
|
249
251
|
return v
|
|
250
|
-
}
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
const onEdit = (index) => {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script setup>
|
|
10
10
|
import { onMounted, reactive, defineProps, watch } from "vue";
|
|
11
11
|
import util from '@/util'
|
|
12
|
-
import { useVModel } from "@vueuse/core"
|
|
12
|
+
import { useVModel } from "@vueuse/core"
|
|
13
13
|
|
|
14
14
|
const props = defineProps({
|
|
15
15
|
modelValue: {
|
|
@@ -39,7 +39,7 @@ const props = defineProps({
|
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
const data = reactive({
|
|
42
|
-
isShow: false
|
|
42
|
+
isShow: false
|
|
43
43
|
})
|
|
44
44
|
|
|
45
45
|
const emit = defineEmits(['update:modelValue', 'select'])
|
|
@@ -66,7 +66,7 @@ const keywordQueryNode = async (params, setNode) => {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
let res = await util.
|
|
69
|
+
let res = await util.qw_department_children(p)
|
|
70
70
|
if (res.code != 200)
|
|
71
71
|
return
|
|
72
72
|
|
|
@@ -74,8 +74,8 @@ const keywordQueryNode = async (params, setNode) => {
|
|
|
74
74
|
setNode(fn)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
//查询用户所在部门详情信息
|
|
77
78
|
const idQueryNode = async (params, setNode) => {
|
|
78
|
-
// if (params.hasChildren) {
|
|
79
79
|
let p = {
|
|
80
80
|
id: params.id,
|
|
81
81
|
hasChildren: params.hasChildren,
|
|
@@ -92,44 +92,25 @@ const idQueryNode = async (params, setNode) => {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
let res = await util.
|
|
95
|
+
let res = await util.qw_department_children(p)
|
|
96
96
|
if (res.code != 200)
|
|
97
97
|
return
|
|
98
98
|
|
|
99
99
|
let fn = formatNode(res.data)
|
|
100
|
-
|
|
101
|
-
// let selectNode = fn
|
|
102
|
-
// if(params.id != selectNode.id){
|
|
103
|
-
// selectNode = selectNode.children.find(item=>{
|
|
104
|
-
// return item.id == params.id
|
|
105
|
-
// })
|
|
106
|
-
// }
|
|
107
|
-
|
|
108
100
|
setNode(fn)
|
|
109
|
-
// }
|
|
110
|
-
// else {
|
|
111
|
-
// console.log('11111111111',params)
|
|
112
|
-
|
|
113
|
-
// let res = await util.get_wxuser_by_id({ userId: params.id })
|
|
114
|
-
// if (res.code != 200)
|
|
115
|
-
// return
|
|
116
|
-
|
|
117
|
-
// let fn = formatNode(res.data)
|
|
118
|
-
// setNode(fn)
|
|
119
|
-
// }
|
|
120
101
|
}
|
|
121
102
|
|
|
122
103
|
const formatNode = (node) => {
|
|
123
|
-
|
|
124
|
-
//部门
|
|
104
|
+
//格式化部门节点
|
|
125
105
|
if (!node.userid) {
|
|
106
|
+
//将子部门与部门用户都放入children中
|
|
126
107
|
let children = []
|
|
127
108
|
if (node.children && node.children.length > 0)
|
|
128
109
|
children = node.children
|
|
129
110
|
if (node.users && node.users.length > 0)
|
|
130
111
|
children = [...children, ...node.users]
|
|
131
112
|
|
|
132
|
-
|
|
113
|
+
return {
|
|
133
114
|
id: node.id,
|
|
134
115
|
parentId: node.parentid,
|
|
135
116
|
paths: formatNodes(node.paths),
|
|
@@ -143,9 +124,9 @@ const formatNode = (node) => {
|
|
|
143
124
|
canExpand: node.hasChildren || (node.users && node.users.length > 0)
|
|
144
125
|
}
|
|
145
126
|
}
|
|
146
|
-
|
|
127
|
+
//格式化人员节点
|
|
147
128
|
else {
|
|
148
|
-
|
|
129
|
+
return {
|
|
149
130
|
id: node.userid,
|
|
150
131
|
parentId: node.mainDepartment,
|
|
151
132
|
paths: [],
|
|
@@ -159,8 +140,6 @@ const formatNode = (node) => {
|
|
|
159
140
|
canExpand: false
|
|
160
141
|
}
|
|
161
142
|
}
|
|
162
|
-
|
|
163
|
-
return res
|
|
164
143
|
}
|
|
165
144
|
|
|
166
145
|
const formatNodes = (nodes) => {
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page">
|
|
3
|
-
<
|
|
4
|
-
:auth="formData.auth"
|
|
5
|
-
v-model="formData.userId"
|
|
6
|
-
@select="onSelect"
|
|
7
|
-
rootDeptId="-1"
|
|
8
|
-
/>
|
|
3
|
+
<UserPicker label="项目经理" multiple v-model="data.userids" />
|
|
9
4
|
</div>
|
|
10
5
|
</template>
|
|
11
6
|
|
|
12
7
|
<script setup>
|
|
13
|
-
import { reactive
|
|
14
|
-
|
|
15
|
-
deptRangeId: "production_dept_ids",
|
|
16
|
-
userId: "014391",
|
|
17
|
-
auth: "option",
|
|
18
|
-
});
|
|
8
|
+
import { reactive, onMounted } from "vue";
|
|
9
|
+
import UserPicker from '../cascaderpicker/userpicker.vue'
|
|
19
10
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
const data = reactive({
|
|
12
|
+
auth: 'require',
|
|
13
|
+
userids: ["HouMu"]
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
onMounted(() => {
|
|
23
17
|
|
|
24
|
-
onMounted(()=>{
|
|
25
|
-
setTimeout(()=>{
|
|
26
|
-
formData.singleUser = '014391'
|
|
27
|
-
},10000)
|
|
28
18
|
})
|
|
29
19
|
</script>
|
|
30
20
|
|