Commit 3aafc8d8 by cwq0219

修改

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