文件预览和招生页面去除缓存
This commit is contained in:
parent
98f918b8a8
commit
042918a532
@ -359,7 +359,7 @@ import { getUserProfile } from "@/api/system/user";
|
||||
import Clipboard from "clipboard";
|
||||
|
||||
export default {
|
||||
name: "Experience",
|
||||
name: "Experience1",
|
||||
data() {
|
||||
return {
|
||||
inviteCode: "",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user