system-phone 3.1.8-1-t8 → 3.1.8-1-t10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/LoginApp.vue +735 -732
- package/src/components/LoginAppNew.vue +590 -587
- package/src/components/LoginAppV4.vue +28 -11
|
@@ -72,6 +72,7 @@ let asyncReady = async function (self, url) {
|
|
|
72
72
|
let that = self
|
|
73
73
|
const vueConfig={}
|
|
74
74
|
const res = await Vue.resetget(`${url}/api/af-safecheck/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
75
|
+
self.delConfigKey(res.data)
|
|
75
76
|
vueConfig.safecheck = res.data
|
|
76
77
|
const dir_module = res.data.global.dir_module
|
|
77
78
|
for(let mod in dir_module) {
|
|
@@ -81,6 +82,7 @@ let asyncReady = async function (self, url) {
|
|
|
81
82
|
mod_url = `${url}/${dir_module[mod].name}/rs/vue`
|
|
82
83
|
}
|
|
83
84
|
const config = await Vue.resetget(mod_url, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
85
|
+
self.delConfigKey(config.data)
|
|
84
86
|
vueConfig[dir_module[mod].name] = config.data;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
@@ -166,20 +168,23 @@ export default {
|
|
|
166
168
|
},
|
|
167
169
|
// 对资源菜单进行排序
|
|
168
170
|
sortFunctions (val) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var temp = val[j + 1]
|
|
174
|
-
val[j + 1] = val[j]
|
|
175
|
-
val[j] = temp
|
|
176
|
-
}
|
|
177
|
-
}
|
|
171
|
+
this.sortArr(val)
|
|
172
|
+
val.forEach((item)=>{
|
|
173
|
+
if(item.children && Array.isArray(item.children)){
|
|
174
|
+
this.sortArr(item.children)
|
|
178
175
|
}
|
|
179
|
-
|
|
180
|
-
}
|
|
176
|
+
})
|
|
181
177
|
return val
|
|
182
178
|
},
|
|
179
|
+
sortArr(val){
|
|
180
|
+
val.sort((itemA, itemB)=>{
|
|
181
|
+
if(itemA.position !== itemB.position){
|
|
182
|
+
return itemA.position - itemB.position
|
|
183
|
+
}else{
|
|
184
|
+
return itemA.id - itemB.id
|
|
185
|
+
}
|
|
186
|
+
})
|
|
187
|
+
},
|
|
183
188
|
// 记住密码选中/未选中
|
|
184
189
|
showoff () {
|
|
185
190
|
this.showsave = false
|
|
@@ -349,6 +354,18 @@ export default {
|
|
|
349
354
|
console.error('登录异常,LoginApp的confirm函数错误', e)
|
|
350
355
|
this.$showMessage('登陆失败!,')
|
|
351
356
|
}
|
|
357
|
+
},
|
|
358
|
+
delConfigKey(obj){
|
|
359
|
+
// 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
|
|
360
|
+
Object.keys(obj).forEach(key =>{
|
|
361
|
+
Object.keys(obj[key]).forEach(col => {
|
|
362
|
+
// 检查键是否以$开头
|
|
363
|
+
if (col.startsWith('$')) {
|
|
364
|
+
// 使用delete操作符删除键
|
|
365
|
+
delete obj[key][col];
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
})
|
|
352
369
|
}
|
|
353
370
|
},
|
|
354
371
|
watch: {
|