xiangpei
2024-05-17 f7ab917bed7dd916f412d23025fa3febd7ac4bd0
优化
1个文件已修改
10 ■■■■ 已修改文件
src/views/onlineStudy/file.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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() {