centaline-data-driven 1.3.20 → 1.3.21
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/SearchList.vue +4 -2
- package/src/centaline/common/index.js +114 -106
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +17 -4
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +24 -70
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +1 -7
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +6 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1339 -1178
- package/src/centaline/loader/src/ctl/Router.js +35 -31
- package/src/centaline/loader/src/ctl/lib/Enum.js +124 -133
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
9
9
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
|
|
10
10
|
|
|
11
|
-
<ct-searchlist :searchConditionApi="'/
|
|
11
|
+
<ct-searchlist :searchConditionApi="'/PropertyWashList/getLayoutOfSearch'" :searchDataApi="'/PropertyWashList/getListOfSearchModel'"></ct-searchlist>
|
|
12
|
+
|
|
13
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
12
14
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
13
15
|
:searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
|
|
14
16
|
:searchStatsApi="'/exampleList/getListStats'"
|
|
15
|
-
></ct-searchlist>
|
|
17
|
+
></ct-searchlist> -->
|
|
16
18
|
|
|
17
19
|
<ct-dialog-list></ct-dialog-list>
|
|
18
20
|
</div>
|
|
@@ -7,11 +7,11 @@ const common = {
|
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @method
|
|
11
|
+
* @param {String} flag 按钮类别标识
|
|
12
|
+
* @returns {String} 对应Element按钮的Type
|
|
13
|
+
* @desc 根据按钮标识获取按钮类别
|
|
14
|
+
*/
|
|
15
15
|
getBtnType(flag) {
|
|
16
16
|
switch (flag) {
|
|
17
17
|
case 'e':
|
|
@@ -43,8 +43,7 @@ const common = {
|
|
|
43
43
|
var elements = [];
|
|
44
44
|
if (type) {
|
|
45
45
|
elements = document.getElementsByTagName(type);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
46
|
+
} else {
|
|
48
47
|
elements = document.getElementsByTagName('*');
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -52,27 +51,26 @@ const common = {
|
|
|
52
51
|
if (elements[i].className.indexOf(className) >= 0) {
|
|
53
52
|
if (isFirst) {
|
|
54
53
|
return elements[i];
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
54
|
+
} else {
|
|
57
55
|
rtn.push(elements[i]);
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
return rtn;
|
|
62
60
|
},
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @method
|
|
63
|
+
* @param {Object}去重数组
|
|
64
|
+
* @desc 将数组去重并合并
|
|
65
|
+
* @returns {Object} 去重合并的对像
|
|
66
|
+
*/
|
|
69
67
|
MergeArray() {
|
|
70
68
|
var _arr = new Array();
|
|
71
69
|
var _arr1 = new Array();
|
|
72
70
|
for (x in arguments) {
|
|
73
71
|
_arr1.concat(arguments[x]);
|
|
74
72
|
}
|
|
75
|
-
for (var i = 0; i < _arr1.length; i++) {
|
|
73
|
+
for (var i = 0; i < _arr1.length; i++) {
|
|
76
74
|
if (_arr.indexOf(array[i]) == -1) _arr.push(array[i]);
|
|
77
75
|
}
|
|
78
76
|
return _arr;
|
|
@@ -111,15 +109,13 @@ const common = {
|
|
|
111
109
|
var hisIndex = sourceHistory.indexOf(obj);
|
|
112
110
|
if (hisIndex >= 0) {
|
|
113
111
|
rtn = cloneHistory[hisIndex];
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
112
|
+
} else {
|
|
116
113
|
if (Object.prototype.toString.call(obj) === '[object Object]') {
|
|
117
114
|
rtn = {};
|
|
118
115
|
for (var keyObj in obj) {
|
|
119
116
|
rtn[keyObj] = this.CloneCode(obj[keyObj], sourceHistory, cloneHistory);
|
|
120
117
|
}
|
|
121
|
-
}
|
|
122
|
-
else if (Object.prototype.toString.call(obj) === '[object Array]') {
|
|
118
|
+
} else if (Object.prototype.toString.call(obj) === '[object Array]') {
|
|
123
119
|
rtn = [];
|
|
124
120
|
for (var keyArray in obj) {
|
|
125
121
|
rtn.push(this.CloneCode(obj[keyArray], sourceHistory, cloneHistory));
|
|
@@ -171,17 +167,18 @@ const common = {
|
|
|
171
167
|
* @returns {Number} 滚动条宽度
|
|
172
168
|
*/
|
|
173
169
|
getScrollbarWidth() {
|
|
174
|
-
var odiv = document.createElement('div')
|
|
170
|
+
var odiv = document.createElement('div'), //创建一个div
|
|
175
171
|
styles = {
|
|
176
172
|
width: '100px',
|
|
177
173
|
height: '100px',
|
|
178
|
-
overflowY: 'scroll'//让他有滚动条
|
|
179
|
-
},
|
|
174
|
+
overflowY: 'scroll' //让他有滚动条
|
|
175
|
+
},
|
|
176
|
+
i, scrollbarWidth;
|
|
180
177
|
for (i in styles) odiv.style[i] = styles[i];
|
|
181
|
-
document.body.appendChild(odiv)
|
|
182
|
-
scrollbarWidth = odiv.offsetWidth - odiv.clientWidth
|
|
178
|
+
document.body.appendChild(odiv); //把div添加到body中
|
|
179
|
+
scrollbarWidth = odiv.offsetWidth - odiv.clientWidth; //相减
|
|
183
180
|
document.body.removeChild(odiv);
|
|
184
|
-
return scrollbarWidth
|
|
181
|
+
return scrollbarWidth; //返回滚动条宽度
|
|
185
182
|
},
|
|
186
183
|
|
|
187
184
|
/**
|
|
@@ -215,29 +212,27 @@ const common = {
|
|
|
215
212
|
*/
|
|
216
213
|
closeDialog(vmodel) {
|
|
217
214
|
if (vmodel) {
|
|
218
|
-
if (vmodel.name === 'ct-comfirm'
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
if (vmodel.name === 'ct-comfirm' ||
|
|
216
|
+
vmodel.$options.name === 'ctDialog' ||
|
|
217
|
+
vmodel.$options.name === 'ct-dialog' ||
|
|
218
|
+
vmodel.$options.name === 'ct-video') {
|
|
222
219
|
this.dialogList.deleteDialog(vmodel);
|
|
223
220
|
return;
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
221
|
+
} else {
|
|
226
222
|
this.closeDialog(vmodel.$parent);
|
|
227
223
|
}
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
224
|
+
} else {
|
|
230
225
|
return;
|
|
231
226
|
}
|
|
232
227
|
},
|
|
233
228
|
|
|
234
229
|
/**
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
230
|
+
* @method
|
|
231
|
+
* @param {Object} message 提示信息
|
|
232
|
+
* @param {Object} title 提示框标题
|
|
233
|
+
* @param {Object} options 参数 如confirmButtonText,cancelButtonText
|
|
234
|
+
* @desc 确认框
|
|
235
|
+
*/
|
|
241
236
|
confirm(message, title, options) {
|
|
242
237
|
let self = this;
|
|
243
238
|
|
|
@@ -288,8 +283,34 @@ const common = {
|
|
|
288
283
|
width: router.dialogWidth + 'px',
|
|
289
284
|
height: router.dialogHeight + 'px'
|
|
290
285
|
},
|
|
291
|
-
on: {
|
|
292
|
-
|
|
286
|
+
on: {}
|
|
287
|
+
}]
|
|
288
|
+
};
|
|
289
|
+
this.openDialog(dialogOption);
|
|
290
|
+
})
|
|
291
|
+
},
|
|
292
|
+
viewerfile(router, MediaAlbum, groupIndex, index) {
|
|
293
|
+
var self = this;
|
|
294
|
+
var width = parseInt(window.document.body.clientWidth * 0.8);
|
|
295
|
+
width = width > 1160 ? 1160 : width;
|
|
296
|
+
return new Promise((resolve, reject) => {
|
|
297
|
+
var dialogOption = {
|
|
298
|
+
title: router.pageTitle,
|
|
299
|
+
name: 'ct-viewerfile',
|
|
300
|
+
content: [{
|
|
301
|
+
component: 'ct-viewerfile',
|
|
302
|
+
attrs: {
|
|
303
|
+
showTitle: false,
|
|
304
|
+
MediaAlbum: MediaAlbum,
|
|
305
|
+
groupIndex: groupIndex || 0,
|
|
306
|
+
index: index || 0,
|
|
307
|
+
// width: self.modelPhotoselect.router.pageWidth + 'px',
|
|
308
|
+
// height: self.modelPhotoselect.router.pageHeight+'px',
|
|
309
|
+
width: width + "px",
|
|
310
|
+
height: parseInt(window.document.body.clientHeight * 0.8).toString() +
|
|
311
|
+
"px"
|
|
312
|
+
},
|
|
313
|
+
on: {}
|
|
293
314
|
}]
|
|
294
315
|
};
|
|
295
316
|
this.openDialog(dialogOption);
|
|
@@ -307,20 +328,15 @@ const common = {
|
|
|
307
328
|
if (parent) {
|
|
308
329
|
if (parent.$options.name === 'ElTabPane') {
|
|
309
330
|
return parent;
|
|
310
|
-
}
|
|
311
|
-
else if (evControl.$options.name === 'ctDialog') {
|
|
331
|
+
} else if (evControl.$options.name === 'ctDialog') {
|
|
312
332
|
return evControl.vmodel.pane;
|
|
313
|
-
}
|
|
314
|
-
else if (parent.$options.name === 'DataDrivenSearch') {
|
|
333
|
+
} else if (parent.$options.name === 'DataDrivenSearch') {
|
|
315
334
|
return parent;
|
|
316
|
-
}
|
|
317
|
-
else if (parent.$options.name === 'DataDrivenForm') {
|
|
335
|
+
} else if (parent.$options.name === 'DataDrivenForm') {
|
|
318
336
|
return parent;
|
|
319
|
-
}
|
|
320
|
-
else if (parent.$options.name === 'DataDrivendetail') {
|
|
337
|
+
} else if (parent.$options.name === 'DataDrivendetail') {
|
|
321
338
|
return parent;
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
339
|
+
} else {
|
|
324
340
|
return this.getParentPane(parent);
|
|
325
341
|
}
|
|
326
342
|
}
|
|
@@ -356,8 +372,7 @@ const common = {
|
|
|
356
372
|
if (currentKey.indexOf(j) < 0) {
|
|
357
373
|
if (typeof window[j] === 'function') {
|
|
358
374
|
rtn[j] = common.initFunction(window[j]);
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
375
|
+
} else {
|
|
361
376
|
rtn[j] = window[j];
|
|
362
377
|
}
|
|
363
378
|
delete window[j];
|
|
@@ -376,16 +391,14 @@ const common = {
|
|
|
376
391
|
initFunction(f) {
|
|
377
392
|
return function () {
|
|
378
393
|
if (arguments.length === 0) {
|
|
379
|
-
return f(typeof $fd!='undefined'
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
394
|
+
return f(typeof $fd != 'undefined' ? $fd : '');
|
|
395
|
+
} else {
|
|
382
396
|
var exStr = 'f(';
|
|
383
397
|
for (var i = 0; i < arguments.length; i++) {
|
|
384
398
|
exStr += 'arguments[' + i + ']';
|
|
385
399
|
if (i !== arguments.length - 1) {
|
|
386
400
|
exStr += ',';
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
401
|
+
} else {
|
|
389
402
|
exStr += ');';
|
|
390
403
|
}
|
|
391
404
|
}
|
|
@@ -410,12 +423,12 @@ const common = {
|
|
|
410
423
|
},
|
|
411
424
|
|
|
412
425
|
/**
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
426
|
+
* @method
|
|
427
|
+
* @param {Function} fun 执行方法
|
|
428
|
+
* @param {Object} para 执行方法的参数
|
|
429
|
+
* @desc 执行方法,装载自定义方法和参数在window上
|
|
430
|
+
* @returns {obj} 返回值
|
|
431
|
+
*/
|
|
419
432
|
excuteFun(fun, para) {
|
|
420
433
|
var self = this;
|
|
421
434
|
common.with(self);
|
|
@@ -426,12 +439,12 @@ const common = {
|
|
|
426
439
|
},
|
|
427
440
|
|
|
428
441
|
/**
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
442
|
+
* @method
|
|
443
|
+
* @param {String} fun 执行方法字符串
|
|
444
|
+
* @param {Object} para 执行方法的参数
|
|
445
|
+
* @desc 执行方法,装载自定义方法和参数在window上
|
|
446
|
+
* @returns {obj} 返回值
|
|
447
|
+
*/
|
|
435
448
|
excuteFunStr(funStr, para) {
|
|
436
449
|
var self = this;
|
|
437
450
|
common.with(self);
|
|
@@ -480,7 +493,9 @@ const common = {
|
|
|
480
493
|
byteArr[i] = fileContent.charCodeAt(i);
|
|
481
494
|
}
|
|
482
495
|
|
|
483
|
-
var blob = new Blob([new Uint8Array(byteArr)], {
|
|
496
|
+
var blob = new Blob([new Uint8Array(byteArr)], {
|
|
497
|
+
type: "application/ms-excel"
|
|
498
|
+
});
|
|
484
499
|
var url = window.URL.createObjectURL(blob);
|
|
485
500
|
|
|
486
501
|
var a = document.createElement("a");
|
|
@@ -494,8 +509,7 @@ const common = {
|
|
|
494
509
|
//revokeObjectURL会导致firefox不能下载。。。
|
|
495
510
|
//window.URL.revokeObjectURL(url);
|
|
496
511
|
document.body.removeChild(a);
|
|
497
|
-
}
|
|
498
|
-
else { //IE 10+
|
|
512
|
+
} else { //IE 10+
|
|
499
513
|
if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
|
|
500
514
|
return navigator.msSaveOrOpenBlob(blob, name);
|
|
501
515
|
}
|
|
@@ -537,8 +551,7 @@ const common = {
|
|
|
537
551
|
//单字节加1
|
|
538
552
|
if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
|
|
539
553
|
len++;
|
|
540
|
-
}
|
|
541
|
-
else {
|
|
554
|
+
} else {
|
|
542
555
|
len += 2;
|
|
543
556
|
}
|
|
544
557
|
}
|
|
@@ -572,11 +585,9 @@ const common = {
|
|
|
572
585
|
setScrollTop(total) {
|
|
573
586
|
if (document.getElementById("form-app")) {
|
|
574
587
|
document.getElementById("form-app").scrollTop = total;
|
|
575
|
-
}
|
|
576
|
-
else if (window.scrollTo) {
|
|
588
|
+
} else if (window.scrollTo) {
|
|
577
589
|
window.scrollTo(0, total)
|
|
578
|
-
}
|
|
579
|
-
else {
|
|
590
|
+
} else {
|
|
580
591
|
// Chrome
|
|
581
592
|
document.body.scrollTop = total
|
|
582
593
|
// Firefox
|
|
@@ -587,11 +598,11 @@ const common = {
|
|
|
587
598
|
},
|
|
588
599
|
|
|
589
600
|
/**
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
601
|
+
* 格式化日期
|
|
602
|
+
* @param date 日期
|
|
603
|
+
* @param format 格式化样式,例如yyyy-MM-dd HH:mm:ss E
|
|
604
|
+
* @return 格式化后的日期
|
|
605
|
+
*/
|
|
595
606
|
formatDate: function (date, format) {
|
|
596
607
|
var v = "";
|
|
597
608
|
if (typeof date === "string" || typeof date !== "object") {
|
|
@@ -687,14 +698,12 @@ const common = {
|
|
|
687
698
|
str = charUpper + str.slice(1);
|
|
688
699
|
return str;
|
|
689
700
|
},
|
|
690
|
-
getDataOfUpperLower(model,key){
|
|
691
|
-
if(model[key]){
|
|
701
|
+
getDataOfUpperLower(model, key) {
|
|
702
|
+
if (model[key]) {
|
|
692
703
|
return model[key];
|
|
693
|
-
}
|
|
694
|
-
else if(model[this.initialsToUpperCase(key)]){
|
|
704
|
+
} else if (model[this.initialsToUpperCase(key)]) {
|
|
695
705
|
return model[this.initialsToUpperCase(key)];
|
|
696
|
-
}
|
|
697
|
-
else if(model[this.initialsToLowerCase(key)]){
|
|
706
|
+
} else if (model[this.initialsToLowerCase(key)]) {
|
|
698
707
|
return model[this.initialsToLowerCase(key)];
|
|
699
708
|
}
|
|
700
709
|
return '';
|
|
@@ -720,8 +729,7 @@ const common = {
|
|
|
720
729
|
var reg = '';
|
|
721
730
|
if (dc == undefined || dc == "" || dc === "0") {
|
|
722
731
|
reg = /^(\-)?\d*$/;
|
|
723
|
-
}
|
|
724
|
-
else {
|
|
732
|
+
} else {
|
|
725
733
|
if (dc === -1) dc = 12;
|
|
726
734
|
reg = new RegExp("^(\\-)?\\d*[.]{0,1}(\\d{1," + dc + "})?$");
|
|
727
735
|
}
|
|
@@ -729,8 +737,7 @@ const common = {
|
|
|
729
737
|
// if (value.indexOf(".") !== -1 && value.indexOf(".") !== value.length - 1 && value.indexOf(".") < value.length - num - 1 && num && num > 0) {
|
|
730
738
|
// value = oldValue;
|
|
731
739
|
// }
|
|
732
|
-
}
|
|
733
|
-
else {
|
|
740
|
+
} else {
|
|
734
741
|
value = oldValue;
|
|
735
742
|
}
|
|
736
743
|
|
|
@@ -745,16 +752,16 @@ const common = {
|
|
|
745
752
|
*/
|
|
746
753
|
numToFloat(value, num) {
|
|
747
754
|
if (value && num && num > 0) {
|
|
748
|
-
let ls=value.toString().split('.');
|
|
749
|
-
let l1=0;
|
|
750
|
-
value=ls[0]+'.';
|
|
751
|
-
if(ls.length>1){
|
|
752
|
-
value=value+ls[1];
|
|
753
|
-
l1=ls[1].length;
|
|
755
|
+
let ls = value.toString().split('.');
|
|
756
|
+
let l1 = 0;
|
|
757
|
+
value = ls[0] + '.';
|
|
758
|
+
if (ls.length > 1) {
|
|
759
|
+
value = value + ls[1];
|
|
760
|
+
l1 = ls[1].length;
|
|
754
761
|
}
|
|
755
|
-
if(num>l1){
|
|
756
|
-
for(var i=0;i<num-l1;i++){
|
|
757
|
-
value=value+'0';
|
|
762
|
+
if (num > l1) {
|
|
763
|
+
for (var i = 0; i < num - l1; i++) {
|
|
764
|
+
value = value + '0';
|
|
758
765
|
}
|
|
759
766
|
}
|
|
760
767
|
}
|
|
@@ -769,8 +776,9 @@ const common = {
|
|
|
769
776
|
*/
|
|
770
777
|
isAssetTypeAnImage(ext) {
|
|
771
778
|
return [
|
|
772
|
-
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'
|
|
773
|
-
|
|
779
|
+
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'
|
|
780
|
+
].
|
|
781
|
+
indexOf(ext.toLowerCase()) !== -1;
|
|
774
782
|
},
|
|
775
783
|
|
|
776
784
|
/**
|
|
@@ -651,6 +651,9 @@ export default {
|
|
|
651
651
|
lookOwner() {
|
|
652
652
|
this.codeOwner = true;
|
|
653
653
|
},
|
|
654
|
+
loadBaseInfo() {
|
|
655
|
+
this.model.loadBaseInfo();
|
|
656
|
+
},
|
|
654
657
|
handleClick(tab, event) {
|
|
655
658
|
let i = tab.index;
|
|
656
659
|
if (this.model.tags2 && this.model.tags2[i]) {
|
|
@@ -713,16 +716,26 @@ export default {
|
|
|
713
716
|
router.submitFormField.forEach((v) => {
|
|
714
717
|
submitData[v] = field.list[field.listIndex].code;
|
|
715
718
|
});
|
|
716
|
-
}
|
|
719
|
+
}
|
|
720
|
+
else {
|
|
717
721
|
router.submitFormField.forEach((v) => {
|
|
718
722
|
submitData[v] = self.model.fields1Dic[v].value;
|
|
719
723
|
});
|
|
720
724
|
}
|
|
725
|
+
if(router.id=="PropertyEdit"){
|
|
726
|
+
callBack="loadBaseInfo"
|
|
727
|
+
}
|
|
721
728
|
}
|
|
722
729
|
|
|
723
|
-
if (callBack
|
|
724
|
-
|
|
725
|
-
|
|
730
|
+
if (callBack) {
|
|
731
|
+
if(callBack=='loadOperation'){
|
|
732
|
+
this.routerClickHandler(router, submitData, self.loadOperation);
|
|
733
|
+
}
|
|
734
|
+
else if(callBack=='loadBaseInfo'){
|
|
735
|
+
this.routerClickHandler(router, submitData, self.loadBaseInfo);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
726
739
|
this.routerClickHandler(router, submitData);
|
|
727
740
|
}
|
|
728
741
|
},
|
|
@@ -32,20 +32,9 @@
|
|
|
32
32
|
{{ tag.label }}
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
style="
|
|
39
|
-
font-weight: bold;
|
|
40
|
-
font-size: 13px;
|
|
41
|
-
margin-top: 10px;
|
|
42
|
-
background: rgb(236, 249, 255);
|
|
43
|
-
flex: 1;
|
|
44
|
-
align-items: center;
|
|
45
|
-
padding: 5px;
|
|
46
|
-
border-radius: 5px;
|
|
47
|
-
"
|
|
48
|
-
></div>
|
|
35
|
+
<div v-if="model.fields1Dic.PropertyDepict" v-html="model.fields1Dic.PropertyDepict.value"
|
|
36
|
+
style="font-weight: bold;font-size: 13px; margin-top: 10px;background: rgb(236, 249, 255); flex: 1;align-items: center;padding: 5px;border-radius: 5px;">
|
|
37
|
+
</div>
|
|
49
38
|
</div>
|
|
50
39
|
<div class="head-but">
|
|
51
40
|
<div>
|
|
@@ -159,81 +148,48 @@
|
|
|
159
148
|
<div class="hous-info base-box">
|
|
160
149
|
<div class="info-conten">
|
|
161
150
|
<div class="hous-t">
|
|
162
|
-
<ct-albums
|
|
163
|
-
:mediaAlbums="model.mediaAlbums"
|
|
164
|
-
:noMediaUrl="model.noMediaUrl"
|
|
165
|
-
@addMedia="addMedia"
|
|
166
|
-
:title="model.title"
|
|
167
|
-
>
|
|
151
|
+
<ct-albums :mediaAlbums="model.mediaAlbums" :noMediaUrl="model.noMediaUrl" @addMedia="addMedia" :title="model.title">
|
|
168
152
|
</ct-albums>
|
|
169
153
|
</div>
|
|
170
154
|
<div class="hous-b">
|
|
171
|
-
<img
|
|
172
|
-
:src="model.fields1Dic.ewmUrl.value"
|
|
173
|
-
alt=""
|
|
174
|
-
class="code-ewm"
|
|
175
|
-
/>
|
|
155
|
+
<img :src="model.fields1Dic.ewmUrl.value" alt="" class="code-ewm"/>
|
|
176
156
|
<div class="info-row mb20 mt5">
|
|
177
157
|
<div class="row-i">
|
|
178
|
-
<span>{{ model.fields1Dic.Price.label }}</span
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
v-html="model.fields1Dic.Price.value"
|
|
182
|
-
></span
|
|
183
|
-
><span class="base-clolr">{{
|
|
184
|
-
model.fields1Dic.Price.unitName
|
|
185
|
-
}}</span>
|
|
158
|
+
<span>{{ model.fields1Dic.Price.label }}</span>
|
|
159
|
+
<span class="base-clolr expand-f" v-html="model.fields1Dic.Price.value"></span>
|
|
160
|
+
<span class="base-clolr">{{ model.fields1Dic.Price.unitName}}</span>
|
|
186
161
|
<img src="../../../assets/jsq.png" class="img-jsq" alt="" />
|
|
187
162
|
</div>
|
|
188
163
|
<div class="row-i">
|
|
189
|
-
<span>{{ model.fields1Dic.PriceUnit.label }}</span
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
></span
|
|
194
|
-
><span class="base-clolr">{{
|
|
195
|
-
model.fields1Dic.PriceUnit.unitName
|
|
196
|
-
}}</span>
|
|
164
|
+
<span>{{ model.fields1Dic.PriceUnit.label }}</span>
|
|
165
|
+
<span class="base-clolr expand-f" v-html="model.fields1Dic.PriceUnit.value">
|
|
166
|
+
</span>
|
|
167
|
+
<span class="base-clolr">{{ model.fields1Dic.PriceUnit.unitName}}</span>
|
|
197
168
|
</div>
|
|
198
169
|
<div v-if="model.fields1Dic.PriceLine" class="row-i">
|
|
199
170
|
<span>{{ model.fields1Dic.PriceLine.label }}</span>
|
|
200
171
|
<div>
|
|
201
|
-
{{ model.fields1Dic.PriceLine.value
|
|
202
|
-
}}{{ model.fields1Dic.PriceLine.unitName }}
|
|
172
|
+
{{ model.fields1Dic.PriceLine.value}}{{ model.fields1Dic.PriceLine.unitName }}
|
|
203
173
|
</div>
|
|
204
174
|
</div>
|
|
205
175
|
</div>
|
|
206
176
|
<div class="info-row">
|
|
207
177
|
<div v-if="model.fields1Dic.PriceLine" class="row-i">
|
|
208
|
-
<span>{{ model.fields1Dic.MarketRateOfReturn.label }}</span
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
><span>{{
|
|
212
|
-
model.fields1Dic.MarketRateOfReturn.unitName
|
|
213
|
-
}}</span>
|
|
178
|
+
<span>{{ model.fields1Dic.MarketRateOfReturn.label }}</span>
|
|
179
|
+
<span>{{ model.fields1Dic.MarketRateOfReturn.value }}</span>
|
|
180
|
+
<span>{{model.fields1Dic.MarketRateOfReturn.unitName}}</span>
|
|
214
181
|
</div>
|
|
215
182
|
<div v-if="model.fields1Dic.EstimatePriceRent" class="row-i">
|
|
216
183
|
<span>{{ model.fields1Dic.EstimatePriceRent.label }}</span>
|
|
217
184
|
<div>
|
|
218
|
-
{{ model.fields1Dic.EstimatePriceRent.value
|
|
219
|
-
|
|
220
|
-
model.fields1Dic.EstimatePriceRent.unitName
|
|
221
|
-
}}</span>
|
|
185
|
+
{{ model.fields1Dic.EstimatePriceRent.value}}
|
|
186
|
+
<span>{{model.fields1Dic.EstimatePriceRent.unitName}}</span>
|
|
222
187
|
</div>
|
|
223
188
|
</div>
|
|
224
|
-
<div
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
<span>{{
|
|
229
|
-
model.fields1Dic.EstimatePriceRentUnit.label
|
|
230
|
-
}}</span
|
|
231
|
-
><span>{{
|
|
232
|
-
model.fields1Dic.EstimatePriceRentUnit.value
|
|
233
|
-
}}</span
|
|
234
|
-
><span>{{
|
|
235
|
-
model.fields1Dic.EstimatePriceRentUnit.unitName
|
|
236
|
-
}}</span>
|
|
189
|
+
<div v-if="model.fields1Dic.EstimatePriceRentUnit" class="row-i">
|
|
190
|
+
<span>{{model.fields1Dic.EstimatePriceRentUnit.label}}</span>
|
|
191
|
+
<span>{{model.fields1Dic.EstimatePriceRentUnit.value}}</span>
|
|
192
|
+
<span>{{ model.fields1Dic.EstimatePriceRentUnit.unitName}}</span>
|
|
237
193
|
</div>
|
|
238
194
|
</div>
|
|
239
195
|
|
|
@@ -241,15 +197,13 @@
|
|
|
241
197
|
<div class="mid-i">
|
|
242
198
|
<div>{{ model.fields1Dic.Area.label }}</div>
|
|
243
199
|
<div>
|
|
244
|
-
{{ model.fields1Dic.Area.value
|
|
245
|
-
}}{{ model.fields1Dic.Area.unitName }}
|
|
200
|
+
{{ model.fields1Dic.Area.value}}{{ model.fields1Dic.Area.unitName }}
|
|
246
201
|
</div>
|
|
247
202
|
</div>
|
|
248
203
|
<div class="mid-i">
|
|
249
204
|
<div>{{ model.fields1Dic.AreaNet.label }}</div>
|
|
250
205
|
<div>
|
|
251
|
-
{{ model.fields1Dic.AreaNet.value
|
|
252
|
-
}}{{ model.fields1Dic.AreaNet.unitName }}
|
|
206
|
+
{{ model.fields1Dic.AreaNet.value}}{{ model.fields1Dic.AreaNet.unitName }}
|
|
253
207
|
</div>
|
|
254
208
|
</div>
|
|
255
209
|
<div class="mid-i">
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<ct-contact :key="refreshKey" :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
|
|
53
53
|
</div>
|
|
54
54
|
<div ref="routers" style="margin-top: 16px;display: flex;">
|
|
55
|
-
<component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length
|
|
55
|
+
<component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length)" :key="index"
|
|
56
56
|
:ref="'routers'+index"
|
|
57
57
|
v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
|
|
58
58
|
:is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
// this.loadOperation();
|
|
172
171
|
this.setDetailStyle();
|
|
173
172
|
this.$nextTick(() => {
|
|
174
173
|
window.addEventListener("resize", (ev) => {
|
|
@@ -249,11 +248,6 @@
|
|
|
249
248
|
}
|
|
250
249
|
});
|
|
251
250
|
},
|
|
252
|
-
loadOperation() {
|
|
253
|
-
this.model._operationList=null;
|
|
254
|
-
this.model._operationRouters=[];
|
|
255
|
-
this.model.getOperationList();
|
|
256
|
-
},
|
|
257
251
|
loadBaseInfo() {
|
|
258
252
|
this.model.loadBaseInfo();
|
|
259
253
|
},
|