cnhis-design-vue 2.0.13 → 2.0.14
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/CHANGELOG.md +11 -1
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +23 -23
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/form-table/index.js +17 -17
- package/es/index/index.js +302 -300
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +54 -57
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +44 -50
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +135 -130
- package/es/multi-chat-setting/style.css +1 -1
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-view/index.js +24 -24
- package/es/select/index.js +3 -3
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/table-filter/index.js +21 -21
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/package.json +1 -1
- package/packages/multi-chat/chat/chatFooter.vue +7 -8
- package/packages/multi-chat/chat/scrollList.vue +2 -1
- package/packages/multi-chat/setting/baseInfo/index.vue +36 -31
|
@@ -157,20 +157,20 @@
|
|
|
157
157
|
<a-row>
|
|
158
158
|
<a-col>
|
|
159
159
|
<span style="display: inline-block;width: 70px;">PC:</span>
|
|
160
|
-
<a-checkbox :value="item.value" v-for="(item, index) in toolbarList.filter(item => item.source === 'PC')" :key="index">
|
|
160
|
+
<a-checkbox @change="toolbarChange(item, $event)" :value="item.value" v-for="(item, index) in toolbarList.filter(item => item.source === 'PC')" :key="index">
|
|
161
161
|
{{ item.label }}
|
|
162
162
|
</a-checkbox>
|
|
163
163
|
</a-col>
|
|
164
164
|
<a-col>
|
|
165
165
|
<span style="display: inline-block;width: 70px;">MOBILE:</span>
|
|
166
|
-
<a-checkbox :value="item.value" v-for="(item, index) in toolbarList.filter(item => item.source === 'MOBILE')" :key="index">
|
|
166
|
+
<a-checkbox @change="toolbarChange(item, $event)" :value="item.value" v-for="(item, index) in toolbarList.filter(item => item.source === 'MOBILE')" :key="index">
|
|
167
167
|
{{ item.label }}
|
|
168
168
|
</a-checkbox>
|
|
169
169
|
</a-col>
|
|
170
170
|
</a-row>
|
|
171
171
|
</a-checkbox-group>
|
|
172
172
|
</a-form-item>
|
|
173
|
-
<a-form-item :label="i18nText('1.9.699')" v-if="
|
|
173
|
+
<a-form-item :label="i18nText('1.9.699')" v-if="toolbarList.length > 0">
|
|
174
174
|
<a-checkbox-group v-decorator="[`closedToolbar`]">
|
|
175
175
|
<a-row>
|
|
176
176
|
<a-col>
|
|
@@ -401,7 +401,6 @@ export default {
|
|
|
401
401
|
functionList: [], // 服务端功能下拉列表
|
|
402
402
|
clientFunctionList: [], // 客户端功能下拉列表
|
|
403
403
|
toolbar: [],
|
|
404
|
-
closedToolbar: [],
|
|
405
404
|
toolbarList: [],
|
|
406
405
|
closedToolbarList: [],
|
|
407
406
|
queryTimeSetting: [],
|
|
@@ -547,7 +546,6 @@ export default {
|
|
|
547
546
|
robotObj,
|
|
548
547
|
robotSetting,
|
|
549
548
|
toolbar = [],
|
|
550
|
-
closedToolbar = [],
|
|
551
549
|
isListClassify,
|
|
552
550
|
listClassify = [],
|
|
553
551
|
rightClickSetting = [],
|
|
@@ -577,7 +575,6 @@ export default {
|
|
|
577
575
|
});
|
|
578
576
|
this.fillClientSetting(clientSetting);
|
|
579
577
|
this.fillToolbar(toolbar);
|
|
580
|
-
this.fillClosedToolbar(closedToolbar);
|
|
581
578
|
this.fillQueryTimeSetting(queryTimeSetting);
|
|
582
579
|
this.fillBroadcast(broadcast);
|
|
583
580
|
this.fillTabBar(setting.tabBarSetting);
|
|
@@ -642,7 +639,19 @@ export default {
|
|
|
642
639
|
this.toolbarList = toolbar.map(item => ({
|
|
643
640
|
label: item.name,
|
|
644
641
|
value: item.name + '-' + item.source,
|
|
645
|
-
source: item.source
|
|
642
|
+
source: item.source,
|
|
643
|
+
isClosedAble: item.isClosedAble,
|
|
644
|
+
isChecked: item.isChecked,
|
|
645
|
+
isCloseChecked: item.isCloseChecked
|
|
646
|
+
}));
|
|
647
|
+
const btwList = toolbar.filter(item => item.isClosedAble == "Y" && item.isChecked == "Y");
|
|
648
|
+
this.closedToolbarList = btwList.map(item => ({
|
|
649
|
+
label: item.name,
|
|
650
|
+
value: item.name + '-' + item.source,
|
|
651
|
+
source: item.source,
|
|
652
|
+
isClosedAble: item.isClosedAble,
|
|
653
|
+
isChecked: item.isChecked,
|
|
654
|
+
isCloseChecked: item.isCloseChecked
|
|
646
655
|
}));
|
|
647
656
|
this.toolbar = toolbar;
|
|
648
657
|
let toolbarChecked = toolbar.reduce((result, item) => {
|
|
@@ -654,17 +663,9 @@ export default {
|
|
|
654
663
|
this.$nextTick(() => {
|
|
655
664
|
this.form.setFieldsValue({ toolbar: toolbarChecked });
|
|
656
665
|
});
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
label: item.name,
|
|
661
|
-
value: item.name + '-' + item.source,
|
|
662
|
-
source: item.source
|
|
663
|
-
}));
|
|
664
|
-
this.closedToolbar = closedToolbar;
|
|
665
|
-
let closedToolbarChecked = closedToolbar.reduce((result, item) => {
|
|
666
|
-
if (item.isChecked === 'Y') {
|
|
667
|
-
result.push(item.name + '-' + item.source);
|
|
666
|
+
let closedToolbarChecked = this.closedToolbarList.reduce((result, item) => {
|
|
667
|
+
if (item.isCloseChecked === 'Y') {
|
|
668
|
+
result.push(item.label + '-' + item.source);
|
|
668
669
|
}
|
|
669
670
|
return result;
|
|
670
671
|
}, []);
|
|
@@ -672,6 +673,20 @@ export default {
|
|
|
672
673
|
this.form.setFieldsValue({ closedToolbar: closedToolbarChecked });
|
|
673
674
|
});
|
|
674
675
|
},
|
|
676
|
+
toolbarChange(item, e) {
|
|
677
|
+
const checked = e.target.checked;
|
|
678
|
+
let checkedItemIndex = -1;
|
|
679
|
+
this.closedToolbarList.forEach((itm, index) => {
|
|
680
|
+
if (item.source == itm.source && item.value == itm.value) {
|
|
681
|
+
checkedItemIndex = index;
|
|
682
|
+
}
|
|
683
|
+
})
|
|
684
|
+
if (checked && checkedItemIndex == -1 && (item.isClosedAble == "Y" && item.isChecked == "Y")) {
|
|
685
|
+
this.closedToolbarList.push(item);
|
|
686
|
+
} else if (!checked && checkedItemIndex != -1) {
|
|
687
|
+
this.closedToolbarList.splice(checkedItemIndex, 1);
|
|
688
|
+
}
|
|
689
|
+
},
|
|
675
690
|
fillTabBar(data) {
|
|
676
691
|
const mobileSetting = {
|
|
677
692
|
isChecked: 'N',
|
|
@@ -850,7 +865,6 @@ export default {
|
|
|
850
865
|
let setting = {};
|
|
851
866
|
this.handleTimeSetting(setting, values);
|
|
852
867
|
this.handleToolbar(setting, values);
|
|
853
|
-
this.handleClosedToolbar(setting, values);
|
|
854
868
|
this.handleQueryTimeSetting(setting, values);
|
|
855
869
|
this.handleClassify(setting);
|
|
856
870
|
let validate = this.handleServiceSetting(setting, values);
|
|
@@ -941,7 +955,7 @@ export default {
|
|
|
941
955
|
},
|
|
942
956
|
handleToolbar(setting, values) {
|
|
943
957
|
if (this.toolbarList.length === 0) return;
|
|
944
|
-
let { toolbar } = values;
|
|
958
|
+
let { toolbar, closedToolbar } = values;
|
|
945
959
|
let clone = JSON.parse(JSON.stringify(this.toolbar));
|
|
946
960
|
setting.toolbar = clone.reduce((result, item) => {
|
|
947
961
|
if (toolbar.includes(item.name + '-' + item.source)) {
|
|
@@ -949,19 +963,10 @@ export default {
|
|
|
949
963
|
} else {
|
|
950
964
|
item.isChecked = 'N';
|
|
951
965
|
}
|
|
952
|
-
result.push(item);
|
|
953
|
-
return result;
|
|
954
|
-
}, []);
|
|
955
|
-
},
|
|
956
|
-
handleClosedToolbar(setting, values) {
|
|
957
|
-
if (this.closedToolbarList.length === 0) return;
|
|
958
|
-
let { closedToolbar } = values;
|
|
959
|
-
let clone = JSON.parse(JSON.stringify(this.closedToolbar));
|
|
960
|
-
setting.closedToolbar = clone.reduce((result, item) => {
|
|
961
966
|
if (closedToolbar.includes(item.name + '-' + item.source)) {
|
|
962
|
-
item.
|
|
967
|
+
item.isCloseChecked = 'Y';
|
|
963
968
|
} else {
|
|
964
|
-
item.
|
|
969
|
+
item.isCloseChecked = 'N';
|
|
965
970
|
}
|
|
966
971
|
result.push(item);
|
|
967
972
|
return result;
|