cnhis-design-vue 0.2.25-beta → 0.2.26-beta
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/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +66 -66
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +28 -28
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +9 -9
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/index/index.js +418 -386
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +75 -75
- package/es/multi-chat-client/index.js +69 -69
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +86 -56
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +82 -80
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +3202 -1614
- package/lib/cui.umd.js +3202 -1614
- package/lib/cui.umd.min.js +71 -71
- package/package.json +2 -2
- package/packages/scale-view/scaleView.vue +33 -10
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26-beta",
|
|
4
4
|
"description": "基于 Ant Desgin Vue 的UI库",
|
|
5
5
|
"keyword": "cnhis-design-vue vue cnhis",
|
|
6
6
|
"homepage": "http://dv.cnhis.com/",
|
|
@@ -93,4 +93,4 @@
|
|
|
93
93
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
}
|
|
96
|
+
}
|
|
@@ -627,6 +627,7 @@ export default create({
|
|
|
627
627
|
},
|
|
628
628
|
initForm(data) {
|
|
629
629
|
let { list = [], map = {}, isFinished = false } = data;
|
|
630
|
+
this.handleFrontAddress(list);
|
|
630
631
|
map.maxScore && (this.maxScore = map.maxScore);
|
|
631
632
|
this.isFinished = isFinished;
|
|
632
633
|
if (data.isLackCustomer) {
|
|
@@ -670,6 +671,29 @@ export default create({
|
|
|
670
671
|
this.fontSize = data.fontSize;
|
|
671
672
|
this.spinning = false;
|
|
672
673
|
},
|
|
674
|
+
handleFrontAddress(list) {
|
|
675
|
+
if (!list || !list.length) return;
|
|
676
|
+
let matchItem = list.find(item => item.type === "FRONT_ADDRESS");
|
|
677
|
+
if (!matchItem || !Object.keys(matchItem).length) return;
|
|
678
|
+
let setting;
|
|
679
|
+
if (matchItem.setting && this.$utils.isJSON(matchItem.setting)) {
|
|
680
|
+
setting = JSON.parse(matchItem.setting);
|
|
681
|
+
}
|
|
682
|
+
if (!setting || !Object.keys(setting).length) return;
|
|
683
|
+
let query = this.handleQueryParams();
|
|
684
|
+
// redirect=1 代表从前置地址跳转回来了
|
|
685
|
+
if (query?.redirect == 1) return;
|
|
686
|
+
let { frontAddress } = setting;
|
|
687
|
+
if (frontAddress) {
|
|
688
|
+
let urlHref = window.location.href;
|
|
689
|
+
let preStr = "?";
|
|
690
|
+
if (frontAddress.includes("?")) {
|
|
691
|
+
preStr = "&";
|
|
692
|
+
}
|
|
693
|
+
let curUrl = `${frontAddress}${preStr}redirect_url=${encodeURIComponent(urlHref)}`;
|
|
694
|
+
window.location.href = curUrl;
|
|
695
|
+
}
|
|
696
|
+
},
|
|
673
697
|
handleBtnParamsEvaluate(params) {
|
|
674
698
|
let defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
|
|
675
699
|
let res = {};
|
|
@@ -744,7 +768,7 @@ export default create({
|
|
|
744
768
|
handleQueryParams() {
|
|
745
769
|
let params = {};
|
|
746
770
|
for (let [key, value] of new URLSearchParams(window.location.hash.split("?")[1]).entries()) {
|
|
747
|
-
params[key] = value;
|
|
771
|
+
params[key] = decodeURIComponent(value);
|
|
748
772
|
}
|
|
749
773
|
return params;
|
|
750
774
|
},
|
|
@@ -893,16 +917,15 @@ export default create({
|
|
|
893
917
|
},
|
|
894
918
|
// 获取url链接参数
|
|
895
919
|
getQueryVariable(variable) {
|
|
896
|
-
let query =
|
|
897
|
-
if (
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
return pair[1];
|
|
903
|
-
}
|
|
920
|
+
let query = {};
|
|
921
|
+
if (this.source == "layout") {
|
|
922
|
+
// 按钮传参
|
|
923
|
+
query = this.params;
|
|
924
|
+
} else {
|
|
925
|
+
query = this.handleQueryParams() || {};
|
|
904
926
|
}
|
|
905
|
-
return false;
|
|
927
|
+
if (!query) return false;
|
|
928
|
+
return query[variable] || false;
|
|
906
929
|
},
|
|
907
930
|
// 初始化量表
|
|
908
931
|
formatArray(list) {
|
|
@@ -1848,7 +1848,9 @@ export default create({
|
|
|
1848
1848
|
if (info.type === 'print') {
|
|
1849
1849
|
await this.receivePrintSuccessAboutPrint(res, info);
|
|
1850
1850
|
}
|
|
1851
|
-
|
|
1851
|
+
setTimeout(() => {
|
|
1852
|
+
this.$message.success(res.message);
|
|
1853
|
+
}, 3500);
|
|
1852
1854
|
},
|
|
1853
1855
|
receivePrintError(res) {
|
|
1854
1856
|
let errorMsg = res.message;
|