diff --git a/src/api/account/shopBranch.ts b/src/api/account/shopBranch.ts index 9682253..7f47450 100644 --- a/src/api/account/shopBranch.ts +++ b/src/api/account/shopBranch.ts @@ -10,23 +10,26 @@ const ShopBranchApi = { params }); }, + getDataSync(params: any) { + return request({ + url: `${baseURL}/get/dataSyncMethod`, + method: "get", + params + }); + }, setDataSync(id: any) { - console.log(id) return request({ url: `${baseURL}/setting/dataSyncMethod?dataSyncMethod=${id}`, method: "post", }); }, dataSync(id: any) { - console.log(id) return request({ url: `${baseURL}/data/sync/enable?branchShopId=${id}`, method: "post", }); }, enable(id: any) { - console.log(id) - return request({ url: `${baseURL}/account/enable?branchShopId=${id}`, method: "post", diff --git a/src/views/shop/branchStore/index.vue b/src/views/shop/branchStore/index.vue index 353cfdb..ce6b596 100644 --- a/src/views/shop/branchStore/index.vue +++ b/src/views/shop/branchStore/index.vue @@ -7,17 +7,19 @@ - - - - - + - + 查询 重置 + + 同步设置: + + + + @@ -102,7 +104,13 @@ const state = reactive({ }); onMounted(() => { getTableData(); + getDataSync() }); +async function getDataSync () { + let res = await ShopBranchApi.getDataSync() + state.par.dataSyncMethod = res +} + // 获取分店列表 async function getTableData() { state.tableData.loading = true;