文件预览和招生页面去除缓存

This commit is contained in:
zhanglipeng 2021-09-15 11:42:50 +08:00
parent 98f918b8a8
commit 042918a532
3 changed files with 22 additions and 10 deletions

View File

@ -359,7 +359,7 @@ import { getUserProfile } from "@/api/system/user";
import Clipboard from "clipboard"; import Clipboard from "clipboard";
export default { export default {
name: "Experience", name: "Experience1",
data() { data() {
return { return {
inviteCode: "", inviteCode: "",

View File

@ -59,13 +59,20 @@
label="操作" label="操作"
align="center" align="center"
fixed="right" fixed="right"
class-name="small-padding fixed-width edit-btns" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-down" icon="el-icon-view"
@click="handleView(scope.row)"
>预览</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-download"
@click="handleDown(scope.row)" @click="handleDown(scope.row)"
>下载</el-button >下载</el-button
> >
@ -177,10 +184,21 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
//
handleDown(row) { handleDown(row) {
var url = row.fileurl; var url = row.fileurl;
window.open(this.apiurl + url); window.open(this.apiurl + url);
}, },
//
handleView(row) {
var url = row.fileurl;
window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" +
this.apiurl +
url,
"_blank"
);
},
}, },
}; };
</script> </script>
@ -188,12 +206,6 @@ export default {
.el-select { .el-select {
width: 100%; width: 100%;
} }
.edit-btns {
.el-button {
display: block;
margin: 0 auto;
}
}
.no-margin ::v-deep.el-form-item__content { .no-margin ::v-deep.el-form-item__content {
margin: 0 !important; margin: 0 !important;
} }

View File

@ -27,7 +27,7 @@
<if test="content != null and content != ''">and content = #{content}</if> <if test="content != null and content != ''">and content = #{content}</if>
<if test="type != null and type != ''">and type = #{type}</if> <if test="type != null and type != ''">and type = #{type}</if>
order by type order by create_time desc
</select> </select>
<select id="selectByHalfdayplanById" parameterType="String" resultMap="ByHalfdayplanResult"> <select id="selectByHalfdayplanById" parameterType="String" resultMap="ByHalfdayplanResult">