centaline-data-driven 1.6.56 → 1.6.58

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.
@@ -50,8 +50,9 @@ const SensitiveEye = function (source) {
50
50
  extraData: extraData
51
51
  }
52
52
  };
53
- Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
54
- if (response.rtnCode === Enum.ReturnCode.Successful) {
53
+ if(rtn.getFormRefFieldPara())params.para = Object.assign(params.para,JSON.parse(rtn.getFormRefFieldPara()));
54
+ Vue.prototype.$api.postHandler(common.globalUri(), params,rtn.form.scripts).then((response) => {
55
+ if (response.rtnCode === Enum.ReturnCode.Successful && response.clientActionType !== Enum.ClientActionType.ExcuteScript) {
55
56
  self.labelValue1 = response.content;
56
57
  }
57
58
  });
@@ -311,6 +311,16 @@ const Enum = {
311
311
  */
312
312
  AIChat:62,
313
313
 
314
+ /**
315
+ * json 数据查看控件
316
+ */
317
+ JsonViewer:63,
318
+
319
+ /**
320
+ * Markdown 数据查看控件
321
+ */
322
+ MarkdownViewer:64,
323
+
314
324
  },
315
325
 
316
326
  //返回状态码
@@ -483,6 +493,11 @@ const Enum = {
483
493
  /// </summary>
484
494
  UpdateColumns: 24,
485
495
 
496
+ /**
497
+ * 执行客户端函数
498
+ */
499
+ ExcuteClientFunction:27,
500
+
486
501
  /**
487
502
  * 打开百度地图
488
503
  */
@@ -43,6 +43,7 @@ import LH from '../LH';
43
43
  import Image from '../Image';
44
44
  import Steps from '../Steps';
45
45
  import Location from '../Location';
46
+ import JsonViewer from '../JsonViewer';
46
47
 
47
48
  const LibFunction = {
48
49
  install(Vue) {},
@@ -415,6 +416,10 @@ const LibFunction = {
415
416
  item = Location(field,moreActionRouter);
416
417
  item.is = 'ct-Location';
417
418
  break;
419
+ case Enum.ControlType.JsonViewer: //json 数据查看控件
420
+ item = JsonViewer(field);
421
+ item.is = 'ct-JsonViewer';
422
+ break;
418
423
  default:
419
424
  item = L(field);
420
425
  item.is = 'ct-labelText';
@@ -456,6 +461,7 @@ const LibFunction = {
456
461
  || field.controlType === Enum.ControlType.List || field.controlType === Enum.ControlType.File
457
462
  || field.controlType === Enum.ControlType.SliceUpload || field.controlType === Enum.ControlType.PhoneDial
458
463
  || field.controlType === Enum.ControlType.Steps || field.controlType === Enum.ControlType.Location
464
+ || field.controlType === Enum.ControlType.JsonViewer || field.controlType === Enum.ControlType.MarkdownViewer
459
465
  || field.controlType === Enum.ControlType.SearchPage;
460
466
  },
461
467
  showLabel: showLabel
@@ -51,6 +51,7 @@ const loader = {
51
51
  Location: require("./ctl/Location.js").default,
52
52
  SosNew: require("./ctl/SosNew.js").default,
53
53
  TagsNew: require("./ctl/TagsNew.js").default,
54
+ JsonViewer: require("./ctl/JsonViewer.js").default,
54
55
  };
55
56
 
56
57
  export default loader;
package/src/main.js CHANGED
@@ -17,13 +17,15 @@ Vue.use(centaline, {
17
17
  // baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
18
18
  // baseUrl: "http://10.88.22.46:9004/max-uplink-api/",
19
19
  // baseUrl: "http://10.88.22.46:6060/onecard-api/",
20
- // baseUrl: "http://10.88.22.46:9999/service-api/",
20
+ // baseUrl: "http://10.88.22.46:9999/service-api/",
21
+ // baseUrl: "http://10.88.22.42:9999/service-api/",
21
22
  // baseUrl: "http://10.88.22.46:22324/service-api/v1/form/router",
22
23
  // baseUrl: "http://10.25.10.67:8999/service-api/v1/form/router",
23
24
  // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
24
25
  // baseUrl: "http://10.88.22.13:9004/max-uplink-api/",
26
+ baseUrl: "http://10.88.22.13:7080/ibs-api/",
25
27
  // baseUrl:"http://szamaxbusiness-api-test2.centaline.com.cn/max-uplink-api/",
26
- baseUrl: "http://10.88.22.13:7070/onecard-api/",
28
+ // baseUrl: "http://10.88.22.13:7070/onecard-api/",
27
29
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
28
30
  // baseUrl: "http://10.28.21.164:9004/max-uplink-api/",
29
31
  // baseUrl: "http://10.25.10.63:9999/service-api/",
@@ -31,7 +33,6 @@ Vue.use(centaline, {
31
33
  // baseUrl: "http://10.25.10.69:8080/",
32
34
  // baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
33
35
  // baseUrl: "http://10.88.22.69:8080/",
34
- // baseUrl: "http://10.88.22.42:9999/service-api/",
35
36
  // baseUrl: "http://10.1.245.111:38908/service-api/",
36
37
  // baseUrl: "http://10.1.245.111:31574/service-api/",
37
38
  // baseUrl: "https://tjcptest.centaline.com.cn/",
@@ -70,15 +71,15 @@ Vue.use(centaline, {
70
71
  return {
71
72
  oldToken: '30bf66c7-b93e-47b4-9d6f-3a7e85c19ac0',
72
73
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksOwjAMBe-SdS05tuPE7PpJNhwCBWglWCHaSiDE3SniEGznjfTm5eb16HYuIUWltoc-sYKkYGDcF_ApGWYzjrE_CHOHKANQxAJSYgYTCYBoahaC0qAHJc6lbRW8bLuUbpNIBDS3QTJhZiHXuPFxczsfmXxCJG3cpS4_gMb6Bes83vfj8x9x1-Wy3eJ48seQJuCaziATTWDRIlSazCNrlerd-wMAAP__.93H7c7k4TLTqbKpozp0aTSU4U_WrQu3eS990iS-TCpw',
73
- // authObject: '{token:"jiangzf-1955865005534617600",platform:"WEB"}',
74
+ authObject: '{token:"T5067-1995406631567089664",platform:"WEB"}',
74
75
 
75
76
  // originalRequestURL: 'http://10.88.22.67:8080',
76
77
  EstateInfo: '{"estateId":"1c581b7c-d629-4670-8a7c-6d622860bc58","estateName":"0%E9%87%91%E9%9A%85%E4%BA%91%E7%AD%91%E5%A4%A9%E6%B4%A5","estDeptPath":"009.014.001.001"}',
77
78
  estateId: '',
78
79
  appinfo:'{"appId":"8F184E91-2C73-45E3-B518-889491E07CDA","appName":"%E6%95%B0%E6%8D%AE%E9%A9%B1%E5%8A%A8%E7%AE%A1%E7%90%86%E5%90%8E%E5%8F%B0"}',
79
80
 
80
- authObject: '{"currentEstate":{"estateId":"241112160400DF3DC1EB63A14A1DBBF4","estateName":"%E6%B5%8B%E8%AF%95%E6%8C%89%E7%82%B9%E4%BD%8Dhq","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"IxHKFp","time":1760949136314,"sign":"442f7230d007ce24777be666b6db5c68","systemSource":"CCESU","empNo":"hqxtgl","empId":"2411121446336B97FBEB7FD54905A903","clientVersion":"12.5","empName":"hq%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%9C%AA%E5%8C%B9%E9%85%8DCCHR%E4%B8%ADHROC%E9%83%A8%E9%97%A8%2F%E9%9B%86%E5%9B%A2IT%2FCCES%E7%BB%84"}',
81
- AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjgyZjY5NDc0LTFlMzItNGRlYi05NDQxLWQ2MTNmZWZkMDJmMiJ9.T3fOcvd3JU9hdNeZBSgMycgY7oRFr4Fj2Fof3AUevbyPgwJ3-xgnxDq9Bjq70q0gkk_pmonV0W52HHrSx7AjQA',
81
+ // authObject: '{"currentEstate":{"estateId":"241112160400DF3DC1EB63A14A1DBBF4","estateName":"%E6%B5%8B%E8%AF%95%E6%8C%89%E7%82%B9%E4%BD%8Dhq","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"SpAuvK","time":1764050650746,"sign":"293f6f43c2687ea13e247e9e84fd33a2","systemSource":"CCESU","empNo":"hqxtgl","empId":"2411121446336B97FBEB7FD54905A903","clientVersion":"12.5","empName":"hq%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%9C%AA%E5%8C%B9%E9%85%8DCCHR%E4%B8%ADHROC%E9%83%A8%E9%97%A8%2F%E9%9B%86%E5%9B%A2IT%2FCCES%E7%BB%84"}',
82
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNlZThhNzVhLTg1YTQtNDEyYS04MWVkLTEyM2Y1ZjdlMmI3ZSJ9.7FwCz__FEzKk3D_1y8Z5J_-ovV_mVoJEve5ty-GiZsUOnpOuFZyX6czVuGMO-6VKgJYrdNgd_V6lXfPIqf-s1Q',
82
83
  };
83
84
  },
84
85
  // 请求完成事件,可判断是否登录过期执行响应操作