cnhis-design-vue 0.2.32-beta → 0.2.36-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.
Files changed (102) hide show
  1. package/es/affix/index.js +8 -8
  2. package/es/age/index.js +10 -10
  3. package/es/alert/index.js +8 -8
  4. package/es/anchor/index.js +8 -8
  5. package/es/auto-complete/index.js +8 -8
  6. package/es/avatar/index.js +8 -8
  7. package/es/back-top/index.js +8 -8
  8. package/es/badge/index.js +8 -8
  9. package/es/base/index.js +8 -8
  10. package/es/big-table/index.js +138 -126
  11. package/es/big-table/style.css +1 -1
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +52 -52
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/carousel/index.js +8 -8
  19. package/es/cascader/index.js +8 -8
  20. package/es/checkbox/index.js +9 -9
  21. package/es/col/index.js +8 -8
  22. package/es/collapse/index.js +8 -8
  23. package/es/color-picker/index.js +1 -1
  24. package/es/comment/index.js +8 -8
  25. package/es/config-provider/index.js +8 -8
  26. package/es/date-picker/index.js +8 -8
  27. package/es/descriptions/index.js +8 -8
  28. package/es/divider/index.js +8 -8
  29. package/es/drag-layout/index.js +3 -3
  30. package/es/drawer/index.js +8 -8
  31. package/es/dropdown/index.js +8 -8
  32. package/es/editor/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +9 -9
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/index/index.js +581 -549
  38. package/es/index/style.css +1 -1
  39. package/es/input/index.js +9 -9
  40. package/es/input-number/index.js +8 -8
  41. package/es/layout/index.js +8 -8
  42. package/es/list/index.js +8 -8
  43. package/es/locale-provider/index.js +8 -8
  44. package/es/map/index.js +9 -9
  45. package/es/mentions/index.js +8 -8
  46. package/es/menu/index.js +8 -8
  47. package/es/message/index.js +8 -8
  48. package/es/multi-chat/index.js +75 -75
  49. package/es/multi-chat-client/index.js +69 -69
  50. package/es/multi-chat-history/index.js +4 -4
  51. package/es/multi-chat-record/index.js +14 -14
  52. package/es/multi-chat-setting/index.js +53 -48
  53. package/es/multi-chat-setting/style.css +1 -1
  54. package/es/multi-chat-sip/index.js +1 -1
  55. package/es/notification/index.js +8 -8
  56. package/es/page-header/index.js +8 -8
  57. package/es/pagination/index.js +8 -8
  58. package/es/popconfirm/index.js +8 -8
  59. package/es/popover/index.js +8 -8
  60. package/es/progress/index.js +8 -8
  61. package/es/radio/index.js +9 -9
  62. package/es/rate/index.js +8 -8
  63. package/es/result/index.js +8 -8
  64. package/es/row/index.js +8 -8
  65. package/es/scale-view/index.js +58 -53
  66. package/es/scale-view/style.css +1 -1
  67. package/es/select/index.js +11 -11
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +2 -2
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +174 -164
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +2839 -4640
  90. package/lib/cui.umd.js +2839 -4640
  91. package/lib/cui.umd.min.js +94 -94
  92. package/package.json +1 -1
  93. package/packages/big-table/src/BigTable.vue +7 -5
  94. package/packages/big-table/src/components/edit-form/EditForm.vue +7 -0
  95. package/packages/big-table/src/utils/batchEditing.js +2 -2
  96. package/packages/big-table/src/utils/bigTableProps.js +4 -1
  97. package/packages/button/src/ButtonPrint/index.vue +2 -2
  98. package/packages/multi-chat/setting/index.vue +4 -0
  99. package/packages/scale-view/scaleView.vue +13 -6
  100. package/packages/table-filter/src/base-search-com/BaseSearch.vue +12 -15
  101. package/packages/table-filter/src/classification/Classification-com.vue +6 -0
  102. package/packages/table-filter/src/components/table-modal/TableModal.vue +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.32-beta",
3
+ "version": "0.2.36-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -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 { error } = this.$store.state.inlineEdit;
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 { formData, listFormUnionSetting, originalTableRow } = this.$store.state.inlineEdit;
1247
+ let { inlineFormData, listFormUnionSetting, inlineOriginalTableRow } = this;
1246
1248
  let { formId } = listFormUnionSetting;
1247
- let { id } = originalTableRow;
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({}, formData, {
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 = 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.$store.state.inlineEdit;
445
+ let { listFormUnionSetting } = this
446
446
  let { formId } = listFormUnionSetting;
447
447
  let params = this.handleSubmitParams(this.batchFormData);
448
448
  if (!formId || !params) {
@@ -484,7 +484,7 @@ export default {
484
484
  let obj = batchFormData[key];
485
485
  if (matchItem) {
486
486
  obj = Object.assign({}, obj, {
487
- id: matchItem.id
487
+ [this.primaryKey]: matchItem[this.primaryKey]
488
488
  });
489
489
  }
490
490
  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
  });
@@ -534,7 +534,6 @@ export default create({
534
534
  immediate: true,
535
535
  deep: true,
536
536
  handler(newVal, oldVal) {
537
- console.log(this.params, "---params");
538
537
  if (oldVal) {
539
538
  if (newVal.guage_id) {
540
539
  if (newVal.guage_id != oldVal.guage_id) {
@@ -666,8 +665,6 @@ export default create({
666
665
  this.handleEvaluateParams(this.config.evaluateResultSetting);
667
666
  this.handleShowEvaluate();
668
667
 
669
- console.log(this.config.evaluateResultSetting);
670
-
671
668
  this.defaultFormArray = JSON.parse(JSON.stringify(list));
672
669
  let filterArr = this.filterArr;
673
670
  list = list.filter(v => !filterArr.includes(v.type));
@@ -865,10 +862,20 @@ export default create({
865
862
  if (urlKey) {
866
863
  let list = urlKey.split(",");
867
864
  if (list.length > 1) {
868
- defValue = list.map(l => decodeURIComponent(this.getQueryVariable(l)));
865
+ let val = list
866
+ .map(l => {
867
+ let tempV = this.getQueryVariable(l);
868
+ if (tempV) return decodeURIComponent(tempV);
869
+ return null;
870
+ })
871
+ .filter(Boolean);
872
+ val.length && (defValue = val);
869
873
  } else {
870
- let val = decodeURIComponent(this.getQueryVariable(list[0]));
871
- defValue = item.type == "CHECKBOX_BLOCK" ? val.split() : val;
874
+ let val = this.getQueryVariable(list[0]);
875
+ if (val) {
876
+ val = decodeURIComponent(val);
877
+ defValue = item.type == "CHECKBOX_BLOCK" ? val.split() : val;
878
+ }
872
879
  }
873
880
  }
874
881
  }
@@ -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
- <ul>
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,