From 684a83b0db18796de4eb5694e439d5c2ca48dd2e Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 8 Apr 2025 16:13:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E5=BA=97=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/shopBranch.ts | 11 +++++++---- src/views/shop/branchStore/index.vue | 22 +++++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) 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;