4 changed files with 2 additions and 162 deletions
			
			
		- 
					2src/layout/components/Navbar.vue
- 
					46src/views/system/logManage/operateLog/index.vue
- 
					28src/views/system/messageCenter/data1.json
- 
					88src/views/system/messageCenter/index.vue
| @ -1,28 +0,0 @@ | |||||
| { |  | ||||
|   "rows":[ |  | ||||
|     { |  | ||||
|       "notification":"内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容", |  | ||||
|       "msgType":"系统通知", |  | ||||
|       "pushObj":"全部用户", |  | ||||
|       "sendRole":"管理员", |  | ||||
|       "sendTime":"", |  | ||||
|       "isRead":false |  | ||||
|     }, |  | ||||
|     { |  | ||||
|       "notification":"内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容", |  | ||||
|       "msgType":"系统通知", |  | ||||
|       "pushObj":"全部用户", |  | ||||
|       "sendRole":"管理员", |  | ||||
|       "sendTime":"", |  | ||||
|       "isRead":true |  | ||||
|     }, |  | ||||
|     { |  | ||||
|       "notification":"内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容", |  | ||||
|       "msgType":"系统通知", |  | ||||
|       "pushObj":"全部用户", |  | ||||
|       "sendRole":"管理员", |  | ||||
|       "sendTime":"", |  | ||||
|       "isRead":true |  | ||||
|     } |  | ||||
|   ] |  | ||||
| } |  | ||||
| @ -1,88 +0,0 @@ | |||||
| <template> |  | ||||
|   <div> |  | ||||
|     <div class="head-container"> |  | ||||
|       <el-button icon="el-icon-delete" :disabled="!(selections.length)" size="mini">删除</el-button> |  | ||||
|       <el-button class="iconfont icon-biaojiyidu-fanbai" :disabled="!(selections.length)" size="mini">标记已读</el-button> |  | ||||
|       <el-button class="iconfont icon-biaojiyidu-fanbai" size="mini">全部标记已读</el-button> |  | ||||
|       <date-range-picker v-model="query.createTime" class="date-item" /> |  | ||||
|     </div> |  | ||||
|     <div class="app-container container-wrap"> |  | ||||
|       <span class="right-top-line" /> |  | ||||
|       <span class="left-bottom-line" /> |  | ||||
|       <!--表格渲染--> |  | ||||
|       <!-- :cell-class-name="cell" |  | ||||
|         @selection-change="selectionChangeHandler" |  | ||||
|          --> |  | ||||
|       <el-table |  | ||||
|         ref="table" |  | ||||
|         :data="tableData" |  | ||||
|         style="width: 100%;" |  | ||||
|         :row-class-name="cell" |  | ||||
|         height="calc(100vh - 245px)" |  | ||||
|         @row-click="clickRowHandler" |  | ||||
|         @selection-change="selectionChangeHandler" |  | ||||
|       > |  | ||||
|         <el-table-column type="selection" width="55" align="center" /> |  | ||||
|         <el-table-column type="index" label="序号" width="100" align="center" /> |  | ||||
|         <el-table-column prop="notification" :show-overflow-tooltip="true" label="通知内容" min-width="500" align="center" /> |  | ||||
|         <el-table-column prop="msgType" label="消息类型" align="center" min-width="150" /> |  | ||||
|         <el-table-column prop="sendRole" label="推送人" align="center" min-width="150" /> |  | ||||
|         <el-table-column prop="sendTime" label="推送时间" align="center" min-width="180" /> |  | ||||
|       </el-table> |  | ||||
|     </div> |  | ||||
|   </div> |  | ||||
| </template> |  | ||||
| 
 |  | ||||
| <script> |  | ||||
| import DateRangePicker from '@/components/DateRangePicker' |  | ||||
| import data1 from './data1.json' |  | ||||
| export default { |  | ||||
|   name: 'MessageCenter', |  | ||||
|   components: { DateRangePicker }, |  | ||||
|   data() { |  | ||||
|     return { |  | ||||
|       tableData: [], |  | ||||
|       selections: [], |  | ||||
|       query: { |  | ||||
|         createTime: null |  | ||||
|       } |  | ||||
|     } |  | ||||
|   }, |  | ||||
|   created() { |  | ||||
|     this.getData() |  | ||||
|   }, |  | ||||
|   methods: { |  | ||||
|     getData() { |  | ||||
|       this.tableData = data1.rows |  | ||||
|     }, |  | ||||
|     clickRowHandler(row) { |  | ||||
|       // this.$refs.table.clearSelection() |  | ||||
|       this.$refs.table.toggleRowSelection(row) // 单选选中 |  | ||||
|     }, |  | ||||
|     selectionChangeHandler(val) { |  | ||||
|       this.selections = val |  | ||||
|     }, |  | ||||
|     cell({ row }) { |  | ||||
|       if (row.isRead) { // 已读 |  | ||||
|         console.log(1) |  | ||||
|         return 'read-color' |  | ||||
|       } |  | ||||
|     } |  | ||||
|   } |  | ||||
| } |  | ||||
| </script> |  | ||||
| 
 |  | ||||
| <style lang="scss" scoped> |  | ||||
| @import '~@/assets/styles/lend-manage.scss'; |  | ||||
| .head-container .date-item{ |  | ||||
|   margin: -1px 20px 0 12px; |  | ||||
| } |  | ||||
| .container-wrap{ |  | ||||
|   margin-top: 0; |  | ||||
|   min-height: 0; |  | ||||
|   height: calc(100vh - 240px); |  | ||||
| } |  | ||||
| ::v-deep .read-color td{ |  | ||||
|   color: #999 !important; |  | ||||
| } |  | ||||
| </style> |  | ||||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue