cnhis-design-vue 2.1.18 → 2.1.21

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 (48) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +112 -134
  4. package/es/big-table/style.css +1 -1
  5. package/es/button/index.js +35 -38
  6. package/es/captcha/index.js +3 -3
  7. package/es/checkbox/index.js +1 -1
  8. package/es/color-picker/index.js +1 -1
  9. package/es/drag-layout/index.js +36 -39
  10. package/es/editor/index.js +11 -31
  11. package/es/fabric-chart/index.js +491 -393
  12. package/es/fabric-chart/style.css +1 -1
  13. package/es/form-table/index.js +62 -85
  14. package/es/index/index.js +971 -807
  15. package/es/index/style.css +1 -1
  16. package/es/input/index.js +1 -1
  17. package/es/map/index.js +1 -1
  18. package/es/multi-chat/index.js +210 -196
  19. package/es/multi-chat/style.css +1 -1
  20. package/es/multi-chat-client/index.js +203 -189
  21. package/es/multi-chat-client/style.css +1 -1
  22. package/es/multi-chat-history/index.js +37 -40
  23. package/es/multi-chat-record/index.js +37 -40
  24. package/es/multi-chat-setting/index.js +54 -57
  25. package/es/multi-chat-sip/index.js +1 -1
  26. package/es/radio/index.js +1 -1
  27. package/es/scale-view/index.js +70 -93
  28. package/es/select/index.js +36 -39
  29. package/es/select-label/index.js +47 -70
  30. package/es/select-person/index.js +35 -38
  31. package/es/table-filter/index.js +191 -186
  32. package/es/table-filter/style.css +1 -1
  33. package/es/tag/index.js +34 -37
  34. package/es/verification-code/index.js +2 -2
  35. package/lib/cui.common.js +1107 -939
  36. package/lib/cui.umd.js +1107 -939
  37. package/lib/cui.umd.min.js +79 -79
  38. package/package.json +2 -2
  39. package/packages/big-table/src/BigTable.vue +20 -19
  40. package/packages/fabric-chart/src/components/TimeScaleValue.vue +1 -5
  41. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +185 -90
  42. package/packages/fabric-chart/src/mixins/draw.js +70 -62
  43. package/packages/fabric-chart/src/mixins/eventCommon.js +9 -10
  44. package/packages/multi-chat/chat/chatFooter.vue +1 -5
  45. package/packages/multi-chat/chat/chatMain.vue +29 -5
  46. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1825 -1824
  47. package/packages/table-filter/src/const/dataOptions.js +10 -10
  48. package/packages/table-filter/src/quick-search/QuickSearch.vue +26 -0
@@ -18,26 +18,26 @@ export const dataOptions = {
18
18
  ],
19
19
  dateTeam2: [
20
20
  { con: 'TODAY', title: '1.1.4.37', name: '今天' },
21
- { con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
21
+ { con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
22
22
  { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
23
- { con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
23
+ { con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
24
24
  { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
25
- { con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
25
+ { con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
26
26
  { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
27
- { con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
27
+ { con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
28
28
  { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
29
- { con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' }
29
+ { con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
30
30
  ],
31
31
  dateTeam3: [
32
32
  { con: 'TODAY', title: '1.1.4.37', name: '今天' },
33
- { con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
33
+ { con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
34
34
  { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
35
- { con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
35
+ { con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
36
36
  { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
37
- { con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
37
+ { con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
38
38
  { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
39
- { con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
39
+ { con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
40
40
  { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
41
- { con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
41
+ { con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' }
42
42
  ]
43
43
  };
@@ -245,6 +245,7 @@
245
245
  :placeholder="getI18nText('1.1.4.53', '开始时间')"
246
246
  style="width: 120px"
247
247
  allowClear
248
+ :disabledDate="current => disabledDatePicker(current, item)"
248
249
  />
249
250
   
250
251
  <a-date-picker
@@ -256,6 +257,7 @@
256
257
  v-model="item.DATE.end_val"
257
258
  style="width: 120px"
258
259
  allowClear
260
+ :disabledDate="current => disabledDatePicker(current, item)"
259
261
  />
260
262
  </div>
261
263
  </a-radio-group>
@@ -1849,6 +1851,30 @@ export default create({
1849
1851
  return this.$t ? this.$t.apply(this, i) : d;
1850
1852
  }
1851
1853
  return this.$t ? this.$t(i) : d;
1854
+ },
1855
+
1856
+ /**
1857
+ * 限制日期填写
1858
+ */
1859
+ disabledDatePicker(current,item){
1860
+ /**
1861
+ * 2 过去时间
1862
+ * 3 未来时间
1863
+ */
1864
+ let type = String(item?.advanceOptionSetting);
1865
+ if(!['2','3'].includes(type)) return false;
1866
+ if(type === '2'){
1867
+ return current >= this.$moment().endOf('day');
1868
+ } else if(type==='3'){
1869
+ return current && current < this.$moment().startOf('day');
1870
+ }
1871
+ return false
1872
+ },
1873
+ /**
1874
+ * 限制时间
1875
+ */
1876
+ disabledTimePicker(current,item){
1877
+
1852
1878
  }
1853
1879
  },
1854
1880
  directives: { resize }