From 1ed86b73627fb93b26d27acf0391d52ee29d89e9 Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Sun, 25 Aug 2024 09:07:26 +0800 Subject: [PATCH 01/19] =?UTF-8?q?```feat(user):=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=B9=B6=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=99=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在用户页面展示当前用户的余额信息,通过调用用户余额接口获取数据。优化界面布局,确保余额信息 清晰呈现给用户。同时,修复了潜在的token解析问题,保证用户数据准确无误。 修复了用户余额展示的bug,优化了用户界面体验。 ``` --- src/store/modules/user.js | 1 + src/views/money/user/index.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6c109a6..19b32d2 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -69,6 +69,7 @@ const user = { commit('SET_ROLES', ['ROLE_DEFAULT']) } commit('SET_ID', user.userId) + localStorage.setItem('userId', user.userId) commit('SET_NAME', user.userName) commit('SET_AVATAR', avatar) resolve(res) diff --git a/src/views/money/user/index.vue b/src/views/money/user/index.vue index 320d9a7..6ed1897 100644 --- a/src/views/money/user/index.vue +++ b/src/views/money/user/index.vue @@ -23,7 +23,7 @@ export default { async fetchUserBalance() { try { const userId = localStorage.getItem('userId'); - console.log(userId)// 假设你登录后把userId存到了localStorage + console.log(userId)// 登录后把userId存到了localStorage if (!userId) { this.userBalanceData = {userBalance: '未登录'}; return; From 280d8cb968afe7079f60e816287e4aaf9dd35241 Mon Sep 17 00:00:00 2001 From: chaiyapeng <3535863041@qq.com> Date: Sun, 25 Aug 2024 09:08:56 +0800 Subject: [PATCH 02/19] =?UTF-8?q?IP=E5=B0=8F=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/port/port/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/port/port/index.vue b/src/views/port/port/index.vue index 62c0401..b0c41ae 100644 --- a/src/views/port/port/index.vue +++ b/src/views/port/port/index.vue @@ -10,6 +10,7 @@ + 查询 省份:{{this.formLabelAlign.province}}
城市:{{this.formLabelAlign.city}}
From 8f8c58967977309d206b6ae376bbe32a634b7ae9 Mon Sep 17 00:00:00 2001 From: chaiyapeng <3535863041@qq.com> Date: Sun, 25 Aug 2024 09:17:00 +0800 Subject: [PATCH 03/19] =?UTF-8?q?IP=E5=B0=8F=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/port/port/index.vue | 58 +++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/src/views/port/port/index.vue b/src/views/port/port/index.vue index b0c41ae..134a963 100644 --- a/src/views/port/port/index.vue +++ b/src/views/port/port/index.vue @@ -1,32 +1,38 @@ From 34f1c4406e5e02c9c3fac78d285c89ed20b82685 Mon Sep 17 00:00:00 2001 From: chaiyapeng <3535863041@qq.com> Date: Sun, 25 Aug 2024 09:26:14 +0800 Subject: [PATCH 04/19] =?UTF-8?q?IP=E5=B0=8F=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/port/port/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/port/port/index.vue b/src/views/port/port/index.vue index 134a963..766aa5c 100644 --- a/src/views/port/port/index.vue +++ b/src/views/port/port/index.vue @@ -64,6 +64,7 @@ export default { //方法集合", methods: { getPhonePlace(){ + alert("111") getPhonePlace(this.formLabelAlign.tel).then((res)=>{ this.formLabelAlign.province=res.data.province; this.formLabelAlign.city=res.data.city; From fe4de82d2372a48476368a8d493283fb8fe93999 Mon Sep 17 00:00:00 2001 From: chaiyapeng <3535863041@qq.com> Date: Sun, 25 Aug 2024 09:30:33 +0800 Subject: [PATCH 05/19] =?UTF-8?q?IP=E5=B0=8F=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/port/port/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/port/port/index.js b/src/api/port/port/index.js index f12fec6..c2b8844 100644 --- a/src/api/port/port/index.js +++ b/src/api/port/port/index.js @@ -1,9 +1,8 @@ import request from '@/utils/request' -export function getPhonePlace(data) { +export function getPhonePlace(tel) { return request({ - url: '/mart/list/getPhonePlace', - method: 'get', - data:data + url: '/mart/list/getPhonePlace?tel='+tel, + method: 'get' }) } From aa5edcd52da2899e8c750e19f4e251be9008be7e Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Sun, 25 Aug 2024 09:36:18 +0800 Subject: [PATCH 06/19] =?UTF-8?q?```=E5=9C=A8=E7=94=A8=E6=88=B7=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E7=95=8C=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=EF=BC=8C=E5=A2=9E=E5=BC=BA=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E7=9A=84=E8=A7=86=E8=A7=89=E5=90=B8=E5=BC=95=E5=8A=9B=20```?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/money/user/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/money/user/index.vue b/src/views/money/user/index.vue index 6ed1897..d2035df 100644 --- a/src/views/money/user/index.vue +++ b/src/views/money/user/index.vue @@ -1,10 +1,13 @@ + + + From bd9e302e52036a06ce9c1707c9d28938ea985577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Sun, 25 Aug 2024 11:41:39 +0800 Subject: [PATCH 17/19] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E4=BB=BB=E5=8A=A1=E8=AE=BE=E8=AE=A1=E9=9B=8F=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/task/index.vue | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue index 1fc3495..4e8d9b0 100644 --- a/src/views/task/task/index.vue +++ b/src/views/task/task/index.vue @@ -189,28 +189,28 @@ - + - + - + - + - + @@ -340,6 +340,7 @@ export default { taskInputReq:{}, taskList:[], taskInfoList:[], + taskInfo:{}, tableList:[], structureList:[], }; @@ -350,9 +351,14 @@ export default { watch: {}, //方法集合", methods: { + //选择数据表改变数据 + changeTableName(row){ + this.taskInfo = row; + }, + //查询字段 - findByInputId(row){ - findByInputId(row.id).then(res=>{ + findByInputId(taskInfo){ + findByInputId(taskInfo.id).then(res=>{ this.structureList = res.data; }) @@ -371,9 +377,9 @@ export default { }, - addTaskInput(){ + addTaskInput(taskInfo){ this.taskInputAdd = false; - this.findByInputId(); + this.findByInputId(taskInfo); this.taskInputFieldAdd = true; }, From badc198cdedf7f7f2c89c3d6e04f66de1168f682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Sun, 25 Aug 2024 11:45:16 +0800 Subject: [PATCH 18/19] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E4=BB=BB=E5=8A=A1=E8=AE=BE=E8=AE=A1=E9=9B=8F=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/task/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue index 4e8d9b0..9b9cea7 100644 --- a/src/views/task/task/index.vue +++ b/src/views/task/task/index.vue @@ -187,7 +187,7 @@ - + @@ -353,6 +353,7 @@ export default { methods: { //选择数据表改变数据 changeTableName(row){ + console.log(row); this.taskInfo = row; }, From d3659e5468609390c82df65afa27adabb336ef90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Sun, 25 Aug 2024 11:47:30 +0800 Subject: [PATCH 19/19] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E4=BB=BB=E5=8A=A1=E8=AE=BE=E8=AE=A1=E9=9B=8F=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/task/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue index 9b9cea7..b8fcd94 100644 --- a/src/views/task/task/index.vue +++ b/src/views/task/task/index.vue @@ -199,7 +199,7 @@ - +