Commit 70a8faed by jack

修复bug

1 parent 25826774
...@@ -22,10 +22,11 @@ ...@@ -22,10 +22,11 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList()">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="getList()">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="rest()">重置</el-button> <el-button type="primary" icon="el-icon-refresh" size="mini" @click="rest()">重置</el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item>
</el-form-item> -->
</el-form> </el-form>
</div> </div>
<!-- 搜索区域 end --> <!-- 搜索区域 end -->
......
...@@ -128,18 +128,6 @@ export default { ...@@ -128,18 +128,6 @@ export default {
sTime: "", sTime: "",
eTime: "", eTime: "",
pickerOptions: { pickerOptions: {
disabledDate: (time) => {
let m = this.sTime || (this.mileageDate[0])||''
if (m) {
let days = moment(time).diff(moment(m), "days");
if (days > 60) {
return true;
}
if(-days >60){
return true
}
}
},
onPick: ({ maxDate, minDate }) => { onPick: ({ maxDate, minDate }) => {
this.sTime = minDate || ""; this.sTime = minDate || "";
this.eTime = maxDate || ""; this.eTime = maxDate || "";
...@@ -253,8 +241,8 @@ export default { ...@@ -253,8 +241,8 @@ export default {
method: "GET", method: "GET",
data: oParams, data: oParams,
fileName: `日里程统计报表(${moment(oParams.mileageStartTime).format( fileName: `日里程统计报表(${moment(oParams.mileageStartTime).format(
"yyyyMMDD" "yyyy.MM.DD"
)}-${moment(oParams.mileageEndTime).format("yyyyMMDD")})`, )}-${moment(oParams.mileageEndTime).format("yyyy.MM.DD")}).xlsx`,
success: () => { success: () => {
_this.cloading = false; _this.cloading = false;
}, },
...@@ -269,6 +257,7 @@ export default { ...@@ -269,6 +257,7 @@ export default {
this.searchForm = {}; this.searchForm = {};
this.searchText = ""; this.searchText = "";
this.preText = "orderNo"; this.preText = "orderNo";
this.mileageDate = []
this.getList(); this.getList();
this.$refs.glsxTable.rest(); this.$refs.glsxTable.rest();
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!