Commit a38e0264 by crushh

udpate: 去掉抖动

parent 6e63f7f5
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<div class="table-condition flex flex-space-between m-b-20"> <div class="table-condition flex flex-space-between m-b-20">
<div class="table-condition-left flex flex-align-center"> <div class="table-condition-left flex flex-align-center">
<el-input placeholder="请输入话务任务名称" maxlength="50" v-model="conditionObj.searchInput" class="w-264" style="width: 264px;" @keyup.native="value => toInput(value, conditionObj.searchInput)"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input placeholder="请输入话务任务名称" maxlength="50" v-model="conditionObj.searchInput" class="w-264" style="width: 264px;" @keyup.native.enter="toInput"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
<!-- <span class="condition-tips font-12 color-909399 p-l-10">仅包含话务任务记录</span> --> <!-- <span class="condition-tips font-12 color-909399 p-l-10">仅包含话务任务记录</span> -->
<span style="font-size:14px;" class="m-l-10">创建时间:</span><el-date-picker class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker> <span style="font-size:14px;" class="m-l-10">创建时间:</span><el-date-picker class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
</div> </div>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<script> <script>
import multipleDel from '@/components/app/cloudDaily/multiple-del.vue'; import multipleDel from '@/components/app/cloudDaily/multiple-del.vue';
import { getRequest, postRequest, postExcel } from '@/api/api'; import { getRequest, postRequest, postExcel } from '@/api/api';
import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
export default { export default {
...@@ -177,11 +177,15 @@ export default { ...@@ -177,11 +177,15 @@ export default {
/** /**
* 输入 * 输入
*/ */
toInput: _debounce(function(e, value) { // toInput: _debounce(function(e, value) {
let that = this; // let that = this;
that.currentPage = 1; // that.currentPage = 1;
that.getTableList(); // that.getTableList();
}, 500), // }, 500),
toInput() {
this.currentPage = 1;
this.getTableList();
},
/** /**
* 门店类型 * 门店类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment