cnhis-design-vue 2.1.153 → 2.1.155

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 (45) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +26 -26
  4. package/es/button/index.js +11 -5
  5. package/es/captcha/index.js +3 -3
  6. package/es/card-reader-sdk/index.js +1 -1
  7. package/es/checkbox/index.js +1 -1
  8. package/es/color-picker/index.js +1 -1
  9. package/es/drag-layout/index.js +3 -3
  10. package/es/editor/index.js +1 -1
  11. package/es/ellipsis/index.js +1 -1
  12. package/es/fabric-chart/index.js +9 -9
  13. package/es/form-table/index.js +20 -20
  14. package/es/full-calendar/index.js +4 -4
  15. package/es/index/index.js +246 -225
  16. package/es/index/style.css +1 -1
  17. package/es/input/index.js +1 -1
  18. package/es/map/index.js +1 -1
  19. package/es/multi-chat/index.js +25 -25
  20. package/es/multi-chat-client/index.js +19 -19
  21. package/es/multi-chat-history/index.js +4 -4
  22. package/es/multi-chat-record/index.js +4 -4
  23. package/es/multi-chat-setting/index.js +20 -20
  24. package/es/multi-chat-sip/index.js +1 -1
  25. package/es/radio/index.js +1 -1
  26. package/es/scale-container/index.js +1 -1
  27. package/es/scale-view/index.js +27 -27
  28. package/es/select/index.js +4 -4
  29. package/es/select-label/index.js +3 -3
  30. package/es/select-person/index.js +2 -2
  31. package/es/select-tag/index.js +4 -4
  32. package/es/shortcut-setter/index.js +2 -2
  33. package/es/slider-tree/index.js +1 -1
  34. package/es/table-filter/index.js +93 -72
  35. package/es/table-filter/style.css +1 -1
  36. package/es/tag/index.js +1 -1
  37. package/es/verification-code/index.js +2 -2
  38. package/lib/cui.common.js +273 -252
  39. package/lib/cui.umd.js +273 -252
  40. package/lib/cui.umd.min.js +7 -7
  41. package/package.json +1 -1
  42. package/packages/button/src/ButtonPrint/index.vue +7 -1
  43. package/packages/table-filter/src/base-search-com/BaseSearch.vue +5 -2
  44. package/packages/table-filter/src/components/render-widget/mixins/dynamic-method.js +4 -3
  45. package/packages/table-filter/src/mixins/printNew.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.153",
3
+ "version": "2.1.155",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -153,7 +153,13 @@ export default create({
153
153
  // 向外抛出vue2组件直接调用内部的方法
154
154
  handleClickBtn() {
155
155
  this.$refs.printComponentRef.handleClickBtn();
156
- }
156
+ },
157
+ init() {
158
+ return this.$refs.printComponentRef.init();
159
+ },
160
+ handleClickPrint(e) {
161
+ return this.$refs.printComponentRef.handleClickPrint(e);
162
+ },
157
163
  }
158
164
  });
159
165
  </script>
@@ -2013,9 +2013,12 @@ export default create({
2013
2013
  print: print
2014
2014
  });
2015
2015
 
2016
- if (result.method !== 'sync') return;
2016
+ let isSync = result?.method
2017
+ if(!isSync || isSync!=='sync') return;
2017
2018
  // 同步刷新列表
2018
- this.editTableWrapper?.$refs?.editTable?.getTableList({setNum: true, isResetCondiTionDigital: true});
2019
+ let getTableList = this.editTableWrapper?.$refs?.editTable?.getTableList || this.editTableWrapper?.getTableList;
2020
+ if(!getTableList || typeof getTableList !== 'function') return;
2021
+ getTableList({setNum: true, isResetCondiTionDigital: true});
2019
2022
  } catch (error) {
2020
2023
  console.log('error', error);
2021
2024
  }
@@ -124,10 +124,11 @@ export default {
124
124
  searchPageConfig
125
125
  };
126
126
  },
127
- wordbookDataMethodRender(params, item) {
127
+ wordbookDataMethodRender(params, item, config = {}) {
128
+ const { skipFirstDef } = config;
128
129
  this.getWordbookDataRender(params, item).then(({ data }) => {
129
130
  let { rows, searchPageConfig } = this.formatWordbookDataRender(item, data, params);
130
- this.handleRenderFirstDef(item, rows);
131
+ !skipFirstDef && this.handleRenderFirstDef(item, rows);
131
132
  this.$set(item, 'dataSource', rows);
132
133
  this.$set(item, 'searchPageConfig', searchPageConfig);
133
134
  });
@@ -147,7 +148,7 @@ export default {
147
148
  dropdownVisibleChangeRender(open, item) {
148
149
  if (!open) return;
149
150
  let params = this.wordbookDataParamsRender(item.widgetCfg.dynamicOptionInfo);
150
- this.wordbookDataMethodRender(params, item);
151
+ this.wordbookDataMethodRender(params, item, { skipFirstDef: true });
151
152
  },
152
153
  handleWordBookSearchDef(value, item, config = {}) {
153
154
  let params = this.wordbookDataParamsRender(item.widgetCfg.dynamicOptionInfo);
@@ -83,7 +83,7 @@ export default {
83
83
  let reqList = [];
84
84
  printNumberList.forEach((item, index) => {
85
85
  let btnItem = btnList.find(v => v.settingObj[0].trigger_id == item.id);
86
- if (!~btnItem) return;
86
+ if (!btnItem) return;
87
87
  let cacheItem = this.printConfigCache[item.id];
88
88
  if (cacheItem) {
89
89
  reqList.push(Promise.resolve({ [item.id]: cacheItem, _id: item.id }));