|
@@ -58,7 +58,7 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
|
|
|
- <div class="part-box part-box-pad part-box-border">
|
|
|
+ <div>
|
|
|
<div v-if="IS_EDIT" class="mb-2 text-right">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -76,11 +76,12 @@
|
|
|
</tr>
|
|
|
<tr v-for="(attachment, index) in paperAttachments" :key="index">
|
|
|
<td>{{ attachment.name }}卷</td>
|
|
|
- <td class="td-link">
|
|
|
- <span
|
|
|
+ <td>
|
|
|
+ <el-button
|
|
|
v-if="attachment.editable && IS_EDIT"
|
|
|
+ type="text"
|
|
|
+ class="btn-primary"
|
|
|
@click="toUpload(attachment)"
|
|
|
- title="点击上传试卷"
|
|
|
>
|
|
|
<i
|
|
|
:class="[
|
|
@@ -93,41 +94,45 @@
|
|
|
? attachment.filename
|
|
|
: "点击上传试卷文件"
|
|
|
}}
|
|
|
- </span>
|
|
|
- <span
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
v-else
|
|
|
+ type="text"
|
|
|
+ class="btn-primary"
|
|
|
@click="downloadPaper(attachment)"
|
|
|
- title="点击查看试卷"
|
|
|
>
|
|
|
<i
|
|
|
- class="icon icon-download-act"
|
|
|
+ class="el-icon-download mr-1"
|
|
|
v-if="attachment.attachmentId"
|
|
|
></i>
|
|
|
<i>{{ attachment.filename }}</i>
|
|
|
- </span>
|
|
|
+ </el-button>
|
|
|
</td>
|
|
|
- <td
|
|
|
- class="td-link"
|
|
|
- :rowspan="paperAttachments.length"
|
|
|
- v-if="index === 0"
|
|
|
- >
|
|
|
- <span v-if="CAN_EDIT_CARD" @click="toCreateOrViewCard"
|
|
|
- ><i class="icon icon-plus-act"></i>{{ cardTodoName }}</span
|
|
|
+ <td :rowspan="paperAttachments.length" v-if="index === 0">
|
|
|
+ <el-button
|
|
|
+ v-if="CAN_EDIT_CARD"
|
|
|
+ type="text"
|
|
|
+ class="btn-primary"
|
|
|
+ @click="toCreateOrViewCard"
|
|
|
+ >{{ cardTodoName }}</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-else
|
|
|
+ type="text"
|
|
|
+ class="btn-primary"
|
|
|
+ @click="toViewCard"
|
|
|
>
|
|
|
- <span v-else @click="toViewCard">
|
|
|
- <i class="icon icon-circle-right"></i>
|
|
|
- <i>查看题卡</i>
|
|
|
- </span>
|
|
|
+ 查看题卡
|
|
|
+ </el-button>
|
|
|
</td>
|
|
|
<td v-if="IS_EDIT">
|
|
|
<el-button
|
|
|
v-if="attachment.editable"
|
|
|
- class="btn-primary"
|
|
|
+ class="btn-danger"
|
|
|
type="text"
|
|
|
- icon="icon icon-delete"
|
|
|
- title="删除"
|
|
|
@click="deleteAttachment(index)"
|
|
|
- ></el-button>
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|