Commit 3aafc8d8 by cwq0219

修改

1 parent 7d2740d0
...@@ -78,12 +78,6 @@ ...@@ -78,12 +78,6 @@
v-model="merchantSearch.merchantStatus" v-model="merchantSearch.merchantStatus"
placeholder="请选择状态" placeholder="请选择状态"
> >
<!-- <gl-option
v-for="(item, index) in statusItems"
:key="item"
:value="index"
:label="item"
></gl-option> -->
<gl-option <gl-option
v-for="(value, key) in statusItems" v-for="(value, key) in statusItems"
:key="value" :key="value"
...@@ -97,25 +91,13 @@ ...@@ -97,25 +91,13 @@
<gl-form-item label="注册时间:"> <gl-form-item label="注册时间:">
<gl-col :span="11"> <gl-col :span="11">
<gl-date-picker <gl-date-picker
type="date" v-model="merchantSearch.times"
placeholder="选择日期" type="daterange"
v-model="merchantSearch.startTime"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width:92%;" range-separator="至"
></gl-date-picker> start-placeholder="开始日期"
</gl-col> end-placeholder="结束日期">
<gl-col </gl-date-picker>
class="line"
:span="2"
>至</gl-col>
<gl-col :span="11">
<gl-date-picker
type="date"
placeholder="选择日期"
v-model="merchantSearch.endTime"
value-format="yyyy-MM-dd"
style="width: 100%;"
></gl-date-picker>
</gl-col> </gl-col>
</gl-form-item> </gl-form-item>
</gl-col> </gl-col>
...@@ -184,6 +166,11 @@ export default { ...@@ -184,6 +166,11 @@ export default {
this.$emit('hideDialog', true) this.$emit('hideDialog', true)
}, },
handleComfrim() { handleComfrim() {
if (this.merchantSearch.times) {
this.merchantSearch.startTime = this.merchantSearch.times[0]
this.merchantSearch.endTime = this.merchantSearch.times[1]
delete this.merchantSearch.times
}
this.eventBus.$emit('reset') this.eventBus.$emit('reset')
this.$emit('comfirmDialog') this.$emit('comfirmDialog')
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!