import http from '@/request/index.js'; //跟台包清台 export const state = { followData: [], surgcalData:[] }; export const mutations = { setFollowData(state, data) { state.followData = data }, } export const actions = { getFollowData({ commit, rootState }, data) { return new Promise((resolve, reject) => { http('followplat.getListData', { ...data.pam, }, '加载中').then(res => { if (res.success == true) { data.that.$refs.paging.complete(res.data.records); } else { // commit('DetailsData', []); } }).catch(e => { reject(e) }) }) }, getSurgcalData({ commit, rootState }, data) { return new Promise((resolve, reject) => { http('surgical.getListData', { ...data.pam, }, '加载中').then(res => { if (res.success == true) { data.that.$refs.paging.complete(res.data.records); } else { // commit('DetailsData', []); } }).catch(e => { reject(e) }) }) }, }