|
|
@@ -14,7 +14,7 @@
|
|
|
clearable
|
|
|
v-model="defaultWhere[item.value]"
|
|
|
:placeholder="item.placeholder || '请输入内容'"
|
|
|
- :style="{ width: item.width ? item.width + 'px' : '220px' }"
|
|
|
+ :style="{ width: item.width ? item.width + 'px' : '230px' }"
|
|
|
/>
|
|
|
</div>
|
|
|
<div v-if="item.type == 'select'">
|
|
|
@@ -24,7 +24,7 @@
|
|
|
:multiple="item.multiple ? item.multiple : false"
|
|
|
:filterable="item.filterable ? item.filterable : true"
|
|
|
:placeholder="item.placeholder || '请选择'"
|
|
|
- :style="{ width: item.width ? item.width + 'px' : '220px' }"
|
|
|
+ :style="{ width: item.width ? item.width + 'px' : '230px' }"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(op, i) in item.planList"
|
|
|
@@ -46,7 +46,7 @@
|
|
|
labelKey="name"
|
|
|
:placeholder="item.placeholder || '请选择'"
|
|
|
default-expand-all
|
|
|
- :style="{ width: item.width ? item.width + 'px' : '220px' }"
|
|
|
+ :style="{ width: item.width ? item.width + 'px' : '230px' }"
|
|
|
/>
|
|
|
</div>
|
|
|
<div v-if="item.type == 'date'">
|
|
|
@@ -58,7 +58,7 @@
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :style="{ width: item.width ? item.width + 'px' : '220px' }"
|
|
|
+ :style="{ width: item.width ? item.width + 'px' : '380px' }"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
@@ -99,7 +99,7 @@
|
|
|
v-model="defaultWhere[item.value]"
|
|
|
:placeholder="item.placeholder || '请输入内容'"
|
|
|
:style="{
|
|
|
- width: item.width ? item.width + 'px' : '220px'
|
|
|
+ width: item.width ? item.width + 'px' : '230px'
|
|
|
}"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -111,7 +111,7 @@
|
|
|
:filterable="item.filterable ? item.filterable : true"
|
|
|
:placeholder="item.placeholder || '请选择'"
|
|
|
:style="{
|
|
|
- width: item.width ? item.width + 'px' : '220px'
|
|
|
+ width: item.width ? item.width + 'px' : '230px'
|
|
|
}"
|
|
|
@visible-change="change"
|
|
|
@change="handerChange"
|
|
|
@@ -137,7 +137,7 @@
|
|
|
:placeholder="item.placeholder || '请选择'"
|
|
|
default-expand-all
|
|
|
:style="{
|
|
|
- width: item.width ? item.width + 'px' : '220px'
|
|
|
+ width: item.width ? item.width + 'px' : '230px'
|
|
|
}"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -151,7 +151,7 @@
|
|
|
end-placeholder="结束日期"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
:style="{
|
|
|
- width: item.width ? item.width + 'px' : '220px'
|
|
|
+ width: item.width ? item.width + 'px' : '230px'
|
|
|
}"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
@@ -257,6 +257,18 @@
|
|
|
},
|
|
|
|
|
|
search() {
|
|
|
+ let valueAr = this.seekList.filter((item) => item.valueAr);
|
|
|
+ valueAr.forEach((item) => {
|
|
|
+ let data = this.defaultWhere[item.value];
|
|
|
+ if (data) {
|
|
|
+ this.defaultWhere[item.valueAr[0]] = data[0];
|
|
|
+ this.defaultWhere[item.valueAr[1]] = data[1];
|
|
|
+ } else {
|
|
|
+ delete this.defaultWhere[item.valueAr[0]];
|
|
|
+ delete this.defaultWhere[item.valueAr[1]];
|
|
|
+ }
|
|
|
+ delete this.defaultWhere[item.value];
|
|
|
+ });
|
|
|
this.$emit('search', this.defaultWhere);
|
|
|
},
|
|
|
// 重置
|