centaline-data-driven 1.1.44 → 1.1.48
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 +12 -12
- package/src/centaline/css/common.css +22 -3
- package/src/centaline/dialogList/src/dialog.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +12 -6
- package/src/centaline/dynamicMo/src/dynamicMo.vue +14 -16
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +17 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +4 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +7 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -1
- package/src/centaline/dynamicSo/src/dynamicSo.vue +14 -19
- package/src/centaline/dynamicSos/src/dynamicSos.vue +13 -21
- package/src/centaline/dynamicTags/src/dynamicTags.vue +21 -18
- package/src/centaline/loader/src/ctl/SearchCategory.js +6 -2
- package/src/centaline/loader/src/ctl/Tags.js +1 -0
- package/src/main.js +2 -2
- 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/Form.vue
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
|
|
8
8
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
9
9
|
<!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
|
|
10
|
-
|
|
11
|
-
<ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form>
|
|
10
|
+
<ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
11
|
+
<!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
|
|
12
12
|
<ct-dialog-list></ct-dialog-list>
|
|
13
13
|
</div>
|
|
14
14
|
</template>
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
23
23
|
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
24
24
|
// apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
|
|
25
|
-
|
|
26
|
-
apiParam: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
25
|
+
apiParam: {chanceID: "1", actionType: 2} ,
|
|
26
|
+
// apiParam: {
|
|
27
|
+
// actionType: 2,
|
|
28
|
+
// agentId: "1450283160825425922",
|
|
29
|
+
// estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
|
|
30
|
+
// pageOnly: true,
|
|
31
|
+
// pageStyle: 2,
|
|
32
|
+
// propertyId: "14102015-0736-9265-205A-451687BF7062",
|
|
33
|
+
// relProId: "1475708315466829833",
|
|
34
|
+
// }
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
methods: {
|
|
@@ -431,7 +431,11 @@ html {
|
|
|
431
431
|
color: #fff;
|
|
432
432
|
|
|
433
433
|
} */
|
|
434
|
+
.el-button--mini, .el-button--mini.is-round{
|
|
435
|
+
padding: 0px 19px;
|
|
436
|
+
}
|
|
434
437
|
.el-button--primary {
|
|
438
|
+
height: 26px;
|
|
435
439
|
background-color: #EE6B6B ;
|
|
436
440
|
border-color: #EE6B6B ;
|
|
437
441
|
}
|
|
@@ -713,8 +717,9 @@ html {
|
|
|
713
717
|
.ct-table-content{
|
|
714
718
|
padding: 0 15px;
|
|
715
719
|
}
|
|
716
|
-
.el-card.is-always-shadow{
|
|
717
|
-
|
|
720
|
+
.el-card.is-always-shadow {
|
|
721
|
+
border: none;
|
|
722
|
+
box-shadow: none !important;
|
|
718
723
|
}
|
|
719
724
|
|
|
720
725
|
.domDisabled {
|
|
@@ -723,4 +728,18 @@ html {
|
|
|
723
728
|
}
|
|
724
729
|
.el-radio__label{
|
|
725
730
|
padding-left: 5px!important;
|
|
726
|
-
}
|
|
731
|
+
}
|
|
732
|
+
.el-input--mini .el-input__inner{
|
|
733
|
+
height: 26px!important;
|
|
734
|
+
line-height: 26px!important;
|
|
735
|
+
}
|
|
736
|
+
.ct-Seg.ct-Seg-mini .ct-radios, .ct-Seg.ct-Seg-mini .ct-radios .el-radio__label {
|
|
737
|
+
min-height: 26px!important;
|
|
738
|
+
line-height: 26px;
|
|
739
|
+
}
|
|
740
|
+
.ct-rich-text {
|
|
741
|
+
min-height: 26px!important;
|
|
742
|
+
}
|
|
743
|
+
.ct-dialog_body .el-card__body{
|
|
744
|
+
padding-top: 0px!important;
|
|
745
|
+
}
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
var self = this;
|
|
224
224
|
this.model.scripts.$fd = field.id;
|
|
225
225
|
this.model.scripts.$result = [];
|
|
226
|
-
|
|
226
|
+
|
|
227
227
|
var clickAcion = function (field) {
|
|
228
228
|
if (field.isSubmit) {
|
|
229
229
|
let verified = true;
|
|
@@ -391,8 +391,10 @@
|
|
|
391
391
|
},
|
|
392
392
|
changeCallBackHandler(field, callBackFunName, callBackPara) {
|
|
393
393
|
var self = this;
|
|
394
|
-
|
|
395
|
-
|
|
394
|
+
if(callBackFunName){
|
|
395
|
+
this.model.scripts.$fd = field.id;
|
|
396
|
+
this.$common.excuteFunStr.call(this.model.scripts, callBackFunName, callBackPara);
|
|
397
|
+
}
|
|
396
398
|
self.$forceUpdate();
|
|
397
399
|
},
|
|
398
400
|
inputHandler(field) {
|
|
@@ -444,7 +446,7 @@
|
|
|
444
446
|
},
|
|
445
447
|
on: {
|
|
446
448
|
submit(option) {
|
|
447
|
-
if (typeof callBack === "function") {
|
|
449
|
+
if (typeof callBack === "function" && !router.callBackFunName) {
|
|
448
450
|
callBack(option);
|
|
449
451
|
}
|
|
450
452
|
|
|
@@ -515,8 +517,7 @@
|
|
|
515
517
|
}
|
|
516
518
|
});
|
|
517
519
|
},
|
|
518
|
-
getFormObj()
|
|
519
|
-
{
|
|
520
|
+
getFormObj(){
|
|
520
521
|
let formData=this.model.getFormObj();
|
|
521
522
|
if(this.$route && this.$route.query && this.$route.query.pageStyle)
|
|
522
523
|
{
|
|
@@ -528,3 +529,8 @@
|
|
|
528
529
|
}
|
|
529
530
|
}
|
|
530
531
|
</script>
|
|
532
|
+
<style scoped>
|
|
533
|
+
.el-collapse{
|
|
534
|
+
border-top: none;
|
|
535
|
+
}
|
|
536
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div class="ct-mo" style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1;display:flex" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-mo-'+model.attrs.size:''
|
|
4
|
+
<div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-mo-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</span>
|
|
18
18
|
</div>
|
|
19
19
|
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']"
|
|
20
|
-
:trigger="'click'" :disabled="model.lock">
|
|
20
|
+
:trigger="(!model.paramName || model.lock) ? 'manual' : 'click'" :disabled="model.lock">
|
|
21
21
|
<div>
|
|
22
22
|
<ct-select-option :model="model" :optionRowCount="optionRowCount" @click="selectOption($event)"></ct-select-option>
|
|
23
23
|
</div>
|
|
@@ -180,20 +180,18 @@
|
|
|
180
180
|
if (this.model.lock) {
|
|
181
181
|
return false;
|
|
182
182
|
}
|
|
183
|
-
if (this.model.
|
|
183
|
+
if (this.model.paramName) {
|
|
184
|
+
this.$set(this, 'showDrop', !this.showDrop);
|
|
185
|
+
if (this.showDrop) {
|
|
186
|
+
this.getOptions();
|
|
187
|
+
}
|
|
188
|
+
this.focusHandle();
|
|
189
|
+
}
|
|
190
|
+
else if (this.model.popupSearchListType === 1) {
|
|
184
191
|
this.popupSearchListHandle();
|
|
185
192
|
}
|
|
186
|
-
else {
|
|
187
|
-
|
|
188
|
-
this.$set(this, 'showDrop', !this.showDrop);
|
|
189
|
-
if (this.showDrop) {
|
|
190
|
-
this.getOptions();
|
|
191
|
-
}
|
|
192
|
-
this.focusHandle();
|
|
193
|
-
}
|
|
194
|
-
else if ((this.model.popupSearchListType === 0)) {
|
|
195
|
-
this.$message.warning("请配置参数paramName1");
|
|
196
|
-
}
|
|
193
|
+
else if ((this.model.popupSearchListType === 0)) {
|
|
194
|
+
this.$message.warning("请配置参数paramName1");
|
|
197
195
|
}
|
|
198
196
|
},
|
|
199
197
|
popupSearchListHandle: function () {
|
|
@@ -271,9 +269,9 @@
|
|
|
271
269
|
selectOptionArr(optionArr) {
|
|
272
270
|
var self = this;
|
|
273
271
|
optionArr.forEach((s) => {
|
|
274
|
-
if (!self.model.value.find((v) => { return v === s.
|
|
272
|
+
if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
|
|
275
273
|
self.model.options.push(s);
|
|
276
|
-
self.model.value.push(s.
|
|
274
|
+
self.model.value.push(s[self.model.optionAttrs.value]);
|
|
277
275
|
}
|
|
278
276
|
});
|
|
279
277
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="loading" style="width:100%">
|
|
3
3
|
<div v-if="model !== null && !loading" class="ct-form">
|
|
4
|
-
<div class="ct-ptb5">
|
|
4
|
+
<div class="ct-ptb5 max-flex">
|
|
5
5
|
<template v-for="(col, index) in model.fields" v-if="col.show !== false">
|
|
6
6
|
<br v-if="col.is === 'ct-linefeed'" />
|
|
7
7
|
<component ref="Fields" :is="col.is" v-bind="col.listBind" :vmodel="col" :api="model.optionApi" @click="getClickHandler(col.action)"></component>
|
|
@@ -107,12 +107,21 @@
|
|
|
107
107
|
searchData() {
|
|
108
108
|
this.$refs.table.searchComplate(this.model);
|
|
109
109
|
},
|
|
110
|
+
reset() {
|
|
111
|
+
this.model.fields.forEach((v) => {
|
|
112
|
+
v.reset();
|
|
113
|
+
});
|
|
114
|
+
},
|
|
110
115
|
getClickHandler(action) {
|
|
111
116
|
var fun = {};
|
|
112
117
|
switch (action) {
|
|
113
118
|
case 'search':
|
|
114
119
|
this.searchData();
|
|
115
120
|
break;
|
|
121
|
+
case 'reset':
|
|
122
|
+
this.reset();
|
|
123
|
+
this.searchData();
|
|
124
|
+
break;
|
|
116
125
|
default:
|
|
117
126
|
break;
|
|
118
127
|
}
|
|
@@ -138,4 +147,11 @@
|
|
|
138
147
|
}
|
|
139
148
|
</script>
|
|
140
149
|
<style>
|
|
150
|
+
.max-flex{
|
|
151
|
+
display: flex;
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
.max-flex .field-top{
|
|
155
|
+
margin-right: 10px;
|
|
156
|
+
}
|
|
141
157
|
</style>
|
|
@@ -23,7 +23,7 @@
|
|
|
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
|
-
<el-button size="mini" @click="confirmClickHandler()" style="float:right;" type="primary">确认</el-button>
|
|
26
|
+
<el-button size="mini" @click="confirmClickHandler()" class="max-search-btn" style="float:right;" type="primary">确认</el-button>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
<div style="min-height:250px" v-loading="loading" v-if="loading"></div>
|
|
@@ -231,4 +231,7 @@
|
|
|
231
231
|
.el-table {
|
|
232
232
|
font-size: 12px !important;
|
|
233
233
|
}
|
|
234
|
+
.el-table .el-table__header th {
|
|
235
|
+
background-color: #f4f7fa!important;
|
|
236
|
+
}
|
|
234
237
|
</style>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="ct-radios" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
|
|
11
11
|
<el-radio-group v-model="model.value" @change="changeHandler1($event)">
|
|
12
12
|
<el-radio-button v-bind="model.attrs" v-for="(value, index) in model.segmentValue" :key="index" v-model="model.value"
|
|
13
|
-
:label="value[model.optionAttrs.value]" :disabled="model.lock">
|
|
13
|
+
:label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
|
|
14
14
|
{{value[model.optionAttrs.label]}}
|
|
15
15
|
</el-radio-button >
|
|
16
16
|
</el-radio-group>
|
|
@@ -61,6 +61,12 @@
|
|
|
61
61
|
this.changeHandler(this.model.value);
|
|
62
62
|
},
|
|
63
63
|
changeHandler1: function (event) {
|
|
64
|
+
var self=this;
|
|
65
|
+
this.model.segmentValue.forEach((v, i) => {
|
|
66
|
+
if(v[self.model.optionAttrs.value]==event && v[self.model.optionAttrs.displayLabel]){
|
|
67
|
+
self.model.label=v[self.model.optionAttrs.displayLabel];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
64
70
|
this.inputHandler(this.model.value);
|
|
65
71
|
this.changeHandler(this.model.value);
|
|
66
72
|
let parm={};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
|
-
<div style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
3
|
+
<div style="width:100%;display:flex;">
|
|
4
|
+
<div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
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
|
-
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(model.
|
|
10
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(!model.paramName || model.lock) ? 'manual' : 'click'">
|
|
11
11
|
<div>
|
|
12
12
|
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
13
13
|
</div>
|
|
@@ -165,20 +165,18 @@
|
|
|
165
165
|
if (this.model.lock) {
|
|
166
166
|
return false;
|
|
167
167
|
}
|
|
168
|
-
if (this.model.
|
|
168
|
+
if (this.model.paramName) {
|
|
169
|
+
this.$set(this, 'showDrop', !this.showDrop);
|
|
170
|
+
if (this.showDrop) {
|
|
171
|
+
this.getOptions();
|
|
172
|
+
}
|
|
173
|
+
this.focusHandle();
|
|
174
|
+
}
|
|
175
|
+
else if (this.model.popupSearchListType === 1) {
|
|
169
176
|
this.popupSearchListHandle();
|
|
170
177
|
}
|
|
171
|
-
else {
|
|
172
|
-
|
|
173
|
-
this.$set(this, 'showDrop', !this.showDrop);
|
|
174
|
-
if (this.showDrop) {
|
|
175
|
-
this.getOptions();
|
|
176
|
-
}
|
|
177
|
-
this.focusHandle();
|
|
178
|
-
}
|
|
179
|
-
else if ((this.model.popupSearchListType === 0)){
|
|
180
|
-
this.$message.warning("请配置参数paramName1");
|
|
181
|
-
}
|
|
178
|
+
else if ((this.model.popupSearchListType === 0)){
|
|
179
|
+
this.$message.warning("请配置参数paramName1");
|
|
182
180
|
}
|
|
183
181
|
},
|
|
184
182
|
popupSearchListHandle: function () {
|
|
@@ -186,10 +184,7 @@
|
|
|
186
184
|
self.$emit('popupSearchList', true, self.model, self.model.moreActionRouter, (option) => {
|
|
187
185
|
self.model.value = option[self.model.optionAttrs.value];
|
|
188
186
|
self.model.text = option[self.model.optionAttrs.label];
|
|
189
|
-
self.model.options.push(
|
|
190
|
-
code: self.model.value,
|
|
191
|
-
name: self.model.text
|
|
192
|
-
});
|
|
187
|
+
self.model.options.push(option);
|
|
193
188
|
|
|
194
189
|
self.soChange();
|
|
195
190
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
4
|
+
<div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
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
|
-
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(model.
|
|
10
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(!model.paramName || model.lock)? 'manual' : 'click'">
|
|
11
11
|
<div>
|
|
12
12
|
<div>
|
|
13
13
|
<el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
|
|
@@ -170,23 +170,18 @@
|
|
|
170
170
|
if (this.model.lock) {
|
|
171
171
|
return false;
|
|
172
172
|
}
|
|
173
|
-
if (this.model.
|
|
173
|
+
if (this.model.paramName) {
|
|
174
|
+
this.$set(this, 'showDrop', !this.showDrop);
|
|
175
|
+
if (this.showDrop) {
|
|
176
|
+
this.getOptions();
|
|
177
|
+
}
|
|
178
|
+
this.focusHandle();
|
|
179
|
+
}
|
|
180
|
+
else if (this.model.popupSearchListType === 1) {
|
|
174
181
|
this.popupSearchListHandle();
|
|
175
182
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
//}
|
|
179
|
-
else {
|
|
180
|
-
if (this.model.paramName) {
|
|
181
|
-
this.$set(this, 'showDrop', !this.showDrop);
|
|
182
|
-
if (this.showDrop) {
|
|
183
|
-
this.getOptions();
|
|
184
|
-
}
|
|
185
|
-
this.focusHandle();
|
|
186
|
-
}
|
|
187
|
-
else if ((this.model.popupSearchListType === 0)) {
|
|
188
|
-
this.$message.warning("请配置参数paramName1");
|
|
189
|
-
}
|
|
183
|
+
else if ((this.model.popupSearchListType === 0)) {
|
|
184
|
+
this.$message.warning("请配置参数paramName1");
|
|
190
185
|
}
|
|
191
186
|
},
|
|
192
187
|
popupSearchListHandle: function () {
|
|
@@ -196,10 +191,7 @@
|
|
|
196
191
|
if (option) {
|
|
197
192
|
self.model.value = option[self.model.optionAttrs.value];
|
|
198
193
|
self.model.text = option[self.model.optionAttrs.label];
|
|
199
|
-
self.model.options.push(
|
|
200
|
-
Code: self.model.value,
|
|
201
|
-
Name: self.model.text
|
|
202
|
-
});
|
|
194
|
+
self.model.options.push(option);
|
|
203
195
|
|
|
204
196
|
self.soChange();
|
|
205
197
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div class="ct-tags" style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1;display:flex" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
|
|
4
|
+
<div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</span>
|
|
18
18
|
</span>
|
|
19
19
|
</div>
|
|
20
|
-
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.
|
|
20
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(!model.paramName || model.lock) ? 'manual' : 'click'">
|
|
21
21
|
<div>
|
|
22
22
|
<div>
|
|
23
23
|
<el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
|
|
@@ -186,26 +186,24 @@
|
|
|
186
186
|
clickHandle: function () {
|
|
187
187
|
if (this.model.lock) {
|
|
188
188
|
return false;
|
|
189
|
+
}
|
|
190
|
+
if (this.model.paramName) {
|
|
191
|
+
this.$set(this, 'showDrop', !this.showDrop);
|
|
192
|
+
if (this.showDrop) {
|
|
193
|
+
this.getOptions();
|
|
194
|
+
}
|
|
195
|
+
this.focusHandle();
|
|
189
196
|
}
|
|
190
|
-
if
|
|
197
|
+
else if(this.model.popupSearchListType === 1) {
|
|
191
198
|
this.popupSearchListHandle();
|
|
192
199
|
}
|
|
193
|
-
else {
|
|
194
|
-
|
|
195
|
-
this.$set(this, 'showDrop', !this.showDrop);
|
|
196
|
-
if (this.showDrop) {
|
|
197
|
-
this.getOptions();
|
|
198
|
-
}
|
|
199
|
-
this.focusHandle();
|
|
200
|
-
}
|
|
201
|
-
else if ((this.model.popupSearchListType === 0)) {
|
|
202
|
-
this.$message.warning("请配置参数paramName1");
|
|
203
|
-
}
|
|
200
|
+
else if ((this.model.popupSearchListType === 0)) {
|
|
201
|
+
this.$message.warning("请配置参数paramName1");
|
|
204
202
|
}
|
|
205
203
|
},
|
|
206
204
|
popupSearchListHandle: function () {
|
|
207
205
|
var self = this;
|
|
208
|
-
|
|
206
|
+
self.showDrop=false;
|
|
209
207
|
self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
|
|
210
208
|
self.selectOptionArr(optionArr);
|
|
211
209
|
});
|
|
@@ -280,9 +278,14 @@
|
|
|
280
278
|
selectOptionArr(optionArr) {
|
|
281
279
|
var self = this;
|
|
282
280
|
optionArr.forEach((s) => {
|
|
283
|
-
if (!self.model.value.find((v) => { return v === s.
|
|
284
|
-
|
|
285
|
-
self.model.value
|
|
281
|
+
if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
|
|
282
|
+
let op={};
|
|
283
|
+
op[self.model.optionAttrs.value]=s[self.model.optionAttrs.value];
|
|
284
|
+
op[self.model.optionAttrs.label]=s[self.model.optionAttrs.label];
|
|
285
|
+
op[self.model.optionAttrs.rowid]='';
|
|
286
|
+
op[self.model.optionAttrs.flagDeleted]=false;
|
|
287
|
+
self.model.options.push(op);
|
|
288
|
+
self.model.value.push(s[self.model.optionAttrs.value]);
|
|
286
289
|
}
|
|
287
290
|
});
|
|
288
291
|
|
|
@@ -10,7 +10,10 @@ const SearchCategory = function (source, callBack) {
|
|
|
10
10
|
showLabel:true,
|
|
11
11
|
get value() {
|
|
12
12
|
if(!data.code1){
|
|
13
|
-
|
|
13
|
+
if(rtn.segmentValue[0][rtn.optionAttrs.displayLabel]){
|
|
14
|
+
rtn.label=rtn.segmentValue[0][rtn.optionAttrs.displayLabel];
|
|
15
|
+
}
|
|
16
|
+
return rtn.segmentValue[0][rtn.optionAttrs.value];
|
|
14
17
|
}
|
|
15
18
|
return data.code1;
|
|
16
19
|
},
|
|
@@ -24,7 +27,8 @@ const SearchCategory = function (source, callBack) {
|
|
|
24
27
|
value: 'code',
|
|
25
28
|
label: 'name',
|
|
26
29
|
actionType: 'actionType',
|
|
27
|
-
flagDeleted: 'flagDeleted'
|
|
30
|
+
flagDeleted: 'flagDeleted',
|
|
31
|
+
displayLabel: 'displayName',
|
|
28
32
|
}
|
|
29
33
|
};
|
|
30
34
|
rtn = base.copy(Base(data), rtn);
|
package/src/main.js
CHANGED
|
@@ -12,8 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
|
|
16
|
-
baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
17
17
|
zindex: 999,
|
|
18
18
|
showRequestErrorMessage: true,
|
|
19
19
|
handler: {
|