| | |
| | | <!-- </a-select>--> |
| | | <a-tree-select |
| | | v-model="form.recipient" |
| | | :maxTagCount="3" |
| | | style="width: 100%" |
| | | :tree-data="treeData" |
| | | tree-checkable |
| | |
| | | <h2>短信预览</h2> |
| | | <div class="mobile"> |
| | | <div class="mesg"> |
| | | <P>【自然灾害风险预警提示】{{form.content}}<br>发布单位:{{form.publishingUnit}}</P> |
| | | <P>【新疆自然灾害预警中心】{{form.content}}</P> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | 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 = [] |
| | |
| | | // 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, |
| | |
| | | // 获取接收单位 |
| | | 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 |
| | | }, |
| | | |
| | | // 获取领导 |