|
@@ -23,6 +23,7 @@
|
|
|
<el-select v-model="queryParams.issueValue" placeholder="请选择分类">
|
|
|
<el-option
|
|
|
v-for="item in issueTypeList"
|
|
|
+ :key="item.typeId"
|
|
|
:label="item.title"
|
|
|
:value="item.typeId"
|
|
|
/>
|
|
@@ -46,12 +47,20 @@
|
|
|
<div class="table-box">
|
|
|
<el-table v-loading="loading" :data="list" height="100%">
|
|
|
<el-table-column label="ID" align="center" prop="id" />
|
|
|
- <el-table-column
|
|
|
- label="题目"
|
|
|
- width="300px"
|
|
|
- align="center"
|
|
|
- prop="issue"
|
|
|
- />
|
|
|
+ <el-table-column label="指定顺序" align="center" width="300px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-card :body-style="{ padding: '5px' }">
|
|
|
+ <div class="issue-card">
|
|
|
+ <span>{{ scope.row.issue }}</span>
|
|
|
+ <img
|
|
|
+ v-if="scope.row.image"
|
|
|
+ :src="scope.row.image"
|
|
|
+ @click="imagePreview(scope.row.image)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="指定顺序" align="center" width="130px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-card :body-style="{ padding: '5px' }">
|
|
@@ -102,6 +111,7 @@
|
|
|
|
|
|
<script>
|
|
|
import subjectApi from "@/api/subject";
|
|
|
+import imagePreview from "@/components/ImagePreview";
|
|
|
|
|
|
export default {
|
|
|
name: "Subject",
|
|
@@ -142,6 +152,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ /**预览图片 */
|
|
|
+ imagePreview: imagePreview,
|
|
|
/**查询用户列表 */
|
|
|
async getList() {
|
|
|
this.loading = true;
|
|
@@ -212,7 +224,16 @@ export default {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+.issue-card {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items: center;
|
|
|
+ img {
|
|
|
+ width: 50%;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+}
|
|
|
.sort-card {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|