| | |
| | | messageType: '', |
| | | head: '', |
| | | targetTo: '', |
| | | targetFrom:null, |
| | | body: '', |
| | | channelCode: 1, |
| | | }, |
| | |
| | | created() { |
| | | this.setColumnList(); |
| | | this.setDepartList(); |
| | | this.getLoginUserInfo(); |
| | | }, |
| | | methods: { |
| | | // 关闭弹窗 |
| | |
| | | url: 'sccg/message/sendMessage', |
| | | data: { |
| | | body: role.body, |
| | | channelCode: role.channelCode, |
| | | channelCode: `${role.channelCode}`, |
| | | head: role.head, |
| | | messageType: role.messageType, |
| | | sendTime: new Date(), |
| | | targetTo: checkedList.join(',') |
| | | targetTo: checkedList.join(','), |
| | | targetFrom:`${role.targetFrom}`, |
| | | } |
| | | }) |
| | | .then(res=>{ |
| | |
| | | // this.$refs.edit.wangEditor.txt.html('<p><br></p>') |
| | | this.setDepartList(); |
| | | this.$refs.user.resetFields(); |
| | | }, |
| | | // 获取当前登录用户信息 |
| | | getLoginUserInfo(){ |
| | | const name = sessionStorage.getItem('name'); |
| | | this.$axios({ |
| | | method:'get', |
| | | url:'sccg/admin/info?name='+name, |
| | | }) |
| | | .then(res=>{ |
| | | this.role.targetFrom = res.data.userId |
| | | }) |
| | | } |
| | | }, |
| | | props: ['closeMyDialog'] |