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