From 1ee4a5341215f94128b66cee4893c7c937df509a Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 08 七月 2024 09:05:20 +0800 Subject: [PATCH] bug修改 --- src/views/Admin/components/msgEditMod.vue | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/views/Admin/components/msgEditMod.vue b/src/views/Admin/components/msgEditMod.vue index 47afd68..230370a 100644 --- a/src/views/Admin/components/msgEditMod.vue +++ b/src/views/Admin/components/msgEditMod.vue @@ -415,20 +415,28 @@ // 获取接收单位 async getAreaUsers(){ let t = this - let res = await getAreaWithUserIfo() - if(res.data.code == 100){ - if(res.data.data){ - // const treeD = [] - t.userTitTree(res.data.data) - // treeD.push(t.findNodeById(res.data.data,t.userInfo.districtId)) - t.areaUsers = t.findNodeById(res.data.data,t.userInfo.districtId).children - t.unittype = t.findNodeById(res.data.data,t.userInfo.districtId)?.type - }else{ - console.log('暂无数据') - } - }else{ - this.$message.warning(res.data.msg); - } + // let res = await getAreaWithUserIfo() + // if(res.data.code == 100){ + // if(res.data.data){ + // // const treeD = [] + // const data = JSON.parse(localStorage.getItem('areaUsers')) + // console.log('data',data); + // console.log('res',res.data) + // t.userTitTree(res.data.data) + // // treeD.push(t.findNodeById(res.data.data,t.userInfo.districtId)) + // t.areaUsers = t.findNodeById(res.data.data,t.userInfo.districtId).children + // t.unittype = t.findNodeById(res.data.data,t.userInfo.districtId)?.type + // }else{ + // console.log('暂无数据') + // } + // }else{ + // this.$message.warning(res.data.msg); + // } + const data = JSON.parse(localStorage.getItem('areaUsers')) + t.areaUsers = data; + t.userTitTree(data) + // t.areaUsers = t.findNodeById(data,t.userInfo.districtId).children + t.unittype = t.findNodeById(data,t.userInfo.districtId)?.type }, // 获取领导 -- Gitblit v1.9.2