centaline-data-driven 1.3.49 → 1.3.52

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.
@@ -46,6 +46,15 @@ const Base = function (source) {
46
46
  set code1(v) {
47
47
  source.code1 = v;
48
48
  },
49
+ set code2(v) {
50
+ source.code2 = v;
51
+ },
52
+ set code3(v) {
53
+ source.code3 = v;
54
+ },
55
+ set code4(v) {
56
+ source.code4 = v;
57
+ },
49
58
  get value() {
50
59
  return source.code1;
51
60
  },
@@ -9,6 +9,9 @@ const box = function (source, callBack) {
9
9
  var rtn = {
10
10
  get options() {
11
11
  return source.selectItems1;
12
+ },
13
+ get width1() {
14
+ return source.width1;
12
15
  },
13
16
  checkedIsInit: false,
14
17
  get checkedItemArr() {
@@ -426,7 +426,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
426
426
  if (this.flagMoreData && this.flagMoreData !== false) {
427
427
  this.pageIndex++;
428
428
  this.apiData(callback);
429
- } else {
429
+ }
430
+ else {
430
431
  if (typeof callback !== 'undefined') {
431
432
  callback(false);
432
433
  }
@@ -505,7 +506,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
505
506
  rtn.listData.push(nr);
506
507
  });
507
508
  rtn.dataDictionary = response.content.rows;
508
- //self.listData = self.listData.concat(response.content.Rows);
509
509
  }
510
510
  rtn.getSelectAll();
511
511
  source.page.rows = response.page.rows;
@@ -533,8 +533,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
533
533
  }
534
534
  if (typeof callback !== 'undefined') {
535
535
  if (response.content.rows.length > 0) {
536
- callback(true);
537
- } else {
536
+ callback(true,response);
537
+ }
538
+ else {
538
539
  callback(false);
539
540
  }
540
541
  }
@@ -64,25 +64,35 @@ const LibFunction = {
64
64
  if (isList) {
65
65
  if (field.controlType === Enum.ControlType.Date) {
66
66
  field.width = field.width || 250;
67
- } else if (field.controlType === Enum.ControlType.DateTime) {
67
+ }
68
+ else if (field.controlType === Enum.ControlType.DateTime) {
68
69
  field.width = field.width || 280;
69
- } else if (field.controlType === Enum.ControlType.DateRange) {
70
+ }
71
+ else if (field.controlType === Enum.ControlType.DateRange) {
70
72
  field.width = field.width || 300;
71
- } else if (field.controlType === Enum.ControlType.DateTimeRange) {
73
+ }
74
+ else if (field.controlType === Enum.ControlType.DateTimeRange) {
72
75
  field.width = field.width || 350;
73
- } else if (field.controlType === Enum.ControlType.ButtonSearch ||
76
+ }
77
+ else if (field.controlType === Enum.ControlType.ButtonSearch ||
74
78
  field.controlType === Enum.ControlType.ButtonReset ||
75
79
  field.controlType === Enum.ControlType.ButtonAdvancedSearch) {
76
80
  field.width = '';
77
- } else if (field.controlType === Enum.ControlType.NumericRange) {
81
+ }
82
+ else if (field.controlType === Enum.ControlType.NumericRange) {
78
83
  field.width = field.width || 280;
79
- } else if (field.controlType === Enum.ControlType.RadioButton) {
84
+ }
85
+ else if (field.controlType === Enum.ControlType.RadioButton) {
80
86
  if (!field.displayLabelAfterSelected) {
81
87
  showLabel = false;
82
88
  }
83
89
  field.width = field.width || 300;
84
90
  field.placeholder1 = field.placeholder1 || field.controlLabel || '';
85
- } else {
91
+ }
92
+ else if (field.controlType === Enum.ControlType.CheckBox) {
93
+ showLabel = true;
94
+ }
95
+ else {
86
96
  showLabel = false;
87
97
  field.width = field.width || 200;
88
98
  field.placeholder1 = field.placeholder1 || field.controlLabel || '';
package/src/main.js CHANGED
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
- // baseUrl: "http://10.88.23.22:9999/v1/form/router",
15
+ // baseUrl: "http://10.88.22.13:7070/v1/form/router",
16
+ // baseUrl: "http://10.88.23.25:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.40:8080/",
18
- // baseUrl: "http://tjcptest.centaline.com.cn/",
19
- // flagRouterSelf: true,
18
+ baseUrl: "http://tjcptest.centaline.com.cn/",
19
+ flagRouterSelf: true,
20
20
  zindex: 999,
21
21
  showRequestSuccessMessage: true,
22
22
  showRequestErrorMessage: true,
@@ -41,10 +41,13 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '8ce4e917-2183-40d9-8b87-53ae45e1fc59',
44
+ oldToken: '2a10f2e1-de17-4ceb-a3cf-b33a7b18515e',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
45
46
  originalRequestURL: 'http://10.88.22.67:8080',
46
47
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
47
- Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',
48
+ estateId: '20210729104021C49F04B55C50F6AF58',
49
+ authObject: '{"currentEstate":{"estateId":"20111122105652A2A701D48134542934","estateName":"%E9%BE%99%E5%85%89%E5%9F%8E"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
50
+ Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdjZjU3ZDhlLTUzNDItNGFhZC1iYThjLTg3OGNjNTcwZTc5MCJ9.X_b6c_D69_IX8dvQ90cfOqIXi-hTy449sJvzFw_rsXbyVc9obiybHSDycdJ6bgdbJW94XRjbqj9hPwiWyL3XSg',
48
51
  };
49
52
  },
50
53
  // 请求完成事件,可判断是否登录过期执行响应操作