|
@@ -27,7 +27,7 @@
|
|
</el-cascader>
|
|
</el-cascader>
|
|
<el-button type="primary" @click="$router.push('AddNewEntries')"> 新增</el-button>
|
|
<el-button type="primary" @click="$router.push('AddNewEntries')"> 新增</el-button>
|
|
<a :href="exportUser" download>
|
|
<a :href="exportUser" download>
|
|
- <el-button type="primary" style="width: 80px;margin-left:15px">导出</el-button>
|
|
|
|
|
|
+ <el-button type="primary" style="width: 80px; margin-left: 15px">导出</el-button>
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -61,12 +61,17 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
+ <el-col :span="24" class="toolbar">
|
|
|
|
+ <m-page :total="total" :page_no="page_no" :pageSize="pageSize" @handleCurrentChange="handleCurrentChange" />
|
|
|
|
+ </el-col>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { customInterence, xClassCustomApi } from "@/api/api.js";
|
|
import { customInterence, xClassCustomApi } from "@/api/api.js";
|
|
|
|
+import mPage from "@/components/mPage.vue";
|
|
export default {
|
|
export default {
|
|
name: "EntryRecords",
|
|
name: "EntryRecords",
|
|
props: {
|
|
props: {
|
|
@@ -75,6 +80,7 @@ export default {
|
|
default: "",
|
|
default: "",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ components: { mPage },
|
|
computed: {
|
|
computed: {
|
|
exportUser() {
|
|
exportUser() {
|
|
let baseUrl = process.env.API_ROOT + "/cygx/enterScore/list";
|
|
let baseUrl = process.env.API_ROOT + "/cygx/enterScore/list";
|
|
@@ -222,6 +228,11 @@ export default {
|
|
this.page_no = 1;
|
|
this.page_no = 1;
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
|
|
+ //分页
|
|
|
|
+ handleCurrentChange(page) {
|
|
|
|
+ this.page_no = page;
|
|
|
|
+ this.getDataList();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|