centaline-data-driven 1.2.30 → 1.2.33

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.2.30",
3
+ "version": "1.2.33",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div id="appDetail" style="height:100%;position: fixed;">
2
+ <div id="appDetail" style="height:100%;">
3
3
  <ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
4
4
  <ct-dialog-list></ct-dialog-list>
5
5
  </div>
@@ -780,3 +780,6 @@ html {
780
780
  .current-row .el-table__cell .el-input-group__prepend{
781
781
  min-width: 0!important;
782
782
  }
783
+ .list-button .max-btn-add{
784
+ width: 85px;
785
+ }
@@ -47,7 +47,6 @@
47
47
  height: 26px;
48
48
  background: #EE6B6B;
49
49
  border-color:#EE6B6B;
50
- width: 85px;
51
50
  box-shadow: 0px 2px 4px 0px rgba(238,107,107,0.25);
52
51
  border-radius: 6px;
53
52
  }
@@ -71,6 +71,7 @@
71
71
  //row.flagRow && row.columnShow===column.id?'ct-td3':null,
72
72
  rowBorderLeftColumns.includes(column.id)?'ct-td4':null,
73
73
  rowBorderRightColumns.includes(column.id)?'ct-td5':null,
74
+ model.rowHiddenKeyData.indexOf(row[model.rowHiddenKey])%2?'ct-tdDouble':'ct-tdSingle',
74
75
  selectKey===row[model.rowHiddenKey]?'select':null,
75
76
  colIndex === leftShadow?'shadowLeft':null,
76
77
  colIndex === rightShadow?'shadowRight':null,
@@ -179,12 +180,12 @@
179
180
  };
180
181
  submitData.para.searchFields=router.getSearchPara();
181
182
  submitData.para.searchFields.fields.push({
182
- fieldName1: 'flagLookFromButton',
183
- groupName: 'flagLookFromButton',
184
- operation: 1,
185
- searchDataType: 3,
186
- searchValue1: '1',
187
- });
183
+ fieldName1: 'flagLookFromButton',
184
+ groupName: 'flagLookFromButton',
185
+ operation: 1,
186
+ searchDataType: 3,
187
+ searchValue1: '1',
188
+ });
188
189
  router.doSearch(submitData, (res) => {
189
190
  if (res.rtnCode === 200) {
190
191
  res.apiRouter=self.apiRouter;
@@ -503,6 +504,7 @@
503
504
  border-bottom: 0px;
504
505
  width: 100%;
505
506
  outline: 0;
507
+ padding: 0px;
506
508
  }
507
509
  .ct-searchtable .ct-table {
508
510
  min-width: 100%;
@@ -536,6 +538,12 @@
536
538
  .ct-searchtable .ct-tr > .ct-td5 {
537
539
  border-right: 1px solid #e7e8eb;
538
540
  }
541
+ .ct-searchtable .ct-tr > .ct-tdSingle {
542
+ background-color: rgb(255 243 244);
543
+ }
544
+ .ct-searchtable .ct-tr > .ct-tdDouble {
545
+ background-color: rgb(239 255 239);
546
+ }
539
547
  .shadowLeft {
540
548
  border-right: 1px solid #e7e8eb;
541
549
  box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
@@ -24,8 +24,7 @@
24
24
  {{tag.label}}
25
25
  </div>
26
26
  </div>
27
- </div>
28
-
27
+ </div>
29
28
  <div class="head-but">
30
29
  <div>
31
30
  <component v-if="model.otherTradeActionRouter!==null" v-bind="model.otherTradeActionRouter" class="max-default"
@@ -56,7 +55,7 @@
56
55
  </div>
57
56
  </div>
58
57
  <div ref="detail" class="details-mid y-auto" :style="{'height':model.detailHeight?model.detailHeight+'px':'780px'}">
59
- <div class="mid-l">
58
+ <div ref="midl" class="mid-l" :style="{'width':model.midlWidth?model.midlWidth+'px':'1200px'}">
60
59
  <!-- 图片内容部分 -->
61
60
  <div class="hous-info base-box">
62
61
  <div class="info-conten">
@@ -153,38 +152,22 @@
153
152
  :searchDataApi="model.searchDataApiTags1"></ct-searchlist>
154
153
  </div>
155
154
  </div>
156
- <div class="contribute-info base-box">
155
+ <div class="contribute-info base-box" v-if="model._commissionList !==null">
157
156
  <div class="title-l">贡献人信息</div>
158
157
  <div class="contribute-list">
159
- <div class="contribute-i">
160
- <img src="" alt="图片">
161
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
162
- </div>
163
- <div class="contribute-i">
164
- <img src="" alt="图片">
165
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
166
- </div>
167
- <div class="contribute-i">
168
- <img src="" alt="图片">
169
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
170
- </div>
171
- <div class="contribute-i">
172
- <img src="" alt="图片">
173
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
174
- </div>
175
- <div class="contribute-i">
176
- <img src="" alt="图片">
177
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
178
- </div>
179
- <div class="contribute-i">
180
- <img src="" alt="图片">
181
- <div><div class="user-title">柳晓青(离职)</div><div class="user-but w56">收钥人</div></div>
158
+ <div class="contribute-i" v-for="(m, index) in model._commissionList" :key="index">
159
+ <img :src="m.regEmpImgUrl" alt="图片">
160
+ <div>
161
+ <div class="user-title">{{m.regEmpName}}</div>
162
+ <div class="user-title">{{m.commissionPercentDesc}}</div>
163
+ <div class="user-but w56">{{m.commissionRole}}</div>
164
+ </div>
182
165
  </div>
183
166
  </div>
184
167
  </div>
185
168
  </div>
186
169
  <!-- 右侧委托信息 -->
187
- <div class="mid-r">
170
+ <div ref="midr" class="mid-r" style="width:420px;">
188
171
  <div class="take-info base-box">
189
172
  <div>该房源共<span class="red-text">{{model.fields1Dic.LookCustomerCount.value}}</span>位客户看房</div>
190
173
  <div>最近7天带看<span class="red-text">{{model.fields1Dic.CustomerLookCount7.value}}</span>次,总带看<span class="red-text">{{model.fields1Dic.CustomerLookCountAll.value}}</span>次。</div>
@@ -361,6 +344,7 @@
361
344
  this.model.getTags2List(0);
362
345
  }
363
346
  this.loadOperation();
347
+ this.loadCommission();
364
348
  this.setDetailHeight();
365
349
  this.$nextTick(() => {
366
350
  window.addEventListener("resize", (ev) => {
@@ -414,6 +398,9 @@
414
398
  this.model._operationRouters=[];
415
399
  this.model.getOperationList();
416
400
  },
401
+ loadCommission() {
402
+ this.model.getCommissionList();
403
+ },
417
404
  lookOwner() {
418
405
  this.codeOwner = true
419
406
  },
@@ -433,6 +420,10 @@
433
420
  var h2 = this.$refs.detail.offsetTop | 0;
434
421
  let detailHeight = h1 - h2;
435
422
  this.model.detailHeight = detailHeight < 40 ? 350 : detailHeight;
423
+
424
+ var w1=this.$refs.detail.clientWidth | 0;
425
+ var w2=this.$refs.midr.clientWidth | 0;
426
+ this.model.midlWidth=w1-w2-10;
436
427
  }
437
428
  });
438
429
  },
@@ -912,12 +903,6 @@
912
903
  text-align: center;
913
904
  padding: 3px 0;
914
905
  }
915
- // .mero{
916
-
917
- // vertical-align: 2px;
918
- // overflow: hidden;
919
- // margin-left: 5px;
920
- // }
921
906
  .more-colose{
922
907
  background: url('../../../assets/mero-colose.png')no-repeat;
923
908
  background-size: 100% 100%;
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <div style="width:100%;" class="ct-searchtable" ref="searchTable">
3
-
4
3
  <ct-tableStats ref="tableStats" class="ct-search-table-list-header"
5
4
  v-if="!isLoading&&searchStatsApi"
6
5
  :api="searchStatsApi"
@@ -26,18 +25,16 @@
26
25
  :class="['ct-table',model.attrs.size?'ct-table-'+model.attrs.size:'']">
27
26
  <!--表头-->
28
27
  <thead ref="tableHead">
29
- <tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr">
28
+ <tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr" :key="columnsIndex">
30
29
  <th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td" :class="[model.tdClass]">
31
30
  <label class="el-checkbox"><span class="el-checkbox__input" :class="model.selectAllType">
32
31
  <span class="el-checkbox__inner"></span>
33
- <!-- <input type="checkbox" aria-hidden="false" class="el-checkbox__original" value=""> -->
34
32
  <input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" class="el-checkbox__original checkbox-td-1" aria-hidden="false" />
35
33
  </span>
36
34
  </label>
37
-
38
-
39
35
  </th>
40
- <th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns"
36
+ <th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'"
37
+ v-for="(column,colIndex) in columns" :key="colIndex"
41
38
  v-if="column.show" class="ct-td ct-searchtable-th"
42
39
  :rowspan="column.rowspan"
43
40
  :colspan="column.colspan"
@@ -50,7 +47,6 @@
50
47
  typeof column.fixed === 'undefined'?'right-no-fixation-th':null]"
51
48
  @mousemove="thMouseMoveHandle($event)" @mousedown="thMouseDownHandle($event,colIndex)"
52
49
  v-bind="column.attrs">
53
-
54
50
  <span>{{column.name}}</span>
55
51
  <span class="caret-wrapper" v-if="column.sort" @click="toSort($event,column);" @contextmenu.prevent="clearSort($event,column);">
56
52
  <i class="sort-caret ascending" @click.left="toSort($event,column,'asc')" @contextmenu.prevent="clearSort($event,column);"></i>
@@ -65,17 +61,8 @@
65
61
  </thead>
66
62
  <!--表体-->
67
63
  <tbody>
68
- <!--这一行仅用于设置未加载数据时的列宽-->
69
- <!--<tr v-if="model.listData.length === 0" class="ct-tr" style="visibility: hidden;">
70
- <td v-if="model.isMulti">
71
- </td>
72
- <td v-for="(column,colIndex) in model.dataFieldcolumns" class="ct-td" v-if="column.show">
73
- <div :style="{'width': column.width + 'px'}">
74
- </div>
75
- </td>
76
- </tr>-->
77
64
  <!--可视区域的行数据-->
78
- <tr v-for="(row,rowindex) in model.listData"
65
+ <tr v-for="(row,rowindex) in model.listData" :key="rowindex"
79
66
  v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
80
67
  :ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
81
68
  class="ct-tr"
@@ -83,13 +70,12 @@
83
70
  <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]" align="center">
84
71
  <label v-if="!model.rightMulti || row[model.rightMulti] == 1" class="el-checkbox is-checked"><span class="el-checkbox__input" :class="rowCheckClass(row)">
85
72
  <span class="el-checkbox__inner"></span>
86
- <!-- <input type="checkbox" aria-hidden="false" class="el-checkbox__original" value=""> -->
87
73
  <input type="checkbox" v-model="row.$select" @change="selectOne($event)" class="el-checkbox__original checkbox-td-1" />
88
74
  </span>
89
75
  </label>
90
76
  </td>
91
77
  <td :ref="column.fixed?(column.fixed==='left'?'headLeftTds':'headRightTds'):null"
92
- v-for="(column,colIndex) in model.dataFieldcolumns"
78
+ v-for="(column,colIndex) in model.dataFieldcolumns" :key="colIndex"
93
79
  v-if="tdShow(column, row)"
94
80
  :rowspan="tdRowspan(column, row)"
95
81
  class="ct-td"
@@ -125,16 +111,12 @@
125
111
  </component>-->
126
112
  </td>
127
113
  </tr>
128
-
129
-
130
-
131
114
  <!--适配滚动条-->
132
115
  <tr v-else v-bind:style="{ height: row.$heigth + 'px' }"></tr>
133
116
  </tbody>
134
117
  </table>
135
118
  </div>
136
119
  </div>
137
-
138
120
  <ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter" v-if="!isLoading"></ct-tabletip>
139
121
  <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer" v-if="!isLoading"></ct-tabletip>
140
122
  <div v-if="isLoading && searchLoading" v-loading="isLoading" style="top:30px;">
@@ -15,6 +15,7 @@ const ContactList = function (source,para ,callBack) {
15
15
  _columns: [],
16
16
  _columnsArr: [],
17
17
  _dataFieldcolumns: [],
18
+ _dataFieldcolumnsShow: [],
18
19
  _listData: [],
19
20
  _scripts: null,
20
21
  isMergeTitle: false,//是否合并标题
@@ -23,6 +24,7 @@ const ContactList = function (source,para ,callBack) {
23
24
  rowHiddenKey:'contactID',
24
25
  rowHiddenColumns:['contactNameDesc','propertyIdentityTypeID'],
25
26
  columnShow:'contactNoTypeDesc',
27
+ rowHiddenKeyData:[],
26
28
  attrs: {
27
29
  size: 'mini'
28
30
  },
@@ -91,7 +93,7 @@ const ContactList = function (source,para ,callBack) {
91
93
  var newRow = {};
92
94
  newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
93
95
  newRow.descNewRow = v.descNewRow;
94
- newRow.colspan = rtn.dataFieldcolumns.length-rtn.rowMergedColumns.length;
96
+ newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
95
97
  newRow.columnShow=rtn.columnShow;
96
98
  newRow.flagRow=true;
97
99
  rtn._listData.push(newRow);
@@ -101,6 +103,11 @@ const ContactList = function (source,para ,callBack) {
101
103
  }
102
104
  return rtn._listData;
103
105
  },
106
+ set listData(v) {
107
+ if (v) {
108
+ rtn._listData=v;
109
+ }
110
+ },
104
111
  get columns() {
105
112
  var self = this;
106
113
  if (self._columns.length > 0) {
@@ -282,6 +289,20 @@ const ContactList = function (source,para ,callBack) {
282
289
  self._dataFieldcolumns = arr;
283
290
  return self._dataFieldcolumns;
284
291
  }
292
+ },
293
+ get dataFieldcolumnsShow() {
294
+ var self = this;
295
+ if (self._dataFieldcolumnsShow.length > 0) {
296
+ return self._dataFieldcolumnsShow;
297
+ }
298
+ else {
299
+ var arr = self.columns.filter(v => {
300
+ return v.isDataField !== false && v.show
301
+ });
302
+
303
+ self._dataFieldcolumnsShow = arr;
304
+ return self._dataFieldcolumnsShow;
305
+ }
285
306
  },
286
307
  get rowMergedColumns() {
287
308
  return source.rowMergedColumns || [];
@@ -314,44 +335,10 @@ const ContactList = function (source,para ,callBack) {
314
335
  if (response.rtnCode === Enum.ReturnCode.Successful) {
315
336
  if (response.content.rows.length > 0) {
316
337
  if(router.flagAddRowAfterAction){
317
- response.content.rows.forEach((v) => {
318
- if(v.descNewRow){
319
- var newRow = {};
320
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
321
- newRow.descNewRow = v.descNewRow;
322
- newRow.colspan = rtn.dataFieldcolumns.length-rtn.rowMergedColumns.length;
323
- newRow.columnShow=rtn.columnShow;
324
- newRow.flagRow=true;
325
- rtn._listData.unshift(newRow);
326
- }
327
- rtn._listData.unshift(v);
328
- });
329
- rtn.setHiddenRow();
338
+ rtn.doNew(response.content.rows);
330
339
  }
331
340
  else{
332
- let updateData=[];
333
- response.content.rows.forEach((v) => {
334
- updateData.push(v);
335
- if(v.descNewRow){
336
- var newRow = {};
337
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
338
- newRow.descNewRow = v.descNewRow;
339
- newRow.colspan = rtn.dataFieldcolumns.length-rtn.rowMergedColumns.length;
340
- newRow.columnShow=rtn.columnShow;
341
- newRow.flagRow=true;
342
- updateData.push(newRow);
343
- }
344
- });
345
- let strat=0;
346
- let count=0;
347
- rtn._listData.forEach((v,i) => {
348
- if(v[rtn.rowHiddenKey]===searchValue1){
349
- if(strat===0)strat=i;
350
- count=count+1;
351
- }
352
- });
353
- rtn._listData.splice(strat, count,updateData);
354
- rtn.setHiddenRow();
341
+ rtn.doUpdate(response.content.rows,searchValue1);
355
342
  }
356
343
  }
357
344
  }
@@ -387,46 +374,12 @@ const ContactList = function (source,para ,callBack) {
387
374
  break;
388
375
  case Enum.ActionType.New://新增
389
376
  case Enum.ActionType.CloseTabThenNew://新增
390
- response.content.forEach((v) => {
391
- if(v.descNewRow){
392
- var newRow = {};
393
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
394
- newRow.descNewRow = v.descNewRow;
395
- newRow.colspan = rtn.dataFieldcolumns.length-rtn.rowMergedColumns.length;
396
- newRow.columnShow=rtn.columnShow;
397
- newRow.flagRow=true;
398
- rtn._listData.unshift(newRow);
399
- }
400
- rtn._listData.unshift(v);
401
- });
402
- rtn.setHiddenRow();
377
+ rtn.doNew(response.content);
403
378
  break;
404
379
  case Enum.ActionType.Update://修改
405
380
  case Enum.ActionType.CloseTabThenUpdate://修改
406
381
  var searchValue1=rtn.listData[rtn.selectIndex][self.primaryKey];
407
- let updateData=[];
408
- response.content.forEach((v) => {
409
- updateData.push(v);
410
- if(v.descNewRow){
411
- var newRow = {};
412
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
413
- newRow.descNewRow = v.descNewRow;
414
- newRow.colspan = rtn.dataFieldcolumns.length-rtn.rowMergedColumns.length;
415
- newRow.columnShow=rtn.columnShow;
416
- newRow.flagRow=true;
417
- updateData.push(newRow);
418
- }
419
- });
420
- let strat=0;
421
- let count=0;
422
- rtn._listData.forEach((v,i) => {
423
- if(v[rtn.rowHiddenKey]===searchValue1){
424
- if(strat===0)strat=i;
425
- count=count+1;
426
- }
427
- });
428
- rtn._listData.splice(strat, count,updateData);
429
- rtn.setHiddenRow();
382
+ rtn.doUpdate(response.content,searchValue1);
430
383
  break;
431
384
  default:
432
385
  break;
@@ -434,6 +387,63 @@ const ContactList = function (source,para ,callBack) {
434
387
  }
435
388
  rtn.$vue.$forceUpdate();
436
389
  },
390
+ doNew(data){
391
+ data.forEach((v) => {
392
+ if(v.descNewRow){
393
+ var newRow = {};
394
+ newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
395
+ newRow.descNewRow = v.descNewRow;
396
+ newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
397
+ newRow.columnShow=rtn.columnShow;
398
+ newRow.flagRow=true;
399
+ rtn._listData.unshift(newRow);
400
+ }
401
+ rtn._listData.unshift(v);
402
+ });
403
+ rtn.setHiddenRow();
404
+ },
405
+ doUpdate(data,searchValue1){
406
+ let updateData=[];
407
+ data.forEach((v) => {
408
+ updateData.push(v);
409
+ if(v.descNewRow){
410
+ var newRow = {};
411
+ newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
412
+ newRow.descNewRow = v.descNewRow;
413
+ newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
414
+ newRow.columnShow=rtn.columnShow;
415
+ newRow.flagRow=true;
416
+ updateData.push(newRow);
417
+ }
418
+ });
419
+ let strat=-1;
420
+ let count=0;
421
+ rtn._listData.forEach((v,i) => {
422
+ if(v[rtn.rowHiddenKey]===searchValue1){
423
+ if(strat===-1)strat=i;
424
+ count=count+1;
425
+ }
426
+ });
427
+ if(updateData.length===1){
428
+ rtn._listData.splice(strat, count,updateData[0]);
429
+ }
430
+ else if(updateData.length===2){
431
+ rtn._listData.splice(strat, count,updateData[0],updateData[1]);
432
+ }
433
+ else if(updateData.length===3){
434
+ rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2]);
435
+ }
436
+ else if(updateData.length===4){
437
+ rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3]);
438
+ }
439
+ else if(updateData.length===5){
440
+ rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3],updateData[4]);
441
+ }
442
+ else if(updateData.length===6){
443
+ rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3],updateData[4],updateData[5]);
444
+ }
445
+ rtn.setHiddenRow();
446
+ },
437
447
  get scripts() {
438
448
  if (rtn._scripts !== null) {
439
449
  return rtn._scripts;
@@ -471,7 +481,11 @@ const ContactList = function (source,para ,callBack) {
471
481
  let lastKey='';
472
482
  let count=1;
473
483
  let firstIndex=0;
484
+ rtn.rowHiddenKeyData=[];
474
485
  for (let i = 0; i < rtn.listData.length; i++) {
486
+ if(!rtn.rowHiddenKeyData.includes(rtn.listData[i][rtn.rowHiddenKey])){
487
+ rtn.rowHiddenKeyData.push(rtn.listData[i][rtn.rowHiddenKey])
488
+ }
475
489
  rtn.listData[i].$rowspan=0;
476
490
  if(lastKey){
477
491
  if(rtn.listData[i][rtn.rowHiddenKey]){
@@ -15,7 +15,9 @@ const Detail = function (source,para ,callBack) {
15
15
  _actionRouters:null,//页面上的动作行为
16
16
  _actionRoutersMoreList:null,//页面上的更多动作行为
17
17
  _contactApiRouter:null,//查看联系人
18
+ _commissionApiRouter:null,//查看角色
18
19
  detailHeight:750,
20
+ midlWidth:1200,
19
21
  activeIndex1:'0',
20
22
  activeIndex2:'0',
21
23
  searchlistKey:0,
@@ -27,6 +29,7 @@ const Detail = function (source,para ,callBack) {
27
29
  _operationApiRouter:null,
28
30
  _operationList:null,
29
31
  _operationRouters:[],
32
+ _commissionList:null,
30
33
  get fields1() {
31
34
  return data.fields1;
32
35
  },
@@ -145,7 +148,7 @@ const Detail = function (source,para ,callBack) {
145
148
  }
146
149
  return rtn._contactApiRouter;
147
150
  }
148
- },
151
+ },
149
152
  get actionRouters() {
150
153
  if (rtn._actionRouters !== null) {
151
154
  return rtn._actionRouters;
@@ -303,6 +306,43 @@ const Detail = function (source,para ,callBack) {
303
306
  }
304
307
  );
305
308
  }
309
+ },
310
+ get commissionApiRouter() {
311
+ if (rtn._commissionApiRouter !== null) {
312
+ return rtn._commissionApiRouter;
313
+ }
314
+ else {
315
+ if (data.commissionApiRouter) {
316
+ var router = Router(data.commissionApiRouter);
317
+ router.is = "ct-btn";
318
+ router.attrs = { size: "mini" }
319
+ rtn._commissionApiRouter=router;
320
+ }
321
+ return rtn._commissionApiRouter;
322
+ }
323
+ },
324
+ getCommissionList(){
325
+ if (rtn._commissionList !==null){
326
+ return rtn._commissionList;
327
+ }
328
+ else if(rtn.commissionApiRouter){
329
+ var router=rtn.commissionApiRouter;
330
+ var submitData={
331
+ action: router.action,
332
+ para: {
333
+ searchFields: null,
334
+ pageAttribute: { pageIndex: 1 },
335
+ flagSearch: true
336
+ }
337
+ };
338
+ submitData.para.searchFields=router.getSearchPara();
339
+ router.doSearch(submitData, (res) => {
340
+ if (res.rtnCode === 200) {
341
+ rtn._commissionList=res.content.rows;
342
+ }
343
+ });
344
+ }
345
+ return rtn._commissionList;
306
346
  },
307
347
  doAction(response,field) {
308
348
  if (response.responseData) {