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