|
@@ -10,7 +10,7 @@
|
|
|
clearable
|
|
|
placeholder="请输入"
|
|
|
maxlength="60"
|
|
|
- @keyup.enter.native="doSearch"
|
|
|
+ @keyup.enter.native="doSearch(false)"
|
|
|
>
|
|
|
</el-input>
|
|
|
</template>
|
|
@@ -22,7 +22,7 @@
|
|
|
clearable
|
|
|
placeholder="请输入"
|
|
|
maxlength="60"
|
|
|
- @keyup.enter.native="doSearch"
|
|
|
+ @keyup.enter.native="doSearch(false)"
|
|
|
>
|
|
|
</el-input>
|
|
|
</template>
|
|
@@ -60,7 +60,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template slot="searchBtn1">
|
|
|
- <el-button type="primary" @click="doSearch">查询</el-button>
|
|
|
+ <el-button type="primary" @click="doSearch(false)">查询</el-button>
|
|
|
</template>
|
|
|
<template slot="searchBtn2">
|
|
|
<el-button type="primary" @click="doReset">重置</el-button>
|
|
@@ -221,7 +221,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- doSearch() {
|
|
|
+ doSearch(isTimer = false) {
|
|
|
let createStartDate = "";
|
|
|
if (this.searchParams.createStartDate) {
|
|
|
createStartDate = `${this.searchParams.createStartDate} 00:00:00`;
|
|
@@ -246,14 +246,17 @@ export default {
|
|
|
projectName: this.searchParams.projectName,
|
|
|
createStartDate,
|
|
|
createEndDate,
|
|
|
- resetPageNum: this.pagination.currentPage || 1,
|
|
|
+ resetPageNum: !isTimer ? false : (this.pagination.currentPage || 1),
|
|
|
};
|
|
|
+
|
|
|
+ if(!isTimer) this.pagination.currentPage = 1;
|
|
|
+
|
|
|
this.refreshList(pageMap);
|
|
|
|
|
|
if (this.timer) clearInterval(this.timer);
|
|
|
|
|
|
this.timer = setInterval(() => {
|
|
|
- if (this.$refs["table"]) this.doSearch();
|
|
|
+ if (this.$refs["table"]) this.doSearch(true);
|
|
|
}, 1000 * 60);
|
|
|
},
|
|
|
//刷新table
|
|
@@ -270,7 +273,7 @@ export default {
|
|
|
createEndDate: "",
|
|
|
};
|
|
|
// this.createDate = "";
|
|
|
- this.doSearch();
|
|
|
+ this.doSearch(false);
|
|
|
},
|
|
|
addOne() {
|
|
|
this.$router.push({ path: "/autoRunProjectDetail" });
|
|
@@ -414,7 +417,7 @@ export default {
|
|
|
if (this.timer) clearInterval(this.timer);
|
|
|
|
|
|
this.timer = setInterval(() => {
|
|
|
- if (this.$refs["table"]) this.doSearch();
|
|
|
+ if (this.$refs["table"]) this.doSearch(true);
|
|
|
}, 1000 * 60);
|
|
|
},
|
|
|
|