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

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";
export default {
name: "Experience",
name: "Experience1",
data() {
return {
inviteCode: "",

View File

@ -59,13 +59,20 @@
label="操作"
align="center"
fixed="right"
class-name="small-padding fixed-width edit-btns"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
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)"
>下载</el-button
>
@ -177,10 +184,21 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleDown(row) {
var url = row.fileurl;
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>
@ -188,12 +206,6 @@ export default {
.el-select {
width: 100%;
}
.edit-btns {
.el-button {
display: block;
margin: 0 auto;
}
}
.no-margin ::v-deep.el-form-item__content {
margin: 0 !important;
}

View File

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