diff --git a/src/api/store/index.ts b/src/api/store/index.ts index c6e64b0..f3c471c 100644 --- a/src/api/store/index.ts +++ b/src/api/store/index.ts @@ -16,6 +16,7 @@ export function getStoreAccountList(data: any): AxiosPromise { data }); } + //添加门店账号 export function addStoreAccount(data: any): AxiosPromise { return request({ diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 6051260..74fb0b9 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -1,27 +1,52 @@ - import request from '@/utils/request'; import { AxiosPromise } from 'axios'; //获取用户列表 export function getUserList(data): AxiosPromise { - return request({ - url: '/admin/v1/user/list', - method: 'post', - data - }); + return request({ + url: '/admin/v1/user/list', + method: 'post', + data + }); } //获取用户档案接口 export function getUserarchive(data): AxiosPromise { - return request({ - url: '/admin/v1/user/archive', - method: 'post', - data - }); + return request({ + url: '/admin/v1/user/archive', + method: 'post', + data + }); } //获取用户档案详情接口 export function getUserarchiveDetail(data): AxiosPromise { - return request({ - url: '/admin/v1/user/detail', - method: 'post', - data - }); + return request({ + url: '/admin/v1/user/detail', + method: 'post', + data + }); +} + +//获取用户授权门店列表 +export function getUserAuthStoreList(data: any): AxiosPromise { + return request({ + url: '/admin/v1/bind/store', + method: 'post', + data + }); +} + +//获取用户检测列表 +export function getUserDetectionList(data: any): AxiosPromise { + return request({ + url: '/admin/v1/scan/list', + method: 'post', + data + }); +} +//用户检测-操作 +export function userDetectionOperation(data: any): AxiosPromise { + return request({ + url: '/admin/v1/scan/state', + method: 'post', + data + }); } \ No newline at end of file diff --git a/src/views/store/index.vue b/src/views/store/index.vue index 067237b..f3c676d 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -3,8 +3,10 @@ - + + + @@ -17,6 +19,7 @@ + @@ -27,25 +30,12 @@ -- + - - - - - - - - - + import { reactive, ref, onMounted } from 'vue'; import { getUserList, getUserarchive, getUserarchiveDetail } from '@/api/user'; -import { getStoreUserList } from '@/api/store/index' +import { getStoreAccountList, getStoreUserList } from '@/api/store/index'; import { ElMessage } from 'element-plus'; import { Search, Refresh } from '@element-plus/icons-vue'; -const statusData = { - 1: '未注册', - 2: '未进行人脸识别', - 3: '未完善信息', - 4: '正常' -} +const storeLists = ref([]); +const getStoreLists = async () => { + const { data } = await getStoreAccountList({}); + storeLists.value = data || []; + console.log(data, '门店账号列表') +}; +getStoreLists(); + const loading = ref(false); const total = ref(0); const userList = ref([]); @@ -134,7 +126,7 @@ function loadArchive() { const queryParams = reactive({ page: 1, size: 10, - keyword: '' + store_id: 128 }); function handleQuery() { diff --git a/src/views/user/index.vue b/src/views/user/index.vue index cdd9872..b57c5ca 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -44,6 +44,7 @@ @@ -72,12 +73,28 @@ + + + + + + + + + + + + + +