|
@@ -5,7 +5,8 @@
|
|
|
:visible.sync="dialogVisible"
|
|
|
width="80%"
|
|
|
>
|
|
|
- 当前Generation {{current}}
|
|
|
+ <p class="mb10 fx-row jc-between">当前Generation {{current}} <el-button type="primary">整体报告</el-button></p>
|
|
|
+
|
|
|
<mx-table :propDefines="formatTable.cols" :rows="formatTable.rows">
|
|
|
<template #subjects="{row}">
|
|
|
<el-row>
|
|
@@ -27,21 +28,28 @@
|
|
|
</el-row>
|
|
|
</template>
|
|
|
<template #report="{row}">
|
|
|
- <el-button >查看</el-button>
|
|
|
+ <el-button @click="toReport(row)" >查看</el-button>
|
|
|
</template>
|
|
|
</mx-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
|
- </span>
|
|
|
+ </span>
|
|
|
+ <single-subject-report :reportInfo="tableInfo.rows" :currentGroup="currentReportName" ref="SingleSubjectReport"></single-subject-report>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script>
|
|
|
import config from '@/common/mx-config'
|
|
|
+import SingleSubjectReport from './single-subject-report'
|
|
|
export default {
|
|
|
+ components:{
|
|
|
+ SingleSubjectReport
|
|
|
+ },
|
|
|
data() {
|
|
|
return{
|
|
|
dialogVisible:false,
|
|
|
tableInfo: {},
|
|
|
+ currentReportName: '',
|
|
|
+ reportInfo: {},
|
|
|
current: ''
|
|
|
}
|
|
|
},
|
|
@@ -116,9 +124,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ toReport(row) {
|
|
|
+ this.currentReportName = row.groupName
|
|
|
+ this.$refs.SingleSubjectReport.dialogVisible = true
|
|
|
+ },
|
|
|
open(tableInfo,currentGeneration) {
|
|
|
this.current = currentGeneration
|
|
|
this.dialogVisible = true
|
|
|
+ console.log(this.$store.getters.currentUser)
|
|
|
this.tableInfo = tableInfo
|
|
|
},
|
|
|
handleClose() {
|