From 192c37c946f6b4941160e243db9da865855b75a8 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 6 Jun 2024 09:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8B=96=E6=8B=BD=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 4 +- package.json | 2 +- src/api/shop.js | 12 ++++ .../components/winestorage/record.vue | 10 ++-- src/views/product/index.vue | 55 +++++++++++++++++-- 6 files changed, 74 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index 54539eb..a678005 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,10 @@ ENV = 'development' # 接口地址 -# VUE_APP_BASE_API = 'http://192.168.2.44: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' -VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.96:8000' VUE_APP_WS_API = 'ws://192.168.2.128:8000' 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/package.json b/package.json index 8f631d1..a5eb161 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "path-to-regexp": "2.4.0", "qs": "^6.10.1", "screenfull": "4.2.0", - "sortablejs": "1.8.4", + "sortablejs": "^1.15.2", "vue": "^2.6.14", "vue-amap": "^0.5.10", "vue-clipboard2": "^0.3.3", diff --git a/src/api/shop.js b/src/api/shop.js index cd0d917..9b150c4 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -443,3 +443,15 @@ export function queryAllShopUser(params) { } }); } + +/** + * 修改商品排序 + * @returns + */ +export function upProSort(data) { + return request({ + url: `/api/tbProduct/upProSort`, + method: "post", + data + }); +} diff --git a/src/views/application/components/winestorage/record.vue b/src/views/application/components/winestorage/record.vue index 9915b5b..036f86d 100644 --- a/src/views/application/components/winestorage/record.vue +++ b/src/views/application/components/winestorage/record.vue @@ -18,8 +18,8 @@ - 查询 - 重置 + 查询 + 重置 @@ -122,8 +122,10 @@ export default { methods: { // 重置查询 resetHandle() { - this.tableData.page = 0; + this.tableData.page = 0 this.query.name = '' + this.query.telphone = '' + this.query.status = 1 this.getTableData() }, // 分页回调 @@ -133,8 +135,8 @@ export default { }, // 获取商品列表 async getTableData() { - this.tableData.loading = true try { + this.tableData.loading = true const res = await storageList({ ...this.query, page: this.tableData.page, diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 3625eeb..b4c4510 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -31,8 +31,9 @@ -
- +
+ +