From f0f200abf841d5d7fe5e2921e6ded8f0147e9c92 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 10 七月 2024 18:02:07 +0800
Subject: [PATCH] feat 用户列表增加部门条件 随机试卷列表增加部门,时间,科目条件 补考直接展示学生 试卷标题默认展示一个

---
 src/views/questionAnswer/list.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/views/questionAnswer/list.vue b/src/views/questionAnswer/list.vue
index 0910646..c865952 100644
--- a/src/views/questionAnswer/list.vue
+++ b/src/views/questionAnswer/list.vue
@@ -15,8 +15,16 @@
     </el-form>
 
     <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
+      <el-table-column prop="sequence" label="鎺掑簭" width="60" align="center"/>
       <el-table-column prop="question" label="闂" />
       <el-table-column prop="answer" label="鍥炵瓟" />
+      <el-table-column prop="attachment" label="闄勪欢" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <div v-for="item in getUrl(scope.row.attachment)" :key="item.url">
+            <el-link :underline="false" type="primary" :href="'/api/upload/download?url=' + item.url +'&fileName=' + item.name" >{{ item.name }}</el-link>
+          </div>
+        </template>
+      </el-table-column>
       <el-table-column label="鐘舵��" prop="status" width="70px">
         <template slot-scope="{row}">
           <el-tag :type="row.status !== '鍚敤' ? 'danger' : 'success'">
@@ -67,6 +75,9 @@
     this.search()
   },
   methods: {
+    getUrl(urlJson) {
+      return urlJson ? JSON.parse(urlJson) : [];
+    },
     search() {
       this.listLoading = true
       questionAnswerApi.pageList(this.queryParam).then(data => {

--
Gitblit v1.8.0