From 457f9c817adef8b003ee6379f493798bae5cbb69 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Mon, 19 May 2025 09:31:19 +0800
Subject: [PATCH] 修改
---
src/views/Admin/components/msgEditMod.vue | 38 +++++++++++++++++++++++---------------
1 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/src/views/Admin/components/msgEditMod.vue b/src/views/Admin/components/msgEditMod.vue
index 47afd68..850b76f 100644
--- a/src/views/Admin/components/msgEditMod.vue
+++ b/src/views/Admin/components/msgEditMod.vue
@@ -190,7 +190,7 @@
<h2>短信预览</h2>
<div class="mobile">
<div class="mesg">
- <P>【防灾减灾工作提示】{{form.content}}</P>
+ <P>【新疆自然灾害预警中心】{{form.content}}</P>
</div>
</div>
</div>
@@ -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