widget.qw 1.0.4 → 1.0.6
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 +29 -22
- package/build/widget.qw.es.js +19 -17
- package/build/widget.qw.umd.js +19 -17
- package/package.json +1 -1
- package/src/components/CascaderPicker.vue +3 -6
- package/src/components/CascaderPop.vue +13 -1
- package/src/router/index.ts +0 -4
- package/src/util/auth_util.js +4 -4
- package/src/views/cascaderpicker/index.vue +0 -0
- package/src/views/home/index.vue +0 -0
- package/vite.config.ts +2 -2
package/build/style.css
CHANGED
|
@@ -762,25 +762,25 @@
|
|
|
762
762
|
margin:3px;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
.cascader-pop[data-v-
|
|
765
|
+
.cascader-pop[data-v-b85d16dc] {
|
|
766
766
|
width: 100%;
|
|
767
767
|
overflow: hidden;
|
|
768
768
|
}
|
|
769
|
-
.cascader-selector[data-v-
|
|
769
|
+
.cascader-selector[data-v-b85d16dc] {
|
|
770
770
|
padding: 10px;
|
|
771
771
|
}
|
|
772
|
-
.search-buttons[data-v-
|
|
772
|
+
.search-buttons[data-v-b85d16dc] {
|
|
773
773
|
display: flex;
|
|
774
774
|
gap: 10px;
|
|
775
775
|
}
|
|
776
|
-
.clear-btn[data-v-
|
|
776
|
+
.clear-btn[data-v-b85d16dc] {
|
|
777
777
|
background-color: #f2f3f5;
|
|
778
778
|
border: none;
|
|
779
779
|
border-radius: 4px;
|
|
780
780
|
padding: 4px 8px;
|
|
781
781
|
font-size: 14px;
|
|
782
782
|
}
|
|
783
|
-
.confirm-btn[data-v-
|
|
783
|
+
.confirm-btn[data-v-b85d16dc] {
|
|
784
784
|
background-color: #1989fa;
|
|
785
785
|
color: white;
|
|
786
786
|
border: none;
|
|
@@ -788,19 +788,19 @@
|
|
|
788
788
|
padding: 4px 8px;
|
|
789
789
|
font-size: 14px;
|
|
790
790
|
}
|
|
791
|
-
.no-results[data-v-
|
|
791
|
+
.no-results[data-v-b85d16dc] {
|
|
792
792
|
text-align: center;
|
|
793
793
|
padding: 20px;
|
|
794
794
|
color: #969799;
|
|
795
795
|
}
|
|
796
|
-
.cascader-header[data-v-
|
|
796
|
+
.cascader-header[data-v-b85d16dc] {
|
|
797
797
|
padding: 10px;
|
|
798
798
|
border-bottom: 1px solid #ebedf0;
|
|
799
799
|
display: flex;
|
|
800
800
|
justify-content: space-between;
|
|
801
801
|
align-items: center;
|
|
802
802
|
}
|
|
803
|
-
.current-path[data-v-
|
|
803
|
+
.current-path[data-v-b85d16dc] {
|
|
804
804
|
flex: 1;
|
|
805
805
|
font-size: 14px;
|
|
806
806
|
color: #323233;
|
|
@@ -808,25 +808,25 @@
|
|
|
808
808
|
overflow: hidden;
|
|
809
809
|
text-overflow: ellipsis;
|
|
810
810
|
}
|
|
811
|
-
.header-right[data-v-
|
|
811
|
+
.header-right[data-v-b85d16dc] {
|
|
812
812
|
display: flex;
|
|
813
813
|
gap: 8px;
|
|
814
814
|
margin-left: auto;
|
|
815
815
|
}
|
|
816
|
-
.cancel-btn[data-v-
|
|
816
|
+
.cancel-btn[data-v-b85d16dc] {
|
|
817
817
|
color: #969799;
|
|
818
818
|
margin-right: 5px;
|
|
819
819
|
}
|
|
820
|
-
.scroll-container[data-v-
|
|
820
|
+
.scroll-container[data-v-b85d16dc] {
|
|
821
821
|
height: calc(80vh - 150px);
|
|
822
822
|
overflow-y: auto;
|
|
823
823
|
}
|
|
824
|
-
.cell-content[data-v-
|
|
824
|
+
.cell-content[data-v-b85d16dc] {
|
|
825
825
|
display: flex;
|
|
826
826
|
align-items: center;
|
|
827
827
|
gap: 12px;
|
|
828
828
|
}
|
|
829
|
-
.circle-selector[data-v-
|
|
829
|
+
.circle-selector[data-v-b85d16dc] {
|
|
830
830
|
width: 20px;
|
|
831
831
|
height: 20px;
|
|
832
832
|
border-radius: 50%;
|
|
@@ -836,29 +836,36 @@
|
|
|
836
836
|
transition: all 0.2s;
|
|
837
837
|
flex-shrink: 0;
|
|
838
838
|
}
|
|
839
|
-
.circle-selector.selected[data-v-
|
|
839
|
+
.circle-selector.selected[data-v-b85d16dc] {
|
|
840
840
|
background-color: #1989fa;
|
|
841
841
|
border-color: #1989fa;
|
|
842
842
|
}
|
|
843
|
-
.circle-selector.selected .van-icon[data-v-
|
|
843
|
+
.circle-selector.selected .van-icon[data-v-b85d16dc] {
|
|
844
844
|
color: white;
|
|
845
845
|
font-size: 14px;
|
|
846
846
|
}
|
|
847
|
-
.van-cell__right-icon[data-v-
|
|
847
|
+
.van-cell__right-icon[data-v-b85d16dc] {
|
|
848
848
|
color: #969799;
|
|
849
849
|
font-size: 16px;
|
|
850
850
|
margin-left: 8px;
|
|
851
851
|
}
|
|
852
|
-
.name[data-v-
|
|
852
|
+
.name[data-v-b85d16dc] {
|
|
853
853
|
flex: 1;
|
|
854
854
|
overflow: hidden;
|
|
855
855
|
text-overflow: ellipsis;
|
|
856
856
|
white-space: nowrap;
|
|
857
857
|
}
|
|
858
|
-
.cancel-btn[data-v-
|
|
858
|
+
.cancel-btn[data-v-b85d16dc] {
|
|
859
859
|
color: #969799;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
860
|
+
}
|
|
861
|
+
.search-field[data-v-b85d16dc] {
|
|
862
|
+
background: #fff;
|
|
863
|
+
padding: 10px 16px;
|
|
864
|
+
border-bottom: 1px solid #ebedf0;
|
|
865
|
+
position: sticky;
|
|
866
|
+
top: 0;
|
|
867
|
+
z-index: 999;
|
|
868
|
+
margin-bottom: 10px;
|
|
869
|
+
flex-shrink: 0;
|
|
870
|
+
/* 防止压缩 */
|
|
864
871
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -2949,7 +2949,7 @@ var lib = {
|
|
|
2949
2949
|
parse,
|
|
2950
2950
|
stringify
|
|
2951
2951
|
};
|
|
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":
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2953
2953
|
const NEED_LOGIN_CODES = [
|
|
2954
2954
|
NEED_LOGIN
|
|
2955
2955
|
];
|
|
@@ -2959,10 +2959,11 @@ function setCacheValueByKey(key, val) {
|
|
|
2959
2959
|
function removeCacheByKey(key) {
|
|
2960
2960
|
localStorage.removeItem(key);
|
|
2961
2961
|
}
|
|
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":
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2964
2964
|
function getToken() {
|
|
2965
|
-
|
|
2965
|
+
if (vm.tokenCallback)
|
|
2966
|
+
return vm.tokenCallback();
|
|
2966
2967
|
}
|
|
2967
2968
|
function setToken(token2) {
|
|
2968
2969
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -2997,12 +2998,12 @@ const props2auth = (props) => {
|
|
|
2997
2998
|
isReadonly: computed(() => {
|
|
2998
2999
|
if (props.auth)
|
|
2999
3000
|
return props.auth == "readonly";
|
|
3001
|
+
if (props.readonly)
|
|
3002
|
+
return true;
|
|
3000
3003
|
if (props.required)
|
|
3001
3004
|
return false;
|
|
3002
3005
|
if (props.disabled)
|
|
3003
3006
|
return true;
|
|
3004
|
-
if (props.readonly)
|
|
3005
|
-
return true;
|
|
3006
3007
|
return false;
|
|
3007
3008
|
}),
|
|
3008
3009
|
rules: computed(() => {
|
|
@@ -20569,7 +20570,7 @@ const _sfc_main$2 = {
|
|
|
20569
20570
|
}
|
|
20570
20571
|
};
|
|
20571
20572
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6744b874"]]);
|
|
20572
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20573
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-b85d16dc] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-b85d16dc] {\r\n padding: 10px;\n}\n.search-buttons[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-b85d16dc] {\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-b85d16dc] {\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-b85d16dc] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-b85d16dc] {\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-b85d16dc] {\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-b85d16dc] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-b85d16dc] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-b85d16dc] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-b85d16dc] {\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-b85d16dc] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-b85d16dc] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-b85d16dc] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-b85d16dc] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\n}\n.search-field[data-v-b85d16dc] {\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")();
|
|
20573
20574
|
const _hoisted_1 = {
|
|
20574
20575
|
class: "cascader-selector"
|
|
20575
20576
|
};
|
|
@@ -20808,8 +20809,7 @@ const _sfc_main$1 = {
|
|
|
20808
20809
|
};
|
|
20809
20810
|
}
|
|
20810
20811
|
};
|
|
20811
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
20812
|
-
var CascaderPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-005675b5]{\r\n padding:4px 8px;\n}\r\n")();
|
|
20812
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b85d16dc"]]);
|
|
20813
20813
|
const _sfc_main = {
|
|
20814
20814
|
__name: "CascaderPicker",
|
|
20815
20815
|
props: {
|
|
@@ -20831,7 +20831,7 @@ const _sfc_main = {
|
|
|
20831
20831
|
},
|
|
20832
20832
|
readonly: {
|
|
20833
20833
|
type: Boolean,
|
|
20834
|
-
default:
|
|
20834
|
+
default: true
|
|
20835
20835
|
},
|
|
20836
20836
|
rules: {
|
|
20837
20837
|
type: Array,
|
|
@@ -20895,6 +20895,7 @@ const _sfc_main = {
|
|
|
20895
20895
|
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
20896
20896
|
key: 0,
|
|
20897
20897
|
label: props.label,
|
|
20898
|
+
readonly: "",
|
|
20898
20899
|
required: unref(isRequired),
|
|
20899
20900
|
rules: props.rules,
|
|
20900
20901
|
disabled: unref(isDisabled),
|
|
@@ -20902,8 +20903,11 @@ const _sfc_main = {
|
|
|
20902
20903
|
"is-link": unref(isReadonly) ? false : true,
|
|
20903
20904
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
20904
20905
|
"label-class": "label"
|
|
20905
|
-
}, {
|
|
20906
|
-
|
|
20906
|
+
}, createSlots({
|
|
20907
|
+
_: 2
|
|
20908
|
+
}, [unref(modelValue) ? {
|
|
20909
|
+
name: "input",
|
|
20910
|
+
fn: withCtx(() => [unref(modelValue) ? (openBlock(), createBlock(_component_van_tag, {
|
|
20907
20911
|
key: 0,
|
|
20908
20912
|
class: "selected-node",
|
|
20909
20913
|
closeable: !unref(isDisabled),
|
|
@@ -20914,9 +20918,8 @@ const _sfc_main = {
|
|
|
20914
20918
|
}, {
|
|
20915
20919
|
default: withCtx(() => [createTextVNode(toDisplayString(data2.selectedNode.formatLabel), 1)]),
|
|
20916
20920
|
_: 1
|
|
20917
|
-
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)])
|
|
20918
|
-
|
|
20919
|
-
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
20921
|
+
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)])
|
|
20922
|
+
} : void 0]), 1032, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
20920
20923
|
show: data2.isShowPop,
|
|
20921
20924
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
20922
20925
|
modelValue: unref(modelValue),
|
|
@@ -20929,7 +20932,6 @@ const _sfc_main = {
|
|
|
20929
20932
|
};
|
|
20930
20933
|
}
|
|
20931
20934
|
};
|
|
20932
|
-
var CascaderPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-005675b5"]]);
|
|
20933
20935
|
const secret_notify = () => {
|
|
20934
20936
|
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 });
|
|
20935
20937
|
};
|
|
@@ -21048,7 +21050,7 @@ const components = [
|
|
|
21048
21050
|
},
|
|
21049
21051
|
{
|
|
21050
21052
|
name: "WidgetQwCascaderPicker",
|
|
21051
|
-
widget:
|
|
21053
|
+
widget: _sfc_main
|
|
21052
21054
|
}
|
|
21053
21055
|
];
|
|
21054
21056
|
const WidgetQw = {
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -2952,7 +2952,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2952
2952
|
parse,
|
|
2953
2953
|
stringify
|
|
2954
2954
|
};
|
|
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":
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2956
2956
|
const NEED_LOGIN_CODES = [
|
|
2957
2957
|
NEED_LOGIN
|
|
2958
2958
|
];
|
|
@@ -2962,10 +2962,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2962
2962
|
function removeCacheByKey(key) {
|
|
2963
2963
|
localStorage.removeItem(key);
|
|
2964
2964
|
}
|
|
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":
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
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": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2967
2967
|
function getToken() {
|
|
2968
|
-
|
|
2968
|
+
if (vm.tokenCallback)
|
|
2969
|
+
return vm.tokenCallback();
|
|
2969
2970
|
}
|
|
2970
2971
|
function setToken(token2) {
|
|
2971
2972
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3000,12 +3001,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3000
3001
|
isReadonly: vue.computed(() => {
|
|
3001
3002
|
if (props.auth)
|
|
3002
3003
|
return props.auth == "readonly";
|
|
3004
|
+
if (props.readonly)
|
|
3005
|
+
return true;
|
|
3003
3006
|
if (props.required)
|
|
3004
3007
|
return false;
|
|
3005
3008
|
if (props.disabled)
|
|
3006
3009
|
return true;
|
|
3007
|
-
if (props.readonly)
|
|
3008
|
-
return true;
|
|
3009
3010
|
return false;
|
|
3010
3011
|
}),
|
|
3011
3012
|
rules: vue.computed(() => {
|
|
@@ -20572,7 +20573,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20572
20573
|
}
|
|
20573
20574
|
};
|
|
20574
20575
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6744b874"]]);
|
|
20575
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20576
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-b85d16dc] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-b85d16dc] {\r\n padding: 10px;\n}\n.search-buttons[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-b85d16dc] {\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-b85d16dc] {\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-b85d16dc] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-b85d16dc] {\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-b85d16dc] {\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-b85d16dc] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-b85d16dc] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-b85d16dc] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-b85d16dc] {\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-b85d16dc] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-b85d16dc] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-b85d16dc] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-b85d16dc] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\n}\n.search-field[data-v-b85d16dc] {\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")();
|
|
20576
20577
|
const _hoisted_1 = {
|
|
20577
20578
|
class: "cascader-selector"
|
|
20578
20579
|
};
|
|
@@ -20811,8 +20812,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20811
20812
|
};
|
|
20812
20813
|
}
|
|
20813
20814
|
};
|
|
20814
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
20815
|
-
var CascaderPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-005675b5]{\r\n padding:4px 8px;\n}\r\n")();
|
|
20815
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b85d16dc"]]);
|
|
20816
20816
|
const _sfc_main = {
|
|
20817
20817
|
__name: "CascaderPicker",
|
|
20818
20818
|
props: {
|
|
@@ -20834,7 +20834,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20834
20834
|
},
|
|
20835
20835
|
readonly: {
|
|
20836
20836
|
type: Boolean,
|
|
20837
|
-
default:
|
|
20837
|
+
default: true
|
|
20838
20838
|
},
|
|
20839
20839
|
rules: {
|
|
20840
20840
|
type: Array,
|
|
@@ -20898,6 +20898,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20898
20898
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
20899
20899
|
key: 0,
|
|
20900
20900
|
label: props.label,
|
|
20901
|
+
readonly: "",
|
|
20901
20902
|
required: vue.unref(isRequired),
|
|
20902
20903
|
rules: props.rules,
|
|
20903
20904
|
disabled: vue.unref(isDisabled),
|
|
@@ -20905,8 +20906,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20905
20906
|
"is-link": vue.unref(isReadonly) ? false : true,
|
|
20906
20907
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !vue.unref(isReadonly)),
|
|
20907
20908
|
"label-class": "label"
|
|
20908
|
-
}, {
|
|
20909
|
-
|
|
20909
|
+
}, vue.createSlots({
|
|
20910
|
+
_: 2
|
|
20911
|
+
}, [vue.unref(modelValue) ? {
|
|
20912
|
+
name: "input",
|
|
20913
|
+
fn: vue.withCtx(() => [vue.unref(modelValue) ? (vue.openBlock(), vue.createBlock(_component_van_tag, {
|
|
20910
20914
|
key: 0,
|
|
20911
20915
|
class: "selected-node",
|
|
20912
20916
|
closeable: !vue.unref(isDisabled),
|
|
@@ -20917,9 +20921,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20917
20921
|
}, {
|
|
20918
20922
|
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString(data2.selectedNode.formatLabel), 1)]),
|
|
20919
20923
|
_: 1
|
|
20920
|
-
}, 8, ["closeable", "onClose"])) : vue.createCommentVNode("", true)])
|
|
20921
|
-
|
|
20922
|
-
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(CascaderPop, {
|
|
20924
|
+
}, 8, ["closeable", "onClose"])) : vue.createCommentVNode("", true)])
|
|
20925
|
+
} : void 0]), 1032, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(CascaderPop, {
|
|
20923
20926
|
show: data2.isShowPop,
|
|
20924
20927
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
20925
20928
|
modelValue: vue.unref(modelValue),
|
|
@@ -20932,7 +20935,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20932
20935
|
};
|
|
20933
20936
|
}
|
|
20934
20937
|
};
|
|
20935
|
-
var CascaderPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-005675b5"]]);
|
|
20936
20938
|
const secret_notify = () => {
|
|
20937
20939
|
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 });
|
|
20938
20940
|
};
|
|
@@ -21051,7 +21053,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21051
21053
|
},
|
|
21052
21054
|
{
|
|
21053
21055
|
name: "WidgetQwCascaderPicker",
|
|
21054
|
-
widget:
|
|
21056
|
+
widget: _sfc_main
|
|
21055
21057
|
}
|
|
21056
21058
|
];
|
|
21057
21059
|
const WidgetQw = {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field v-if="!isGone" :label="props.label" :required="isRequired" :rules="props.rules" :disabled="isDisabled"
|
|
2
|
+
<van-field v-if="!isGone" :label="props.label" readonly :required="isRequired" :rules="props.rules" :disabled="isDisabled"
|
|
3
3
|
:placeholder="props.placeholder" :is-link="isReadonly ? false : true" @click="data.isShowPop = !isReadonly"
|
|
4
4
|
label-class="label">
|
|
5
|
-
<template #input>
|
|
5
|
+
<template #input v-if="modelValue">
|
|
6
6
|
<van-tag class="selected-node" v-if="modelValue" :closeable="!isDisabled" color="#fff" text-color="#333" size="medium"
|
|
7
7
|
@close.stop="onDelete">
|
|
8
8
|
{{ data.selectedNode.formatLabel }}
|
|
@@ -41,7 +41,7 @@ const props = defineProps({
|
|
|
41
41
|
},
|
|
42
42
|
readonly: {
|
|
43
43
|
type: Boolean,
|
|
44
|
-
default:
|
|
44
|
+
default: true,
|
|
45
45
|
},
|
|
46
46
|
rules: {
|
|
47
47
|
type: Array,
|
|
@@ -101,7 +101,4 @@ watch(() => modelValue.value, async (n, o) => {
|
|
|
101
101
|
</script>
|
|
102
102
|
|
|
103
103
|
<style scoped>
|
|
104
|
-
.user{
|
|
105
|
-
padding:4px 8px;
|
|
106
|
-
}
|
|
107
104
|
</style>
|
|
@@ -317,4 +317,16 @@ watch(()=>props.show,()=>{
|
|
|
317
317
|
.cancel-btn {
|
|
318
318
|
color: #969799;
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
|
|
321
|
+
.search-field {
|
|
322
|
+
background: #fff;
|
|
323
|
+
padding: 10px 16px;
|
|
324
|
+
border-bottom: 1px solid #ebedf0;
|
|
325
|
+
position: sticky;
|
|
326
|
+
top: 0;
|
|
327
|
+
z-index: 999;
|
|
328
|
+
margin-bottom: 10px;
|
|
329
|
+
flex-shrink: 0;
|
|
330
|
+
/* 防止压缩 */
|
|
331
|
+
}
|
|
332
|
+
</style>
|
package/src/router/index.ts
CHANGED
|
@@ -165,14 +165,10 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
165
165
|
const router = createRouter({
|
|
166
166
|
history: createWebHashHistory(process.env.BASE_URL),
|
|
167
167
|
routes,
|
|
168
|
-
scrollBehavior(to, from, savedPosition) {
|
|
169
|
-
return { top: 0 }; // 强制滚动到顶部
|
|
170
|
-
}
|
|
171
168
|
});
|
|
172
169
|
|
|
173
170
|
router.beforeEach((to, from, next) => {
|
|
174
171
|
console.log("+++路由回调++++++++++++++++++++++");
|
|
175
|
-
const showTabBar = to.meta.showTabBar ?? true // 默认显示
|
|
176
172
|
next();
|
|
177
173
|
});
|
|
178
174
|
|
package/src/util/auth_util.js
CHANGED
|
@@ -54,15 +54,15 @@ export const props2auth = (props) => {
|
|
|
54
54
|
isReadonly: computed(()=>{
|
|
55
55
|
if (props.auth)
|
|
56
56
|
return props.auth == 'readonly'
|
|
57
|
-
|
|
57
|
+
|
|
58
|
+
if(props.readonly)
|
|
59
|
+
return true
|
|
60
|
+
|
|
58
61
|
if(props.required)
|
|
59
62
|
return false
|
|
60
63
|
|
|
61
64
|
if(props.disabled)
|
|
62
65
|
return true
|
|
63
|
-
|
|
64
|
-
if(props.readonly)
|
|
65
|
-
return true
|
|
66
66
|
|
|
67
67
|
return false
|
|
68
68
|
}),
|
|
Binary file
|
package/src/views/home/index.vue
CHANGED
|
Binary file
|
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
|
-
|
|
44
|
-
VUE_APP_IS_DEBUG: true,
|
|
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
|
},
|