This commit is contained in:
shijing 2022-10-20 10:56:13 +08:00
parent 8fafeba6bf
commit 0669931125
3 changed files with 17 additions and 15 deletions

View File

@ -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" : {

View File

@ -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") {

View File

@ -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;
},