From f7ab917bed7dd916f412d23025fa3febd7ac4bd0 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 17 五月 2024 11:17:47 +0800
Subject: [PATCH] 优化
---
src/views/onlineStudy/file.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/onlineStudy/file.vue b/src/views/onlineStudy/file.vue
index 3a4e60d..f40a3eb 100644
--- a/src/views/onlineStudy/file.vue
+++ b/src/views/onlineStudy/file.vue
@@ -37,8 +37,8 @@
class="showContent" />
<img v-if="scope.row.contentType === 'img'" :src="'/api/files/' + scope.row.contentUrl.url"
class="showContent" />
- <el-link type="primary" v-if="scope.row.contentType === 'pdf'" :src="'/api/files/' + scope.row.contentUrl.url"
- class="showContent" @click="checkPdf">鐐瑰嚮鏌ョ湅</el-link>
+ <el-link type="primary" v-if="scope.row.contentType === 'pdf'"
+ class="showContent" @click="checkPdf('/api/files/' + scope.row.contentUrl.url)">鐐瑰嚮鏌ョ湅</el-link>
</template>
</el-table-column>
<el-table-column prop="attachment" label="闄勪欢">
@@ -125,7 +125,7 @@
typeList: [],
searchForm: {
pageNum: 1,
- pageSize: 10,
+ pageSize: 5,
typeName: ''
},
total: 0,
@@ -157,8 +157,8 @@
};
},
methods: {
- checkPdf() {
- this.pdf = 'http://static.shanhuxueyuan.com/test.pdf';
+ checkPdf(url) {
+ this.pdf = url;
this.pdfDialog = true;
},
closePdfDialog() {
--
Gitblit v1.8.0