|
@@ -23,8 +23,8 @@
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<div class="head">
|
|
|
- <el-button type="primary" class="btn" @click="allPassClick(3)">批量审核通过</el-button>
|
|
|
- <el-button type="primary" class="btn" @click="allPassClick(4)">批量审核拒绝</el-button>
|
|
|
+ <el-button type="primary" class="btn" @click="debouncedAllPassClick(3)">批量审核通过</el-button>
|
|
|
+ <el-button type="primary" class="btn" @click="debouncedAllPassClick(4)">批量审核拒绝</el-button>
|
|
|
<el-checkbox v-model="allCheck" @change="allClick">全选</el-checkbox>
|
|
|
<el-tag
|
|
|
>当前已选择 {{ checkedIds.length }} 条项目
|
|
@@ -295,8 +295,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="btns">
|
|
|
- <el-button :disabled="getShowBtn(item)" class="btn" @click="passClick(index, 4, item.id)">拒绝</el-button>
|
|
|
- <el-button :disabled="getShowBtn(item)" class="btn" type="primary" @click="passClick(index, 3, item.id)">通过</el-button>
|
|
|
+ <el-button :disabled="getShowBtn(item)" class="btn" @click="debouncedPassClick(index, 4, item.id)">拒绝</el-button>
|
|
|
+ <el-button :disabled="getShowBtn(item)" class="btn" type="primary" @click="debouncedPassClick(index, 3, item.id)">通过</el-button>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</div>
|
|
@@ -305,6 +305,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { debounce } from '@/util/util';
|
|
|
import { fetchList, batchApprovalTask, wmreportFetchList, wmreportBatchApprovalTask } from '@/api/quickAudit.js';
|
|
|
import { getTaskList } from '@/api/assignPoints/currency/taskAudit';
|
|
|
import taskApi from '@/api/taskDetail/task';
|
|
@@ -344,6 +345,9 @@ export default {
|
|
|
...mapGetters(['userInfo', 'roles'])
|
|
|
},
|
|
|
created() {
|
|
|
+ this.debouncedPassClick = debounce(this.passClick, 500);
|
|
|
+ this.debouncedAllPassClick = debounce(this.allPassClick, 500);
|
|
|
+
|
|
|
this.getTaskList();
|
|
|
this.getList();
|
|
|
},
|