centaline-data-driven 1.5.86 → 1.5.88

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.5.86",
3
+ "version": "1.5.88",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v1.5.88
2
+ 2023-12-28
3
+ 优化
4
+
5
+ 表单异步支持202处理
6
+
7
+ # v1.5.87
8
+ 2023-12-21
9
+ 优化
10
+
11
+ 优化单行文本域清空内容按钮
12
+
13
+ 优化列表右侧边栏权限查看提示
14
+
15
+ 联系人列表新增完后刷新bug处理
16
+
1
17
  # v1.5.86
2
18
  2023-12-15
3
19
  优化
package/src/Detail.vue CHANGED
@@ -15,7 +15,7 @@
15
15
  return {
16
16
  apiParam: {
17
17
  actionType: 1,
18
- chanceID: "10104511",
18
+ chanceID: "10000064",
19
19
  estateID:'',
20
20
  buildingID:'9717',
21
21
  } ,
@@ -107,7 +107,9 @@
107
107
 
108
108
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/HolidayTypeList/getLayoutOfSearch'" :searchDataApi="'/HolidayTypeList/getListOfSearchModel'"></ct-searchlist> -->
109
109
 
110
- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemLogList/getLayoutOfSearch'" :searchDataApi="'/SystemLogList/getListOfSearchModel'"></ct-searchlist>
110
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemLogList/getLayoutOfSearch'" :searchDataApi="'/SystemLogList/getListOfSearchModel'"></ct-searchlist> -->
111
+
112
+ <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceBalanceAlertList/getLayoutOfSearch'" :searchDataApi="'/AttendanceBalanceAlertList/getListOfSearchModel'"></ct-searchlist>
111
113
 
112
114
 
113
115
  <ct-dialog-list></ct-dialog-list>
@@ -66,7 +66,7 @@
66
66
  </div>
67
67
  </div>
68
68
  <div v-if="model.flagHiddenSensitiveInfo"
69
- style="display: flex;align-items: center;justify-content: center;margin-top: 50%;height: 0px;">
69
+ style="display: flex;align-items: center;justify-content: center;margin-top: 50%;">
70
70
  <div v-html="model.hiddenSensitiveInfoReason"></div>
71
71
  </div>
72
72
  <div v-if="!model.flagHiddenSensitiveInfo" class="areaValue">
@@ -336,49 +336,110 @@
336
336
 
337
337
  if (field.flagAsync) {
338
338
  field.doAction(self.getFormObj(), (res) => {
339
- if (res.content && res.content.action) {
340
- var dialogOption = {
341
- title: field.pageTitle || field.label,
342
- content: [{
343
- component: 'ct-progress',
344
- attrs: {
345
- progressAction: res.content.action,
346
- progressKey: res.content.key,
347
- progressType: field.isExport ? 'export' : 'import',
348
- width: '350px',
349
- height: '165px'
350
- },
351
- on: {
352
- finished(data) {
353
- field.disabled = false;
354
- self.model.pageDisabled = false;
355
- self.$common.closeDialog(dialogOption.dialog);
356
- if (data.rtnMsg) {
339
+ if (res.rtnCode === 200) {
340
+ if (res.content && res.content.action) {
341
+ var dialogOption = {
342
+ title: field.pageTitle || field.label,
343
+ content: [{
344
+ component: 'ct-progress',
345
+ attrs: {
346
+ progressAction: res.content.action,
347
+ progressKey: res.content.key,
348
+ progressType: field.isExport ? 'export' : 'import',
349
+ width: '350px',
350
+ height: '165px'
351
+ },
352
+ on: {
353
+ finished(data) {
354
+ field.disabled = false;
355
+ self.model.pageDisabled = false;
356
+ self.$common.closeDialog(dialogOption.dialog);
357
+ if (data.rtnMsg) {
358
+ self.$message({
359
+ message: data.rtnMsg,
360
+ type: 'success',
361
+ showClose:true,
362
+ });
363
+ }
364
+ if (data.notification === 17) {
365
+ self.clickHandler(self.model.getRtnRouter(data.content), null)
366
+ }
367
+ self.$emit('submit', { formData: self.model, responseData: data });
368
+ },
369
+ error(data) {
370
+ field.disabled = false;
371
+ self.model.pageDisabled = false;
372
+ self.$common.closeDialog(dialogOption.dialog);
357
373
  self.$message({
358
374
  message: data.rtnMsg,
359
- type: 'success',
375
+ type: 'warning',
360
376
  showClose:true,
361
377
  });
362
378
  }
363
- if (data.notification === 17) {
364
- self.clickHandler(self.model.getRtnRouter(data.content), null)
365
- }
366
- self.$emit('submit', { formData: self.model, responseData: data });
367
- },
368
- error(data) {
369
- field.disabled = false;
370
- self.model.pageDisabled = false;
371
- self.$common.closeDialog(dialogOption.dialog);
372
- self.$message({
373
- message: data.rtnMsg,
374
- type: 'warning',
375
- showClose:true,
376
- });
379
+ }
380
+ }]
381
+ };
382
+ self.$common.openDialog(dialogOption);
383
+ }
384
+ }
385
+ else if (res.rtnCode === 202) {
386
+ self.$common.confirm(res.rtnMsg, '提示', {
387
+ confirmButtonText: '确定',
388
+ cancelButtonText: '取消',
389
+ type: 'warning'
390
+ }).then(() => {
391
+ field.doAction(self.getFormObj({ flagHaveAlert: '1' }), (res202) => {
392
+ if (res202.rtnCode === 200) {
393
+ if (res202.content && res202.content.action) {
394
+ var dialogOption = {
395
+ title: field.pageTitle || field.label,
396
+ content: [{
397
+ component: 'ct-progress',
398
+ attrs: {
399
+ progressAction: res202.content.action,
400
+ progressKey: res202.content.key,
401
+ progressType: field.isExport ? 'export' : 'import',
402
+ width: '350px',
403
+ height: '165px'
404
+ },
405
+ on: {
406
+ finished(data) {
407
+ field.disabled = false;
408
+ self.model.pageDisabled = false;
409
+ self.$common.closeDialog(dialogOption.dialog);
410
+ if (data.rtnMsg) {
411
+ self.$message({
412
+ message: data.rtnMsg,
413
+ type: 'success',
414
+ showClose:true,
415
+ });
416
+ }
417
+ if (data.notification === 17) {
418
+ self.clickHandler(self.model.getRtnRouter(data.content), null)
419
+ }
420
+ self.$emit('submit', { formData: self.model, responseData: data });
421
+ },
422
+ error(data) {
423
+ field.disabled = false;
424
+ self.model.pageDisabled = false;
425
+ self.$common.closeDialog(dialogOption.dialog);
426
+ self.$message({
427
+ message: data.rtnMsg,
428
+ type: 'warning',
429
+ showClose:true,
430
+ });
431
+ }
432
+ }
433
+ }]
434
+ };
435
+ self.$common.openDialog(dialogOption);
377
436
  }
378
437
  }
379
- }]
380
- };
381
- self.$common.openDialog(dialogOption);
438
+ });
439
+ }).catch(() => {
440
+ field.disabled = false;
441
+ self.model.pageDisabled = false;
442
+ });
382
443
  }
383
444
  });
384
445
  }
@@ -630,47 +691,105 @@
630
691
  submitData = field.getActionPara(submitData).para;
631
692
  if (field.flagAsync) {
632
693
  field.doAction(submitData, (res) => {
633
- if (res.content && res.content.action) {
634
- var dialogOption = {
635
- title: field.pageTitle || field.label,
636
- content: [{
637
- component: 'ct-progress',
638
- attrs: {
639
- progressAction: res.content.action,
640
- progressKey: res.content.key,
641
- progressType: field.isExport ? 'export' : 'import',
642
- width: '350px',
643
- height: '165px'
644
- },
645
- on: {
646
- finished(data) {
647
- self.$common.closeDialog(dialogOption.dialog);
648
- if (data.rtnMsg) {
694
+ if (res.rtnCode === 200) {
695
+ if (res.content && res.content.action) {
696
+ var dialogOption = {
697
+ title: field.pageTitle || field.label,
698
+ content: [{
699
+ component: 'ct-progress',
700
+ attrs: {
701
+ progressAction: res.content.action,
702
+ progressKey: res.content.key,
703
+ progressType: field.isExport ? 'export' : 'import',
704
+ width: '350px',
705
+ height: '165px'
706
+ },
707
+ on: {
708
+ finished(data) {
709
+ self.$common.closeDialog(dialogOption.dialog);
710
+ if (data.rtnMsg) {
711
+ self.$message({
712
+ message: data.rtnMsg,
713
+ type: 'success',
714
+ showClose:true,
715
+ });
716
+ }
717
+ if (field && field.changeCallBackFunName) {
718
+ self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
719
+ }
720
+ else {
721
+ self.model.doAction(data);
722
+ }
723
+ },
724
+ error(data) {
725
+ self.$common.closeDialog(dialogOption.dialog);
649
726
  self.$message({
650
727
  message: data.rtnMsg,
651
- type: 'success',
728
+ type: 'warning',
652
729
  showClose:true,
653
730
  });
654
731
  }
655
- if (field && field.changeCallBackFunName) {
656
- self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
657
- }
658
- else {
659
- self.model.doAction(data);
660
- }
661
- },
662
- error(data) {
663
- self.$common.closeDialog(dialogOption.dialog);
664
- self.$message({
665
- message: data.rtnMsg,
666
- type: 'warning',
667
- showClose:true,
668
- });
669
732
  }
733
+ }]
734
+ };
735
+ self.$common.openDialog(dialogOption);
736
+ }
737
+ }
738
+ else if (res.rtnCode === 202) {
739
+ submitData.flagHaveAlert='1';
740
+ if(submitData.jsonData)submitData.jsonData.flagHaveAlert='1';
741
+ self.$common.confirm(res.rtnMsg, '提示', {
742
+ confirmButtonText: '确定',
743
+ cancelButtonText: '取消',
744
+ type: 'warning'
745
+ }).then(() => {
746
+ field.doAction(submitData, (res202) => {
747
+ if (res202.rtnCode === 200) {
748
+ if (res202.content && res202.content.action) {
749
+ var dialogOption = {
750
+ title: field.pageTitle || field.label,
751
+ content: [{
752
+ component: 'ct-progress',
753
+ attrs: {
754
+ progressAction: reres202s.content.action,
755
+ progressKey: res202.content.key,
756
+ progressType: field.isExport ? 'export' : 'import',
757
+ width: '350px',
758
+ height: '165px'
759
+ },
760
+ on: {
761
+ finished(data) {
762
+ self.$common.closeDialog(dialogOption.dialog);
763
+ if (data.rtnMsg) {
764
+ self.$message({
765
+ message: data.rtnMsg,
766
+ type: 'success',
767
+ showClose:true,
768
+ });
769
+ }
770
+ if (field && field.changeCallBackFunName) {
771
+ self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
772
+ }
773
+ else {
774
+ self.model.doAction(data);
775
+ }
776
+ },
777
+ error(data) {
778
+ self.$common.closeDialog(dialogOption.dialog);
779
+ self.$message({
780
+ message: data.rtnMsg,
781
+ type: 'warning',
782
+ showClose:true,
783
+ });
784
+ }
785
+ }
786
+ }]
787
+ };
788
+ self.$common.openDialog(dialogOption);
670
789
  }
671
- }]
672
- };
673
- self.$common.openDialog(dialogOption);
790
+ } });
791
+ }).catch(() => {
792
+ });
674
793
  }
675
794
  });
676
795
  }
@@ -322,7 +322,9 @@
322
322
  display: none;
323
323
  }
324
324
  .hoverColor:hover .is-show-Span {
325
- display: inline-block;
325
+ /* display: inline-block; */
326
+ display: flex;
327
+ align-items: center;
326
328
  }
327
329
  .backdrop {
328
330
  position: absolute;
@@ -333,15 +333,17 @@ const ContactList = function (source, para, callBack) {
333
333
  getCurrentRowApiData(rtnData, router, callBack) {
334
334
  var self = this;
335
335
  var searchFields = self.apiRouter.getSearchPara();
336
- var searchValue1 = router.flagAddRowAfterAction ? rtnData.content : rtn.listData[rtn.selectIndex][self.primaryKey];
337
- if (self.primaryKey) {
338
- searchFields.fields.push({
339
- fieldName1: self.primaryFieldMappingDBName ? self.primaryFieldMappingDBName : self.primaryKey,
340
- groupName: self.primaryKey,
341
- operation: Enum.SearchOperation.等于,
342
- searchDataType: Enum.SearchDataType.Text,
343
- searchValue1: searchValue1,
344
- });
336
+ if(rtnData.notification !== Enum.ActionType.Refersh){
337
+ var searchValue1 = router.flagAddRowAfterAction ? rtnData.content : rtn.listData[rtn.selectIndex][self.primaryKey];
338
+ if (self.primaryKey) {
339
+ searchFields.fields.push({
340
+ fieldName1: self.primaryFieldMappingDBName ? self.primaryFieldMappingDBName : self.primaryKey,
341
+ groupName: self.primaryKey,
342
+ operation: Enum.SearchOperation.等于,
343
+ searchDataType: Enum.SearchDataType.Text,
344
+ searchValue1: searchValue1,
345
+ });
346
+ }
345
347
  }
346
348
  Vue.prototype.$api.postHandler(common.globalUri(), {
347
349
  action: rtn.apiRouter.action,
@@ -353,7 +355,7 @@ const ContactList = function (source, para, callBack) {
353
355
  })
354
356
  .then(function (response) {
355
357
  if (response.rtnCode === Enum.ReturnCode.Successful) {
356
- if (response.notification == Enum.ActionType.Refersh) {
358
+ if (response.notification === Enum.ActionType.Refersh || rtnData.notification === Enum.ActionType.Refersh) {
357
359
  var rtn = init(response);
358
360
  if (callBack) {
359
361
  callBack(rtn);
package/src/main.js CHANGED
@@ -16,7 +16,8 @@ Vue.config.productionTip = false;
16
16
  Vue.use(centaline, {
17
17
  // baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
18
18
  // baseUrl: "http://10.88.22.46:6060/onecard-api/",
19
- baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
19
+ // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
20
+ baseUrl: "http://10.88.22.13:6060/onecard-api/",
20
21
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
21
22
  // baseUrl: "http://10.25.10.63:22026/service-api/v1/form/router",
22
23
  // baseUrl: "http://10.25.10.67:8080/",
@@ -56,7 +57,7 @@ Vue.use(centaline, {
56
57
  return {
57
58
  oldToken: '1f487e18-c090-4d24-b9a7-630de58cfccc',
58
59
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAQBP_iOifZuYvvnC62k4ZHRDYxElSIJBII8XeCgI6eKbaYYnfval6zalWUTlMYEEJfN0CRG-gGFvBBRPuakbyM7gP8iC-jMeTY2B46xwHIEoKYIBDIBhpij8FHValyPavWsDZSO22bSh3T8hZMtX2JdS6XXbn949xpOW6znFyZChNkmQhIo4U8ZYTDfqvQyWDCoh5PAAAA__8.819W_FW6PWIm3sqKcC1EXrcMlKujBUCQj6I0-_sIa_Y',
59
- authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAQBP_iOif5fGf7nC62k4ZHRAkxUqgQSSQQ4u-AgI6eKbaYZvamlm1UtcrSaE4dQWqNBc7eQtN5gZhEdDSeOEofPsCP-dIjcvDoWmiCT8COCQSTQGKXuMstpZhVpcrlpGr02jgdgvWVmof1Lawh-xLbUs67cv3HueM6P7OGAw8DIoxlJGAaEMRPBQ5FT8HS3qKZ1P0BAAD__w.XZwVxiNclGseacjKI1vDeaklSFoKIMHcwoozwvkgj3A"}',
60
+ authObject: '{token:"1080-1740240291341930496"}',
60
61
 
61
62
  // originalRequestURL: 'http://10.88.22.67:8080',
62
63
  EstateInfo: '{"estateId":"2209221422412F69767A067443EEAAD6","estateName":"U%E7%89%88%E6%B5%8B%E8%AF%95%E6%A5%BC%E7%9B%98%E6%A5%BC%E4%BB%B7"}',