12345678910111213141516171819202122232425262728293031 |
- import http from '@/request/index.js';
- // 上架详情
- export const state = {
- deliveryData: []
- };
- export const mutations = {
- setDeliveryData(state, data) {
- state.deliveryData = data
- },
- }
- export const actions = {
- getDeliveryData({
- commit,
- rootState
- }, data) {
- return new Promise((resolve, reject) => {
- http('delivery.getListData', {
- ...data.pam,
- }, '加载中').then(res => {
- if (res.success == true) {
- data.that.$refs.paging.complete(res.data.records);
- } else {
- // commit('DetailsData', []);
- }
- }).catch(e => {
- reject(e)
- })
- })
- },
- }
|