centaline-data-driven 1.6.55 → 1.6.56

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.56",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,14 @@
1
+ # v1.6.56
2
+ 2025-10-24
3
+
4
+ 优化
5
+
6
+ 列表columns添加:分组Id(主要用于 单元格 数据点击事件 传给API,传输参数名为 columnGroupId)
7
+
8
+ 列表上的路由添加侧边栏打开
9
+
10
+ 表单通过js设置字段隐藏属性没有隐藏处理
11
+
1
12
  # v1.6.55
2
13
  2025-10-11
3
14
 
@@ -35,12 +35,14 @@
35
35
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/EntranceNoticeInfoList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/EntranceNoticeInfoList/getList'"></ct-searchlist> -->
36
36
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/commissionquery/properformanceszjjbreport/getLayoutOfSearch'" :searchDataApi="'/commissionquery/properformanceszjjbreport/getList'"></ct-searchlist> -->
37
37
  <!-- <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>
38
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist> -->
39
39
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
40
40
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/roomtypelist/getLayoutOfSearch'" :searchDataApi="'/roomtypelist/getList'"></ct-searchlist> -->
41
41
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/priceuploadlist/getLayoutOfSearch'" :searchDataApi="'//salemattersmanage/priceuploadlist/getList'"></ct-searchlist> -->
42
42
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/app/workbenchdetails/getContractLayoutOfSearch'" :searchDataApi="'/app/workbenchdetails/getContractList'"></ct-searchlist> -->
43
43
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist> -->
44
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financesalemanage/finContractList/getLayoutOfSearch'" :searchDataApi="'/financesalemanage/finContractList/getList'"></ct-searchlist> -->
45
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financecommissionmanage/fincommissionapplylist/getLayoutOfSearch'" :searchDataApi="'/financecommissionmanage/fincommissionapplylist/getList'"></ct-searchlist> -->
44
46
  <!-- CCES -->
45
47
 
46
48
  <!-- <ct-searchlist :apiParam="para"
@@ -94,60 +96,36 @@
94
96
  :searchStatsApi="'/PropertyOFIList/getListStats'">
95
97
  </ct-searchlist> -->
96
98
 
97
- <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
98
-
99
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
99
100
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateBuildingList/getLayoutOfSearch'" :searchDataApi="'/EstateBuildingList/getListOfSearchModel'"></ct-searchlist> -->
100
-
101
101
  <!-- <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
-
102
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CustomerImportList/getLayoutOfSearch'" :searchDataApi="'/CustomerImportList/getListOfSearchModel'"></ct-searchlist> -->
105
103
  <!-- <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
-
104
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/CallTaskList/getLayoutOfSearch'" :searchDataApi="'/CallTaskList/getListOfSearchModel'"></ct-searchlist> -->
105
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/RoleList/getLayoutOfSearch'" :searchStatsApi="'/RoleList/getListStats'" :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist> -->
106
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist> -->
107
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyVRRealLookBalanceList/getLayoutOfSearchForOFI'" :searchDataApi="'/PropertyVRRealLookBalanceList/getListOfSearchModel'"></ct-searchlist> -->
115
108
  <!-- <ct-searchlist :apiParam="para" :appRootUrl="appRootUrl" :searchConditionApi="'/PropertyRealLookList/getLayoutOfSearch'" :searchDataApi="'/PropertyRealLookList/getListOfSearchModel'"></ct-searchlist> -->
116
-
117
109
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemParameterList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterList/getListOfSearchModel'"></ct-searchlist> -->
118
-
119
110
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeResourcesTranList/getLayoutOfSearch'" :searchDataApi="'/EmployeeResourcesTranList/getListOfSearchModel'"></ct-searchlist> -->
111
+ <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'" :searchDataApi="'/propertyPublishList/getListOfSearchModel'" :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
120
112
 
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
-
113
+ <!-- onecard -->
114
+ <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/cache/getLayoutOfSearchForCache'" :searchDataApi="'/cache/getListOfSearchModelForCache'"></ct-searchlist> -->
129
115
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceClassList/getLayoutOfSearch'" :searchDataApi="'/AttendanceClassList/getListOfSearchModel'"></ct-searchlist> -->
130
-
131
116
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportMonthAttendanceList/getLayoutOfSearch'" :searchDataApi="'/ReportMonthAttendanceList/getListOfSearchModel'"></ct-searchlist> -->
132
-
133
117
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportAttendanceExceptionList/getLayoutOfSearch'" :searchDataApi="'/ReportAttendanceExceptionList/getListOfSearchModel'"></ct-searchlist> -->
134
-
135
118
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/PersonHolidayList/getLayoutOfSearch'" :searchDataApi="'/PersonHolidayList/getListOfSearchModel'"></ct-searchlist> -->
136
-
137
119
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearch'" :searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModel'"></ct-searchlist> -->
138
-
139
120
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/HolidayTypeList/getLayoutOfSearch'" :searchDataApi="'/HolidayTypeList/getListOfSearchModel'"></ct-searchlist> -->
140
-
141
121
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/SystemLogList/getLayoutOfSearch'" :searchDataApi="'/SystemLogList/getListOfSearchModel'"></ct-searchlist> -->
142
-
143
122
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/AttendanceBalanceAlertList/getLayoutOfSearch'" :searchDataApi="'/AttendanceBalanceAlertList/getListOfSearchModel'"></ct-searchlist> -->
144
-
145
123
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ReportWorkQuantifyList/getLayoutOfSearch'" :searchDataApi="'/ReportWorkQuantifyList/getListOfSearchModel'"></ct-searchlist> -->
146
-
147
124
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'" :searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
148
-
149
125
  <!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TrainingAllowanceTotalList/getLayoutOfSearch'" :searchDataApi="'/TrainingAllowanceTotalList/getListOfSearchModel'"></ct-searchlist> -->
150
126
 
127
+ <!-- ibs -->
128
+ <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeWorkLogList/ind/getLayoutOfSearch'" :searchDataApi="'/EmployeeWorkLogList/ind/getListOfSearchModel'"></ct-searchlist>
151
129
  <ct-dialog-list></ct-dialog-list>
152
130
  </div>
153
131
  </template>
@@ -162,7 +140,7 @@
162
140
  // appRootUrl:'http://10.88.22.13:6060/onecard-api/',
163
141
  appRootUrl:'',
164
142
  para:{
165
- "type":"top"
143
+ "type":"left"
166
144
  },
167
145
  }
168
146
  },
@@ -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
@@ -17,7 +17,8 @@
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"
@@ -121,12 +122,14 @@
121
122
  rowCount:0,
122
123
  detailKey:0,
123
124
  isIframe: false,
125
+
126
+ columnName:'',
127
+ columnGroupId:'',
124
128
 
125
129
  drowerClose:'',
126
130
  listHeight:0,
127
131
  pageHeightReal: '',
128
- flagShow: true
129
-
132
+ flagShow: true,
130
133
  }
131
134
  },
132
135
  created() {
@@ -314,6 +317,64 @@
314
317
  this.showTitle=this.$refs.screen.model.flagShowTitle;
315
318
  }
316
319
  },
320
+ initSideBar(submitData) {
321
+ var self = this;
322
+ this.title=this.$refs.table.model.title;
323
+ if (typeof this.$refs.table.model.cellLayout !== "undefined") {
324
+ this.$refs.screen.LoadLayout();
325
+ }
326
+
327
+ this.pageDisabled=false;
328
+ this.flagSideBar=this.$refs.table.model.flagSideBar;
329
+ this.flagDefaultDisplaySideBar=this.$refs.table.model.flagDefaultDisplaySideBar;
330
+ if(this.$refs.table.model.rowSelectRouter){
331
+ this.sideBarApi=this.$refs.table.model.rowSelectRouter.action;
332
+ this.sideBarSearchConditionApi=this.$refs.table.model.rowSelectRouter.actionForSearchLayout;
333
+ this.sideBarSearchStatsApi=this.$refs.table.model.rowSelectRouter.actionForSearchStats;
334
+ this.sideBarSearchDataApi=this.$refs.table.model.rowSelectRouter.actionForSearch;
335
+ this.sideBarPageType=this.$refs.table.model.rowSelectRouter.actionSource;
336
+ }
337
+ else{
338
+ this.flagSideBar=false;
339
+ }
340
+
341
+ if(this.$refs.table.model.listData.length>0){
342
+ this.flagSideBarOfData=true;
343
+
344
+ if(this.$refs.table.model.rowSelectRouter && this.$refs.table.model.rowSelectRouter.dialogWidth){
345
+ this.$refs.table.model.mainBarWidth = this.$refs.main.clientWidth-this.$refs.table.model.rowSelectRouter.dialogWidth;
346
+ this.$refs.table.model.sideBarWidth = this.$refs.table.model.rowSelectRouter.dialogWidth;
347
+ }
348
+
349
+ if(document.body.clientWidth && document.body.clientWidth<1024){
350
+ this.flagSideBar=false;
351
+ }
352
+
353
+ if(this.flagSideBar){
354
+ self.resizeSearchList();
355
+ this.selectIndex=-1;
356
+ this.sideBarStatus='';
357
+ if(this.$refs.sideMenu)this.$refs.sideMenu.setSide('open');
358
+ this.columnName=submitData.columnName?submitData.columnName:'';
359
+ this.columnGroupId=submitData.columnGroupId?submitData.columnGroupId:'';
360
+
361
+ if(this.flagDefaultDisplaySideBar && !this.sideBarStatus){
362
+ this.sideMenuClickHandler('close');
363
+ }
364
+ else{
365
+ let status='open';
366
+ if(this.sideBarStatus=='open')status='close';
367
+ else if(this.sideBarStatus=='close')status='open';
368
+ this.sideMenuClickHandler(status);
369
+ }
370
+ self.rowClickHandle();
371
+ }
372
+ }
373
+ else{
374
+ this.flagSideBarOfData=false;
375
+ this.searchWidth=0;
376
+ }
377
+ },
317
378
  tableLoaded() {
318
379
  var self = this;
319
380
  this.title=this.$refs.table.model.title;
@@ -381,11 +442,20 @@
381
442
  if (this.sideBarStatus && this.sideBarStatus == "open") {
382
443
  self.selectIndex = self.$refs.table.model.selectIndex;
383
444
  self.sideBarApiParam = {};
384
- if (self.$refs.table.model.rowSelectRouter.submitListField) {
445
+ if (self.$refs.table.model.rowSelectRouter.submitListField
446
+ && self.$refs.table.model.listData
447
+ && self.$refs.table.model.listData.length>0) {
385
448
  self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
386
449
  self.sideBarApiParam[k] = self.$refs.table.model.listData[self.selectIndex][k];
387
450
  });
388
451
  }
452
+ if(self.columnName){
453
+ self.sideBarApiParam.columnName=this.columnName;
454
+ }
455
+ if(self.columnGroupId){
456
+ self.sideBarApiParam.columnGroupId=this.columnGroupId;
457
+ }
458
+
389
459
  self.sideBarApiParam.actionType = self.$refs.table.model.rowSelectRouter.actionType;
390
460
  self.detailKey = self.detailKey + 1;
391
461
  }
@@ -395,6 +465,12 @@
395
465
  self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
396
466
  ApiParam[k] = self.$refs.table.model.listData[self.$refs.table.model.selectIndex][k];
397
467
  });
468
+ if(self.columnName){
469
+ ApiParam.columnName=this.columnName;
470
+ }
471
+ if(self.columnGroupId){
472
+ ApiParam.columnGroupId=this.columnGroupId;
473
+ }
398
474
  }
399
475
  this.$emit("rowClickHandle", ApiParam, self.appID);
400
476
  }
@@ -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
 
@@ -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
  },
@@ -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
  },
@@ -666,6 +666,14 @@ const Enum = {
666
666
  * 在tab页打开 前端的VUE组件, 组件名称放在action参数里
667
667
  */
668
668
  OpenVueComponentInTab:122,
669
+ /**
670
+ * 表单在侧边栏打开
671
+ */
672
+ FormPageInSideBar:123,
673
+ /**
674
+ * 列表在侧边栏打开
675
+ */
676
+ SearchPageInSideBar:124,
669
677
  },
670
678
 
671
679
  /// <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
@@ -17,20 +17,20 @@ 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
21
  // baseUrl: "http://10.88.22.46:22324/service-api/v1/form/router",
22
22
  // baseUrl: "http://10.25.10.67:8999/service-api/v1/form/router",
23
23
  // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
24
24
  // baseUrl: "http://10.88.22.13:9004/max-uplink-api/",
25
25
  // baseUrl:"http://szamaxbusiness-api-test2.centaline.com.cn/max-uplink-api/",
26
- // baseUrl: "http://10.88.22.13:7070/onecard-api/",
26
+ baseUrl: "http://10.88.22.13:7070/onecard-api/",
27
27
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
28
28
  // baseUrl: "http://10.28.21.164:9004/max-uplink-api/",
29
29
  // baseUrl: "http://10.25.10.63:9999/service-api/",
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":"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',
82
82
  };
83
83
  },
84
84
  // 请求完成事件,可判断是否登录过期执行响应操作