From e35966eed0589825005f5ab9f67148b118ce8bac Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 01 Mar 2024 08:52:29 +0800
Subject: [PATCH] 修复弹窗bug
---
src/views/Admin/components/msgEditMod.vue | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/views/Admin/components/msgEditMod.vue b/src/views/Admin/components/msgEditMod.vue
index 97c4b7a..c50d0cc 100644
--- a/src/views/Admin/components/msgEditMod.vue
+++ b/src/views/Admin/components/msgEditMod.vue
@@ -143,6 +143,7 @@
<!-- </a-select>-->
<a-tree-select
v-model="form.recipient"
+ :maxTagCount="3"
style="width: 100%"
:tree-data="treeData"
tree-checkable
@@ -189,7 +190,7 @@
<h2>短信预览</h2>
<div class="mobile">
<div class="mesg">
- <P>【自然灾害风险预警提示】{{form.content}}<br>发布单位:{{form.publishingUnit}}</P>
+ <P>【防灾减灾工作通知】{{form.content}}<br>发布单位:{{form.publishingUnit}}</P>
</div>
</div>
</div>
@@ -291,19 +292,19 @@
const t = this
const { baseUrl } = require('../../../../config/env.' + process.env.NODE_ENV)
t.uploadUrl= baseUrl + '/attachment/upload/detail'
- t.userInfo = getUserInfo()
- t.header.uid = t.userInfo.uid
- t.form.districtId = t.userInfo.districtId
- t.form.publishingUnit = t.userInfo.company
- t.getSameLevel()
- t.getAreaUsers()
},
computed: {},
methods: {
openMod(type,data,id){
const t = this
- console.log(data,'data')
t.getLeaders()
+ t.treeData = []
+ t.userInfo = getUserInfo()
+ t.header.uid = t.userInfo.uid
+ t.form.districtId = t.userInfo.districtId
+ t.form.publishingUnit = t.userInfo.company
+ t.getSameLevel()
+ t.getAreaUsers()
t.form.acceptingUnitIds = []
t.form.peerRecipientIds = []
t.sendLeaders = []
@@ -390,7 +391,6 @@
// t.filteredOptions = res.data.data
for (const resKey in res.data.data) {
t.filteredOptions = t.filteredOptions.concat(...res.data.data[resKey]);
- console.log(t.filteredOptions,'ops')
const obj = {
title: resKey,
value: resKey,
--
Gitblit v1.9.2