From 458ef235183e9ea9ba862398238c20be6bbaaa5a Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Wed, 21 Jan 2026 14:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=AC=E5=8F=B8=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 87 +++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index f2d1334..b6878cb 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -9,77 +9,59 @@ 基本信息填写 + + + - + - + - + - + - - + - - + + - - - + - 重置 - 提交 - 提交 + 重置 + 提交 + 提交 - + - - + + - @@ -189,7 +171,8 @@ }, }, radio: '', - switchVal: false + switchVal: false, + decodedStr:'', } }, @@ -198,6 +181,9 @@ this.OrgId = option.OrgId uni.setStorageSync('OrgId', this.OrgId) } + if(option.sysName){ + this.decodedStr = this.decodeBase64(option.sysName).replace(/^-/, '');; + } // this.model.ID = option.ID @@ -222,6 +208,17 @@ this.$refs.uForm.setRules(this.rules) }, methods: { + decodeBase64(encodedStr) { + try { + // 先进行 Base64 解码,再进行 URL 解码 + const decodedBase64 = atob(encodedStr); + const decodedURI = decodeURIComponent(decodedBase64); + return decodedURI; + } catch (error) { + console.error('解码失败:', error); + return encodedStr; + } + }, sexSelect(e) { this.model1.userInfo.Sex = e.name this.$refs.uForm.validateField('userInfo.Sex') @@ -362,7 +359,7 @@ if (p.val) { extendRule(json, "NAME", 9, p.val) } - + let dataSelect = [] if (p.name == 'DEPARTMENT_NAME') { dataSelect = await DepartmentOrderPaged(json).then(res => { @@ -405,12 +402,12 @@ }, handleSelected(e) { this.selectorInfo.showPopup = false - if(this.selectorInfo.name=='POST_NAME'){ + if (this.selectorInfo.name == 'POST_NAME') { // this.userInfo.POST_NAME = e.NAME // this.userInfo.POST_ID = e.ID this.model1.userInfo.POST_NAME = e.NAME this.model1.userInfo.POST_ID = e.ID - }else if(this.selectorInfo.name=='DEPARTMENT_NAME'){ + } else if (this.selectorInfo.name == 'DEPARTMENT_NAME') { // this.userInfo.DEPARTMENT_NAME = e.NAME // this.userInfo.DEPARTMENT_ID = e.ID this.model1.userInfo.DEPARTMENT_NAME = e.NAME