diff --git a/src/api/store/index.ts b/src/api/store/index.ts new file mode 100644 index 0000000..c6e64b0 --- /dev/null +++ b/src/api/store/index.ts @@ -0,0 +1,50 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +//获取门店授权-用户列表 +export function getStoreUserList(data: any): AxiosPromise { + return request({ + url: '/admin/v1/bind/user', + method: 'post', + data + }); +} +//获取门店账号列表 +export function getStoreAccountList(data: any): AxiosPromise { + return request({ + url: '/admin/v1/store/list', + method: 'post', + data + }); +} +//添加门店账号 +export function addStoreAccount(data: any): AxiosPromise { + return request({ + url: '/admin/v1/store/create', + method: 'post', + data + }); +} +//编辑门店账号 +export function editStoreAccount(data: any): AxiosPromise { + return request({ + url: '/admin/v1/store/update', + method: 'post', + data + }); +} +//删除门店账号 +export function deleteStoreAccount(data: any): AxiosPromise { + return request({ + url: '/admin/v1/store/delete', + method: 'post', + data + }); +} +//添加账号时选择的门店 +export function getADdStoreList(data: any): AxiosPromise { + return request({ + url: '/admin/v1/store/index', + method: 'post', + data + }); +} diff --git a/src/views/store/index.vue b/src/views/store/index.vue new file mode 100644 index 0000000..067237b --- /dev/null +++ b/src/views/store/index.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/views/store/storeAccountList.vue b/src/views/store/storeAccountList.vue new file mode 100644 index 0000000..7ed745b --- /dev/null +++ b/src/views/store/storeAccountList.vue @@ -0,0 +1,272 @@ + + + + + \ No newline at end of file diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 3d064d5..cdd9872 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -63,6 +63,11 @@ + + + @@ -72,7 +77,7 @@