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 ++++++++++++++++++++++--------------
src/router/index.js | 2 +-
2 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index f8e86ef..d070612 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -8,7 +8,7 @@
{
path: '/',
name: 'login',
- component: () => import('@/views/Login'),
+ component: () => import('@/views/Login1'),
meta: { title: '登录' },
},
{
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