|
|
@@ -21,7 +21,7 @@
|
|
|
<el-input size="small" v-model="quoteDetailForm.createBy" placeholder="请输入工号查找"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="width: 30%;">
|
|
|
- <el-button type="primary" size="small" style="margin-left: 150px;" @click="initData()">查询</el-button>
|
|
|
+ <el-button type="primary" size="small" style="margin-left: 150px;" @click="search()">查询</el-button>
|
|
|
<el-button size="small" @click="reset()">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -98,6 +98,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 查询
|
|
|
+ search() {
|
|
|
+ this.pageNum = 1
|
|
|
+ this.initData()
|
|
|
+ },
|
|
|
// 获取列表数据
|
|
|
initData() {
|
|
|
this.$api.quote.getAppendUserQuotePage({
|
|
|
@@ -106,6 +111,8 @@ export default {
|
|
|
createBy: this.quoteDetailForm.createBy,
|
|
|
startTime: this.quoteDetailForm.rangeDate&&this.quoteDetailForm.rangeDate.length>0?this.quoteDetailForm.rangeDate[0]:'',
|
|
|
endTime: this.quoteDetailForm.rangeDate&&this.quoteDetailForm.rangeDate.length>1?this.quoteDetailForm.rangeDate[1]:'',
|
|
|
+ pageNum: this.pageNum,
|
|
|
+ pageSize: this.pageSize
|
|
|
}).then(res => {
|
|
|
if(res.code === 200) {
|
|
|
this.tableData = res.data.records
|
|
|
@@ -117,6 +124,7 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
reset() {
|
|
|
+ this.pageNum = 1
|
|
|
this.quoteDetailForm = {}
|
|
|
this.initData();
|
|
|
},
|