集团列表 期刊管理

This commit is contained in:
2024-09-27 17:54:37 +08:00
parent 05802da734
commit 1f21793ee2
10 changed files with 2040 additions and 1456 deletions

View File

@@ -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) {