centaline-data-driven 1.2.26 → 1.2.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -2,8 +2,8 @@
2
2
  <div id="app-search" style="height:100%;position: fixed;">
3
3
  <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
4
4
 
5
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist>
6
- <!-- <ct-searchlist :searchConditionApi="'/WorklistList/getLayoutOfSearch'" :searchDataApi="'/WorklistList/getListOfSearchModel'" :searchCategoryApi="'/WorklistList/getLayoutOfSearchCategory'"></ct-searchlist> -->
5
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
6
+ <ct-searchlist :searchConditionApi="'/exampleList/getLayoutOfSearch'" :searchDataApi="'/exampleList/getListOfSearchModel'"></ct-searchlist>
7
7
 
8
8
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
9
9
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
@@ -51,6 +51,9 @@
51
51
  }
52
52
  },
53
53
  dateBlur(event) {
54
+ if(this.model.attrs && this.model.attrs.type && this.model.attrs.type=='month'){
55
+ return;
56
+ }
54
57
  var text = event.$el.querySelector("input").value;
55
58
  text = text.replace('-', '').replace('/', '').replace('\\', '');
56
59
  var nowDate = new Date();
@@ -16,6 +16,9 @@ const D = function (source, dateType) {
16
16
  if (dateType === "datetime") {
17
17
  return 'yyyy-MM-dd HH:mm:ss'
18
18
  }
19
+ else if (dateType === "month") {
20
+ return 'yyyy-MM'
21
+ }
19
22
  return 'yyyy-MM-dd'
20
23
  }
21
24
  },
@@ -221,6 +221,10 @@ const Enum = {
221
221
  /// 图片选择
222
222
  /// </summary>
223
223
  PhotoSelect: 45,
224
+ /// <summary>
225
+ /// 年份-月份控件
226
+ /// </summary>
227
+ DateYearMonth:46,
224
228
  },
225
229
 
226
230
  //返回状态码
@@ -167,6 +167,10 @@ const LibFunction = {
167
167
  item = D(field, 'date');
168
168
  item.is = 'ct-date';
169
169
  break;
170
+ case Enum.ControlType.DateYearMonth://年份-月份
171
+ item = D(field, 'month');
172
+ item.is = 'ct-date';
173
+ break;
170
174
  case Enum.ControlType.DateTime://日期时间
171
175
  item = D(field, 'datetime');
172
176
  item.is = 'ct-date';