From 2026193f0f87a3712e9d43853f2a5e9ad7d6c633 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 14 Jun 2024 11:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=89=B9=E9=87=8F=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=A1=8C=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.production | 4 ++-- src/api/table.js | 5 +++-- .../components/winestorage/addModal.vue | 2 +- src/views/product/index.vue | 2 +- .../table/components/downloadTableCode.vue | 20 +++++++++++++++---- src/views/table/table_list.vue | 6 ++++-- src/views/user_manage/user_list.vue | 11 ++++------ 8 files changed, 32 insertions(+), 19 deletions(-) diff --git a/.env.development b/.env.development index c0ecd45..b229ab0 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,7 @@ ENV = 'development' # 接口地址 +# VUE_APP_BASE_API = 'http://192.168.2.202:8000' # VUE_APP_BASE_API = 'http://192.168.2.42:8000' # VUE_APP_BASE_API = 'http://192.168.2.133:8000' VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' diff --git a/.env.production b/.env.production index ffc2fc2..3b02e74 100644 --- a/.env.production +++ b/.env.production @@ -2,8 +2,8 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http -VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' -# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' +VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.98:8000' # 如果接口是 http 形式, wss 需要改为 ws VUE_APP_WS_API = 'wss://123.56.110.252 diff --git a/src/api/table.js b/src/api/table.js index 7a46a1a..ee1c9d8 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -79,8 +79,9 @@ export function tbShopTableDelete(data) { */ export function downloadTableCode(data) { return request({ - url: `/api/tbShopTable`, + url: `/api/deviceStock/batchDownload`, method: "post", - data + data, + responseType: "blob" }); } diff --git a/src/views/application/components/winestorage/addModal.vue b/src/views/application/components/winestorage/addModal.vue index eaab21c..c7c0b84 100644 --- a/src/views/application/components/winestorage/addModal.vue +++ b/src/views/application/components/winestorage/addModal.vue @@ -107,7 +107,7 @@ export default { this.loading = true try { const res = await queryAllShopUser({ - telephone: query, + name: query, }) this.loading = false this.options = res.content diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 6863c9d..1ba27f4 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -119,7 +119,7 @@ export default { tableData: { data: [], page: 0, - size: 10, + size: 30, loading: false, total: 0 } diff --git a/src/views/table/components/downloadTableCode.vue b/src/views/table/components/downloadTableCode.vue index 01a97f4..0d32964 100644 --- a/src/views/table/components/downloadTableCode.vue +++ b/src/views/table/components/downloadTableCode.vue @@ -1,8 +1,8 @@