|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div id="adviserList">
|
|
|
- <appointment-detail :liebiaoList="liebiaoList" @deleteRow="deleteRow" :resultTable="resultTable" @onsave="onsaveClick"></appointment-detail>
|
|
|
+ <appointment-detail
|
|
|
+ :liebiaoList="liebiaoList"
|
|
|
+ @query="search"
|
|
|
+ :total="total"
|
|
|
+ @deleteRow="deleteRow"
|
|
|
+ :resultTable="resultTable"
|
|
|
+ @onsave="onsaveClick"
|
|
|
+ ></appointment-detail>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -16,6 +23,7 @@ export default {
|
|
|
appointmentDetail,
|
|
|
},
|
|
|
data: () => ({
|
|
|
+ total: 0,
|
|
|
info: {},
|
|
|
liebiaoList: [
|
|
|
{ name: '基本信息' },
|
|
@@ -40,12 +48,18 @@ export default {
|
|
|
...dock(['query', 'delete', 'update']),
|
|
|
...login({ logout: 'logout', transactiondtetle: 'delete' }),
|
|
|
//查询
|
|
|
- async search() {
|
|
|
- let res = await this.query();
|
|
|
+ async search({ skip = 0, limit = 4 } = { skip: 0, limit: 4 }) {
|
|
|
+ let res = await this.query({ skip, limit });
|
|
|
console.log(res.data);
|
|
|
this.$set(this, `resultTable`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
console.log();
|
|
|
},
|
|
|
+
|
|
|
+ search1({ skip, limit }) {
|
|
|
+ console.log(skip);
|
|
|
+ },
|
|
|
+
|
|
|
async onsaveClick({ id }) {
|
|
|
console.log(id);
|
|
|
if (id === '基本信息') {
|