|
@@ -7,17 +7,7 @@
|
|
<button :class="['button-sty', { act: filterObj.month === item.label }]" v-for="item in monthLabel" @click="toggleMonth(item.label)" :key="item.label">
|
|
<button :class="['button-sty', { act: filterObj.month === item.label }]" v-for="item in monthLabel" @click="toggleMonth(item.label)" :key="item.label">
|
|
{{ item.label }}
|
|
{{ item.label }}
|
|
</button>
|
|
</button>
|
|
- <date-picker
|
|
|
|
- v-model="filterObj.date"
|
|
|
|
- type="date"
|
|
|
|
- range
|
|
|
|
- value-type="format"
|
|
|
|
- placeholder="自定义时间段"
|
|
|
|
- :clearable="false"
|
|
|
|
- :editable="false"
|
|
|
|
- :disabled-date="disabledBeforeToday"
|
|
|
|
- @change="dateChange"
|
|
|
|
- />
|
|
|
|
|
|
+ <date-picker v-model="filterObj.date" type="date" range value-type="format" placeholder="自定义时间段" clearable :editable="false" :disabled-date="disabledBeforeToday" @change="dateChange" />
|
|
<el-input placeholder="请输入客户名称" v-model.trim="searchVal" style="width: 400px; margin-left: auto" @input="handleSearch" clearable>
|
|
<el-input placeholder="请输入客户名称" v-model.trim="searchVal" style="width: 400px; margin-left: auto" @input="handleSearch" clearable>
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -171,8 +161,8 @@ export default {
|
|
Keyword: this.searchVal,
|
|
Keyword: this.searchVal,
|
|
AdminId: salesArr.join(","),
|
|
AdminId: salesArr.join(","),
|
|
IsAllocation: this.filterObj.status,
|
|
IsAllocation: this.filterObj.status,
|
|
- StartDate: this.filterObj.date[0],
|
|
|
|
- EndDate: this.filterObj.date[1],
|
|
|
|
|
|
+ StartDate: this.filterObj.date[0] ? this.filterObj.date[0] : "",
|
|
|
|
+ EndDate: this.filterObj.date[1] ? this.filterObj.date[1] : "",
|
|
};
|
|
};
|
|
for (let key in obj) {
|
|
for (let key in obj) {
|
|
paramStr = `${paramStr}&${key}=${obj[key]}`;
|
|
paramStr = `${paramStr}&${key}=${obj[key]}`;
|
|
@@ -230,8 +220,8 @@ export default {
|
|
Keyword: this.searchVal,
|
|
Keyword: this.searchVal,
|
|
AdminId: salesArr.join(","),
|
|
AdminId: salesArr.join(","),
|
|
IsAllocation: this.filterObj.status,
|
|
IsAllocation: this.filterObj.status,
|
|
- StartDate: this.filterObj.date[0],
|
|
|
|
- EndDate: this.filterObj.date[1],
|
|
|
|
|
|
+ StartDate: this.filterObj.date[0] ? this.filterObj.date[0] : "",
|
|
|
|
+ EndDate: this.filterObj.date[1] ? this.filterObj.date[1] : "",
|
|
});
|
|
});
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
this.tableList = res.Data.List;
|
|
this.tableList = res.Data.List;
|
|
@@ -266,10 +256,10 @@ export default {
|
|
this.allocationDetailForm = item;
|
|
this.allocationDetailForm = item;
|
|
},
|
|
},
|
|
/* 选择日期 */
|
|
/* 选择日期 */
|
|
- dateChange(e) {
|
|
|
|
- this.page_no = 1;
|
|
|
|
- this.getTableData()
|
|
|
|
- },
|
|
|
|
|
|
+ dateChange(e) {
|
|
|
|
+ this.page_no = 1;
|
|
|
|
+ this.getTableData();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|