cnhis-design-vue 0.2.33-beta → 0.2.37-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/big-table/index.js +77 -63
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +25 -25
- package/es/button/style.css +1 -1
- package/es/index/index.js +234 -205
- package/es/index/style.css +1 -1
- package/es/multi-chat-setting/index.js +32 -27
- package/es/multi-chat-setting/style.css +1 -1
- package/es/table-filter/index.js +125 -115
- package/es/table-filter/style.css +1 -1
- package/lib/cui.common.js +403 -374
- package/lib/cui.umd.js +403 -374
- package/lib/cui.umd.min.js +32 -32
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +7 -5
- package/packages/big-table/src/components/edit-form/EditForm.vue +7 -0
- package/packages/big-table/src/utils/batchEditing.js +5 -3
- package/packages/big-table/src/utils/bigTableProps.js +4 -1
- package/packages/button/src/ButtonPrint/index.vue +2 -2
- package/packages/multi-chat/setting/index.vue +4 -0
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +12 -15
- package/packages/table-filter/src/classification/Classification-com.vue +6 -0
- package/packages/table-filter/src/components/table-modal/TableModal.vue +2 -1
package/package.json
CHANGED
|
@@ -1041,12 +1041,14 @@ export default create({
|
|
|
1041
1041
|
checkListFormUnionSettingParamsList() {
|
|
1042
1042
|
if (!this.listFormUnionSetting?.paramsList?.length) {
|
|
1043
1043
|
this.$message.warning('可编辑行需要设置关联表单字段,设置后请重试!');
|
|
1044
|
+
this.$emit('resetInlineEditAll', false);
|
|
1044
1045
|
this.$emit('triggerSpinning', false);
|
|
1045
1046
|
return false;
|
|
1046
1047
|
}
|
|
1047
1048
|
let find = this.fieldListOriginal?.find(item => item.isEdit == 1);
|
|
1048
1049
|
if (!find) {
|
|
1049
1050
|
this.$message.warning('没有设置可编辑字段,请联系管理员');
|
|
1051
|
+
this.$emit('resetInlineEditAll', false);
|
|
1050
1052
|
this.$emit('triggerSpinning', false);
|
|
1051
1053
|
return false;
|
|
1052
1054
|
}
|
|
@@ -1235,16 +1237,16 @@ export default create({
|
|
|
1235
1237
|
vxeTable.remove(tableData[0]);
|
|
1236
1238
|
},
|
|
1237
1239
|
submitInlineForm() {
|
|
1238
|
-
let
|
|
1240
|
+
let error = this.inlineError;
|
|
1239
1241
|
if (error) {
|
|
1240
1242
|
this.resetEditRowStatus();
|
|
1241
1243
|
this.$emit('triggerSpinning', false);
|
|
1242
1244
|
return false;
|
|
1243
1245
|
}
|
|
1244
1246
|
|
|
1245
|
-
let {
|
|
1247
|
+
let { inlineFormData, listFormUnionSetting, inlineOriginalTableRow } = this;
|
|
1246
1248
|
let { formId } = listFormUnionSetting;
|
|
1247
|
-
let { id } =
|
|
1249
|
+
let { id } = inlineOriginalTableRow;
|
|
1248
1250
|
if (!formId) {
|
|
1249
1251
|
console.log('缺少formId');
|
|
1250
1252
|
this.$emit('triggerSpinning', false);
|
|
@@ -1253,7 +1255,7 @@ export default create({
|
|
|
1253
1255
|
if (this.isSaveForm) return false;
|
|
1254
1256
|
this.isSaveForm = true;
|
|
1255
1257
|
|
|
1256
|
-
let params = Object.assign({},
|
|
1258
|
+
let params = Object.assign({}, inlineFormData, {
|
|
1257
1259
|
formId,
|
|
1258
1260
|
id,
|
|
1259
1261
|
editMode: 'row'
|
|
@@ -2980,7 +2982,7 @@ export default create({
|
|
|
2980
2982
|
let rowItemWrap = [...wrap.querySelectorAll('.vxe-cell')];
|
|
2981
2983
|
rowItemWrap.push(...[...wrap.querySelectorAll('.vxe-body--column')]);
|
|
2982
2984
|
rowItemWrap.forEach(dom => {
|
|
2983
|
-
dom.style.height
|
|
2985
|
+
dom.style.setProperty('height', height, 'important');
|
|
2984
2986
|
dom.style.lineHeight = lineHeight;
|
|
2985
2987
|
if (height) {
|
|
2986
2988
|
dom.style.backgroundColor = '#EFF5FF';
|
|
@@ -441,6 +441,13 @@ export default {
|
|
|
441
441
|
</script>
|
|
442
442
|
<style lang="less" scoped>
|
|
443
443
|
.editForm-page {
|
|
444
|
+
height: 100%;
|
|
445
|
+
width: 100%;
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
.ant-form {
|
|
449
|
+
width: 100%;
|
|
450
|
+
}
|
|
444
451
|
/deep/.has-error .ant-input-group-addon {
|
|
445
452
|
color: rgba(0, 0, 0, 0.65);
|
|
446
453
|
}
|
|
@@ -442,7 +442,7 @@ export default {
|
|
|
442
442
|
this.$emit('triggerSpinning', false);
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
|
-
let { listFormUnionSetting } = this
|
|
445
|
+
let { listFormUnionSetting } = this
|
|
446
446
|
let { formId } = listFormUnionSetting;
|
|
447
447
|
let params = this.handleSubmitParams(this.batchFormData);
|
|
448
448
|
if (!formId || !params) {
|
|
@@ -480,11 +480,13 @@ export default {
|
|
|
480
480
|
handleSubmitParams(batchFormData) {
|
|
481
481
|
let arr = [];
|
|
482
482
|
for (let key in batchFormData) {
|
|
483
|
-
|
|
483
|
+
// v[this.primaryKey] 可能为数字
|
|
484
|
+
// key 为字符串 用全等匹配不到 改为 ==
|
|
485
|
+
let matchItem = this.oldtableData.find(v => v[this.primaryKey] == key);
|
|
484
486
|
let obj = batchFormData[key];
|
|
485
487
|
if (matchItem) {
|
|
486
488
|
obj = Object.assign({}, obj, {
|
|
487
|
-
|
|
489
|
+
[this.primaryKey]: matchItem[this.primaryKey]
|
|
488
490
|
});
|
|
489
491
|
}
|
|
490
492
|
arr.push(obj);
|
|
@@ -67,6 +67,7 @@ const bigTableProps = {
|
|
|
67
67
|
isInlineAdding: Boolean,
|
|
68
68
|
isInlineSave: Boolean,
|
|
69
69
|
isInlineCancel: Boolean,
|
|
70
|
+
inlineError: Boolean,
|
|
70
71
|
resetInlineEdit: Function, // 重置状态(不包含编辑、新增状态)
|
|
71
72
|
resetEditRowStatus: Function, // 重置编辑行保存表单相关状态
|
|
72
73
|
pageIndexOldtableData: {
|
|
@@ -77,7 +78,9 @@ const bigTableProps = {
|
|
|
77
78
|
submitForm: Function,
|
|
78
79
|
isMatchComponent: Boolean,
|
|
79
80
|
asyncCount: Boolean,
|
|
80
|
-
showSettings: { type: Object, default: () => ({}) }
|
|
81
|
+
showSettings: { type: Object, default: () => ({}) },
|
|
82
|
+
inlineFormData: { type: Object, default: () => ({}) },
|
|
83
|
+
inlineOriginalTableRow: { type: Object, default: () => ({}) }
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
export default bigTableProps;
|
|
@@ -512,7 +512,7 @@ export default create({
|
|
|
512
512
|
const { id, name } = templateParams;
|
|
513
513
|
return {
|
|
514
514
|
reportid,
|
|
515
|
-
formatid: id,
|
|
515
|
+
formatid: this.currentFormatId || id,
|
|
516
516
|
formatname: name,
|
|
517
517
|
param: params[index]
|
|
518
518
|
};
|
|
@@ -531,7 +531,7 @@ export default create({
|
|
|
531
531
|
});
|
|
532
532
|
return {
|
|
533
533
|
reportid,
|
|
534
|
-
formatid: id,
|
|
534
|
+
formatid: this.currentFormatId || id,
|
|
535
535
|
formatname: name,
|
|
536
536
|
param: obj
|
|
537
537
|
};
|
|
@@ -151,6 +151,9 @@ export default {
|
|
|
151
151
|
},
|
|
152
152
|
mounted() {
|
|
153
153
|
this.getSdkAppId();
|
|
154
|
+
|
|
155
|
+
const item = this.menuList.find( v=> v.active);
|
|
156
|
+
item && this.handleMenuClick(item.type);
|
|
154
157
|
},
|
|
155
158
|
watch: {
|
|
156
159
|
useMenuList(v) {
|
|
@@ -185,6 +188,7 @@ export default {
|
|
|
185
188
|
});
|
|
186
189
|
},
|
|
187
190
|
handleMenuClick(type) {
|
|
191
|
+
console.log("触发tab切换");
|
|
188
192
|
this.menuList.map(item => {
|
|
189
193
|
item.active = item.type === type;
|
|
190
194
|
});
|
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
<div class="base-search">
|
|
3
3
|
<div class="base-container">
|
|
4
4
|
<div class="bease-left" ref="baseLeft" v-resize="onResize">
|
|
5
|
-
|
|
5
|
+
<!-- 行内编辑对应生成的(保存、取消)按钮 -->
|
|
6
|
+
<template v-if="visibleInlineOperateBtn">
|
|
7
|
+
<a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditClick" class="btn-custom-class" style="margin: 8px 8px 8px 0" type="primary">
|
|
8
|
+
保存
|
|
9
|
+
</a-button>
|
|
10
|
+
<a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditCancel" class="btn-custom-class" style="margin: 8px 8px 8px 0">
|
|
11
|
+
取消
|
|
12
|
+
</a-button>
|
|
13
|
+
</template>
|
|
14
|
+
<ul v-else>
|
|
6
15
|
<div ref="btnRow" class="btn-row" v-if="isShowSettingBtn">
|
|
7
16
|
<a-button class="btn-setting" v-show="currentTempId != '0' && isShowSetting('hideSettingBtn')" icon="setting" @click="handlerSetting">
|
|
8
17
|
设置
|
|
@@ -310,15 +319,6 @@
|
|
|
310
319
|
</a-button>
|
|
311
320
|
</a-dropdown>
|
|
312
321
|
</template>
|
|
313
|
-
<!-- 行内编辑对应生成的(保存、取消)按钮 -->
|
|
314
|
-
<template v-if="visibleInlineOperateBtn">
|
|
315
|
-
<a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditClick" class="btn-custom-class" style="margin: 0 8px 8px 0" type="primary">
|
|
316
|
-
保存
|
|
317
|
-
</a-button>
|
|
318
|
-
<a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditCancel" class="btn-custom-class" style="margin: 0 8px 8px 0">
|
|
319
|
-
取消
|
|
320
|
-
</a-button>
|
|
321
|
-
</template>
|
|
322
322
|
</template>
|
|
323
323
|
</template>
|
|
324
324
|
</ul>
|
|
@@ -815,7 +815,7 @@ export default create({
|
|
|
815
815
|
if (index !== -1) this.$emit('tabClick', this.tabConditionList[index]);
|
|
816
816
|
},
|
|
817
817
|
pageResize(obj) {
|
|
818
|
-
if (this.resizeFlag) return;
|
|
818
|
+
if (this.resizeFlag || this.visibleInlineOperateBtn) return;
|
|
819
819
|
let baseLeft = this.$refs['baseLeft'];
|
|
820
820
|
if (!baseLeft) return;
|
|
821
821
|
this.resizeFlag = true;
|
|
@@ -839,7 +839,7 @@ export default create({
|
|
|
839
839
|
}
|
|
840
840
|
},
|
|
841
841
|
onResize() {
|
|
842
|
-
if (this.isButtonFolding || this.isShowSetting('buttonAdaption') || this.relatedIsTree == 1) return;
|
|
842
|
+
if (this.isButtonFolding || this.isShowSetting('buttonAdaption') || this.relatedIsTree == 1 || this.visibleInlineOperateBtn) return;
|
|
843
843
|
utils.debounce(this.pageResize({ type: 'resize' }), 300);
|
|
844
844
|
},
|
|
845
845
|
async saveListIsTile() {
|
|
@@ -1916,7 +1916,6 @@ export default create({
|
|
|
1916
1916
|
_this.setBatchSaveRowStatus(true);
|
|
1917
1917
|
},
|
|
1918
1918
|
onCancel() {
|
|
1919
|
-
_this.setBatchCancelRowStatus(true);
|
|
1920
1919
|
}
|
|
1921
1920
|
});
|
|
1922
1921
|
return;
|
|
@@ -2095,14 +2094,12 @@ export default create({
|
|
|
2095
2094
|
if(!dom) return;
|
|
2096
2095
|
// input 框有padding 32px ...显示需要多预留一些宽度12px
|
|
2097
2096
|
let w = dom.offsetWidth + 45;
|
|
2098
|
-
console.log(w, "wwww");
|
|
2099
2097
|
let maxW = this.showOutSearch ? 284 : 244;
|
|
2100
2098
|
this.inputSearchW = w > maxW ? 300 : w < 200 ? 200 : w;
|
|
2101
2099
|
if (w > maxW) {
|
|
2102
2100
|
this.showPlaceholderPrefix = true;
|
|
2103
2101
|
}
|
|
2104
2102
|
this.onResize();
|
|
2105
|
-
console.log(this.inputSearchW);
|
|
2106
2103
|
});
|
|
2107
2104
|
}
|
|
2108
2105
|
}
|
|
@@ -435,6 +435,11 @@ import create from '@/core/create';
|
|
|
435
435
|
export default create({
|
|
436
436
|
name: 'Classification',
|
|
437
437
|
mixins: [filterApiFn],
|
|
438
|
+
provide() {
|
|
439
|
+
return {
|
|
440
|
+
root_isShowResetButton: this.isShowResetButton
|
|
441
|
+
};
|
|
442
|
+
},
|
|
438
443
|
components: {
|
|
439
444
|
// Search,
|
|
440
445
|
[Icon.name]: Icon,
|
|
@@ -487,6 +492,7 @@ export default create({
|
|
|
487
492
|
countCondition: { type: Number }, // 是否统计筛选分类,1统计筛选分类,0反之
|
|
488
493
|
countTabCondition: { type: Number }, // 筛选页签是否进行数量统计,1统计筛选页签,0反之
|
|
489
494
|
keyword: { type: String },
|
|
495
|
+
isShowResetButton: { type: Boolean, default: true }, // 是否显示 恢复默认设置 按钮
|
|
490
496
|
fieldKeys: {
|
|
491
497
|
type: Array,
|
|
492
498
|
default: () => []
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</slot>
|
|
27
27
|
<template #footer v-if="type == 'search'">
|
|
28
|
-
<a-popconfirm class="btn-reset" title="确认要恢复系统默认设置吗?" ok-text="确认" cancel-text="取消" @confirm="popconfirm">
|
|
28
|
+
<a-popconfirm v-if="isShowResetButton" class="btn-reset" title="确认要恢复系统默认设置吗?" ok-text="确认" cancel-text="取消" @confirm="popconfirm">
|
|
29
29
|
<a-button>恢复默认设置</a-button>
|
|
30
30
|
</a-popconfirm>
|
|
31
31
|
|
|
@@ -144,6 +144,7 @@ import draggable from 'vuedraggable';
|
|
|
144
144
|
import svgIcon from '@/component/svg/index.vue';
|
|
145
145
|
export default {
|
|
146
146
|
mixins: [filterApiFn],
|
|
147
|
+
inject: { isShowResetButton: { from: 'root_isShowResetButton' } },
|
|
147
148
|
props: {
|
|
148
149
|
visibleIn: Boolean,
|
|
149
150
|
loading: Boolean,
|