widget.qw 1.0.9 → 1.0.11
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 +28 -28
- package/build/widget.qw.es.js +43 -19
- package/build/widget.qw.umd.js +43 -19
- package/package.json +1 -1
- package/src/api/index.js +4 -4
- package/src/components/AuditBar.vue +1 -1
- package/src/components/CascaderPicker.vue +27 -21
- package/src/components/CascaderPop.vue +14 -2
- package/src/components/index.js +1 -0
- package/src/main.js +4 -1
- package/src/views/cascaderpicker/index.vue +0 -0
- package/src/vm/index.js +1 -0
- package/vite.config.ts +2 -2
package/build/style.css
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@charset "UTF-8";.widget[data-v-
|
|
1
|
+
@charset "UTF-8";.widget[data-v-5ad893b4] {
|
|
2
2
|
text-align: center;
|
|
3
3
|
padding: 15px 15px;
|
|
4
4
|
}
|
|
5
|
-
.memo[data-v-
|
|
5
|
+
.memo[data-v-5ad893b4] {
|
|
6
6
|
margin-bottom: 15px;
|
|
7
7
|
}
|
|
8
|
-
.refuse-btn[data-v-
|
|
8
|
+
.refuse-btn[data-v-5ad893b4] {
|
|
9
9
|
width: 120px;
|
|
10
10
|
margin-right: 15px;
|
|
11
11
|
}
|
|
12
|
-
.pass-btn[data-v-
|
|
12
|
+
.pass-btn[data-v-5ad893b4] {
|
|
13
13
|
width: 120px;
|
|
14
14
|
}
|
|
15
|
-
.apply-btn[data-v-
|
|
15
|
+
.apply-btn[data-v-5ad893b4] {
|
|
16
16
|
width: 60vw;
|
|
17
17
|
}
|
|
18
|
-
.task-list[data-v-
|
|
18
|
+
.task-list[data-v-5ad893b4] {
|
|
19
19
|
margin-top: 15px;
|
|
20
20
|
}
|
|
21
|
-
.task-title[data-v-
|
|
21
|
+
.task-title[data-v-5ad893b4] {
|
|
22
22
|
font-size: 14px;
|
|
23
23
|
font-weight: bold;
|
|
24
24
|
color: #333;
|
|
25
25
|
text-align: left;
|
|
26
26
|
}
|
|
27
|
-
.task-user[data-v-
|
|
27
|
+
.task-user[data-v-5ad893b4] {
|
|
28
28
|
font-size: 13px;
|
|
29
29
|
color: #666;
|
|
30
30
|
text-align: left;
|
|
31
31
|
margin-top: 5px;
|
|
32
32
|
}
|
|
33
|
-
.audit-title[data-v-
|
|
33
|
+
.audit-title[data-v-5ad893b4] {
|
|
34
34
|
padding: 25px 15px 0 15px;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
font-weight: bold;
|
|
@@ -709,25 +709,25 @@
|
|
|
709
709
|
margin:3px;
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
.cascader-pop[data-v-
|
|
712
|
+
.cascader-pop[data-v-3ed10092] {
|
|
713
713
|
width: 100%;
|
|
714
714
|
overflow: hidden;
|
|
715
715
|
}
|
|
716
|
-
.cascader-selector[data-v-
|
|
716
|
+
.cascader-selector[data-v-3ed10092] {
|
|
717
717
|
padding: 10px;
|
|
718
718
|
}
|
|
719
|
-
.search-buttons[data-v-
|
|
719
|
+
.search-buttons[data-v-3ed10092] {
|
|
720
720
|
display: flex;
|
|
721
721
|
gap: 10px;
|
|
722
722
|
}
|
|
723
|
-
.clear-btn[data-v-
|
|
723
|
+
.clear-btn[data-v-3ed10092] {
|
|
724
724
|
background-color: #f2f3f5;
|
|
725
725
|
border: none;
|
|
726
726
|
border-radius: 4px;
|
|
727
727
|
padding: 4px 8px;
|
|
728
728
|
font-size: 14px;
|
|
729
729
|
}
|
|
730
|
-
.confirm-btn[data-v-
|
|
730
|
+
.confirm-btn[data-v-3ed10092] {
|
|
731
731
|
background-color: #1989fa;
|
|
732
732
|
color: white;
|
|
733
733
|
border: none;
|
|
@@ -735,19 +735,19 @@
|
|
|
735
735
|
padding: 4px 8px;
|
|
736
736
|
font-size: 14px;
|
|
737
737
|
}
|
|
738
|
-
.no-results[data-v-
|
|
738
|
+
.no-results[data-v-3ed10092] {
|
|
739
739
|
text-align: center;
|
|
740
740
|
padding: 20px;
|
|
741
741
|
color: #969799;
|
|
742
742
|
}
|
|
743
|
-
.cascader-header[data-v-
|
|
743
|
+
.cascader-header[data-v-3ed10092] {
|
|
744
744
|
padding: 10px;
|
|
745
745
|
border-bottom: 1px solid #ebedf0;
|
|
746
746
|
display: flex;
|
|
747
747
|
justify-content: space-between;
|
|
748
748
|
align-items: center;
|
|
749
749
|
}
|
|
750
|
-
.current-path[data-v-
|
|
750
|
+
.current-path[data-v-3ed10092] {
|
|
751
751
|
flex: 1;
|
|
752
752
|
font-size: 14px;
|
|
753
753
|
color: #323233;
|
|
@@ -755,25 +755,25 @@
|
|
|
755
755
|
overflow: hidden;
|
|
756
756
|
text-overflow: ellipsis;
|
|
757
757
|
}
|
|
758
|
-
.header-right[data-v-
|
|
758
|
+
.header-right[data-v-3ed10092] {
|
|
759
759
|
display: flex;
|
|
760
760
|
gap: 8px;
|
|
761
761
|
margin-left: auto;
|
|
762
762
|
}
|
|
763
|
-
.cancel-btn[data-v-
|
|
763
|
+
.cancel-btn[data-v-3ed10092] {
|
|
764
764
|
color: #969799;
|
|
765
765
|
margin-right: 5px;
|
|
766
766
|
}
|
|
767
|
-
.scroll-container[data-v-
|
|
767
|
+
.scroll-container[data-v-3ed10092] {
|
|
768
768
|
height: calc(80vh - 150px);
|
|
769
769
|
overflow-y: auto;
|
|
770
770
|
}
|
|
771
|
-
.cell-content[data-v-
|
|
771
|
+
.cell-content[data-v-3ed10092] {
|
|
772
772
|
display: flex;
|
|
773
773
|
align-items: center;
|
|
774
774
|
gap: 12px;
|
|
775
775
|
}
|
|
776
|
-
.circle-selector[data-v-
|
|
776
|
+
.circle-selector[data-v-3ed10092] {
|
|
777
777
|
width: 20px;
|
|
778
778
|
height: 20px;
|
|
779
779
|
border-radius: 50%;
|
|
@@ -783,29 +783,29 @@
|
|
|
783
783
|
transition: all 0.2s;
|
|
784
784
|
flex-shrink: 0;
|
|
785
785
|
}
|
|
786
|
-
.circle-selector.selected[data-v-
|
|
786
|
+
.circle-selector.selected[data-v-3ed10092] {
|
|
787
787
|
background-color: #1989fa;
|
|
788
788
|
border-color: #1989fa;
|
|
789
789
|
}
|
|
790
|
-
.circle-selector.selected .van-icon[data-v-
|
|
790
|
+
.circle-selector.selected .van-icon[data-v-3ed10092] {
|
|
791
791
|
color: white;
|
|
792
792
|
font-size: 14px;
|
|
793
793
|
}
|
|
794
|
-
.van-cell__right-icon[data-v-
|
|
794
|
+
.van-cell__right-icon[data-v-3ed10092] {
|
|
795
795
|
color: #969799;
|
|
796
796
|
font-size: 16px;
|
|
797
797
|
margin-left: 8px;
|
|
798
798
|
}
|
|
799
|
-
.name[data-v-
|
|
799
|
+
.name[data-v-3ed10092] {
|
|
800
800
|
flex: 1;
|
|
801
801
|
overflow: hidden;
|
|
802
802
|
text-overflow: ellipsis;
|
|
803
803
|
white-space: nowrap;
|
|
804
804
|
}
|
|
805
|
-
.cancel-btn[data-v-
|
|
805
|
+
.cancel-btn[data-v-3ed10092] {
|
|
806
806
|
color: #969799;
|
|
807
807
|
}
|
|
808
|
-
.search-field[data-v-
|
|
808
|
+
.search-field[data-v-3ed10092] {
|
|
809
809
|
background: #fff;
|
|
810
810
|
padding: 10px 16px;
|
|
811
811
|
border-bottom: 1px solid #ebedf0;
|
package/build/widget.qw.es.js
CHANGED
|
@@ -41,7 +41,8 @@ import { computed, onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick
|
|
|
41
41
|
var vm = {
|
|
42
42
|
urlCallback: null,
|
|
43
43
|
tokenCallback: null,
|
|
44
|
-
needLoginCallback: null
|
|
44
|
+
needLoginCallback: null,
|
|
45
|
+
gstepBaseUrlCallback: null
|
|
45
46
|
};
|
|
46
47
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
47
48
|
function getAugmentedNamespace(n) {
|
|
@@ -2949,7 +2950,7 @@ var lib = {
|
|
|
2949
2950
|
parse,
|
|
2950
2951
|
stringify
|
|
2951
2952
|
};
|
|
2952
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2953
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2953
2954
|
const NEED_LOGIN_CODES = [
|
|
2954
2955
|
NEED_LOGIN
|
|
2955
2956
|
];
|
|
@@ -2959,11 +2960,10 @@ function setCacheValueByKey(key, val) {
|
|
|
2959
2960
|
function removeCacheByKey(key) {
|
|
2960
2961
|
localStorage.removeItem(key);
|
|
2961
2962
|
}
|
|
2962
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2963
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2963
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2964
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2964
2965
|
function getToken() {
|
|
2965
|
-
|
|
2966
|
-
return vm.tokenCallback();
|
|
2966
|
+
return TOKEN_PREFIX + { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_DEBUG_TOKEN;
|
|
2967
2967
|
}
|
|
2968
2968
|
function setToken(token2) {
|
|
2969
2969
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3196,21 +3196,21 @@ service.interceptors.response.use((response) => {
|
|
|
3196
3196
|
var request = service;
|
|
3197
3197
|
const process_can_apply = (data2) => {
|
|
3198
3198
|
return request_json_mute({
|
|
3199
|
-
url: vm.
|
|
3199
|
+
url: `${vm.gstepBaseUrlCallback()}/process/can_apply`,
|
|
3200
3200
|
method: "POST",
|
|
3201
3201
|
data: data2
|
|
3202
3202
|
});
|
|
3203
3203
|
};
|
|
3204
3204
|
const process_detail = (data2) => {
|
|
3205
3205
|
return service$3({
|
|
3206
|
-
url: vm.
|
|
3206
|
+
url: `${vm.gstepBaseUrlCallback()}/process/detail`,
|
|
3207
3207
|
method: "POST",
|
|
3208
3208
|
data: data2
|
|
3209
3209
|
});
|
|
3210
3210
|
};
|
|
3211
3211
|
const process_step_auth = (data2) => {
|
|
3212
3212
|
return request_json_mute({
|
|
3213
|
-
url: vm.
|
|
3213
|
+
url: `${vm.gstepBaseUrlCallback()}/process/step_auth`,
|
|
3214
3214
|
method: "POST",
|
|
3215
3215
|
data: data2
|
|
3216
3216
|
});
|
|
@@ -15751,7 +15751,7 @@ var lodash$1 = { exports: {} };
|
|
|
15751
15751
|
}).call(commonjsGlobal);
|
|
15752
15752
|
})(lodash$1, lodash$1.exports);
|
|
15753
15753
|
var lodash = lodash$1.exports;
|
|
15754
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15754
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-5ad893b4] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-5ad893b4] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-5ad893b4] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-5ad893b4] {\n width: 120px;\n}\n.apply-btn[data-v-5ad893b4] {\n width: 60vw;\n}\n.task-list[data-v-5ad893b4] {\n margin-top: 15px;\n}\n.task-title[data-v-5ad893b4] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-5ad893b4] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-5ad893b4] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15755
15755
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15756
15756
|
var _export_sfc = (sfc, props) => {
|
|
15757
15757
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15779,7 +15779,8 @@ const _sfc_main$u = {
|
|
|
15779
15779
|
processId: Number,
|
|
15780
15780
|
mouldId: Number,
|
|
15781
15781
|
userId: String,
|
|
15782
|
-
form: Object
|
|
15782
|
+
form: Object,
|
|
15783
|
+
process_detail: Function
|
|
15783
15784
|
},
|
|
15784
15785
|
emits: ["pass", "refuse", "apply", "auth"],
|
|
15785
15786
|
setup(__props, {
|
|
@@ -16072,7 +16073,7 @@ const _sfc_main$u = {
|
|
|
16072
16073
|
};
|
|
16073
16074
|
}
|
|
16074
16075
|
};
|
|
16075
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16076
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5ad893b4"]]);
|
|
16076
16077
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16077
16078
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16078
16079
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -20282,7 +20283,7 @@ const _sfc_main$3 = {
|
|
|
20282
20283
|
}
|
|
20283
20284
|
};
|
|
20284
20285
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6744b874"]]);
|
|
20285
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20286
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-3ed10092] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-3ed10092] {\r\n padding: 10px;\n}\n.search-buttons[data-v-3ed10092] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-3ed10092] {\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-3ed10092] {\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-3ed10092] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-3ed10092] {\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-3ed10092] {\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-3ed10092] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-3ed10092] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-3ed10092] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-3ed10092] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-3ed10092] {\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-3ed10092] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-3ed10092] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-3ed10092] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-3ed10092] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-3ed10092] {\r\n color: #969799;\n}\n.search-field[data-v-3ed10092] {\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")();
|
|
20286
20287
|
const _hoisted_1$1 = {
|
|
20287
20288
|
class: "cascader-selector"
|
|
20288
20289
|
};
|
|
@@ -20334,6 +20335,14 @@ const _sfc_main$2 = {
|
|
|
20334
20335
|
type: Function,
|
|
20335
20336
|
default: () => {
|
|
20336
20337
|
}
|
|
20338
|
+
},
|
|
20339
|
+
minLevel: {
|
|
20340
|
+
type: Number,
|
|
20341
|
+
default: 1
|
|
20342
|
+
},
|
|
20343
|
+
maxLevel: {
|
|
20344
|
+
type: Number,
|
|
20345
|
+
default: 9999
|
|
20337
20346
|
}
|
|
20338
20347
|
},
|
|
20339
20348
|
emits: ["update:show", "select"],
|
|
@@ -20349,6 +20358,9 @@ const _sfc_main$2 = {
|
|
|
20349
20358
|
currentNode: null,
|
|
20350
20359
|
selectedNodeId: ""
|
|
20351
20360
|
});
|
|
20361
|
+
const canSelect = (node) => {
|
|
20362
|
+
return node.level >= props.minLevel && node.level <= props.maxLevel;
|
|
20363
|
+
};
|
|
20352
20364
|
const optionNodes = computed(() => {
|
|
20353
20365
|
var _a;
|
|
20354
20366
|
if (data2.currentNode)
|
|
@@ -20488,7 +20500,8 @@ const _sfc_main$2 = {
|
|
|
20488
20500
|
return openBlock(), createBlock(_component_van_cell, {
|
|
20489
20501
|
key: i
|
|
20490
20502
|
}, createSlots({
|
|
20491
|
-
title: withCtx(() => [createElementVNode("div", _hoisted_9, [
|
|
20503
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_9, [canSelect(item) ? (openBlock(), createElementBlock("div", {
|
|
20504
|
+
key: 0,
|
|
20492
20505
|
class: "circle-selector",
|
|
20493
20506
|
onClick: withModifiers(($event) => onToggle(item), ["stop"])
|
|
20494
20507
|
}, [data2.selectedNodeId === item.id ? (openBlock(), createBlock(_component_van_icon, {
|
|
@@ -20501,9 +20514,9 @@ const _sfc_main$2 = {
|
|
|
20501
20514
|
name: "circle",
|
|
20502
20515
|
size: "20",
|
|
20503
20516
|
color: "#e0e0e0"
|
|
20504
|
-
})) : createCommentVNode("", true)], 8, _hoisted_10), createElementVNode("span", _hoisted_11, toDisplayString(item.label), 1)])]),
|
|
20517
|
+
})) : createCommentVNode("", true)], 8, _hoisted_10)) : createCommentVNode("", true), createElementVNode("span", _hoisted_11, toDisplayString(item.label), 1)])]),
|
|
20505
20518
|
_: 2
|
|
20506
|
-
}, [item.hasChildren ? {
|
|
20519
|
+
}, [item.hasChildren && item.level < props.maxLevel ? {
|
|
20507
20520
|
name: "right-icon",
|
|
20508
20521
|
fn: withCtx(() => [createVNode(_component_van_icon, {
|
|
20509
20522
|
name: "arrow",
|
|
@@ -20518,7 +20531,7 @@ const _sfc_main$2 = {
|
|
|
20518
20531
|
};
|
|
20519
20532
|
}
|
|
20520
20533
|
};
|
|
20521
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
20534
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-3ed10092"]]);
|
|
20522
20535
|
const _sfc_main$1 = {
|
|
20523
20536
|
__name: "CascaderPicker",
|
|
20524
20537
|
props: {
|
|
@@ -20559,6 +20572,14 @@ const _sfc_main$1 = {
|
|
|
20559
20572
|
type: Function,
|
|
20560
20573
|
default: () => {
|
|
20561
20574
|
}
|
|
20575
|
+
},
|
|
20576
|
+
minLevel: {
|
|
20577
|
+
type: Number,
|
|
20578
|
+
default: 1
|
|
20579
|
+
},
|
|
20580
|
+
maxLevel: {
|
|
20581
|
+
type: Number,
|
|
20582
|
+
default: 9999
|
|
20562
20583
|
}
|
|
20563
20584
|
},
|
|
20564
20585
|
emits: ["update:modelValue", "select"],
|
|
@@ -20637,8 +20658,10 @@ const _sfc_main$1 = {
|
|
|
20637
20658
|
placeholder: props.placeholder,
|
|
20638
20659
|
onSelect,
|
|
20639
20660
|
queryNodes: props.queryNodes,
|
|
20640
|
-
queryNode: props.queryNode
|
|
20641
|
-
|
|
20661
|
+
queryNode: props.queryNode,
|
|
20662
|
+
minLevel: props.minLevel,
|
|
20663
|
+
maxLevel: props.maxLevel
|
|
20664
|
+
}, null, 8, ["show", "modelValue", "placeholder", "queryNodes", "queryNode", "minLevel", "maxLevel"])], 64);
|
|
20642
20665
|
};
|
|
20643
20666
|
}
|
|
20644
20667
|
};
|
|
@@ -20872,5 +20895,6 @@ function setup(params) {
|
|
|
20872
20895
|
vm.urlCallback = params.urlCallback;
|
|
20873
20896
|
vm.tokenCallback = params.tokenCallback;
|
|
20874
20897
|
vm.needLoginCallback = params.needLoginCallback;
|
|
20898
|
+
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20875
20899
|
}
|
|
20876
20900
|
export { WidgetQw, secret_notify, setup };
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -44,7 +44,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
44
44
|
var vm = {
|
|
45
45
|
urlCallback: null,
|
|
46
46
|
tokenCallback: null,
|
|
47
|
-
needLoginCallback: null
|
|
47
|
+
needLoginCallback: null,
|
|
48
|
+
gstepBaseUrlCallback: null
|
|
48
49
|
};
|
|
49
50
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
50
51
|
function getAugmentedNamespace(n) {
|
|
@@ -2952,7 +2953,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2952
2953
|
parse,
|
|
2953
2954
|
stringify
|
|
2954
2955
|
};
|
|
2955
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2956
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2956
2957
|
const NEED_LOGIN_CODES = [
|
|
2957
2958
|
NEED_LOGIN
|
|
2958
2959
|
];
|
|
@@ -2962,11 +2963,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2962
2963
|
function removeCacheByKey(key) {
|
|
2963
2964
|
localStorage.removeItem(key);
|
|
2964
2965
|
}
|
|
2965
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2966
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2966
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2967
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2967
2968
|
function getToken() {
|
|
2968
|
-
|
|
2969
|
-
return vm.tokenCallback();
|
|
2969
|
+
return TOKEN_PREFIX + { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_DEBUG_TOKEN;
|
|
2970
2970
|
}
|
|
2971
2971
|
function setToken(token2) {
|
|
2972
2972
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3199,21 +3199,21 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3199
3199
|
var request = service;
|
|
3200
3200
|
const process_can_apply = (data2) => {
|
|
3201
3201
|
return request_json_mute({
|
|
3202
|
-
url: vm.
|
|
3202
|
+
url: `${vm.gstepBaseUrlCallback()}/process/can_apply`,
|
|
3203
3203
|
method: "POST",
|
|
3204
3204
|
data: data2
|
|
3205
3205
|
});
|
|
3206
3206
|
};
|
|
3207
3207
|
const process_detail = (data2) => {
|
|
3208
3208
|
return service$3({
|
|
3209
|
-
url: vm.
|
|
3209
|
+
url: `${vm.gstepBaseUrlCallback()}/process/detail`,
|
|
3210
3210
|
method: "POST",
|
|
3211
3211
|
data: data2
|
|
3212
3212
|
});
|
|
3213
3213
|
};
|
|
3214
3214
|
const process_step_auth = (data2) => {
|
|
3215
3215
|
return request_json_mute({
|
|
3216
|
-
url: vm.
|
|
3216
|
+
url: `${vm.gstepBaseUrlCallback()}/process/step_auth`,
|
|
3217
3217
|
method: "POST",
|
|
3218
3218
|
data: data2
|
|
3219
3219
|
});
|
|
@@ -15754,7 +15754,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15754
15754
|
}).call(commonjsGlobal);
|
|
15755
15755
|
})(lodash$1, lodash$1.exports);
|
|
15756
15756
|
var lodash = lodash$1.exports;
|
|
15757
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15757
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-5ad893b4] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-5ad893b4] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-5ad893b4] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-5ad893b4] {\n width: 120px;\n}\n.apply-btn[data-v-5ad893b4] {\n width: 60vw;\n}\n.task-list[data-v-5ad893b4] {\n margin-top: 15px;\n}\n.task-title[data-v-5ad893b4] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-5ad893b4] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-5ad893b4] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15758
15758
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15759
15759
|
var _export_sfc = (sfc, props) => {
|
|
15760
15760
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15782,7 +15782,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15782
15782
|
processId: Number,
|
|
15783
15783
|
mouldId: Number,
|
|
15784
15784
|
userId: String,
|
|
15785
|
-
form: Object
|
|
15785
|
+
form: Object,
|
|
15786
|
+
process_detail: Function
|
|
15786
15787
|
},
|
|
15787
15788
|
emits: ["pass", "refuse", "apply", "auth"],
|
|
15788
15789
|
setup(__props, {
|
|
@@ -16075,7 +16076,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16075
16076
|
};
|
|
16076
16077
|
}
|
|
16077
16078
|
};
|
|
16078
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16079
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5ad893b4"]]);
|
|
16079
16080
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16080
16081
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16081
16082
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -20285,7 +20286,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20285
20286
|
}
|
|
20286
20287
|
};
|
|
20287
20288
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6744b874"]]);
|
|
20288
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20289
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-3ed10092] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-3ed10092] {\r\n padding: 10px;\n}\n.search-buttons[data-v-3ed10092] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-3ed10092] {\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-3ed10092] {\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-3ed10092] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-3ed10092] {\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-3ed10092] {\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-3ed10092] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-3ed10092] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-3ed10092] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-3ed10092] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-3ed10092] {\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-3ed10092] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-3ed10092] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-3ed10092] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-3ed10092] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-3ed10092] {\r\n color: #969799;\n}\n.search-field[data-v-3ed10092] {\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")();
|
|
20289
20290
|
const _hoisted_1$1 = {
|
|
20290
20291
|
class: "cascader-selector"
|
|
20291
20292
|
};
|
|
@@ -20337,6 +20338,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20337
20338
|
type: Function,
|
|
20338
20339
|
default: () => {
|
|
20339
20340
|
}
|
|
20341
|
+
},
|
|
20342
|
+
minLevel: {
|
|
20343
|
+
type: Number,
|
|
20344
|
+
default: 1
|
|
20345
|
+
},
|
|
20346
|
+
maxLevel: {
|
|
20347
|
+
type: Number,
|
|
20348
|
+
default: 9999
|
|
20340
20349
|
}
|
|
20341
20350
|
},
|
|
20342
20351
|
emits: ["update:show", "select"],
|
|
@@ -20352,6 +20361,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20352
20361
|
currentNode: null,
|
|
20353
20362
|
selectedNodeId: ""
|
|
20354
20363
|
});
|
|
20364
|
+
const canSelect = (node) => {
|
|
20365
|
+
return node.level >= props.minLevel && node.level <= props.maxLevel;
|
|
20366
|
+
};
|
|
20355
20367
|
const optionNodes = vue.computed(() => {
|
|
20356
20368
|
var _a;
|
|
20357
20369
|
if (data2.currentNode)
|
|
@@ -20491,7 +20503,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20491
20503
|
return vue.openBlock(), vue.createBlock(_component_van_cell, {
|
|
20492
20504
|
key: i
|
|
20493
20505
|
}, vue.createSlots({
|
|
20494
|
-
title: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_9, [vue.
|
|
20506
|
+
title: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_9, [canSelect(item) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
20507
|
+
key: 0,
|
|
20495
20508
|
class: "circle-selector",
|
|
20496
20509
|
onClick: vue.withModifiers(($event) => onToggle(item), ["stop"])
|
|
20497
20510
|
}, [data2.selectedNodeId === item.id ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
@@ -20504,9 +20517,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20504
20517
|
name: "circle",
|
|
20505
20518
|
size: "20",
|
|
20506
20519
|
color: "#e0e0e0"
|
|
20507
|
-
})) : vue.createCommentVNode("", true)], 8, _hoisted_10), vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(item.label), 1)])]),
|
|
20520
|
+
})) : vue.createCommentVNode("", true)], 8, _hoisted_10)) : vue.createCommentVNode("", true), vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(item.label), 1)])]),
|
|
20508
20521
|
_: 2
|
|
20509
|
-
}, [item.hasChildren ? {
|
|
20522
|
+
}, [item.hasChildren && item.level < props.maxLevel ? {
|
|
20510
20523
|
name: "right-icon",
|
|
20511
20524
|
fn: vue.withCtx(() => [vue.createVNode(_component_van_icon, {
|
|
20512
20525
|
name: "arrow",
|
|
@@ -20521,7 +20534,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20521
20534
|
};
|
|
20522
20535
|
}
|
|
20523
20536
|
};
|
|
20524
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
20537
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-3ed10092"]]);
|
|
20525
20538
|
const _sfc_main$1 = {
|
|
20526
20539
|
__name: "CascaderPicker",
|
|
20527
20540
|
props: {
|
|
@@ -20562,6 +20575,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20562
20575
|
type: Function,
|
|
20563
20576
|
default: () => {
|
|
20564
20577
|
}
|
|
20578
|
+
},
|
|
20579
|
+
minLevel: {
|
|
20580
|
+
type: Number,
|
|
20581
|
+
default: 1
|
|
20582
|
+
},
|
|
20583
|
+
maxLevel: {
|
|
20584
|
+
type: Number,
|
|
20585
|
+
default: 9999
|
|
20565
20586
|
}
|
|
20566
20587
|
},
|
|
20567
20588
|
emits: ["update:modelValue", "select"],
|
|
@@ -20640,8 +20661,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20640
20661
|
placeholder: props.placeholder,
|
|
20641
20662
|
onSelect,
|
|
20642
20663
|
queryNodes: props.queryNodes,
|
|
20643
|
-
queryNode: props.queryNode
|
|
20644
|
-
|
|
20664
|
+
queryNode: props.queryNode,
|
|
20665
|
+
minLevel: props.minLevel,
|
|
20666
|
+
maxLevel: props.maxLevel
|
|
20667
|
+
}, null, 8, ["show", "modelValue", "placeholder", "queryNodes", "queryNode", "minLevel", "maxLevel"])], 64);
|
|
20645
20668
|
};
|
|
20646
20669
|
}
|
|
20647
20670
|
};
|
|
@@ -20875,6 +20898,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20875
20898
|
vm.urlCallback = params.urlCallback;
|
|
20876
20899
|
vm.tokenCallback = params.tokenCallback;
|
|
20877
20900
|
vm.needLoginCallback = params.needLoginCallback;
|
|
20901
|
+
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20878
20902
|
}
|
|
20879
20903
|
exports.WidgetQw = WidgetQw;
|
|
20880
20904
|
exports.secret_notify = secret_notify;
|
package/package.json
CHANGED
package/src/api/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import vm from "../vm";
|
|
|
7
7
|
|
|
8
8
|
export const process_can_apply = (data) => {
|
|
9
9
|
return request_json_mute({
|
|
10
|
-
url: vm.
|
|
10
|
+
url: `${vm.gstepBaseUrlCallback()}/process/can_apply`,
|
|
11
11
|
method: "POST",
|
|
12
12
|
data,
|
|
13
13
|
});
|
|
@@ -15,7 +15,7 @@ export const process_can_apply = (data) => {
|
|
|
15
15
|
|
|
16
16
|
export const process_detail = (data) => {
|
|
17
17
|
return request_json({
|
|
18
|
-
url: vm.
|
|
18
|
+
url: `${vm.gstepBaseUrlCallback()}/process/detail`,
|
|
19
19
|
method: "POST",
|
|
20
20
|
data,
|
|
21
21
|
})
|
|
@@ -23,10 +23,10 @@ export const process_detail = (data) => {
|
|
|
23
23
|
|
|
24
24
|
export const process_step_auth = (data) => {
|
|
25
25
|
return request_json_mute({
|
|
26
|
-
url: vm.
|
|
26
|
+
url: `${vm.gstepBaseUrlCallback()}/process/step_auth`,
|
|
27
27
|
method: "POST",
|
|
28
28
|
data,
|
|
29
|
-
})
|
|
29
|
+
})
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const dictionary_dict = (data) => {
|
|
@@ -37,6 +37,7 @@ const props = defineProps({
|
|
|
37
37
|
mouldId: Number,
|
|
38
38
|
userId: String,
|
|
39
39
|
form: Object,
|
|
40
|
+
process_detail:Function,
|
|
40
41
|
})
|
|
41
42
|
const emit = defineEmits(['pass', 'refuse', 'apply', 'auth'])
|
|
42
43
|
const data = reactive({
|
|
@@ -101,7 +102,6 @@ const onApply = () => {
|
|
|
101
102
|
const queryDetail = async () => {
|
|
102
103
|
if (!props.processId)
|
|
103
104
|
return
|
|
104
|
-
|
|
105
105
|
const params = {
|
|
106
106
|
id: props.processId
|
|
107
107
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field v-if="!isGone" :label="props.label" readonly :required="isRequired" :rules="props.rules"
|
|
3
|
-
:placeholder="props.placeholder" :is-link="isReadonly ? false : true"
|
|
4
|
-
label-class="label">
|
|
2
|
+
<van-field v-if="!isGone" :label="props.label" readonly :required="isRequired" :rules="props.rules"
|
|
3
|
+
:disabled="isDisabled" :placeholder="props.placeholder" :is-link="isReadonly ? false : true"
|
|
4
|
+
@click="data.isShowPop = !isReadonly" label-class="label">
|
|
5
5
|
<template #input v-if="modelValue">
|
|
6
|
-
<van-tag class="selected-node" v-if="modelValue" :closeable="!isDisabled" color="#fff" text-color="#333"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<van-tag class="selected-node" v-if="modelValue" :closeable="!isDisabled" color="#fff" text-color="#333"
|
|
7
|
+
size="medium" @close.stop="onDelete">
|
|
8
|
+
{{ data.selectedNode.formatLabel }}
|
|
9
9
|
</van-tag>
|
|
10
10
|
</template>
|
|
11
11
|
</van-field>
|
|
12
12
|
|
|
13
|
-
<CascaderPop v-model:show="data.isShowPop"
|
|
14
|
-
|
|
15
|
-
:
|
|
16
|
-
@select="onSelect" :queryNodes="props.queryNodes" :queryNode="props.queryNode" />
|
|
13
|
+
<CascaderPop v-model:show="data.isShowPop" v-model="modelValue" :placeholder="props.placeholder" @select="onSelect"
|
|
14
|
+
:queryNodes="props.queryNodes" :queryNode="props.queryNode" :minLevel="props.minLevel"
|
|
15
|
+
:maxLevel="props.maxLevel" />
|
|
17
16
|
|
|
18
17
|
</template>
|
|
19
18
|
<script setup>
|
|
@@ -51,13 +50,21 @@ const props = defineProps({
|
|
|
51
50
|
type: String,
|
|
52
51
|
default: "",
|
|
53
52
|
},
|
|
54
|
-
queryNodes:{
|
|
55
|
-
type:Function,
|
|
56
|
-
default:()=>{}
|
|
53
|
+
queryNodes: {
|
|
54
|
+
type: Function,
|
|
55
|
+
default: () => { }
|
|
57
56
|
},
|
|
58
|
-
queryNode:{
|
|
59
|
-
type:Function,
|
|
60
|
-
default:()=>{}
|
|
57
|
+
queryNode: {
|
|
58
|
+
type: Function,
|
|
59
|
+
default: () => { }
|
|
60
|
+
},
|
|
61
|
+
minLevel: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 1
|
|
64
|
+
},
|
|
65
|
+
maxLevel: {
|
|
66
|
+
type: Number,
|
|
67
|
+
default: 9999
|
|
61
68
|
}
|
|
62
69
|
});
|
|
63
70
|
|
|
@@ -81,8 +88,8 @@ const onSelect = (node) => {
|
|
|
81
88
|
emit('select', data.selectedNode)
|
|
82
89
|
}
|
|
83
90
|
|
|
84
|
-
const onDelete=()=>{
|
|
85
|
-
data.selectedNode={}
|
|
91
|
+
const onDelete = () => {
|
|
92
|
+
data.selectedNode = {}
|
|
86
93
|
modelValue.value = null
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -92,7 +99,7 @@ watch(() => modelValue.value, async (n, o) => {
|
|
|
92
99
|
return
|
|
93
100
|
}
|
|
94
101
|
|
|
95
|
-
props.queryNode((node)=>{
|
|
102
|
+
props.queryNode((node) => {
|
|
96
103
|
data.selectedNode = node
|
|
97
104
|
emit('select', data.selectedNode)
|
|
98
105
|
})
|
|
@@ -101,5 +108,4 @@ watch(() => modelValue.value, async (n, o) => {
|
|
|
101
108
|
})
|
|
102
109
|
</script>
|
|
103
110
|
|
|
104
|
-
<style scoped>
|
|
105
|
-
</style>
|
|
111
|
+
<style scoped></style>
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
<van-cell v-for="(item, i) in optionNodes" :key="i" >
|
|
31
31
|
<template #title>
|
|
32
32
|
<div class="cell-content">
|
|
33
|
-
<div class="circle-selector" @click.stop="onToggle(item)">
|
|
33
|
+
<div class="circle-selector" v-if="canSelect(item)" @click.stop="onToggle(item)">
|
|
34
34
|
<van-icon v-if="data.selectedNodeId === item.id" name="success" size="20" color="#409eff"/>
|
|
35
35
|
<van-icon v-if="data.selectedNodeId != item.id" name="circle" size="20" color="#e0e0e0"/>
|
|
36
36
|
</div>
|
|
37
37
|
<span class="name">{{ item.label }}</span>
|
|
38
38
|
</div>
|
|
39
39
|
</template>
|
|
40
|
-
<template #right-icon v-if="item.hasChildren" >
|
|
40
|
+
<template #right-icon v-if="item.hasChildren && item.level<props.maxLevel" >
|
|
41
41
|
<van-icon name="arrow" @click.stop="onNextLevel(item)"/>
|
|
42
42
|
</template>
|
|
43
43
|
</van-cell>
|
|
@@ -72,6 +72,14 @@ const props = defineProps({
|
|
|
72
72
|
queryNode: {
|
|
73
73
|
type: Function,
|
|
74
74
|
default: () => { }
|
|
75
|
+
},
|
|
76
|
+
minLevel:{
|
|
77
|
+
type:Number,
|
|
78
|
+
default: 1
|
|
79
|
+
},
|
|
80
|
+
maxLevel:{
|
|
81
|
+
type:Number,
|
|
82
|
+
default: 9999
|
|
75
83
|
}
|
|
76
84
|
});
|
|
77
85
|
// 定义emit
|
|
@@ -90,6 +98,10 @@ const data = reactive({
|
|
|
90
98
|
selectedNodeId: ''
|
|
91
99
|
})
|
|
92
100
|
|
|
101
|
+
const canSelect=(node)=>{
|
|
102
|
+
return node.level>=props.minLevel && node.level<=props.maxLevel
|
|
103
|
+
}
|
|
104
|
+
|
|
93
105
|
// 待选节点列表
|
|
94
106
|
const optionNodes = computed(() => {
|
|
95
107
|
if (data.currentNode)
|
package/src/components/index.js
CHANGED
|
@@ -152,6 +152,7 @@ export function setup(params) {
|
|
|
152
152
|
vm.urlCallback = params.urlCallback;
|
|
153
153
|
vm.tokenCallback = params.tokenCallback;
|
|
154
154
|
vm.needLoginCallback = params.needLoginCallback;
|
|
155
|
+
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export * from "./SecretNotify";
|
package/src/main.js
CHANGED
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
Steps,
|
|
46
46
|
Tag,
|
|
47
47
|
Switch,
|
|
48
|
-
TreeSelect
|
|
48
|
+
TreeSelect
|
|
49
49
|
} from "vant";
|
|
50
50
|
import "vant/lib/index.css";
|
|
51
51
|
//本地测试 初始化组件
|
|
@@ -60,6 +60,9 @@ setup({
|
|
|
60
60
|
needLoginCallback: () => {
|
|
61
61
|
router.push({ path: "/login" });
|
|
62
62
|
},
|
|
63
|
+
gstepBaseUrlCallback: () => {
|
|
64
|
+
return `${process.env.VUE_APP_DOMAIN}/gstep-api`
|
|
65
|
+
}
|
|
63
66
|
});
|
|
64
67
|
|
|
65
68
|
createApp(App)
|
|
Binary file
|
package/src/vm/index.js
CHANGED
package/vite.config.ts
CHANGED
|
@@ -40,8 +40,8 @@ export default {
|
|
|
40
40
|
VUE_APP_NEED_LOGIN_CODE: 401,
|
|
41
41
|
//注意:发布时 VUE_APP_IS_DEBUG必须配置为false
|
|
42
42
|
// 本地开发时 VUE_APP_IS_DEBUG必须配置为true
|
|
43
|
-
VUE_APP_IS_DEBUG: false,
|
|
44
|
-
|
|
43
|
+
// VUE_APP_IS_DEBUG: false,
|
|
44
|
+
VUE_APP_IS_DEBUG: true,
|
|
45
45
|
VUE_APP_DEBUG_TOKEN: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns'
|
|
46
46
|
},
|
|
47
47
|
},
|