centaline-data-driven 1.1.56 → 1.1.60
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 +3 -0
- package/src/Form.vue +1 -1
- package/src/centaline/css/common.css +4 -0
- package/src/centaline/css/max.css +2 -2
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +97 -44
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +6 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +22 -9
- package/src/centaline/dynamicSo/src/dynamicSo.vue +1 -0
- package/src/centaline/dynamicSos/src/dynamicSos.vue +1 -0
- package/src/centaline/formData/index.js +1 -0
- package/src/centaline/loader/src/ctl/Base.js +9 -0
- package/src/centaline/loader/src/ctl/Detail.js +57 -4
- package/src/centaline/loader/src/ctl/File.js +0 -4
- package/src/centaline/loader/src/ctl/SearchTable.js +15 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +18 -1
- package/src/main.js +3 -3
- 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
package/src/Form.vue
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
width:4px;
|
|
147
147
|
height:6px;
|
|
148
148
|
}
|
|
149
|
-
.ct-table
|
|
149
|
+
.ct-table-auto{
|
|
150
150
|
white-space: nowrap;
|
|
151
151
|
}
|
|
152
152
|
.max-cover-list-item .el-input__icon{
|
|
@@ -205,4 +205,4 @@
|
|
|
205
205
|
.el-input-group__append, .el-input-group__prepend {
|
|
206
206
|
color: #666;
|
|
207
207
|
border-color:#cecece;
|
|
208
|
-
}
|
|
208
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="main" v-if="model!==null">
|
|
2
|
+
<div ref="main" class="main" v-if="model!==null">
|
|
3
3
|
<div class="details-content">
|
|
4
|
-
<div class="details-head base-box mb10">
|
|
4
|
+
<div ref="header" class="details-head base-box mb10">
|
|
5
5
|
<div class="head-type">{{model.fields1Dic.Trade.value}}</div>
|
|
6
6
|
<div class="head-info">
|
|
7
7
|
<div class="title">
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
|
-
|
|
56
|
-
<div class="details-mid y-auto" style="height:570px">
|
|
55
|
+
<div ref="detail" class="details-mid y-auto" :style="{'height':model.detailHeight?model.detailHeight+'px':'780px'}">
|
|
57
56
|
<div class="mid-l">
|
|
58
57
|
<!-- 图片内容部分 -->
|
|
59
58
|
<div class="hous-info base-box">
|
|
@@ -112,7 +111,7 @@
|
|
|
112
111
|
<div class="row-i"><span>{{model.fields1Dic.PriceLine.label}}</span><div>{{model.fields1Dic.PriceLine.value}}{{model.fields1Dic.PriceLine.unitName}}</div></div></div>
|
|
113
112
|
<div class="info-row">
|
|
114
113
|
<div class="row-i">
|
|
115
|
-
<span >{{model.fields1Dic.
|
|
114
|
+
<span >{{model.fields1Dic.MarketRateOfReturn.label}}</span><span>{{model.fields1Dic.MarketRateOfReturn.value}} </span><span>{{model.fields1Dic.MarketRateOfReturn.unitName}}</span>
|
|
116
115
|
</div>
|
|
117
116
|
<div class="row-i"><span>{{model.fields1Dic.EstimatePriceRent.label}}</span><div>{{model.fields1Dic.EstimatePriceRent.value}}<span>{{model.fields1Dic.EstimatePriceRent.unitName}}</span></div></div>
|
|
118
117
|
<div class="row-i"><span>{{model.fields1Dic.EstimatePriceRentUnit.label}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.value}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.unitName}}</span></div>
|
|
@@ -127,39 +126,9 @@
|
|
|
127
126
|
</div>
|
|
128
127
|
</div>
|
|
129
128
|
</div>
|
|
130
|
-
<div class="info-conten-b" v-show="allInfo">
|
|
131
|
-
<div class="info-row mb20">
|
|
132
|
-
<div class="row-i"><span>建筑用途:</span><span>写字楼</span></div>
|
|
133
|
-
<div class="row-i"><span>产权:</span><span>公司</span></div>
|
|
134
|
-
<div class="row-i"><span>产权状况:</span><span>拍卖</span></div>
|
|
135
|
-
<div class="row-i"><span>现状:</span><span>空房</span></div>
|
|
136
|
-
<div class="row-i"><span>付费:</span><span>各付各税</span></div>
|
|
137
|
-
<div class="row-i"><span>佣金:</span><span>600元</span></div>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
<div class="info-conten-b" v-show="allInfo">
|
|
129
|
+
<div v-for="(col, index) in collapse" :key="index" class="info-conten-b" v-show="allInfo">
|
|
141
130
|
<div class="info-row mb20">
|
|
142
|
-
<div class="row-i"><span
|
|
143
|
-
<div class="row-i"><span>看楼方式:</span><span>提前预约</span></div>
|
|
144
|
-
<div class="row-i"><span>装修:</span><span>豪装</span></div>
|
|
145
|
-
<div class="row-i"><span>租赁期:</span><span>半年</span></div>
|
|
146
|
-
<div class="row-i"><span>付款方式:</span><span>一次性全款</span></div>
|
|
147
|
-
<div class="row-i"><span>可否注册公司:</span><span>是</span></div>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
<div class="info-conten-b" v-show="allInfo">
|
|
151
|
-
<div class="info-row mb20">
|
|
152
|
-
<div class="row-i"><span>按揭银行:</span><span>中国农行</span></div>
|
|
153
|
-
<div class="row-i"><span>欠款额度:</span><span>0.00万</span></div>
|
|
154
|
-
<div class="row-i"><span>管理费:</span><span></span></div>
|
|
155
|
-
<div class="row-i"><span>使用年限:</span><span>3年</span></div>
|
|
156
|
-
<div class="row-i"><span>来源:</span><span></span></div>
|
|
157
|
-
<div class="row-i"><span> </span><span> </span></div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
<div class="info-conten-b" v-show="allInfo">
|
|
161
|
-
<div class="info-row mb20">
|
|
162
|
-
<div class="row-i"><span>房源描述:</span><span></span></div>
|
|
131
|
+
<div v-for="(c, i) in col" :key="i" :class="c.singleLine===true?'row-i100':'row-i'"><span>{{c.label}}</span><span>{{c.value}}</span></div>
|
|
163
132
|
</div>
|
|
164
133
|
</div>
|
|
165
134
|
<div class="open-mero" @click="allInfo=!allInfo">{{allInfo?'收起全部':'查看全部'}}
|
|
@@ -211,7 +180,16 @@
|
|
|
211
180
|
</div>
|
|
212
181
|
<div class="tablist-info base-box">
|
|
213
182
|
<div class="details-tabs-box">
|
|
214
|
-
|
|
183
|
+
<el-menu :default-active="model.activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
|
|
184
|
+
<el-menu-item v-for="(col, index) in model.tags1" :key="col.appID" :index="index.toString()">
|
|
185
|
+
{{col.appName}}
|
|
186
|
+
</el-menu-item>
|
|
187
|
+
</el-menu>
|
|
188
|
+
<ct-searchlist v-if="model.searchConditionApiTags1" :key="model.searchlistKey"
|
|
189
|
+
:apiParam="model.paramDataTags1"
|
|
190
|
+
:searchConditionApi="model.searchConditionApiTags1"
|
|
191
|
+
:searchDataApi="model.searchDataApiTags1"></ct-searchlist>
|
|
192
|
+
<!-- <el-tabs v-model="follow">
|
|
215
193
|
<el-tab-pane label="跟进" name="first">
|
|
216
194
|
<el-form
|
|
217
195
|
class="follow-search-bar"
|
|
@@ -228,7 +206,7 @@
|
|
|
228
206
|
:value="item.value"
|
|
229
207
|
>
|
|
230
208
|
</el-option>
|
|
231
|
-
</el-select>
|
|
209
|
+
</el-select>
|
|
232
210
|
<el-input
|
|
233
211
|
class="w300 mr10"
|
|
234
212
|
placeholder="请输入"
|
|
@@ -281,7 +259,7 @@
|
|
|
281
259
|
<el-tab-pane label="合并盘" name="">合并盘</el-tab-pane>
|
|
282
260
|
<el-tab-pane label="佐证" name="">佐证</el-tab-pane>
|
|
283
261
|
<el-tab-pane label="销控表" name="">销控表</el-tab-pane>
|
|
284
|
-
</el-tabs>
|
|
262
|
+
</el-tabs> -->
|
|
285
263
|
</div>
|
|
286
264
|
</div>
|
|
287
265
|
<div class="contribute-info base-box">
|
|
@@ -317,8 +295,8 @@
|
|
|
317
295
|
<!-- 右侧委托信息 -->
|
|
318
296
|
<div class="mid-r">
|
|
319
297
|
<div class="take-info base-box">
|
|
320
|
-
<div>该房源共<span class="red-text">
|
|
321
|
-
<div>最近7天带看<span class="red-text">
|
|
298
|
+
<div>该房源共<span class="red-text">{{model.fields1Dic.LookCustomerCount.value}}</span>位客户看房</div>
|
|
299
|
+
<div>最近7天带看<span class="red-text">{{model.fields1Dic.CustomerLookCount7.value}}</span>次,总带看<span class="red-text">{{model.fields1Dic.CustomerLookCountAll.value}}</span>次。</div>
|
|
322
300
|
</div>
|
|
323
301
|
<div class="staff-info base-box">
|
|
324
302
|
<el-tabs v-model="opening " @tab-click="handleClick">
|
|
@@ -501,9 +479,13 @@
|
|
|
501
479
|
|
|
502
480
|
<script>
|
|
503
481
|
import dynamicElement from '../../mixins/dynamicElement';
|
|
482
|
+
import dynamicSearchList from '../../dynamicSearchList/src/dynamicSearchList.vue';
|
|
504
483
|
export default {
|
|
505
484
|
name: 'ct-PropertyDetailRET',
|
|
506
485
|
mixins: [dynamicElement],
|
|
486
|
+
components: {
|
|
487
|
+
'ct-searchlist': dynamicSearchList,
|
|
488
|
+
},
|
|
507
489
|
props: {
|
|
508
490
|
vmodel: Object,
|
|
509
491
|
api: String,
|
|
@@ -601,7 +583,7 @@
|
|
|
601
583
|
},
|
|
602
584
|
mounted() {
|
|
603
585
|
var self = this;
|
|
604
|
-
this.$nextTick(function () {
|
|
586
|
+
this.$nextTick(function () {
|
|
605
587
|
if (self.vmodel) {
|
|
606
588
|
self.load(self.vmodel);
|
|
607
589
|
}
|
|
@@ -613,9 +595,56 @@
|
|
|
613
595
|
}
|
|
614
596
|
});
|
|
615
597
|
},
|
|
598
|
+
activated() {
|
|
599
|
+
this.$nextTick(() => {
|
|
600
|
+
this.setDetailHeight();
|
|
601
|
+
})
|
|
602
|
+
},
|
|
616
603
|
methods: {
|
|
617
604
|
load(data) {
|
|
618
|
-
this.model = data;
|
|
605
|
+
this.model = data;
|
|
606
|
+
this.loadFields();
|
|
607
|
+
},
|
|
608
|
+
loadFields() {
|
|
609
|
+
var self = this;
|
|
610
|
+
self.collapse=[];
|
|
611
|
+
var collapseItemArr = [];
|
|
612
|
+
var col=0;
|
|
613
|
+
var colCount=4;
|
|
614
|
+
self.model.fields2Dic.forEach((v, index) => {
|
|
615
|
+
if(v.type===13){
|
|
616
|
+
collapseItemArr = [];
|
|
617
|
+
col=0;
|
|
618
|
+
}
|
|
619
|
+
else if(v.singleLine){
|
|
620
|
+
if(collapseItemArr.length>0){
|
|
621
|
+
self.collapse.push(collapseItemArr);
|
|
622
|
+
collapseItemArr = [];
|
|
623
|
+
}
|
|
624
|
+
collapseItemArr.push(v);
|
|
625
|
+
self.collapse.push(collapseItemArr);
|
|
626
|
+
collapseItemArr = [];
|
|
627
|
+
col=0;
|
|
628
|
+
}
|
|
629
|
+
else if(v.spanCols){
|
|
630
|
+
collapseItemArr.push(v);
|
|
631
|
+
col=col+v.spanCols;
|
|
632
|
+
if(col===colCount || index===self.model.fields2Dic.length-1){
|
|
633
|
+
self.collapse.push(collapseItemArr);
|
|
634
|
+
collapseItemArr = [];
|
|
635
|
+
col=0;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
else{
|
|
639
|
+
collapseItemArr.push(v);
|
|
640
|
+
col=col+1;
|
|
641
|
+
if(col===colCount || index===self.model.fields2Dic.length-1){
|
|
642
|
+
self.collapse.push(collapseItemArr);
|
|
643
|
+
collapseItemArr = [];
|
|
644
|
+
col=0;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
});
|
|
619
648
|
},
|
|
620
649
|
lookOwner() {
|
|
621
650
|
this.codeOwner = true
|
|
@@ -625,8 +654,29 @@
|
|
|
625
654
|
},
|
|
626
655
|
handleClick(tab, event) {
|
|
627
656
|
console.log(tab, event);
|
|
657
|
+
},
|
|
658
|
+
setDetailHeight() {
|
|
659
|
+
this.$nextTick(() => {
|
|
660
|
+
if (this.$refs.detail) {
|
|
661
|
+
var h1 = this.$refs.main.offsetHeight | 0;
|
|
662
|
+
var h2 = this.$refs.detail.offsetTop | 0;
|
|
663
|
+
let detailHeight = h1 - h2 - 5;
|
|
664
|
+
this.model.detailHeight = detailHeight < 40 ? 350 : detailHeight;
|
|
665
|
+
console.log(h1);
|
|
666
|
+
console.log(h2);
|
|
667
|
+
console.log(this.model.detailHeight);
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
},
|
|
671
|
+
handleSelect(key, keyPath) {
|
|
672
|
+
if(this.model.tags1 && this.model.tags1[key]){
|
|
673
|
+
this.model.searchlistKey=this.model.searchlistKey+1;
|
|
674
|
+
this.model.searchConditionApiTags1=this.model.tags1[key].searchConditionApiUrl||'';
|
|
675
|
+
this.model.searchDataApiTags1=this.model.tags1[key].searchDataApiUrl||'';
|
|
676
|
+
this.model.paramDataTags1=this.model.tags1[key].paramData||'';
|
|
628
677
|
}
|
|
629
678
|
},
|
|
679
|
+
}
|
|
630
680
|
}
|
|
631
681
|
</script>
|
|
632
682
|
<style lang="scss" scoped>
|
|
@@ -912,6 +962,9 @@
|
|
|
912
962
|
.row-i{
|
|
913
963
|
width: 25%;
|
|
914
964
|
}
|
|
965
|
+
.row-i100{
|
|
966
|
+
width: 100%;
|
|
967
|
+
}
|
|
915
968
|
}
|
|
916
969
|
.open-mero{
|
|
917
970
|
text-align: center;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:headers="headers"
|
|
14
14
|
:before-upload="beforeUploadProcess"
|
|
15
15
|
:on-success="handleAvatarSuccess"
|
|
16
|
+
:on-progress="uploadProcess"
|
|
16
17
|
>
|
|
17
18
|
<i slot="default" class="el-icon-plus"></i>
|
|
18
19
|
<div slot="tip" class="el-upload__tip errorMessage" v-show="!imgValid">{{validMessage}}</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</el-tabs>
|
|
34
34
|
<!--分组-->
|
|
35
35
|
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange">
|
|
36
|
-
<el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock">
|
|
36
|
+
<el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock" :class="item.lock?'ct-collapse-item-title':''">
|
|
37
37
|
<template slot="title">
|
|
38
38
|
<i class="sign"></i>
|
|
39
39
|
{{item.label}}
|
|
@@ -557,8 +557,12 @@
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
</script>
|
|
560
|
-
<style
|
|
560
|
+
<style>
|
|
561
561
|
.el-collapse{
|
|
562
562
|
border-top: none;
|
|
563
563
|
}
|
|
564
|
+
.ct-collapse-item-title .el-collapse-item__header
|
|
565
|
+
{
|
|
566
|
+
color:#303133 !important;
|
|
567
|
+
}
|
|
564
568
|
</style>
|
|
@@ -22,18 +22,19 @@
|
|
|
22
22
|
<!--表头-->
|
|
23
23
|
<thead ref="tableHead">
|
|
24
24
|
<tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr">
|
|
25
|
-
<th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td">
|
|
25
|
+
<th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td" :class="[model.tdClass]">
|
|
26
26
|
<input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" class="checkbox-td-1" />
|
|
27
27
|
</th>
|
|
28
28
|
<th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns"
|
|
29
29
|
v-if="column.show" class="ct-td ct-searchtable-th"
|
|
30
30
|
:rowspan="column.rowspan"
|
|
31
31
|
:colspan="column.colspan"
|
|
32
|
-
:class="[colHasWidth[colIndex],column.sortAction,
|
|
32
|
+
:class="[colHasWidth[colIndex],column.sortAction,model.tdClass,
|
|
33
33
|
colIndex === leftShadow?'shadowLeft':null,
|
|
34
34
|
colIndex === rightShadow?'shadowRight':null,
|
|
35
35
|
column.fixed === 'left'?'left-fixation-th':null,
|
|
36
36
|
column.fixed === 'right'?'right-fixation-th':null,
|
|
37
|
+
column.width === undefined?'ct-table-auto':null,
|
|
37
38
|
typeof column.fixed === 'undefined'?'right-no-fixation-th':null]"
|
|
38
39
|
@mousemove="thMouseMoveHandle($event)" @mousedown="thMouseDownHandle($event,colIndex)"
|
|
39
40
|
v-bind="column.attrs">
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
:ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
|
|
68
69
|
class="ct-tr"
|
|
69
70
|
:style="row.$style">
|
|
70
|
-
<td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" align="center">
|
|
71
|
+
<td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]" align="center">
|
|
71
72
|
<input v-if="!model.rightMulti || row[model.rightMulti] == 1" type="checkbox" v-model="row.$select" @change="selectOne($event)" class="checkbox-td-1" />
|
|
72
73
|
</td>
|
|
73
74
|
<td :ref="column.fixed?(column.fixed==='left'?'headLeftTds':'headRightTds'):null"
|
|
@@ -75,10 +76,11 @@
|
|
|
75
76
|
v-if="tdShow(column, row)"
|
|
76
77
|
:rowspan="tdRowspan(column, row)"
|
|
77
78
|
class="ct-td"
|
|
78
|
-
:class="[colHasWidth[colIndex],
|
|
79
|
+
:class="[colHasWidth[colIndex],model.tdClass,
|
|
79
80
|
colIndex === leftShadow?'shadowLeft':null,
|
|
80
81
|
colIndex === rightShadow?'shadowRight':null,
|
|
81
82
|
column.fixed === 'left'?'left-fixation':null,
|
|
83
|
+
column.width === undefined?'ct-table-auto':null,
|
|
82
84
|
column.fixed === 'right'?'right-fixation':null]"
|
|
83
85
|
v-bind="column.attrs">
|
|
84
86
|
<!--操作列-->
|
|
@@ -107,8 +109,6 @@
|
|
|
107
109
|
</td>
|
|
108
110
|
</tr>
|
|
109
111
|
|
|
110
|
-
|
|
111
|
-
|
|
112
112
|
<!--适配滚动条-->
|
|
113
113
|
<tr v-else v-bind:style="{ height: row.$heigth + 'px' }"></tr>
|
|
114
114
|
</tbody>
|
|
@@ -169,7 +169,6 @@
|
|
|
169
169
|
},
|
|
170
170
|
activated() {
|
|
171
171
|
this.$nextTick(() => {
|
|
172
|
-
// this.calculatingRowHeight();
|
|
173
172
|
this.setTableHeight();
|
|
174
173
|
})
|
|
175
174
|
},
|
|
@@ -881,6 +880,7 @@
|
|
|
881
880
|
|
|
882
881
|
.ct-searchtable .ct-table {
|
|
883
882
|
min-width: 100%;
|
|
883
|
+
border-collapse: collapse;
|
|
884
884
|
}
|
|
885
885
|
|
|
886
886
|
.ct-searchtable .ct-table th {
|
|
@@ -889,14 +889,27 @@
|
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
.ct-searchtable .ct-tr > .ct-td {
|
|
892
|
-
/*border: 1px solid #e7e8eb
|
|
892
|
+
/*border: 1px solid #e7e8eb;
|
|
893
893
|
border-bottom: 1px solid #e7e8eb;
|
|
894
|
-
|
|
894
|
+
border-right: 1px solid #e7e8eb;
|
|
895
895
|
border-left: 1px solid #e7e8eb;*/
|
|
896
896
|
padding: 2px 20px;
|
|
897
897
|
cursor: default;
|
|
898
898
|
background-color: #ffffff;
|
|
899
899
|
}
|
|
900
|
+
.ct-searchtable .ct-tr > .ct-td1 {
|
|
901
|
+
border-right: 1px solid #e7e8eb;
|
|
902
|
+
border-left: 1px solid #e7e8eb;
|
|
903
|
+
}
|
|
904
|
+
.ct-searchtable .ct-tr:last-child > .ct-td1 {
|
|
905
|
+
border-bottom: 1px solid #e7e8eb;
|
|
906
|
+
}
|
|
907
|
+
.ct-searchtable .ct-tr > .ct-td2 {
|
|
908
|
+
border-bottom: 1px solid #e7e8eb;
|
|
909
|
+
}
|
|
910
|
+
.ct-searchtable .ct-tr > .ct-td3 {
|
|
911
|
+
border: 1px solid #e7e8eb;
|
|
912
|
+
}
|
|
900
913
|
|
|
901
914
|
.shadowLeft {
|
|
902
915
|
border-right: 1px solid #e7e8eb;
|
|
@@ -231,6 +231,7 @@ const formData = {
|
|
|
231
231
|
//获取后台数据,并返回脚本。
|
|
232
232
|
execServerScript(action, object, successCallback) {
|
|
233
233
|
let formData = this;//作用域保存
|
|
234
|
+
debugger;
|
|
234
235
|
//是否是行内触发的
|
|
235
236
|
let data = this.getListField(this.form.scripts.$fd, null, null);
|
|
236
237
|
object.editMode = data ? 1 : 0;
|
|
@@ -254,6 +254,15 @@ const Base = function (source) {
|
|
|
254
254
|
get autoSearch() {
|
|
255
255
|
return source.autoSearch==undefined? false:source.autoSearch;
|
|
256
256
|
},
|
|
257
|
+
get spanCols() {
|
|
258
|
+
return source.spanCols;
|
|
259
|
+
},
|
|
260
|
+
get rows() {
|
|
261
|
+
return source.rows;
|
|
262
|
+
},
|
|
263
|
+
get singleLine() {
|
|
264
|
+
return source.singleLine;
|
|
265
|
+
},
|
|
257
266
|
};
|
|
258
267
|
|
|
259
268
|
return rtn;
|
|
@@ -8,11 +8,17 @@ const Detail = function (source,para ,callBack) {
|
|
|
8
8
|
var init = function (data) {
|
|
9
9
|
var rtn = {
|
|
10
10
|
_fields1Dic: null,//字典,方便取值,属性集合(用户固定部分)
|
|
11
|
-
_fields2Dic: null
|
|
11
|
+
_fields2Dic: null,//数组,方便遍历
|
|
12
12
|
_actionRouterLabel: null,//标签
|
|
13
13
|
_otherTradeActionRouter: null,//对应另外种交易的 router 如:本盘出售 则可能对应的出租的交易,没有则为空
|
|
14
14
|
_actionRouters:null,//页面上的动作行为
|
|
15
15
|
_actionRoutersMoreList:null,//页面上的更多动作行为
|
|
16
|
+
detailHeight:750,
|
|
17
|
+
activeIndex:'0',
|
|
18
|
+
searchlistKey:0,
|
|
19
|
+
_searchConditionApiTags1:null,
|
|
20
|
+
_searchDataApiTags1:null,
|
|
21
|
+
_paramDataTags1:null,
|
|
16
22
|
get fields1() {
|
|
17
23
|
return data.fields1;
|
|
18
24
|
},
|
|
@@ -56,7 +62,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
56
62
|
return rtn._fields2Dic;
|
|
57
63
|
}
|
|
58
64
|
if (rtn.fields2) {
|
|
59
|
-
rtn._fields2Dic =
|
|
65
|
+
rtn._fields2Dic = [];
|
|
60
66
|
rtn.fields2.forEach((f) => {
|
|
61
67
|
let col = {
|
|
62
68
|
get label() {
|
|
@@ -66,7 +72,14 @@ const Detail = function (source,para ,callBack) {
|
|
|
66
72
|
return f.labelDelimiter || '';
|
|
67
73
|
},
|
|
68
74
|
get value() {
|
|
69
|
-
|
|
75
|
+
let v=f.code1;
|
|
76
|
+
if(f.name1){
|
|
77
|
+
v=f.name1;
|
|
78
|
+
}
|
|
79
|
+
if(f.unitName1 && v){
|
|
80
|
+
v=v+f.unitName1;
|
|
81
|
+
}
|
|
82
|
+
return v;
|
|
70
83
|
},
|
|
71
84
|
get unitName() {
|
|
72
85
|
if(this.value===undefined || this.value===''){
|
|
@@ -75,7 +88,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
75
88
|
return f.unitName1;
|
|
76
89
|
},
|
|
77
90
|
}
|
|
78
|
-
rtn._fields2Dic
|
|
91
|
+
rtn._fields2Dic.push(base.copy(Base(f), col));
|
|
79
92
|
});
|
|
80
93
|
}
|
|
81
94
|
return rtn._fields2Dic;
|
|
@@ -153,6 +166,46 @@ const Detail = function (source,para ,callBack) {
|
|
|
153
166
|
return rtn._actionRoutersMoreList;
|
|
154
167
|
}
|
|
155
168
|
},
|
|
169
|
+
get tags1() {
|
|
170
|
+
return data.tags1;
|
|
171
|
+
},
|
|
172
|
+
get searchConditionApiTags1() {
|
|
173
|
+
if (rtn._searchConditionApiTags1 !==null){
|
|
174
|
+
return rtn._searchConditionApiTags1;
|
|
175
|
+
}
|
|
176
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
177
|
+
rtn._searchConditionApiTags1= rtn.tags1[0].searchConditionApiUrl;
|
|
178
|
+
return rtn._searchConditionApiTags1;
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
set searchConditionApiTags1(v) {
|
|
182
|
+
rtn._searchConditionApiTags1 = v;
|
|
183
|
+
},
|
|
184
|
+
get searchDataApiTags1() {
|
|
185
|
+
if (rtn._searchDataApiTags1 !==null){
|
|
186
|
+
return rtn._searchDataApiTags1;
|
|
187
|
+
}
|
|
188
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
189
|
+
rtn._searchDataApiTags1= rtn.tags1[0].searchDataApiUrl;
|
|
190
|
+
return rtn._searchDataApiTags1;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
set searchDataApiTags1(v) {
|
|
194
|
+
rtn._searchDataApiTags1 = v;
|
|
195
|
+
},
|
|
196
|
+
get paramDataTags1() {
|
|
197
|
+
if (rtn._paramDataTags1){
|
|
198
|
+
return rtn._paramDataTags1;
|
|
199
|
+
}
|
|
200
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
201
|
+
rtn._paramDataTags1= JSON.parse(rtn.tags1[0].paramData);
|
|
202
|
+
return rtn._paramDataTags1;
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
set paramDataTags1(v) {
|
|
206
|
+
rtn._paramDataTags1={};
|
|
207
|
+
if(v)rtn._paramDataTags1 = JSON.parse(v);
|
|
208
|
+
},
|
|
156
209
|
};
|
|
157
210
|
return rtn;
|
|
158
211
|
}
|
|
@@ -27,7 +27,6 @@ const box = function (source, fileSourceList, router, optionApi) {
|
|
|
27
27
|
},
|
|
28
28
|
_fileList: [],
|
|
29
29
|
get fileList() {
|
|
30
|
-
debugger
|
|
31
30
|
if (this._fileList.length !== 0) {
|
|
32
31
|
return rtn._fileList;
|
|
33
32
|
}
|
|
@@ -42,7 +41,6 @@ const box = function (source, fileSourceList, router, optionApi) {
|
|
|
42
41
|
return rtn._fileList;
|
|
43
42
|
},
|
|
44
43
|
getfileListLength() {
|
|
45
|
-
debugger;
|
|
46
44
|
return rtn.fileList.length;
|
|
47
45
|
},
|
|
48
46
|
optionModel: {
|
|
@@ -212,7 +210,6 @@ const box = function (source, fileSourceList, router, optionApi) {
|
|
|
212
210
|
classify.file.source.mediaLabelID = classify.option[rtn.optionModel.optionAttrs.value];
|
|
213
211
|
},
|
|
214
212
|
handleAvatarSuccess(res, file, fileList) {
|
|
215
|
-
debugger;
|
|
216
213
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
217
214
|
//下面的方式绑定,会有一些问题 todo 不强与页面关联
|
|
218
215
|
fileSourceList.push(res.content[0]);
|
|
@@ -241,7 +238,6 @@ const box = function (source, fileSourceList, router, optionApi) {
|
|
|
241
238
|
}
|
|
242
239
|
},
|
|
243
240
|
deleteFile(file, forceDelete) {
|
|
244
|
-
debugger;
|
|
245
241
|
for (let i = 0; i < rtn.fileList.length; i++) {
|
|
246
242
|
if (rtn.fileList[i].uid === file.uid) {
|
|
247
243
|
if (forceDelete) {
|
|
@@ -743,6 +743,21 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
743
743
|
}
|
|
744
744
|
},
|
|
745
745
|
formData:formData,
|
|
746
|
+
get tdClass() {
|
|
747
|
+
let c='';
|
|
748
|
+
if (source.content.lineType !== undefined && source.content.lineType !== null) {
|
|
749
|
+
if (source.content.lineType===Enum.LineType.Vertical) {
|
|
750
|
+
c='ct-td1';
|
|
751
|
+
}
|
|
752
|
+
else if (source.content.lineType===Enum.LineType.Horizon) {
|
|
753
|
+
c='ct-td2';
|
|
754
|
+
}
|
|
755
|
+
else if (source.content.lineType===Enum.LineType.Both) {
|
|
756
|
+
c='ct-td3';
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
return c;
|
|
760
|
+
},
|
|
746
761
|
};
|
|
747
762
|
if (rtn.template) {
|
|
748
763
|
var tempLoader = template.loader(rtn.template).default;
|
|
@@ -554,7 +554,24 @@ const Enum = {
|
|
|
554
554
|
//窗口
|
|
555
555
|
Dialog : 20,
|
|
556
556
|
},
|
|
557
|
-
|
|
557
|
+
LineType:{
|
|
558
|
+
/**
|
|
559
|
+
* 不显示线条
|
|
560
|
+
*/
|
|
561
|
+
None:0,
|
|
562
|
+
/**
|
|
563
|
+
* 竖线
|
|
564
|
+
*/
|
|
565
|
+
Vertical:1,
|
|
566
|
+
/**
|
|
567
|
+
* 横线
|
|
568
|
+
*/
|
|
569
|
+
Horizon:2,
|
|
570
|
+
/**
|
|
571
|
+
* 横线和竖线
|
|
572
|
+
*/
|
|
573
|
+
Both:3,
|
|
574
|
+
},
|
|
558
575
|
};
|
|
559
576
|
|
|
560
577
|
if (typeof window !== 'undefined' && window.Vue) {
|
package/src/main.js
CHANGED
|
@@ -12,7 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: 'http://10.88.22
|
|
15
|
+
baseUrl: 'http://10.88.23.22:9999/v1/form/router',
|
|
16
16
|
zindex: 999,
|
|
17
17
|
showRequestErrorMessage: true,
|
|
18
18
|
handler: {
|
|
@@ -27,8 +27,8 @@ Vue.use(centaline, {
|
|
|
27
27
|
// 获取请求头
|
|
28
28
|
getRequestHeaders: function () {
|
|
29
29
|
return {
|
|
30
|
-
Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
31
|
-
originalRequestURL: 'http://10.88.22
|
|
30
|
+
Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijg4MjUzNTNmLTQwY2QtNDk0OS1iMmFiLTNkYmZkM2VhOGY5YyJ9.vST557XxrpihiQfogTXgGmcfvAHprul0hGGME864lEIvU51ZBEEns-kUjUj0FsH_YTEb98CZPwD5-_3jDE7w8g',
|
|
31
|
+
originalRequestURL: 'http://10.88.23.22:9999',
|
|
32
32
|
EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"A-%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}'
|
|
33
33
|
};
|
|
34
34
|
},
|