集团列表 期刊管理
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
class="msg-table"
|
||||
empty-text="New Data (0)"
|
||||
:tree-props="{ children: 'articles', hasChildren: 'hasChildren' }"
|
||||
>
|
||||
|
||||
>
|
||||
<el-table-column type="expand" width="15" align="center">
|
||||
<template slot-scope="props">
|
||||
<!-- {{ props.row.articles.length }} -->
|
||||
@@ -171,6 +172,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
activeNames: [],
|
||||
expands: [],
|
||||
citeLoading: false,
|
||||
expandedRows: [],
|
||||
lang: !localStorage.getItem('langs') || localStorage.getItem('langs') == 'en' ? 'en' : 'zh',
|
||||
@@ -198,6 +201,19 @@ export default {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
expndChange(row, expandedRows) {
|
||||
if (expandedRows.length) {
|
||||
this.expands = []
|
||||
if (row) {
|
||||
this.expands.push(row.journal_id) // 每次push进去的是每行的ID
|
||||
}
|
||||
} else {
|
||||
this.expands = [] // 默认不展开
|
||||
}
|
||||
},
|
||||
getRowKeys(row) {
|
||||
return row.journal_id
|
||||
},
|
||||
toggleRow(row) {
|
||||
const index = this.expandedRows.indexOf(row.journal_stage_id);
|
||||
if (index === -1) {
|
||||
|
||||
Reference in New Issue
Block a user