|
|
@ -4,11 +4,11 @@ import { axios } from '@/utils/request' |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function getVersion(params) { |
|
|
|
export function getVersion (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.getVersion, |
|
|
|
url: api.store.getVersion, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -16,88 +16,88 @@ export function getVersion(params) { |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function delTemplatelist(params) { |
|
|
|
export function delTemplatelist (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.delTemplatelist, |
|
|
|
url: api.store.delTemplatelist, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function commit(params) { |
|
|
|
export function commit (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.commit, |
|
|
|
url: api.store.commit, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function addTotemplate(params) { |
|
|
|
export function addTotemplate (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.addTotemplate, |
|
|
|
url: api.store.addTotemplate, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function auditBeforeCheck(params) { |
|
|
|
export function auditBeforeCheck (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.auditBeforeCheck, |
|
|
|
url: api.store.auditBeforeCheck, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function audit(params) { |
|
|
|
export function audit (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.audit, |
|
|
|
url: api.store.audit, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function qrcode(params) { |
|
|
|
export function qrcode (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.qrcode, |
|
|
|
url: api.store.qrcode, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function list(params) { |
|
|
|
export function list (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.list, |
|
|
|
url: api.store.list, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function authList(params) { |
|
|
|
export function authList (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.authList, |
|
|
|
url: api.store.authList, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -105,33 +105,33 @@ export function authList(params) { |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function templatedraftlist(params) { |
|
|
|
export function templatedraftlist (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.templatedraftlist, |
|
|
|
url: api.store.templatedraftlist, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取列表 |
|
|
|
* 获取列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function templatelist(params) { |
|
|
|
export function templatelist (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.templatelist, |
|
|
|
url: api.store.templatelist, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取商城登录token |
|
|
|
* 获取商城登录token |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function superLogin({ storeId }) { |
|
|
|
export function superLogin ({ storeId }) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.superLogin, |
|
|
|
url: api.store.superLogin, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params: { storeId }, |
|
|
|
params: { storeId } |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -139,11 +139,11 @@ export function superLogin({ storeId }) { |
|
|
|
* 回收站列表 |
|
|
|
* 回收站列表 |
|
|
|
* @param {*} params |
|
|
|
* @param {*} params |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function recycle(params) { |
|
|
|
export function recycle (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.recycle, |
|
|
|
url: api.store.recycle, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -151,11 +151,11 @@ export function recycle(params) { |
|
|
|
* 新增记录 |
|
|
|
* 新增记录 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function add(data) { |
|
|
|
export function add (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.add, |
|
|
|
url: api.store.add, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -163,11 +163,11 @@ export function add(data) { |
|
|
|
* 移入回收站 |
|
|
|
* 移入回收站 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function recovery(data) { |
|
|
|
export function recovery (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.recovery, |
|
|
|
url: api.store.recovery, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -175,11 +175,11 @@ export function recovery(data) { |
|
|
|
* 删除记录 |
|
|
|
* 删除记录 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function del(data) { |
|
|
|
export function del (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.delete, |
|
|
|
url: api.store.delete, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -187,11 +187,11 @@ export function del(data) { |
|
|
|
* 移出回收站 |
|
|
|
* 移出回收站 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function move(data) { |
|
|
|
export function move (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.move, |
|
|
|
url: api.store.move, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -199,35 +199,35 @@ export function move(data) { |
|
|
|
* 获取数据授权 |
|
|
|
* 获取数据授权 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function getDataList(data) { |
|
|
|
export function getDataList (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.module.dataList, |
|
|
|
url: api.store.module.dataList, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取数据授权平台列表 |
|
|
|
* 获取数据授权平台列表 |
|
|
|
* @param {*} data |
|
|
|
* @param {*} data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function getStorePlatform(params) { |
|
|
|
export function getStorePlatform (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.module.getStorePlatform, |
|
|
|
url: api.store.module.getStorePlatform, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
export function setStorePlatform(data) { |
|
|
|
export function setStorePlatform (data) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.module.setStorePlatform, |
|
|
|
url: api.store.module.setStorePlatform, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: data, |
|
|
|
data: data |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
export function getGoodsList(params) { |
|
|
|
export function getGoodsList (params) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.store.module.getGoodsList, |
|
|
|
url: api.store.module.getGoodsList, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|