|
|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<div class="ele-body">
|
|
|
<el-card shadow="never" v-loading="loading">
|
|
|
- <pick-search @search="reload" ref="searchRef" :isReturn="isReturn"> </pick-search>
|
|
|
+ <pick-search @search="reload" ref="searchRef" :isReturn="isReturn">
|
|
|
+ </pick-search>
|
|
|
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
|
@@ -193,12 +194,17 @@
|
|
|
/* 表格数据源 */
|
|
|
async datasource({ page, limit, where }) {
|
|
|
let URL = this.isReturn ? returnPage : getPage;
|
|
|
- let res = await URL({
|
|
|
- ...where,
|
|
|
|
|
|
+ let parma = {
|
|
|
+ ...where,
|
|
|
pageNum: page,
|
|
|
size: limit
|
|
|
- });
|
|
|
+ };
|
|
|
+ if (this.isReturn) {
|
|
|
+ parma.status = 2;
|
|
|
+ }
|
|
|
+
|
|
|
+ let res = await URL(parma);
|
|
|
|
|
|
return res;
|
|
|
},
|