centaline-data-driven 1.2.32 → 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 +1 -1
- package/src/Detail.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +6 -6
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +19 -34
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -20
- package/src/centaline/loader/src/ctl/Detail.js +41 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="appDetail" style="height:100%;
|
|
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>
|
|
@@ -180,12 +180,12 @@
|
|
|
180
180
|
};
|
|
181
181
|
submitData.para.searchFields=router.getSearchPara();
|
|
182
182
|
submitData.para.searchFields.fields.push({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
183
|
+
fieldName1: 'flagLookFromButton',
|
|
184
|
+
groupName: 'flagLookFromButton',
|
|
185
|
+
operation: 1,
|
|
186
|
+
searchDataType: 3,
|
|
187
|
+
searchValue1: '1',
|
|
188
|
+
});
|
|
189
189
|
router.doSearch(submitData, (res) => {
|
|
190
190
|
if (res.rtnCode === 200) {
|
|
191
191
|
res.apiRouter=self.apiRouter;
|
|
@@ -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
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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"
|
|
@@ -30,14 +29,12 @@
|
|
|
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'"
|
|
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,15 +61,6 @@
|
|
|
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
65
|
<tr v-for="(row,rowindex) in model.listData" :key="rowindex"
|
|
79
66
|
v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
|
|
@@ -83,7 +70,6 @@
|
|
|
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>
|
|
@@ -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,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) {
|