centaline-data-driven 1.2.28 → 1.2.31
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/Form.vue +5 -20
- package/src/centaline/css/common.css +6 -0
- package/src/centaline/css/max.css +0 -1
- package/src/centaline/dialogList/src/dialog.vue +3 -3
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +49 -24
- package/src/centaline/dynamicFile/src/dynamicFile.vue +16 -3
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -2
- package/src/centaline/dynamicL/src/dynamicL.vue +2 -2
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +4 -4
- package/src/centaline/dynamicSosTt/src/dynamicSosTt.vue +56 -27
- package/src/centaline/loader/src/ctl/ContactList.js +106 -41
- package/src/centaline/loader/src/ctl/Router.js +1 -0
- package/src/centaline/loader/src/ctl/SosTt.js +16 -0
- package/src/main.js +1 -1
- 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/Form.vue
CHANGED
|
@@ -1,40 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
|
|
3
|
+
<ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
|
|
4
|
+
<!-- <ct-form :api="'/PropertyPublish/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
4
5
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
5
6
|
<!--:api="'FormSample/formdata'"-->
|
|
6
7
|
<!--<ct-form :source="formdata.content"></ct-form>-->
|
|
7
8
|
<!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
|
|
8
9
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
9
|
-
<!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
|
|
10
|
-
<!-- <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
11
|
-
<ct-form :api="'PropertyDuty/getLayoutOfClearDuty'" :apiParam="para"></ct-form>
|
|
12
|
-
<!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
|
|
13
10
|
<ct-dialog-list></ct-dialog-list>
|
|
14
11
|
</div>
|
|
15
12
|
</template>
|
|
16
13
|
|
|
17
14
|
<script>
|
|
18
15
|
export default {
|
|
19
|
-
name: '
|
|
16
|
+
name: 'App',
|
|
20
17
|
data() {
|
|
21
18
|
return {
|
|
22
|
-
// apiParam: {originalTraId: "
|
|
19
|
+
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
20
|
+
apiParam: {originalTraId: "1475658732246241281", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
|
|
23
21
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
24
22
|
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
25
|
-
// apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
|
|
26
|
-
// apiParam: {chanceID: "1", actionType: 2} ,
|
|
27
|
-
// apiParam: {worklistID: "1494206747714392064", actionType: 2}
|
|
28
|
-
para: {propertyID: "1", actionType: 2}
|
|
29
|
-
// apiParam: {
|
|
30
|
-
// actionType: 2,
|
|
31
|
-
// agentId: "1450283160825425922",
|
|
32
|
-
// estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
|
|
33
|
-
// pageOnly: true,
|
|
34
|
-
// pageStyle: 2,
|
|
35
|
-
// propertyId: "14102015-0736-9265-205A-451687BF7062",
|
|
36
|
-
// relProId: "1475708315466829833",
|
|
37
|
-
// }
|
|
38
23
|
}
|
|
39
24
|
},
|
|
40
25
|
methods: {
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
if(item.attrs.height){
|
|
150
150
|
ph=parseInt(item.attrs.height.replace('px',''));
|
|
151
151
|
}
|
|
152
|
-
if(self.vmodel.pane && self.vmodel.pane.$el.
|
|
153
|
-
item.attrs.height=(self.vmodel.pane.$el.
|
|
152
|
+
if(self.vmodel.pane && self.vmodel.pane.$el.clientHeight<ph){
|
|
153
|
+
item.attrs.height=(self.vmodel.pane.$el.clientHeight-40)+'px';
|
|
154
154
|
}
|
|
155
|
-
// console.log(document.body.
|
|
155
|
+
// console.log(document.body.clientHeight);可见区域高度
|
|
156
156
|
// console.log(item.attrs.height)
|
|
157
157
|
return h('div', {
|
|
158
158
|
style: {
|
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
:rowspan="column.rowspan"
|
|
34
34
|
:colspan="column.colspan"
|
|
35
35
|
:class="[colHasWidth[colIndex],column.sortAction,model.tdClass,
|
|
36
|
+
rowBorderLeftColumns.includes(column.id)?'ct-td4':null,
|
|
37
|
+
rowBorderRightColumns.includes(column.id)?'ct-td5':null,
|
|
36
38
|
colIndex === leftShadow?'shadowLeft':null,
|
|
37
39
|
colIndex === rightShadow?'shadowRight':null,
|
|
38
40
|
column.fixed === 'left'?'left-fixation-th':null,
|
|
@@ -66,7 +68,11 @@
|
|
|
66
68
|
:colspan="tdColspan(column, row)"
|
|
67
69
|
class="ct-td"
|
|
68
70
|
:class="[colHasWidth[colIndex],model.tdClass,
|
|
69
|
-
row.flagRow?'ct-td3':null,
|
|
71
|
+
//row.flagRow && row.columnShow===column.id?'ct-td3':null,
|
|
72
|
+
rowBorderLeftColumns.includes(column.id)?'ct-td4':null,
|
|
73
|
+
rowBorderRightColumns.includes(column.id)?'ct-td5':null,
|
|
74
|
+
model.rowHiddenKeyData.indexOf(row[model.rowHiddenKey])%2?'ct-tdDouble':'ct-tdSingle',
|
|
75
|
+
selectKey===row[model.rowHiddenKey]?'select':null,
|
|
70
76
|
colIndex === leftShadow?'shadowLeft':null,
|
|
71
77
|
colIndex === rightShadow?'shadowRight':null,
|
|
72
78
|
column.fixed === 'left'?'left-fixation':null,
|
|
@@ -74,8 +80,8 @@
|
|
|
74
80
|
column.fixed === 'right'?'right-fixation':null]"
|
|
75
81
|
v-bind="column.attrs">
|
|
76
82
|
<!--操作列-->
|
|
77
|
-
<div v-if="row.flagRow" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
|
|
78
|
-
{{row.descNewRow}}
|
|
83
|
+
<div v-if="row.flagRow" :class="column.autoRowHeight ? 'lineFeedCell':'cell'" style="color: #999;">
|
|
84
|
+
{{row.rowHiddenColumns && row.rowHiddenColumns.includes(column.id)?"":row.descNewRow}}
|
|
79
85
|
</div>
|
|
80
86
|
<div v-else-if="column.id==='operation' && row.rowHiddenColumns==undefined" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
|
|
81
87
|
<ct-tablecurrency v-for="(router,rowRouterIndex) in model.rowRouter" :key="rowRouterIndex"
|
|
@@ -125,6 +131,10 @@
|
|
|
125
131
|
colHasWidth: {},//有无列宽集合
|
|
126
132
|
pageRowMin: 0,//页面实际的第一行号
|
|
127
133
|
pageRowMax: 100,//页面实际的第后行号
|
|
134
|
+
rowMergedColumns:['contactNameDesc','propertyIdentityTypeID','operation'],
|
|
135
|
+
rowBorderLeftColumns:['contactNameDesc','operation'],
|
|
136
|
+
rowBorderRightColumns:['propertyIdentityTypeID','operation'],
|
|
137
|
+
selectKey:'',
|
|
128
138
|
}
|
|
129
139
|
},
|
|
130
140
|
mounted() {
|
|
@@ -178,7 +188,8 @@
|
|
|
178
188
|
});
|
|
179
189
|
router.doSearch(submitData, (res) => {
|
|
180
190
|
if (res.rtnCode === 200) {
|
|
181
|
-
res.apiRouter=self.apiRouter;
|
|
191
|
+
res.apiRouter=self.apiRouter;
|
|
192
|
+
res.rowMergedColumns=self.rowMergedColumns;
|
|
182
193
|
self.loaderObj.ContactList(res,null,self.load);
|
|
183
194
|
self.flagLook = true;
|
|
184
195
|
}
|
|
@@ -202,19 +213,21 @@
|
|
|
202
213
|
},
|
|
203
214
|
rowColorChange() {
|
|
204
215
|
var index = this.model.selectIndex;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
216
|
+
this.selectKey=this.model.listData[index][this.model.rowHiddenKey];
|
|
217
|
+
this.currentRow = this.$refs['rows.' + index][0] || null;
|
|
218
|
+
// if (typeof this.$refs['rows.' + index] !== "undefined" && this.currentRow !== this.$refs['rows.' + index][0]) {
|
|
219
|
+
// if (this.currentRow !== null) {
|
|
220
|
+
// for (var i = 0; i < this.currentRow.children.length; i++) {
|
|
221
|
+
// this.currentRow.children[i].classList.remove('select');
|
|
222
|
+
// }
|
|
223
|
+
// }
|
|
224
|
+
// if (this.$refs['rows.' + index][0]) {
|
|
225
|
+
// for (var j = 0; j < this.$refs['rows.' + index][0].children.length; j++) {
|
|
226
|
+
// this.$refs['rows.' + index][0].children[j].classList.add('select');
|
|
227
|
+
// }
|
|
228
|
+
// }
|
|
229
|
+
// this.currentRow = this.$refs['rows.' + index][0] || null;
|
|
230
|
+
// }
|
|
218
231
|
},
|
|
219
232
|
tdRowspan(column, row) {
|
|
220
233
|
if (!column.show) {
|
|
@@ -222,17 +235,16 @@
|
|
|
222
235
|
}
|
|
223
236
|
|
|
224
237
|
//合并行
|
|
225
|
-
if (row.$rowspan !== 0 && this.
|
|
238
|
+
if (row.$rowspan !== 0 && this.rowMergedColumns.includes(column.id)) {
|
|
226
239
|
return row.$rowspan;
|
|
227
240
|
}
|
|
228
241
|
|
|
229
242
|
return '';
|
|
230
243
|
},
|
|
231
244
|
tdColspan(column, row) {
|
|
232
|
-
if (row.colspan !== 0) {
|
|
245
|
+
if (row.colspan !== 0 && row.columnShow===column.id) {
|
|
233
246
|
return row.colspan;
|
|
234
247
|
}
|
|
235
|
-
return '';
|
|
236
248
|
},
|
|
237
249
|
tdShow(column, row) {
|
|
238
250
|
if (!column.show) {
|
|
@@ -240,11 +252,11 @@
|
|
|
240
252
|
}
|
|
241
253
|
|
|
242
254
|
//合并行
|
|
243
|
-
if (row.$rowspan === 0 && this.
|
|
255
|
+
if (row.$rowspan === 0 && this.rowMergedColumns.indexOf(column.id) > -1) {
|
|
244
256
|
return false;
|
|
245
257
|
}
|
|
246
258
|
|
|
247
|
-
if(row.flagRow && row.columnShow!==column.id){
|
|
259
|
+
if(row.flagRow && row.columnShow!==column.id && !row.rowHiddenColumns.includes(column.id)){
|
|
248
260
|
return false;
|
|
249
261
|
}
|
|
250
262
|
|
|
@@ -489,11 +501,12 @@
|
|
|
489
501
|
|
|
490
502
|
.ct-tableParent {
|
|
491
503
|
overflow: auto;
|
|
492
|
-
border-bottom:
|
|
504
|
+
border-bottom: 0px;
|
|
493
505
|
width: 100%;
|
|
494
506
|
outline: 0;
|
|
507
|
+
padding: 0px;
|
|
495
508
|
}
|
|
496
|
-
|
|
509
|
+
.ct-searchtable .ct-table {
|
|
497
510
|
min-width: 100%;
|
|
498
511
|
border-collapse: separate;
|
|
499
512
|
}
|
|
@@ -519,6 +532,18 @@
|
|
|
519
532
|
.ct-searchtable .ct-tr > .ct-td3 {
|
|
520
533
|
border: 1px solid #e7e8eb;
|
|
521
534
|
}
|
|
535
|
+
.ct-searchtable .ct-tr > .ct-td4 {
|
|
536
|
+
border-left: 1px solid #e7e8eb;
|
|
537
|
+
}
|
|
538
|
+
.ct-searchtable .ct-tr > .ct-td5 {
|
|
539
|
+
border-right: 1px solid #e7e8eb;
|
|
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
|
+
}
|
|
522
547
|
.shadowLeft {
|
|
523
548
|
border-right: 1px solid #e7e8eb;
|
|
524
549
|
box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
<span class="cover-list-item-span" v-if="model.lock||model.paramName">
|
|
35
35
|
<!--锁定-->
|
|
36
36
|
<span v-if="model.lock || !file.rightEdit" class="el-dropdown-link">
|
|
37
|
-
|
|
37
|
+
<span style="width:80px;height:26px;display: inline-flex"> {{file.mediaLabelName}}</span>
|
|
38
38
|
</span>
|
|
39
39
|
<!--复杂分类-->
|
|
40
40
|
<span v-else-if="model.isComplexClassify" class="el-dropdown-link" @click="classifyFormClickHandle(file)">
|
|
41
|
-
|
|
41
|
+
<span style="width:80px;height:26px;display: inline-flex"> {{file.mediaLabelName}}</span><i class="el-icon-arrow-down el-icon--right"></i>
|
|
42
42
|
</span>
|
|
43
43
|
<!--简单分类-->
|
|
44
44
|
<el-dropdown v-else class="el-upload-list__item-preview" trigger="click" placement="top" @command="classifySelectedClickHandle">
|
|
45
45
|
<span class="el-dropdown-link" @click="classifyClickHandle">
|
|
46
|
-
|
|
46
|
+
<span style="width:80px;height:26px;display: inline-flex"> {{file.mediaLabelName}}</span><i class="el-icon-arrow-down el-icon--right"></i>
|
|
47
47
|
</span>
|
|
48
48
|
<el-dropdown-menu slot="dropdown" class="el-upload-list__item-preview">
|
|
49
49
|
<el-dropdown-item v-for="(option, index) in model.optionModel.options" :key="index" :command="{option:option,file:file}">
|
|
@@ -331,6 +331,19 @@
|
|
|
331
331
|
background-color: #544f48;
|
|
332
332
|
opacity: 0.8;
|
|
333
333
|
}
|
|
334
|
+
.ct-file .el-dropdown-link{
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
color: #fff;
|
|
337
|
+
position: relative;
|
|
338
|
+
width: 100px;
|
|
339
|
+
height: 26px;
|
|
340
|
+
display: inline-block;
|
|
341
|
+
}
|
|
342
|
+
.el-icon--right {
|
|
343
|
+
position: absolute;
|
|
344
|
+
right: 5px;
|
|
345
|
+
top: 6px;
|
|
346
|
+
}
|
|
334
347
|
.ct-file .cover-list-item-span-delete {
|
|
335
348
|
position: inherit;
|
|
336
349
|
bottom: 160px;
|
|
@@ -554,8 +554,7 @@
|
|
|
554
554
|
},
|
|
555
555
|
getFormObj(){
|
|
556
556
|
let formData=this.model.getFormObj();
|
|
557
|
-
if(this.$route && this.$route.query && this.$route.query.pageStyle)
|
|
558
|
-
{
|
|
557
|
+
if(this.$route && this.$route.query && this.$route.query.pageStyle){
|
|
559
558
|
return Object.assign(formData,{'pageStyle':this.$route.query.pageStyle});
|
|
560
559
|
}
|
|
561
560
|
return formData;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
</el-input>
|
|
13
13
|
<span v-if="model.sufLabel" style="width:auto" class="spanMessage">{{model.sufLabel}}</span> -->
|
|
14
14
|
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput">
|
|
15
|
-
<div class="el-input-group__prepend">
|
|
16
|
-
<div
|
|
15
|
+
<div v-if="model.showLabel && model.label" class="el-input-group__prepend">
|
|
16
|
+
<div slot="prepend" class="" :class="[model.labelClass]">
|
|
17
17
|
{{model.label}}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:prop="col.id" :label="col.name" :min-width="col.width">
|
|
20
20
|
</el-table-column>
|
|
21
21
|
</el-table>
|
|
22
|
-
<div style="margin-top: 20px;
|
|
22
|
+
<div style="margin-top: 20px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
|
|
23
23
|
<el-input v-if="jumpBtnName" size="mini" v-model="jumpStr" placeholder="定位" style="width:150px"></el-input>
|
|
24
24
|
<el-button v-if="jumpBtnName" size="mini" @click="jumpClickHandler()">{{jumpBtnName}}</el-button>
|
|
25
25
|
<el-button v-if="filterBtnName" size="mini" @click="filterClickHandler()" style="margin-left: 0px;">{{filterBtnName}}</el-button>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:class="['ct-table',model.attrs.size?'ct-table-'+model.attrs.size:'']">
|
|
27
27
|
<!--表头-->
|
|
28
28
|
<thead ref="tableHead">
|
|
29
|
-
<tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr">
|
|
29
|
+
<tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr" :key="columnsIndex">
|
|
30
30
|
<th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td" :class="[model.tdClass]">
|
|
31
31
|
<label class="el-checkbox"><span class="el-checkbox__input" :class="model.selectAllType">
|
|
32
32
|
<span class="el-checkbox__inner"></span>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
</th>
|
|
40
|
-
<th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns"
|
|
40
|
+
<th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns" :key="colIndex"
|
|
41
41
|
v-if="column.show" class="ct-td ct-searchtable-th"
|
|
42
42
|
:rowspan="column.rowspan"
|
|
43
43
|
:colspan="column.colspan"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</td>
|
|
76
76
|
</tr>-->
|
|
77
77
|
<!--可视区域的行数据-->
|
|
78
|
-
<tr v-for="(row,rowindex) in model.listData"
|
|
78
|
+
<tr v-for="(row,rowindex) in model.listData" :key="rowindex"
|
|
79
79
|
v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
|
|
80
80
|
:ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
|
|
81
81
|
class="ct-tr"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
</label>
|
|
90
90
|
</td>
|
|
91
91
|
<td :ref="column.fixed?(column.fixed==='left'?'headLeftTds':'headRightTds'):null"
|
|
92
|
-
v-for="(column,colIndex) in model.dataFieldcolumns"
|
|
92
|
+
v-for="(column,colIndex) in model.dataFieldcolumns" :key="colIndex"
|
|
93
93
|
v-if="tdShow(column, row)"
|
|
94
94
|
:rowspan="tdRowspan(column, row)"
|
|
95
95
|
class="ct-td"
|
|
@@ -7,35 +7,40 @@
|
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
8
8
|
{{model.label}}
|
|
9
9
|
</div>
|
|
10
|
-
<
|
|
11
|
-
<div>
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
<div class="ct-sostt">
|
|
11
|
+
<div :class="[model.w1=='0'?'ct-input-editor':'ct-input-editorw']" :style="{'width':(model.w1!='0'?model.w1+'px':'auto')}">
|
|
12
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(!model.paramName || model.lock)? 'manual' : 'click'">
|
|
13
|
+
<div>
|
|
14
|
+
<div>
|
|
15
|
+
<el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
|
|
16
|
+
</div>
|
|
17
|
+
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
18
|
+
</div>
|
|
19
|
+
<input slot="reference" v-bind="model.attrs" readonly="readonly" v-model="model.text" :placeholder="soPlaceholder"
|
|
20
|
+
ref="ct-input" :style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px'}"
|
|
21
|
+
@focus="focusHandle" @blur="blurHandle" @click="clickHandle" @input="inputHandler($event)" @change="changeHandler($event)"
|
|
22
|
+
:disabled="model.lock" :class="model.lock ? 'ct-is-disabled' : 'ct-input_inner'" />
|
|
23
|
+
</el-popover>
|
|
24
|
+
<span v-if="!model.lock" class="el-input__suffix" @click="clickHandle" :class="[model.attrs.size?'el-input--'+model.attrs.size:'']">
|
|
25
|
+
<span v-if="showClear === false" class="el-input__suffix-inner">
|
|
26
|
+
<i class="el-select__caret el-input__icon el-icon-arrow-up" :class="{'is-reverse':showDrop}"></i>
|
|
27
|
+
</span>
|
|
28
|
+
<span v-if="showClear === true" class="el-input__suffix-inner ct-close">
|
|
29
|
+
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
30
|
+
</span>
|
|
31
|
+
</span>
|
|
16
32
|
</div>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</span>
|
|
26
|
-
<span v-if="showClear === true" class="el-input__suffix-inner ct-close">
|
|
27
|
-
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
28
|
-
</span>
|
|
29
|
-
</span>
|
|
33
|
+
<div class="ml10" :class="[model.w2=='0'?'ct-input-editor':'ct-input-editorw']" :style="{'width':(model.w2!='0'?model.w2+'px':'auto')}">
|
|
34
|
+
<el-input :title="model.lock?model.value1:''" :type="model.inputType" v-model="model.value1" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
|
|
35
|
+
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']" :disabled="model.lock" :rows="model.rows"
|
|
36
|
+
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
37
|
+
@keyup.enter.native="search()">
|
|
38
|
+
</el-input>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
30
41
|
</div>
|
|
31
42
|
</div>
|
|
32
|
-
|
|
33
|
-
<el-input :title="model.lock?model.value1:''" :type="model.inputType" v-model="model.value1" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
|
|
34
|
-
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']" :disabled="model.lock" :rows="model.rows"
|
|
35
|
-
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
36
|
-
@keyup.enter.native="search()">
|
|
37
|
-
</el-input>
|
|
38
|
-
</div>
|
|
43
|
+
|
|
39
44
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
40
45
|
<transition name="el-fade-in">
|
|
41
46
|
<span v-show="!valid" class="errorMessage">
|
|
@@ -243,7 +248,8 @@
|
|
|
243
248
|
},
|
|
244
249
|
//不能共用的数据校验
|
|
245
250
|
selfValidExcute: function (eventName) {
|
|
246
|
-
if (this.required
|
|
251
|
+
if (this.model.required && this.model.value1 == "") {
|
|
252
|
+
this.validMessage = "必填";
|
|
247
253
|
this.valid = false;
|
|
248
254
|
return false;
|
|
249
255
|
}
|
|
@@ -280,4 +286,27 @@
|
|
|
280
286
|
.h26{
|
|
281
287
|
height: 26px;
|
|
282
288
|
}
|
|
289
|
+
.ct-so .ct-sostt {
|
|
290
|
+
width: 100%;
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-wrap: wrap;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.ct-so .ct-sostt .ct-input-editor {
|
|
296
|
+
flex: 1 0 0;
|
|
297
|
+
position: relative;
|
|
298
|
+
}
|
|
299
|
+
.ct-so .ct-sostt .ct-input-editorw {
|
|
300
|
+
position: relative;
|
|
301
|
+
display:inline-block;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.ct-so .ct-sostt .ml10 {
|
|
305
|
+
margin-left:10px;
|
|
306
|
+
}
|
|
307
|
+
.ct-sostt .showLabel input {
|
|
308
|
+
border-top-left-radius: 4px !important;
|
|
309
|
+
border-bottom-left-radius: 4px !important;
|
|
310
|
+
text-align: left !important;
|
|
311
|
+
}
|
|
283
312
|
</style>
|