centaline-data-driven 1.6.19 → 1.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.6.19",
3
+ "version": "1.6.21",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,4 +1,23 @@
1
-
1
+ # v1.6.21
2
+ 2024-09-14
3
+
4
+ BUG
5
+
6
+ 查询条件必填验证bug处理,必须先判断有没有查询条件
7
+
8
+ # v1.6.20
9
+ 2024-09-13
10
+
11
+ BUG
12
+
13
+ 分片上传,API强制报错,删除当前文件
14
+
15
+ 保存按钮浮动样式修复
16
+
17
+ 优化
18
+
19
+ 同步下载模式按钮增加加载状态圆圈
20
+
2
21
  # v1.6.19
3
22
  2024-09-05
4
23
 
@@ -37,7 +37,8 @@
37
37
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
38
38
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
39
39
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
40
- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist>
40
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
41
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/EntranceNoticeInfoList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/EntranceNoticeInfoList/getList'"></ct-searchlist> -->
41
42
  <!-- CCES -->
42
43
 
43
44
  <!-- <ct-searchlist :apiParam="para"
@@ -105,6 +106,8 @@
105
106
 
106
107
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyVRRealLookBalanceList/getLayoutOfSearchForOFI'" :searchDataApi="'/PropertyVRRealLookBalanceList/getListOfSearchModel'"></ct-searchlist> -->
107
108
 
109
+ <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemParameterList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterList/getListOfSearchModel'"></ct-searchlist>
110
+
108
111
 
109
112
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
110
113
  :searchDataApi="'/propertyPublishList/getListOfSearchModel'"
@@ -149,7 +152,7 @@
149
152
  // appRootUrl:'http://10.88.22.13:6060/onecard-api/',
150
153
  appRootUrl:'',
151
154
  para:{
152
- "type":"left"
155
+ "name":"安全中心访问配置","code":"011.001","paramName":"安全中心访问配置","paramKey":"SecurityCenterConfig"
153
156
  },
154
157
  }
155
158
  },
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
4
- :searchConditionApi="'/DepartmentList/getLayoutOfSearch'"
5
- :searchDataApi="'/DepartmentList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
4
+ :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
5
+ :searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
6
6
  <ct-dialog-list></ct-dialog-list>
7
7
  </div>
8
8
  </template>
@@ -952,3 +952,9 @@ color: var(--centalinePlaceholder);
952
952
  border-top-left-radius: 6px;
953
953
  border-bottom-left-radius: 6px;
954
954
  }
955
+
956
+ .max .el-icon-loading{
957
+ color: red;
958
+ font-weight: 800;
959
+ }
960
+
@@ -81,7 +81,7 @@
81
81
  </el-dropdown-item>
82
82
  </el-dropdown-menu>
83
83
  </el-dropdown>
84
- <el-button v-else class="max"
84
+ <el-button v-else class="max" :loading="model.loading"
85
85
  :type="model.isHyperLink ? 'text' : 'primary'"
86
86
  v-bind="model.attrs" @click="clickHandle"
87
87
  :style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
@@ -91,7 +91,7 @@
91
91
  <img :src="model.imgUrl" :height="model.buttonHeight+'px'" />
92
92
  <div style="margin-top:5px;" class="labelText" v-html="model.label"></div>
93
93
  </div>
94
- <div v-else>
94
+ <div v-else :style="{display:model.loading?'inline-block':''}">
95
95
  <img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" :height="model.buttonHeight+'px'" />
96
96
  <span v-else v-html="model.label"></span>
97
97
  </div>
@@ -708,6 +708,9 @@ export default {
708
708
  type: 'error',
709
709
  showClose: true,
710
710
  });
711
+ file.source = { "actionType": 2 };
712
+ this.model.deleteFile(file, false);
713
+ this.selfValidExcute("remove");
711
714
  return false;
712
715
  }
713
716
  const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(file.size)) / 100);
@@ -1508,6 +1508,7 @@
1508
1508
  /* bottom: 6px; */
1509
1509
  bottom: 0;
1510
1510
  left: 0;
1511
+ right: 0;
1511
1512
  border-radius: 0 0 4px 4px;
1512
1513
  position: absolute;
1513
1514
  line-height: 34px;
@@ -789,54 +789,56 @@ import dynamicElement from '../../mixins/dynamicElement';
789
789
  var rtnBool = true;
790
790
  var i = 0;
791
791
 
792
- self.$refs.Fields.forEach((f) => {
793
- if (f.model && typeof f.validExcute !== 'undefined') {
794
- if (!f.validExcute()) {
795
- if (i === 0) {
796
- if (f.model.is == "ct-file"||f.model.is == "ct-repeat"||f.model.is == "ct-form-list-table") {
797
- self.$message({
798
- message: f.validMessage,
799
- type: 'error',
800
- showClose:true,
801
- });
802
- }
803
- else {
804
- if (f.validMessage) {
805
- if (f.validMessage == '必填' && (f.model.label || (f.model.attrs && f.model.attrs.placeholder))) {
806
- let m=f.model.label;
807
- if(!m && f.model.attrs && f.model.attrs.placeholder){
808
- m=f.model.attrs.placeholder;
792
+ if(self.$refs && self.$refs.Fields){
793
+ self.$refs.Fields.forEach((f) => {
794
+ if (f.model && typeof f.validExcute !== 'undefined') {
795
+ if (!f.validExcute()) {
796
+ if (i === 0) {
797
+ if (f.model.is == "ct-file"||f.model.is == "ct-repeat"||f.model.is == "ct-form-list-table") {
798
+ self.$message({
799
+ message: f.validMessage,
800
+ type: 'error',
801
+ showClose:true,
802
+ });
803
+ }
804
+ else {
805
+ if (f.validMessage) {
806
+ if (f.validMessage == '必填' && (f.model.label || (f.model.attrs && f.model.attrs.placeholder))) {
807
+ let m=f.model.label;
808
+ if(!m && f.model.attrs && f.model.attrs.placeholder){
809
+ m=f.model.attrs.placeholder;
810
+ }
811
+ self.$message({
812
+ message: '【' + m + '】' + f.validMessage,
813
+ type: 'error',
814
+ showClose:true,
815
+ });
816
+ }
817
+ else {
818
+ self.$message({
819
+ message: f.validMessage,
820
+ type: 'error',
821
+ showClose:true,
822
+ });
809
823
  }
810
- self.$message({
811
- message: '【' + m + '】' + f.validMessage,
812
- type: 'error',
813
- showClose:true,
814
- });
815
824
  }
816
825
  else {
817
- self.$message({
818
- message: f.validMessage,
819
- type: 'error',
820
- showClose:true,
821
- });
822
- }
823
- }
824
- else {
825
- if (f.model.label) {
826
- self.$message({
827
- message: '【' + f.model.label + '】不能为空!',
828
- type: 'error',
829
- showClose:true,
830
- });
826
+ if (f.model.label) {
827
+ self.$message({
828
+ message: '' + f.model.label + '】不能为空!',
829
+ type: 'error',
830
+ showClose:true,
831
+ });
832
+ }
831
833
  }
832
834
  }
833
835
  }
836
+ i++;
837
+ rtnBool = false;
834
838
  }
835
- i++;
836
- rtnBool = false;
837
839
  }
838
- }
839
- });
840
+ });
841
+ }
840
842
  return rtnBool;
841
843
  },
842
844
  }
@@ -1462,7 +1462,16 @@ export default {
1462
1462
  }
1463
1463
  }
1464
1464
  else {
1465
+ field.loading=true;
1466
+ if(!field.alert && field.alertMsg){
1467
+ self.$message({
1468
+ message: field.alertMsg,
1469
+ type: 'info',
1470
+ showClose: true,
1471
+ });
1472
+ }
1465
1473
  field.doBlobAction(submitData, (data, headers) => {
1474
+ field.loading=false;
1466
1475
  if (data.type == "application/json") {
1467
1476
  const reader = new FileReader();
1468
1477
  reader.readAsText(data, 'utf-8');
@@ -1485,6 +1494,13 @@ export default {
1485
1494
  else {
1486
1495
  }
1487
1496
  }
1497
+ if(data.rtnMsg){
1498
+ self.$message({
1499
+ message: data.rtnMsg,
1500
+ type: 'info',
1501
+ showClose: true,
1502
+ });
1503
+ }
1488
1504
  };
1489
1505
  }
1490
1506
  else {
@@ -1697,7 +1713,7 @@ export default {
1697
1713
  fun(submitData, title, self.$parent);
1698
1714
  }
1699
1715
  };
1700
-
1716
+
1701
1717
  if (field.alert) {
1702
1718
  self.$common.confirm(field.alertMsg, field.alertCaption, {
1703
1719
  confirmButtonText: field.alertOKButtonText,
@@ -1,32 +1,29 @@
1
1
  <template>
2
- <div class="ct-tableToolbar" style="width:100%;" v-if="buttons && buttons.length > 0">
3
-
4
- <div v-if="buttonsLeft&&buttonsLeft.length>0" class="bool_btn_l">
5
- <ul>
6
- <li v-for="btn in buttonsLeft" class="ct-ToolbarButton max-ToolbarButton" :class="{btn_r:btn.isRight}">
7
- <component :is="btn.is" :vmodel="btn"
8
- @click="clickHandler(btn,$event)"
9
- @importComplete="importComplete"
10
- v-if="btn.show"
11
- :optionApi="optionApi"
12
- :fileData="getFileData(btn)"></component>
13
- </li>
14
- </ul>
15
- </div>
2
+ <div class="ct-tableToolbar" style="width:100%;" v-if="buttons && buttons.length > 0">
3
+ <div v-if="buttonsLeft&&buttonsLeft.length>0" class="bool_btn_l">
4
+ <ul>
5
+ <li v-for="btn in buttonsLeft" class="ct-ToolbarButton max-ToolbarButton" :class="{btn_r:btn.isRight}">
6
+ <component :is="btn.is" :vmodel="btn"
7
+ @click="clickHandler(btn,$event)"
8
+ @importComplete="importComplete"
9
+ v-if="btn.show"
10
+ :optionApi="optionApi"
11
+ :fileData="getFileData(btn)"></component>
12
+ </li>
13
+ </ul>
14
+ </div>
16
15
  <div v-if="buttonsright&&buttonsright.length>0" class="bool_btn_r">
17
- <ul>
18
- <li v-for="btn in buttonsright" class="ct-ToolbarButton max-ToolbarButton" :class="{btn_r:btn.isRight}">
19
- <component :is="btn.is" :vmodel="btn"
20
- @click="clickHandler(btn,$event)"
21
- @importComplete="importComplete"
22
- v-if="btn.show"
23
- :optionApi="optionApi"
24
- :fileData="getFileData(btn)"></component>
25
- </li>
26
- </ul>
27
- </div>
28
-
29
-
16
+ <ul>
17
+ <li v-for="btn in buttonsright" class="ct-ToolbarButton max-ToolbarButton" :class="{btn_r:btn.isRight}">
18
+ <component :is="btn.is" :vmodel="btn"
19
+ @click="clickHandler(btn,$event)"
20
+ @importComplete="importComplete"
21
+ v-if="btn.show"
22
+ :optionApi="optionApi"
23
+ :fileData="getFileData(btn)"></component>
24
+ </li>
25
+ </ul>
26
+ </div>
30
27
  </div>
31
28
  </template>
32
29
  <script>
@@ -4,7 +4,8 @@ import Enum from './lib/Enum';
4
4
  const Router = function (source) {
5
5
  var rtn = {
6
6
  disabled: source.selectedMode && source.selectedMode === Enum.ListSelectMode.Multiple ? true : false,
7
- code1:'',
7
+ code1:'',
8
+ loading: false,
8
9
  get source() {
9
10
  return source;
10
11
  },
package/src/main.js CHANGED
@@ -21,6 +21,7 @@ Vue.use(centaline, {
21
21
  // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
22
22
  // baseUrl: "http://10.88.22.13:6060/onecard-api/",
23
23
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
24
+ baseUrl: "http://10.28.21.164:9004/max-uplink-api/",
24
25
  // baseUrl: "http://10.25.10.63:9999/service-api/",
25
26
  // baseUrl: "http://10.25.10.67:9999/service-api/",
26
27
  // baseUrl: "http://10.25.10.69:8080/",
@@ -65,14 +66,14 @@ Vue.use(centaline, {
65
66
  return {
66
67
  oldToken: 'c48263f0-1b23-4599-96de-323f4507dc61',
67
68
  token:'1080-1762727915918856192',
68
- // authObject: '{EmpID:"Token_6be80085-263f-4520-89bc-d789cb4717fb",MachineCode:"9c0cdf10-9296-4647-bd39-28eac046cf19",SSO_Token:"SSOToken_6be80085-263f-4520-89bc-d789cb4717fb",Platform:"WEB"}',
69
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOiv5s2t76YztNBwiioMjhQqRRAIh7g4R0NEzxSummXcX81rETqgP8GO-dEFxNHazLBmQOAMHdJACsdbeZU6-8zaaNpCGjMYDmryHEFSEnDKlyJJaVqIR9XoWO-W0NQ6JZCOmfnkL7b3axDrXy6He_nHutEyv7NEWPRhlgWyRgAOO4PsRQRuWfXGjHGsVjycAAAD__w.Qknnm6TUNucBNAg_xMRzDifR5WHBjlHG4GN65hzN1Hk"}',
69
70
 
70
71
  // originalRequestURL: 'http://10.88.22.67:8080',
71
72
  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"}',
72
73
  estateId: '',
73
74
 
74
- authObject: '{"currentEstate":{"estateId":"20110926153136B3A34CC82D3D48FA7E","estateName":"%E6%98%9F%E6%B2%B3%E4%B8%B9%E5%A0%A4%E8%8A%B1%E5%9B%AD","estDeptPath":"009.007.003"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"3THBPx","time":1725429918833,"sign":"63188c3fbc0b7141ee6d9aee47588ef2","systemSource":"CCESU","empNo":"24988","empId":"202110201430497BB5FE89123A054CCA"}',
75
- AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjlkMDg2NDczLWZlMzItNGU5OS04ZmIyLWNmMzgxMDdiODcxNiJ9.AWKNVDiQ9IwZkwQKRU67O6ZG31NJsJqhMPgx_nbADd-EzSyEbdkTONxjKfQmgW6qGFcgn4BdBOhaT8lGTmFE_g',
75
+ // authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"YSLnFY","time":1726133598476,"sign":"e08cc3c4257654dcc6b8063e3cb9b1b3","systemSource":"CCESU","empNo":"24988","empId":"202110201430497BB5FE89123A054CCA"}',
76
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJiY2MyNDFmLTA3NTYtNDViYy04NWEwLWViOWM0NmYxZWQyNCJ9.p799X66qZJjJlnSNp6KcYSRS9xVX_T6BXikb7Y80Fcwj0NgjOdbFTGN-n_ir1qIuKGTnjYAAhdqLR3n_acf8cA',
76
77
  };
77
78
  },
78
79
  // 请求完成事件,可判断是否登录过期执行响应操作