| | |
| | | <el-card class="box-card"> |
| | | <div class="card-header"> |
| | | <span>消息中心</span> |
| | | <el-button type="text">接收设置</el-button> |
| | | <el-button type="text" @click="channelSetting">接收设置</el-button> |
| | | </div> |
| | | <div v-for="item in menuMessageList" :key="item.id" class="message-card__item"> |
| | | <router-link to='/home/operate/message/messageIndex'> |
| | |
| | | <i class="el-icon-switch-button"></i> |
| | | </el-tooltip> |
| | | </div> |
| | | <el-dialog :visible.sync="channelSettingVisible" width="25%" title="消息栏目设置" v-if="channelSettingVisible" |
| | | :before-close="handleChannelClose"> |
| | | <el-table |
| | | ref="multipleTable" |
| | | :header-cell-style="{ |
| | | 'font-size': '14px', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | }" |
| | | :data="channelData" |
| | | style="width: 100%" |
| | | |
| | | > <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="columnName" label="全部" min-width="5" align="center"> |
| | | <!-- <template slot-scope="scope">{{ scope.row.id }}</template> --> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-button type="button" @click="channelSetting">更新</el-button> |
| | | <el-button type="button" @click="channelSetting">取消</el-button> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="updatePasswordDialog" width="40%" title="修改密码" v-if="updatePasswordDialog" |
| | | :before-close="handleClose"> |
| | | <updatePassword /> |
| | |
| | | return { |
| | | baseInformationVisible: false, |
| | | updatePasswordDialog: false, |
| | | channelSettingVisible:false, |
| | | checked3:true, |
| | | menuLeftList: [ |
| | | { |
| | | label: '驾驶舱', |
| | |
| | | }, |
| | | user: '', |
| | | menuMessageList: [], |
| | | channelData: [], |
| | | messageCounts: 0, |
| | | keyword: '', |
| | | info: null, |
| | |
| | | this.info = res.data.user; |
| | | }) |
| | | }, |
| | | handleClose(done) { |
| | | channelSetting(){ |
| | | this.channelSettingVisible=true; |
| | | const userInfo = JSON.parse(sessionStorage.getItem('user')); |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: 'sccg/message_column/getShowColumn?'+'id='+userInfo.user.id |
| | | }) |
| | | .then(res => { |
| | | this.channelData=res.data |
| | | }) |
| | | }, |
| | | handleChannelClose(done) { |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | this.dialogUpload = false; |
| | |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | this.channelSettingVisible = false; |
| | | done(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | //修改密码 |
| | | updatePassword() { |
| | | this.updatePasswordDialog = true; |