|
@@ -46,19 +46,17 @@ export default {
|
|
|
list: {},
|
|
|
};
|
|
|
},
|
|
|
- onShow() {
|
|
|
+ created() {
|
|
|
let { merchant } = this.$store.state.data.merchantInfo;
|
|
|
this.list = merchant;
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- this.getAppointList();
|
|
|
- }, 300);
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getAppointList();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
async getAppointList() {
|
|
|
let result = Object.assign({}, { ...this.params }, { merchantId: this.list.id });
|
|
|
- console.log(result, '0000000');
|
|
|
let res = await getAppointListApi({ ...result });
|
|
|
|
|
|
if (res.code === 'OK') {
|