Ver Fonte

个人选科ai

shilipojs há 2 anos atrás
pai
commit
928d2c4aac

+ 3 - 3
src/views/elective/select/components/elective-ai-analysis-dialog.vue

@@ -1,6 +1,6 @@
 <template>
   <el-dialog v-if="dialogVisible" title="AI分析" :visible.sync="dialogVisible" :close-on-click-modal="false" width="80%">
-    <el-button type="primary" @click="toReport('all')" class="mb10">整体报告</el-button>
+    <el-button type="primary" @click="toReport()" class="mb10">选科过程报告</el-button>
     <elective-ai-table ref="aiTable" :generation="generation" :optionalMajors="optionalMajors"></elective-ai-table>
     <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
@@ -30,8 +30,8 @@ export default {
     open() {
       this.dialogVisible = true
     },
-    toReport(type) {
-      this.$refs.aiTable.toReport(type)
+    toReport() {
+      this.$refs.aiTable.toReport()
     }
   }
 }

+ 1 - 1
src/views/elective/select/components/elective-ai-report-dialog.vue

@@ -2,7 +2,7 @@
   <el-dialog
     append-to-body
     v-if="dialogVisible"
-    :title="aiType == 'all' ? '整体报告' : '单科报告'"
+    title="选科过程报告"
     :visible.sync="dialogVisible"
     width="70%"
   >

+ 9 - 12
src/views/elective/select/components/elective-ai-table.vue

@@ -13,9 +13,6 @@
       <template #colleges="{row}">
         <elective-major-college :group="row"></elective-major-college>
       </template>
-      <template #report="{row}">
-        <el-button @click="toReport('single',row)">查看</el-button>
-      </template>
     </mx-table>
     <elective-ai-report-dialog v-if="true" ref="aiReportDialog" :generation="generation"></elective-ai-report-dialog>
   </div>
@@ -66,13 +63,13 @@ export default {
           slot: 'colleges',
           width: '250'
         },
-        signUp: {
-          label: '报告',
-          slot: 'report',
-          width: '100',
-          fixed: 'right',
-          hidden: this.readonly
-        }
+        // signUp: {
+        //   label: '报告',
+        //   slot: 'report',
+        //   width: '100',
+        //   fixed: 'right',
+        //   hidden: this.readonly
+        // }
       }
     },
     resolveDynamicAITable() {
@@ -101,8 +98,8 @@ export default {
     }
   },
   methods: {
-    toReport(type, row) {
-      this.$refs.aiReportDialog.init(type, row)
+    toReport() {
+      this.$refs.aiReportDialog.init()
     }
   }
 }