添加title选项
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table :data="tableData" border stripe class="table" ref="multipleTable" header-cell-class-name="table-header"
|
||||
empty-text="New messages (0)">
|
||||
<el-table :data="tableData" border stripe class="table" ref="multipleTable" header-cell-class-name="table-header"
|
||||
empty-text="New messages (0)" v-loading="loading">
|
||||
<el-table-column type="index" label="No." width="55" align="center"></el-table-column>
|
||||
<el-table-column label="journals" prop="jabbr" align="center"></el-table-column>
|
||||
<el-table-column label="number" prop="boards_count" align="center"></el-table-column>
|
||||
@@ -22,6 +22,7 @@
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
loading:false,
|
||||
query: {
|
||||
username: localStorage.getItem('U_name'),
|
||||
// journal: localStorage.getItem('ms_journal_alias') ? parseInt(localStorage.getItem('ms_journal_alias')) : 0,
|
||||
@@ -40,23 +41,17 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
// 获取文章列表数据
|
||||
|
||||
getdata() {
|
||||
this.loading = true
|
||||
this.$api
|
||||
.post('api/Monitor/getJournalBoards')
|
||||
.then(res => {
|
||||
if(res.code == 0){
|
||||
// console.log(res,'res')
|
||||
//this.Total = res.total;
|
||||
// var arr = []
|
||||
// arr = res.data.journals.map( (item) => {
|
||||
// var num = 0
|
||||
// num = item.boards.main.length
|
||||
// item.pnum = num
|
||||
// return item
|
||||
// })
|
||||
this.tableData = res.data.journals;
|
||||
// console.log(this.tableData,'this.tableData')
|
||||
if(res.code == 0){
|
||||
|
||||
this.tableData = res.data.journals;
|
||||
}
|
||||
this.loading = false
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user