centaline-data-driven 1.5.94 → 1.5.95

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.94",
3
+ "version": "1.5.95",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v1.5.95
2
+ 2024-01-11
3
+ 优化
4
+
5
+ 上传支持202
6
+
7
+ 列表添加左边的宽度
8
+
1
9
  # v1.5.94
2
10
  2024-01-08
3
11
  bug修复
@@ -30,7 +30,7 @@
30
30
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/api/distribution/standing-book/layout'" :searchDataApi="'/api/distribution/standing-book/list'"></ct-searchlist> -->
31
31
 
32
32
 
33
- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist>
33
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
34
34
 
35
35
 
36
36
  <!-- <ct-searchlist :apiParam="para"
@@ -95,6 +95,8 @@
95
95
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/RoleList/getLayoutOfSearch'" :searchStatsApi="'/RoleList/getListStats'" :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist> -->
96
96
 
97
97
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist> -->
98
+
99
+ <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyVRRealLookBalanceList/getLayoutOfSearchForOFI'" :searchDataApi="'/PropertyVRRealLookBalanceList/getListOfSearchModel'"></ct-searchlist>
98
100
 
99
101
 
100
102
 
@@ -112,7 +114,7 @@
112
114
 
113
115
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemLogList/getLayoutOfSearch'" :searchDataApi="'/SystemLogList/getListOfSearchModel'"></ct-searchlist> -->
114
116
 
115
- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceBalanceAlertList/getLayoutOfSearch'" :searchDataApi="'/AttendanceBalanceAlertList/getListOfSearchModel'"></ct-searchlist>
117
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceBalanceAlertList/getLayoutOfSearch'" :searchDataApi="'/AttendanceBalanceAlertList/getListOfSearchModel'"></ct-searchlist> -->
116
118
 
117
119
 
118
120
  <ct-dialog-list></ct-dialog-list>
@@ -14,6 +14,7 @@
14
14
  </el-dropdown-menu>
15
15
  </el-dropdown>
16
16
  <el-upload v-else-if="model.isImport"
17
+ ref="fileUpload"
17
18
  :action="model.action"
18
19
  v-bind="model.attrs"
19
20
  size="mini"
@@ -154,6 +155,7 @@
154
155
  data[key] = this.fileData[key];
155
156
  }
156
157
  }
158
+ data.flagHaveAlert=0;
157
159
  return data;
158
160
  },
159
161
  headers() {
@@ -212,6 +212,7 @@
212
212
  this.pageDisabled=false;
213
213
  if(this.flagSideBar && this.$refs.table.model.listData.length>0){
214
214
  if(!this.flagSideBarOfData || index===1){
215
+ this.refreshRowHandle();
215
216
  this.flagSideBarOfData=true;
216
217
  this.sideMenuClickHandler(this.sideBarStatus =='close'?'open':'close');
217
218
  }
@@ -238,6 +239,18 @@
238
239
  }
239
240
  },
240
241
  resizeSearchList() {
242
+ if(this.$refs.table && this.$refs.table.model && this.$refs.table.model.mainBarWidth){
243
+ this.$refs.table.model.sideBarWidth=this.$refs.main.clientWidth-this.$refs.table.model.mainBarWidth;
244
+ this.sideBarWidth=this.$refs.table.model.sideBarWidth;
245
+ this.sideBarMenuRight=this.sideBarWidth-2;
246
+
247
+ if(this.sideBarStatus=='close'){
248
+ this.sideBarRight=-this.sideBarWidth;
249
+ this.sideBarWidth=0;
250
+ this.sideBarMenuRight=0;
251
+ }
252
+ }
253
+
241
254
  if(document.body.clientWidth && document.body.clientWidth>=1024){
242
255
  if(!this.flagSideBar && this.$refs.table){
243
256
  this.flagSideBar=this.$refs.table.model.flagSideBar;
@@ -305,6 +318,10 @@
305
318
  if(this.$refs.table.model.listData.length>0){
306
319
  this.flagSideBarOfData=true;
307
320
 
321
+ if(this.$refs.table.model.mainBarWidth){
322
+ this.$refs.table.model.sideBarWidth=this.$refs.main.clientWidth-this.$refs.table.model.mainBarWidth;
323
+ }
324
+
308
325
  if(document.body.clientWidth && document.body.clientWidth<1024){
309
326
  this.flagSideBar=false;
310
327
  }
@@ -340,44 +357,35 @@
340
357
  this.$emit('loaded', this.$refs.table.model);
341
358
  },
342
359
  rowClickHandle() {
343
- var self = this;
344
- if (
345
- self.selectIndex !== self.$refs.table.model.selectIndex &&
346
- self.$refs.table.model.rowSelectRouter
347
- ) {
348
- self.selectIndex = self.$refs.table.model.selectIndex;
349
- self.rowCount = self.$refs.table.model.listData.length;
350
- if (this.sideBarStatus && this.sideBarStatus == "open") {
351
- self.sideBarApiParam = {};
352
- if (self.$refs.table.model.rowSelectRouter.submitListField) {
353
- self.$refs.table.model.rowSelectRouter.submitListField.forEach(
354
- (k) => {
355
- self.sideBarApiParam[k] =
356
- self.$refs.table.model.listData[self.selectIndex][k];
357
- }
358
- );
359
- }
360
- self.sideBarApiParam.actionType =
361
- self.$refs.table.model.rowSelectRouter.actionType;
362
- self.detailKey = self.detailKey + 1;
363
- }
364
- try {
365
- let ApiParam = {};
366
- if (self.$refs.table.model.rowSelectRouter.submitListField) {
367
- self.$refs.table.model.rowSelectRouter.submitListField.forEach(
368
- (k) => {
369
- ApiParam[k] =
370
- self.$refs.table.model.listData[self.selectIndex][k];
371
- }
372
- );
360
+ var self = this;
361
+ if ( self.selectIndex !== self.$refs.table.model.selectIndex && self.$refs.table.model.rowSelectRouter) {
362
+ self.selectIndex = self.$refs.table.model.selectIndex;
363
+ self.rowCount = self.$refs.table.model.listData.length;
364
+ if (this.sideBarStatus && this.sideBarStatus == "open") {
365
+ self.sideBarApiParam = {};
366
+ if (self.$refs.table.model.rowSelectRouter.submitListField) {
367
+ self.$refs.table.model.rowSelectRouter.submitListField.forEach(
368
+ (k) => {
369
+ self.sideBarApiParam[k] = self.$refs.table.model.listData[self.selectIndex][k];
370
+ }
371
+ );
372
+ }
373
+ self.sideBarApiParam.actionType = self.$refs.table.model.rowSelectRouter.actionType;
374
+ self.detailKey = self.detailKey + 1;
373
375
  }
376
+ try {
377
+ let ApiParam = {};
378
+ if (self.$refs.table.model.rowSelectRouter.submitListField) {
379
+ self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
380
+ ApiParam[k] = self.$refs.table.model.listData[self.selectIndex][k];
381
+ });
382
+ }
374
383
 
375
- this.$emit(
376
- "rowClickHandle",ApiParam
377
- );
378
- } catch (e) {}
379
- }
380
- },
384
+ this.$emit("rowClickHandle",ApiParam);
385
+ }
386
+ catch (e) {}
387
+ }
388
+ },
381
389
  refreshRowHandle(){
382
390
  this.selectIndex=-1;
383
391
  this.rowClickHandle();
@@ -495,7 +503,7 @@
495
503
  }
496
504
  destroyDeep(this._vnode)
497
505
  },
498
- watch: {
506
+ watch: {
499
507
  pageHeight: function (val) {
500
508
  if(this.pageHeight) {
501
509
  this.pageHeightReal=this.pageHeight;
@@ -2002,43 +2002,114 @@ export default {
2002
2002
  },
2003
2003
  importComplete(res, field) {
2004
2004
  var self = this;
2005
- if (field.flagAsync) {
2006
- if (res.content && res.content.action) {
2007
- var dialogOption = {
2008
- title: field.pageTitle || field.label,
2009
- content: [{
2010
- component: 'ct-progress',
2011
- attrs: {
2012
- progressAction: res.content.action,
2013
- progressKey: res.content.key,
2014
- progressType: 'import',
2015
- width: '350px',
2016
- height: '165px'
2017
- },
2018
- on: {
2019
- finished(data) {
2020
- self.$common.closeDialog(dialogOption.dialog);
2021
- if (data.rtnMsg) {
2005
+ if(res && res.rtnCode && res.rtnCode===201){
2006
+ if(res.rtnMsg){
2007
+ self.$message({
2008
+ message: data.rtnMsg,
2009
+ type: 'warning',
2010
+ showClose:true,
2011
+ });
2012
+ }
2013
+ return;
2014
+ }
2015
+ else if(res && res.rtnCode && res.rtnCode===202 && res.rtnMsg){
2016
+ self.$common.confirm(res.rtnMsg, '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
2017
+ let file = field.self.$refs.fileUpload.uploadFiles[0].raw;
2018
+ field.self.uploadData.flagHaveAlert=1;
2019
+ field.self.$refs.fileUpload.clearFiles();
2020
+ self.$nextTick(() => {
2021
+ field.self.$refs.fileUpload.handleStart(file);
2022
+ field.self.$refs.fileUpload.isUpdateSupport = 1;
2023
+ field.self.$refs.fileUpload.submit();
2024
+ field.self.uploadData.flagHaveAlert=0;
2025
+ return;
2026
+ });
2027
+ })
2028
+ .catch(() => {
2029
+ });
2030
+ }
2031
+ else if (field.flagAsync) {
2032
+ if(res.rtnCode && res.rtnCode===202 && res.rtnMsg){
2033
+ self.$common.confirm(res.rtnMsg, '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
2034
+ submitData.flagHaveAlert=1;
2035
+ if (res.content && res.content.action) {
2036
+ var dialogOption = {
2037
+ title: field.pageTitle || field.label,
2038
+ content: [{
2039
+ component: 'ct-progress',
2040
+ attrs: {
2041
+ progressAction: res.content.action,
2042
+ progressKey: res.content.key,
2043
+ progressType: 'import',
2044
+ width: '350px',
2045
+ height: '165px'
2046
+ },
2047
+ on: {
2048
+ finished(data) {
2049
+ self.$common.closeDialog(dialogOption.dialog);
2050
+ if (data.rtnMsg) {
2051
+ self.$message({
2052
+ message: data.rtnMsg,
2053
+ type: 'success',
2054
+ showClose:true,
2055
+ });
2056
+ }
2057
+ self.getPage(1);
2058
+ },
2059
+ error(data) {
2060
+ self.$common.closeDialog(dialogOption.dialog);
2061
+ self.$message({
2062
+ message: data.rtnMsg,
2063
+ type: 'warning',
2064
+ showClose:true,
2065
+ });
2066
+ }
2067
+ }
2068
+ }]
2069
+ };
2070
+ self.$common.openDialog(dialogOption);
2071
+ }
2072
+ })
2073
+ .catch(() => { });
2074
+ }
2075
+ else{
2076
+ if (res.content && res.content.action) {
2077
+ var dialogOption = {
2078
+ title: field.pageTitle || field.label,
2079
+ content: [{
2080
+ component: 'ct-progress',
2081
+ attrs: {
2082
+ progressAction: res.content.action,
2083
+ progressKey: res.content.key,
2084
+ progressType: 'import',
2085
+ width: '350px',
2086
+ height: '165px'
2087
+ },
2088
+ on: {
2089
+ finished(data) {
2090
+ self.$common.closeDialog(dialogOption.dialog);
2091
+ if (data.rtnMsg) {
2092
+ self.$message({
2093
+ message: data.rtnMsg,
2094
+ type: 'success',
2095
+ showClose:true,
2096
+ });
2097
+ }
2098
+ self.getPage(1);
2099
+ },
2100
+ error(data) {
2101
+ self.$common.closeDialog(dialogOption.dialog);
2022
2102
  self.$message({
2023
2103
  message: data.rtnMsg,
2024
- type: 'success',
2104
+ type: 'warning',
2025
2105
  showClose:true,
2026
2106
  });
2027
2107
  }
2028
- self.getPage(1);
2029
- },
2030
- error(data) {
2031
- self.$common.closeDialog(dialogOption.dialog);
2032
- self.$message({
2033
- message: data.rtnMsg,
2034
- type: 'warning',
2035
- showClose:true,
2036
- });
2037
2108
  }
2038
- }
2039
- }]
2040
- };
2041
- self.$common.openDialog(dialogOption);
2109
+ }]
2110
+ };
2111
+ self.$common.openDialog(dialogOption);
2112
+ }
2042
2113
  }
2043
2114
  }
2044
2115
  else {
@@ -1045,6 +1045,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
1045
1045
  get sideBarWidth() {
1046
1046
  return source.content.sideBarWidth || 360;
1047
1047
  },
1048
+ set sideBarWidth(v) {
1049
+ source.content.sideBarWidth = v;
1050
+ },
1051
+ get mainBarWidth() {
1052
+ return source.content.mainBarWidth;
1053
+ },
1048
1054
  get selectedRowBackColor() {
1049
1055
  return source.content.selectedRowBackColor;
1050
1056
  },
package/src/main.js CHANGED
@@ -16,14 +16,14 @@ 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
20
  // baseUrl: "http://10.88.22.13:6060/onecard-api/",
21
21
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
22
22
  // baseUrl: "http://10.25.10.63:22026/service-api/v1/form/router",
23
23
  // baseUrl: "http://10.25.10.67:8080/",
24
24
  // baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
25
25
  // baseUrl: "http://10.88.22.69:8080/api/",
26
- baseUrl: "http://10.88.22.42:9999/service-api/",
26
+ // baseUrl: "http://10.88.22.42:9999/service-api/",
27
27
  // baseUrl: "http://10.1.245.111:38028/",
28
28
  // baseUrl: "http://tjcptest.centaline.com.cn/",
29
29
  // baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
@@ -56,14 +56,14 @@ Vue.use(centaline, {
56
56
  getRequestHeaders: function () {
57
57
  return {
58
58
  oldToken: '1f487e18-c090-4d24-b9a7-630de58cfccc',
59
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAQBP_iOifZuYvvnC62k4ZHRDYxElSIJBII8XeCgI6eKbaYYnfval6zalWUTlMYEEJfN0CRG-gGFvBBRPuakbyM7gP8iC-jMeTY2B46xwHIEoKYIBDIBhpij8FHValyPavWsDZSO22bSh3T8hZMtX2JdS6XXbn949xpOW6znFyZChNkmQhIo4U8ZYTDfqvQyWDCoh5PAAAA__8.819W_FW6PWIm3sqKcC1EXrcMlKujBUCQj6I0-_sIa_Y',
60
- authObject: '{token:"1080-1740569404179091456"}',
59
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjtuQjEQAO_impX257e7dDbPbnII5CcciVRRAIko4u6QXCLdaJqZn3S5bWmf2NambSGojQSUVV4kDIg5r7X0Vo2P0Uv2FRWYo4J26-BhAplCCrrXVvXoByRGJsiHYqBWMpTcA6Qtao62YuW0S_P-mfZkmFEIkXfpPK5_QkN1-RW3y_x6m9__MfdxPb-yFjrG--bgMgYoLQY-TwaiOIOm8xan9HgCAAD__w.4jCyT_u3R2dSGF8JNYqo1KsN_0kjhkkkUIXARuRASfQ',
60
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjtuQjEQAO_impX257e7dDbPbnII5CcciVRRAIko4u6QXCLdaJqZn3S5bWmf2NambSGojQSUVV4kDIg5r7X0Vo2P0Uv2FRWYo4J26-BhAplCCrrXVvXoByRGJsiHYqBWMpTcA6Qtao62YuW0S_P-mfZkmFEIkXfpPK5_QkN1-RW3y_x6m9__MfdxPb-yFjrG--bgMgYoLQY-TwaiOIOm8xan9HgCAAD__w.4jCyT_u3R2dSGF8JNYqo1KsN_0kjhkkkUIXARuRASfQ"}',
61
61
 
62
62
  // originalRequestURL: 'http://10.88.22.67:8080',
63
63
  EstateInfo: ' {"estateId":"20111129152318499305689117E3B934","estateName":"%E9%BC%8E%E5%B3%B0.%E5%9B%BD%E6%B1%87%E5%B1%B1","estDeptPath":"009.010.007"}',
64
64
  estateId: '',
65
65
 
66
- authObject: '{"currentEstate":{"estateId":"20111129152318499305689117E3B934","estateName":"%E9%BC%8E%E5%B3%B0.%E5%9B%BD%E6%B1%87%E5%B1%B1","estDeptPath":"009.010.007"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"9233406a0587299328ce14a5e25c25d0","token":"","random":"v9WVnK","time":1703832144841,"sign":"425035fc7fbb05a157106ae015b0e184"}',
66
+ // authObject: '{"currentEstate":{"estateId":"20111129152318499305689117E3B934","estateName":"%E9%BC%8E%E5%B3%B0.%E5%9B%BD%E6%B1%87%E5%B1%B1","estDeptPath":"009.010.007"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"9233406a0587299328ce14a5e25c25d0","token":"","random":"v9WVnK","time":1703832144841,"sign":"425035fc7fbb05a157106ae015b0e184"}',
67
67
  AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijk5N2NhMDY3LWI2M2EtNGE0Mi1hOTczLTY0N2EzZTA2OTZiYyJ9.lh7zmru5RGWXyZq-DvFxt4squt0M7hokv5jmBIBENKeNnMfjRJ-AntnJW9YOvmwwjGvoSk3J885H03Wjed8Pug',
68
68
  };
69
69
  },