|
@@ -197,6 +197,14 @@
|
|
<el-tag :type="scope.row.scanRecognition ? 'success' : 'danger'">
|
|
<el-tag :type="scope.row.scanRecognition ? 'success' : 'danger'">
|
|
{{ scope.row.scanRecognition ? '是' : '否' }}
|
|
{{ scope.row.scanRecognition ? '是' : '否' }}
|
|
</el-tag>
|
|
</el-tag>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.sheetUrls.length > 0"
|
|
|
|
+ link
|
|
|
|
+ style="margin-left: 5px"
|
|
|
|
+ @click="onPreviewImg(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ 原图
|
|
|
|
+ </el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column property="scanPages" label="扫描张数" width="80" />
|
|
<el-table-column property="scanPages" label="扫描张数" width="80" />
|
|
@@ -241,6 +249,14 @@
|
|
:download-handle="downloadTemplate"
|
|
:download-handle="downloadTemplate"
|
|
download-filename="学生导入模板.xlsx"
|
|
download-filename="学生导入模板.xlsx"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ <!-- 查看图片 -->
|
|
|
|
+ <el-image-viewer
|
|
|
|
+ v-if="showPreview"
|
|
|
|
+ :url-list="curStudentSheetUrls"
|
|
|
|
+ show-progress
|
|
|
|
+ @close="showPreview = false"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
@@ -291,6 +307,14 @@
|
|
modifyStudentRef.value?.open();
|
|
modifyStudentRef.value?.open();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 查看图片
|
|
|
|
+ const showPreview = ref(false);
|
|
|
|
+ const curStudentSheetUrls = ref<string[]>([]);
|
|
|
|
+ function onPreviewImg(row: StudentItem) {
|
|
|
|
+ showPreview.value = true;
|
|
|
|
+ curStudentSheetUrls.value = row.sheetUrls || [];
|
|
|
|
+ }
|
|
|
|
+
|
|
// 导入学生
|
|
// 导入学生
|
|
const importDialogRef = ref();
|
|
const importDialogRef = ref();
|
|
function downloadTemplate() {
|
|
function downloadTemplate() {
|