user
This commit is contained in:
parent
8fafeba6bf
commit
0669931125
|
@ -2,8 +2,8 @@
|
|||
"name" : "曲阳金隅EHS",
|
||||
"appid" : "__UNI__B00D419",
|
||||
"description" : "曲阳金隅EHS",
|
||||
"versionName" : "1.01.02",
|
||||
"versionCode" : 10102,
|
||||
"versionName" : "1.01.03",
|
||||
"versionCode" : 10103,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
|
|
@ -125,8 +125,8 @@
|
|||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
debugger;
|
||||
console.log(this.vuex_perm)
|
||||
// debugger;
|
||||
// console.log(this.vuex_perm)
|
||||
if(this.vuex_user.type==='visitor'){
|
||||
this.limitedVisit = true;
|
||||
}else{
|
||||
|
@ -180,7 +180,7 @@
|
|||
})
|
||||
},
|
||||
goIntoTargetPage(type) {
|
||||
debugger;
|
||||
// debugger;
|
||||
if(this.limitedVisit==true){
|
||||
}else{
|
||||
if (type == "daiban") {
|
||||
|
|
|
@ -437,9 +437,7 @@
|
|||
obj.children = [];
|
||||
arr.push(obj)
|
||||
})
|
||||
let userRange0 = that.resetData(arr);
|
||||
var useArr = userRange0[0].children;
|
||||
|
||||
var useArr = that.resetData(arr);
|
||||
for (let i=0;i<useArr.length;i++){
|
||||
let requestList = []
|
||||
requestList.push(that.$u.api.userList({page: 0,belong_dept:useArr[i].id}))
|
||||
|
@ -510,13 +508,17 @@
|
|||
let obj = posts.reduce((res, v) => ((res[v.id] = v), res), {}); //Object
|
||||
let arr = [];
|
||||
for (let item of posts) {
|
||||
if (item.parentId == null) {
|
||||
console.log(item)
|
||||
if (item.parentId == null||item.parentId=="1561653664806998016") {
|
||||
arr.push(item);
|
||||
continue;
|
||||
}
|
||||
}else{
|
||||
let parent = obj[item.parentId];
|
||||
if(obj[item.parentId]!==undefined){
|
||||
parent.children = parent.children ? parent.children : [];
|
||||
parent.children.push(item);
|
||||
}else{}
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue