centaline-data-driven 1.6.55 → 1.6.57

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.55",
3
+ "version": "1.6.57",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,25 @@
1
+ # v1.6.57
2
+ 2025-11-07
3
+
4
+ 优化
5
+
6
+ ActionType添加执行客户端函数ExcuteClientFunction
7
+
8
+ BUG
9
+
10
+ 列表关闭右侧会出现滚动条处理
11
+
12
+ # v1.6.56
13
+ 2025-10-24
14
+
15
+ 优化
16
+
17
+ 列表columns添加:分组Id(主要用于 单元格 数据点击事件 传给API,传输参数名为 columnGroupId)
18
+
19
+ 列表上的路由添加侧边栏打开
20
+
21
+ 表单通过js设置字段隐藏属性没有隐藏处理
22
+
1
23
  # v1.6.55
2
24
  2025-10-11
3
25
 
@@ -33,14 +33,17 @@
33
33
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
34
34
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
35
35
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/EntranceNoticeInfoList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/EntranceNoticeInfoList/getList'"></ct-searchlist> -->
36
+ <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/squareuploadlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/squareuploadlist/getList'"></ct-searchlist>
36
37
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/commissionquery/properformanceszjjbreport/getLayoutOfSearch'" :searchDataApi="'/commissionquery/properformanceszjjbreport/getList'"></ct-searchlist> -->
37
38
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/employeelist/getLayoutOfSearch'" :searchDataApi="'/employeelist/getList'"></ct-searchlist> -->
38
- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist>
39
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist> -->
39
40
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
40
41
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/roomtypelist/getLayoutOfSearch'" :searchDataApi="'/roomtypelist/getList'"></ct-searchlist> -->
41
42
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/priceuploadlist/getLayoutOfSearch'" :searchDataApi="'//salemattersmanage/priceuploadlist/getList'"></ct-searchlist> -->
42
43
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/app/workbenchdetails/getContractLayoutOfSearch'" :searchDataApi="'/app/workbenchdetails/getContractList'"></ct-searchlist> -->
43
44
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist> -->
45
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financesalemanage/finContractList/getLayoutOfSearch'" :searchDataApi="'/financesalemanage/finContractList/getList'"></ct-searchlist> -->
46
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financecommissionmanage/fincommissionapplylist/getLayoutOfSearch'" :searchDataApi="'/financecommissionmanage/fincommissionapplylist/getList'"></ct-searchlist> -->
44
47
  <!-- CCES -->
45
48
 
46
49
  <!-- <ct-searchlist :apiParam="para"
@@ -94,60 +97,36 @@
94
97
  :searchStatsApi="'/PropertyOFIList/getListStats'">
95
98
  </ct-searchlist> -->
96
99
 
97
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
98
-
100
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
99
101
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateBuildingList/getLayoutOfSearch'" :searchDataApi="'/EstateBuildingList/getListOfSearchModel'"></ct-searchlist> -->
100
-
101
102
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/DistrictList/getLayoutOfSearch'" :searchDataApi="'/DistrictList/getListOfSearchModel'"></ct-searchlist> -->
102
-
103
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CustomerImportList/getLayoutOfSearch'" :searchDataApi="'/CustomerImportList/getListOfSearchModel'"></ct-searchlist> -->
104
-
103
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CustomerImportList/getLayoutOfSearch'" :searchDataApi="'/CustomerImportList/getListOfSearchModel'"></ct-searchlist> -->
105
104
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CustomerList/getLayoutOfSearch'" :searchStatsApi="'/CustomerList/getListStats'" :searchDataApi="'/CustomerList/getListOfSearchModel'"></ct-searchlist> -->
106
-
107
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CallTaskList/getLayoutOfSearch'" :searchDataApi="'/CallTaskList/getListOfSearchModel'"></ct-searchlist> -->
108
-
109
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/RoleList/getLayoutOfSearch'" :searchStatsApi="'/RoleList/getListStats'" :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist> -->
110
-
111
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist> -->
112
-
113
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyVRRealLookBalanceList/getLayoutOfSearchForOFI'" :searchDataApi="'/PropertyVRRealLookBalanceList/getListOfSearchModel'"></ct-searchlist> -->
114
-
105
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CallTaskList/getLayoutOfSearch'" :searchDataApi="'/CallTaskList/getListOfSearchModel'"></ct-searchlist> -->
106
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/RoleList/getLayoutOfSearch'" :searchStatsApi="'/RoleList/getListStats'" :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist> -->
107
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist> -->
108
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyVRRealLookBalanceList/getLayoutOfSearchForOFI'" :searchDataApi="'/PropertyVRRealLookBalanceList/getListOfSearchModel'"></ct-searchlist> -->
115
109
  <!-- <ct-searchlist :apiParam="para" :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyRealLookList/getLayoutOfSearch'" :searchDataApi="'/PropertyRealLookList/getListOfSearchModel'"></ct-searchlist> -->
116
-
117
110
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemParameterList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterList/getListOfSearchModel'"></ct-searchlist> -->
118
-
119
111
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeResourcesTranList/getLayoutOfSearch'" :searchDataApi="'/EmployeeResourcesTranList/getListOfSearchModel'"></ct-searchlist> -->
112
+ <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'" :searchDataApi="'/propertyPublishList/getListOfSearchModel'" :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
120
113
 
121
-
122
- <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
123
- :searchDataApi="'/propertyPublishList/getListOfSearchModel'"
124
- :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
125
-
126
-
127
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/cache/getLayoutOfSearchForCache'" :searchDataApi="'/cache/getListOfSearchModelForCache'"></ct-searchlist> -->
128
-
114
+ <!-- onecard -->
115
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/cache/getLayoutOfSearchForCache'" :searchDataApi="'/cache/getListOfSearchModelForCache'"></ct-searchlist> -->
129
116
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceClassList/getLayoutOfSearch'" :searchDataApi="'/AttendanceClassList/getListOfSearchModel'"></ct-searchlist> -->
130
-
131
117
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportMonthAttendanceList/getLayoutOfSearch'" :searchDataApi="'/ReportMonthAttendanceList/getListOfSearchModel'"></ct-searchlist> -->
132
-
133
118
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportAttendanceExceptionList/getLayoutOfSearch'" :searchDataApi="'/ReportAttendanceExceptionList/getListOfSearchModel'"></ct-searchlist> -->
134
-
135
119
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PersonHolidayList/getLayoutOfSearch'" :searchDataApi="'/PersonHolidayList/getListOfSearchModel'"></ct-searchlist> -->
136
-
137
120
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearch'" :searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModel'"></ct-searchlist> -->
138
-
139
121
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/HolidayTypeList/getLayoutOfSearch'" :searchDataApi="'/HolidayTypeList/getListOfSearchModel'"></ct-searchlist> -->
140
-
141
122
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemLogList/getLayoutOfSearch'" :searchDataApi="'/SystemLogList/getListOfSearchModel'"></ct-searchlist> -->
142
-
143
123
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceBalanceAlertList/getLayoutOfSearch'" :searchDataApi="'/AttendanceBalanceAlertList/getListOfSearchModel'"></ct-searchlist> -->
144
-
145
124
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportWorkQuantifyList/getLayoutOfSearch'" :searchDataApi="'/ReportWorkQuantifyList/getListOfSearchModel'"></ct-searchlist> -->
146
-
147
125
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'" :searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
148
-
149
126
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TrainingAllowanceTotalList/getLayoutOfSearch'" :searchDataApi="'/TrainingAllowanceTotalList/getListOfSearchModel'"></ct-searchlist> -->
150
127
 
128
+ <!-- ibs -->
129
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeWorkLogList/ind/getLayoutOfSearch'" :searchDataApi="'/EmployeeWorkLogList/ind/getListOfSearchModel'"></ct-searchlist> -->
151
130
  <ct-dialog-list></ct-dialog-list>
152
131
  </div>
153
132
  </template>
@@ -162,7 +141,7 @@
162
141
  // appRootUrl:'http://10.88.22.13:6060/onecard-api/',
163
142
  appRootUrl:'',
164
143
  para:{
165
- "type":"top"
144
+
166
145
  },
167
146
  }
168
147
  },
@@ -735,6 +735,11 @@ const common = {
735
735
  }
736
736
  return '';
737
737
  },
738
+ getValueCaseInsensitive(obj, key) {
739
+ const searchKey = key.toLowerCase();
740
+ const foundKey = Object.keys(obj).find(k => k.toLowerCase() === searchKey);
741
+ return foundKey ? obj[foundKey] : undefined;
742
+ },
738
743
 
739
744
  /**
740
745
  * @method
@@ -143,7 +143,7 @@
143
143
  var dropdown = self.$refs["pop"];
144
144
  this.unwatch1=self.$watch('model.options', function (newVal, oldVal) {
145
145
  self.$nextTick(() => {
146
- if (typeof dropdown.popperJS !== 'undefined' && dropdown.popperJS) {
146
+ if (dropdown && typeof dropdown.popperJS !== 'undefined' && dropdown.popperJS) {
147
147
  dropdown.popperJS.destroy();
148
148
  dropdown.popperJS = null;
149
149
  dropdown.updatePopper();
@@ -17,13 +17,15 @@
17
17
  @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate" @closeSideBar="closeSideBar"
18
18
  @rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
19
19
  @showTitle="showTitleHandler" @popupClickHandler="popupClickHandler" @simpleRouterRefreshHandler="simpleRouterRefreshHandler" @loadedError="tableLoadedError"
20
- @drop="drop" @openSideBarHandler="openSideBarHandler" @closeSideBarHandler="closeSideBarHandler" :dragStartItem="dragStartItem" :dragStartName="dragStartName" @flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged"
20
+ @drop="drop" @openSideBarHandler="openSideBarHandler" @closeSideBarHandler="closeSideBarHandler" :dragStartItem="dragStartItem" :dragStartName="dragStartName"
21
+ @flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged" @initSideBar="initSideBar"
21
22
  ></ct-searchtable>
22
23
  </div>
23
24
  <div ref="sidebar" v-if="flagSideBar && flagSideBarOfData"
24
25
  :style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:sideBarRight+'px'}"
25
26
  class="sidebar">
26
27
  <ct-Detail ref="detail" :api="sideBarApi" :apiParam="sideBarApiParam" :pageType="sideBarPageType"
28
+ :style="{'display': sideBarWidth && sideBarWidth>0 ?'block':'none'}"
27
29
  :searchConditionApi="sideBarSearchConditionApi" :searchStatsApi="sideBarSearchStatsApi" :searchDataApi="sideBarSearchDataApi" :listHeight="listHeight"
28
30
  :selectIndex="selectIndex" :rowCount="rowCount" :key="detailKey" :drowerClose="drowerClose"
29
31
  @clickNextHandler="clickNextHandler" @clickPrevHandler="clickPrevHandler" @simpleRouterclickHandler="simpleRouterclickHandler"
@@ -121,12 +123,14 @@
121
123
  rowCount:0,
122
124
  detailKey:0,
123
125
  isIframe: false,
126
+
127
+ columnName:'',
128
+ columnGroupId:'',
124
129
 
125
130
  drowerClose:'',
126
131
  listHeight:0,
127
132
  pageHeightReal: '',
128
- flagShow: true
129
-
133
+ flagShow: true,
130
134
  }
131
135
  },
132
136
  created() {
@@ -314,6 +318,64 @@
314
318
  this.showTitle=this.$refs.screen.model.flagShowTitle;
315
319
  }
316
320
  },
321
+ initSideBar(submitData) {
322
+ var self = this;
323
+ this.title=this.$refs.table.model.title;
324
+ if (typeof this.$refs.table.model.cellLayout !== "undefined") {
325
+ this.$refs.screen.LoadLayout();
326
+ }
327
+
328
+ this.pageDisabled=false;
329
+ this.flagSideBar=this.$refs.table.model.flagSideBar;
330
+ this.flagDefaultDisplaySideBar=this.$refs.table.model.flagDefaultDisplaySideBar;
331
+ if(this.$refs.table.model.rowSelectRouter){
332
+ this.sideBarApi=this.$refs.table.model.rowSelectRouter.action;
333
+ this.sideBarSearchConditionApi=this.$refs.table.model.rowSelectRouter.actionForSearchLayout;
334
+ this.sideBarSearchStatsApi=this.$refs.table.model.rowSelectRouter.actionForSearchStats;
335
+ this.sideBarSearchDataApi=this.$refs.table.model.rowSelectRouter.actionForSearch;
336
+ this.sideBarPageType=this.$refs.table.model.rowSelectRouter.actionSource;
337
+ }
338
+ else{
339
+ this.flagSideBar=false;
340
+ }
341
+
342
+ if(this.$refs.table.model.listData.length>0){
343
+ this.flagSideBarOfData=true;
344
+
345
+ if(this.$refs.table.model.rowSelectRouter && this.$refs.table.model.rowSelectRouter.dialogWidth){
346
+ this.$refs.table.model.mainBarWidth = this.$refs.main.clientWidth-this.$refs.table.model.rowSelectRouter.dialogWidth;
347
+ this.$refs.table.model.sideBarWidth = this.$refs.table.model.rowSelectRouter.dialogWidth;
348
+ }
349
+
350
+ if(document.body.clientWidth && document.body.clientWidth<1024){
351
+ this.flagSideBar=false;
352
+ }
353
+
354
+ if(this.flagSideBar){
355
+ self.resizeSearchList();
356
+ this.selectIndex=-1;
357
+ this.sideBarStatus='';
358
+ if(this.$refs.sideMenu)this.$refs.sideMenu.setSide('open');
359
+ this.columnName=submitData.columnName?submitData.columnName:'';
360
+ this.columnGroupId=submitData.columnGroupId?submitData.columnGroupId:'';
361
+
362
+ if(this.flagDefaultDisplaySideBar && !this.sideBarStatus){
363
+ this.sideMenuClickHandler('close');
364
+ }
365
+ else{
366
+ let status='open';
367
+ if(this.sideBarStatus=='open')status='close';
368
+ else if(this.sideBarStatus=='close')status='open';
369
+ this.sideMenuClickHandler(status);
370
+ }
371
+ self.rowClickHandle();
372
+ }
373
+ }
374
+ else{
375
+ this.flagSideBarOfData=false;
376
+ this.searchWidth=0;
377
+ }
378
+ },
317
379
  tableLoaded() {
318
380
  var self = this;
319
381
  this.title=this.$refs.table.model.title;
@@ -381,11 +443,20 @@
381
443
  if (this.sideBarStatus && this.sideBarStatus == "open") {
382
444
  self.selectIndex = self.$refs.table.model.selectIndex;
383
445
  self.sideBarApiParam = {};
384
- if (self.$refs.table.model.rowSelectRouter.submitListField) {
446
+ if (self.$refs.table.model.rowSelectRouter.submitListField
447
+ && self.$refs.table.model.listData
448
+ && self.$refs.table.model.listData.length>0) {
385
449
  self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
386
450
  self.sideBarApiParam[k] = self.$refs.table.model.listData[self.selectIndex][k];
387
451
  });
388
452
  }
453
+ if(self.columnName){
454
+ self.sideBarApiParam.columnName=this.columnName;
455
+ }
456
+ if(self.columnGroupId){
457
+ self.sideBarApiParam.columnGroupId=this.columnGroupId;
458
+ }
459
+
389
460
  self.sideBarApiParam.actionType = self.$refs.table.model.rowSelectRouter.actionType;
390
461
  self.detailKey = self.detailKey + 1;
391
462
  }
@@ -395,6 +466,12 @@
395
466
  self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
396
467
  ApiParam[k] = self.$refs.table.model.listData[self.$refs.table.model.selectIndex][k];
397
468
  });
469
+ if(self.columnName){
470
+ ApiParam.columnName=this.columnName;
471
+ }
472
+ if(self.columnGroupId){
473
+ ApiParam.columnGroupId=this.columnGroupId;
474
+ }
398
475
  }
399
476
  this.$emit("rowClickHandle", ApiParam, self.appID);
400
477
  }
@@ -28,6 +28,9 @@
28
28
  else if(v=='open')this.side ='close';
29
29
  this.$emit('sideMenuClickHandler',v);
30
30
  },
31
+ setSide(v) {
32
+ this.side =v;
33
+ },
31
34
  }
32
35
  }
33
36
  </script>
@@ -166,9 +166,9 @@
166
166
  <template v-else-if="column.router">
167
167
  <div v-if="column.router.rightField && row[column.router.rightField] === 0" v-html="row[column.id]">
168
168
  </div>
169
- <ct-tablecurrency v-else :ref="'router' + column.router.id + rowindex" :rowindex="rowindex"
169
+ <ct-tablecurrency v-else :ref="'router' + column.router.id + rowindex" :rowindex="rowindex" :columnGroupId="column.groupId"
170
170
  :align="column.attrs.align" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'" :columnName="column.id"
171
- :router="column.router" :colValue="row[column.id]" :rowData="row" @click="rolRouterClickHandler">
171
+ :router="column.router" :colValue="$common.getValueCaseInsensitive(row, column.id)" :rowData="row" @click="rolRouterClickHandler">
172
172
  </ct-tablecurrency>
173
173
  </template>
174
174
 
@@ -1152,7 +1152,7 @@ export default {
1152
1152
  });
1153
1153
  this.routerClickHandler(field, submitData, action);
1154
1154
  },
1155
- rolRouterClickHandler(field, rowData, rowindex, visible,columnName) {
1155
+ rolRouterClickHandler(field, rowData, rowindex, visible,columnName,columnGroupId) {
1156
1156
  field.rowindex = rowindex;
1157
1157
  if (this.$refs["popover" + rowindex] && this.$refs["popover" + rowindex][0]) {
1158
1158
  this.$refs["popover" + rowindex][0].doClose();
@@ -1188,6 +1188,10 @@ export default {
1188
1188
  submitData.columnName=columnName;
1189
1189
  }
1190
1190
 
1191
+ if(columnGroupId){
1192
+ submitData.columnGroupId=columnGroupId;
1193
+ }
1194
+
1191
1195
  this.routerClickHandler(field, submitData, action);
1192
1196
  },
1193
1197
  routerClickHandler(field, submitData, action) {
@@ -1537,6 +1541,21 @@ export default {
1537
1541
  }
1538
1542
  }
1539
1543
  }
1544
+ else if (field.isFormPageInSideBar || field.isSearchPageInSideBar) {
1545
+ self.model.flagSideBar = true;
1546
+ self.model.flagDefaultDisplaySideBar = true;
1547
+ field.actionSource = field.isFormPageInSideBar ? 'Form':'SearchList';
1548
+ self.model.rowSelectRouter = field;
1549
+
1550
+ var clientX = event.clientX;
1551
+ setTimeout(() => {
1552
+ if (window.innerWidth - 40 - field.dialogWidth < clientX) {
1553
+ self.$refs.tableParent.scrollLeft = self.$refs.tableParent.scrollLeft + (clientX - (window.innerWidth - 40 - field.dialogWidth)) + 100;
1554
+ }
1555
+ }, 100);
1556
+
1557
+ self.$emit('initSideBar',submitData);
1558
+ }
1540
1559
  else {
1541
1560
  //self.operationLoading = true;
1542
1561
 
@@ -144,7 +144,7 @@
144
144
  var dropdown = self.$refs["pop"];
145
145
  this.unwatch=self.$watch('model.options', function (newVal, oldVal) {
146
146
  self.$nextTick(() => {
147
- if (typeof dropdown.popperJS !== 'undefined' && dropdown.popperJS) {
147
+ if (dropdown && typeof dropdown.popperJS !== 'undefined' && dropdown.popperJS) {
148
148
  dropdown.popperJS.destroy();
149
149
  dropdown.popperJS = null;
150
150
  dropdown.updatePopper();
@@ -6,7 +6,7 @@
6
6
  :screenPara="screenPara"
7
7
  @search="search"
8
8
  @clickHandler="rolRouterClickHandler"
9
- @loaded="screenload"
9
+ @loaded="screenload" style="padding-left: 11px;"
10
10
  ></ct-searchtreescreen>
11
11
  <ct-tree
12
12
  ref="tree"
@@ -263,6 +263,10 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
263
263
 
264
264
  if (attrKey == 'hidden') {
265
265
  rtn1.source['show'] = !attrValue
266
+ rtn1['show'] = !attrValue
267
+ }
268
+ else if (attrKey == 'show') {
269
+ rtn1['show'] = attrValue
266
270
  }
267
271
  rtn1.source[attrKey] = attrValue;
268
272
  if (rtn1.source.controlType === 23) {
@@ -37,6 +37,9 @@ const Router = function (source) {
37
37
  get actionSource() {
38
38
  return source.actionSource;
39
39
  },
40
+ set actionSource(v) {
41
+ source.actionSource = v;
42
+ },
40
43
  get onClick() {
41
44
  return source.onChanged;
42
45
  },
@@ -99,7 +102,7 @@ const Router = function (source) {
99
102
  return source.pageStyle === Enum.PageStyle.BrowserNewTab;
100
103
  },
101
104
  get isClientFuntion() {
102
- return source.pageStyle === Enum.PageStyle.ClientFunction;
105
+ return source.pageStyle === Enum.PageStyle.ClientFunction || source.actionType === Enum.ActionType.ExcuteClientFunction;
103
106
  },
104
107
  get isSearchPageWithList() {
105
108
  return source.pageStyle === Enum.PageStyle.SearchPageWithList;
@@ -119,6 +122,12 @@ const Router = function (source) {
119
122
  get isLayerInSystem() {
120
123
  return source.pageStyle === Enum.PageStyle.LayerInSystem;
121
124
  },
125
+ get isFormPageInSideBar() {
126
+ return source.pageStyle === Enum.PageStyle.FormPageInSideBar;
127
+ },
128
+ get isSearchPageInSideBar() {
129
+ return source.pageStyle === Enum.PageStyle.SearchPageInSideBar;
130
+ },
122
131
 
123
132
  //actionType
124
133
  get actionType() {
@@ -72,6 +72,10 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
72
72
  }
73
73
  if (attrKey == 'hidden') {
74
74
  rtn1.source['show'] = !attrValue
75
+ rtn1['show'] = !attrValue
76
+ }
77
+ else if (attrKey == 'show') {
78
+ rtn1['show'] = attrValue
75
79
  }
76
80
  rtn1.source[attrKey] = attrValue;
77
81
  this.form.hatchHandle(id, attrKey, attrValue, rtn1);
@@ -18,6 +18,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
18
18
  selectAll: 0,
19
19
  toolbarKey:0,
20
20
  searchAction:action?action:data,
21
+ OriginalColumns:source.content.columns?JSON.parse(JSON.stringify(source.content.columns)):[],
21
22
  get title() {
22
23
  return source.content.title;
23
24
  },
@@ -184,6 +185,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
184
185
  get flagHtml() {
185
186
  return v.flagHtml;
186
187
  },
188
+ /**
189
+ * 分组Id(主要用于 单元格 数据点击事件 传给API,传输参数名为 columnGroupId)
190
+ */
191
+ get groupId() {
192
+ return v.groupId;
193
+ },
187
194
  };
188
195
  if (col.show) {
189
196
  //合并表头时暂不支持固定列
@@ -401,13 +408,17 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
401
408
  get rowSelectRouter() {
402
409
  if (rtn._rowSelectRouter !== null) {
403
410
  return rtn._rowSelectRouter;
404
- } else {
411
+ }
412
+ else {
405
413
  if (source.content.rowSelectRouter && source.content.rowSelectRouter.key) {
406
414
  rtn._rowSelectRouter = Router(source.content.rowSelectRouter);
407
415
  }
408
416
  return rtn._rowSelectRouter;
409
417
  }
410
418
  },
419
+ set rowSelectRouter(v) {
420
+ rtn._rowSelectRouter = v;
421
+ },
411
422
  sortData: [],
412
423
  toSort: function (col, action, callback) {
413
424
  this.columns.forEach((v1) => {
@@ -556,7 +567,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
556
567
  if (typeof response.page.flagMoreData !== 'undefined') {
557
568
  self.flagMoreData = response.page.flagMoreData;
558
569
  }
559
- if (response.content.updateTableColumns&&response.page.pageIndex<=1) {
570
+ if (response.content.updateTableColumns && response.page.pageIndex<=1
571
+ && JSON.stringify(rtn.OriginalColumns) !== JSON.stringify(response.content.columns)) {
560
572
  self.columns = response.content.columns;
561
573
  if (self.template) {
562
574
  var tempLoader = template.loader(self.template).default;
@@ -691,7 +703,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
691
703
  if (typeof response.content.bottomText !== 'undefined') {
692
704
  self.listFooter = response.content.bottomText;
693
705
  }
694
- if (response.content.updateTableColumns&&response.page.pageIndex<=1) {
706
+ if (response.content.updateTableColumns && response.page.pageIndex<=1
707
+ && JSON.stringify(rtn.OriginalColumns) !== JSON.stringify(response.content.columns)) {
695
708
  self.columns = response.content.columns;
696
709
  if (self.template) {
697
710
  var tempLoader = template.loader(self.template).default;
@@ -1427,9 +1440,15 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
1427
1440
  get flagSideBar() {
1428
1441
  return source.content.flagSideBar || false;
1429
1442
  },
1443
+ set flagSideBar(v) {
1444
+ source.content.flagSideBar = v;
1445
+ },
1430
1446
  get flagDefaultDisplaySideBar() {
1431
1447
  return source.content.flagDefaultDisplaySideBar || false;
1432
1448
  },
1449
+ set flagDefaultDisplaySideBar(v) {
1450
+ source.content.flagDefaultDisplaySideBar = v;
1451
+ },
1433
1452
  get sideBarWidth() {
1434
1453
  return source.content.sideBarWidth || 360;
1435
1454
  },
@@ -1439,6 +1458,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
1439
1458
  get mainBarWidth() {
1440
1459
  return source.content.mainBarWidth;
1441
1460
  },
1461
+ set mainBarWidth(v) {
1462
+ source.content.mainBarWidth = v;
1463
+ },
1442
1464
  get selectedRowBackColor() {
1443
1465
  return source.content.selectedRowBackColor;
1444
1466
  },
@@ -483,6 +483,11 @@ const Enum = {
483
483
  /// </summary>
484
484
  UpdateColumns: 24,
485
485
 
486
+ /**
487
+ * 执行客户端函数
488
+ */
489
+ ExcuteClientFunction:27,
490
+
486
491
  /**
487
492
  * 打开百度地图
488
493
  */
@@ -666,6 +671,14 @@ const Enum = {
666
671
  * 在tab页打开 前端的VUE组件, 组件名称放在action参数里
667
672
  */
668
673
  OpenVueComponentInTab:122,
674
+ /**
675
+ * 表单在侧边栏打开
676
+ */
677
+ FormPageInSideBar:123,
678
+ /**
679
+ * 列表在侧边栏打开
680
+ */
681
+ SearchPageInSideBar:124,
669
682
  },
670
683
 
671
684
  /// <summary>
@@ -45,6 +45,7 @@
45
45
  type: [String, Number], // 现在 colValue 可以是对象或数字
46
46
  },
47
47
  columnName: String,
48
+ columnGroupId: String,
48
49
  rowindex: Number,
49
50
  isOperationalColumn: {
50
51
  type: Boolean,
@@ -105,10 +106,10 @@
105
106
  this.$refs.video.pause();
106
107
  }
107
108
  this.visible=!this.visible;
108
- this.$emit('click', this.router, this.rowData,this.rowindex,this.visible,this.columnName);
109
+ this.$emit('click', this.router, this.rowData,this.rowindex,this.visible,this.columnName,this.columnGroupId);
109
110
  }
110
111
  else{
111
- this.$emit('click', this.router, this.rowData,this.rowindex,null,this.columnName);
112
+ this.$emit('click', this.router, this.rowData,this.rowindex,null,this.columnName,this.columnGroupId);
112
113
  }
113
114
  this.labelColor='mazarine'
114
115
 
package/src/main.js CHANGED
@@ -30,7 +30,7 @@ Vue.use(centaline, {
30
30
  // baseUrl: "http://10.25.10.67:9999/service-api/",
31
31
  // baseUrl: "http://10.25.10.69:8080/",
32
32
  // baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
33
- baseUrl: "http://10.88.22.69:8080/",
33
+ // baseUrl: "http://10.88.22.69:8080/",
34
34
  // baseUrl: "http://10.88.22.42:9999/service-api/",
35
35
  // baseUrl: "http://10.1.245.111:38908/service-api/",
36
36
  // baseUrl: "http://10.1.245.111:31574/service-api/",
@@ -77,8 +77,8 @@ Vue.use(centaline, {
77
77
  estateId: '',
78
78
  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
79
 
80
- authObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"KAuXV9","time":1758521266777,"sign":"7b7b810344386d079c18a92a30bfb5e4","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.eyJsb2dpbl91c2VyX2tleSI6IjFjYzc4ZTY3LTM0YjAtNDNmMC1iN2U1LThmMzc3NGQxMmYyMyJ9.QrBgk0iLrBj9sDdDdfxBApNUXVH0DX1sYIsFgmIWxTwCWJU_RRbaGmHuZ_xV3Co_j_9GmDCNjRBeQWoRoiYaRg',
80
+ authObject: '{"currentEstate":{"estateId":"241113105409757BFF2887A7472E99D2","estateName":"U%E7%89%88%E6%A5%BC%E7%9B%98%E6%8C%89%E7%82%B9%E4%BD%8D","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"aRYECc","time":1762502469262,"sign":"3619227d847afa9c7dad6788b4b069d0","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.eyJsb2dpbl91c2VyX2tleSI6IjdjMTVhNjcyLTI1OTAtNDJjOS05ZGY4LTlhMWZjOGU3NTc3NyJ9.l5OQ1vse_HTJrmceicNHas9HLyaLcyMHtoYqO8fQOqb8bmjMHoKlutaIjSIk_etQnWi85iF4JJh-ll2fwdkp-A',
82
82
  };
83
83
  },
84
84
  // 请求完成事件,可判断是否登录过期执行响应操作