手机端去除附件下载

This commit is contained in:
shenyanpei
2021-12-23 11:20:17 +08:00
parent e6a9b71248
commit 3837cd2c2d
8 changed files with 22 additions and 22 deletions
@@ -60,7 +60,7 @@
<el-col :span="12">
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
<span v-for="item in ch_pageData.fileTextList" :key="item.id">
<span v-for="item in ch_pageData.fileTextList" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -275,7 +275,7 @@ export default {
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
@@ -60,7 +60,7 @@
<el-col :span="12">
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
<span v-for="item in ch_pageData.fileTextList" :key="item.id">
<span v-for="item in ch_pageData.fileTextList" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -268,11 +268,11 @@ export default {
}
})
},
/** 点击对应附件进行下载*/
/** 点击对应附件进行预览 */
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
}
@@ -62,7 +62,7 @@
<el-col :span="12">
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
<span v-for="item in ch_pageData.fileTextList" :key="item.id">
<span v-for="item in ch_pageData.fileTextList" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -331,11 +331,11 @@ export default {
})
},
/** 点击对应附件进行下载*/
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
}
@@ -248,14 +248,14 @@ export default {
handleOnPreview(file) {
let attId = file.id
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
// 点击上传的文件进行下载
// 点击上传的文件进行预览
onPreviewTheme(file) {
let attId = file.id
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
// 点击上传的文件进行下载
@@ -67,7 +67,7 @@
<el-col :span="24">
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
<span v-if="infoSourcesLength === 0">{{ '-' }}</span>
<span v-for="item in rh_pageData.infoSources" :key="item.id">
<span v-for="item in rh_pageData.infoSources" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -230,11 +230,11 @@ export default {
this.active = name
},
/** 点击对应附件进行下载*/
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
// 退回按钮
@@ -67,7 +67,7 @@
<el-col :span="24">
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
<span v-if="infoSourcesLength === 0">{{ '-' }}</span>
<span v-for="item in rh_pageData.infoSources" :key="item.id">
<span v-for="item in rh_pageData.infoSources" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -110,7 +110,7 @@
<el-table-column prop="fillFile" align="center" label="资料">
<template slot-scope="scope">
<span v-if="scope.row.fillFile.length === 0">{{ '-' }}</span>
<span v-for="item in scope.row.fillFile" :key="item.id" >
<span v-for="item in scope.row.fillFile" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</template>
@@ -310,11 +310,11 @@ export default {
}
})
},
/** 点击对应附件进行下载*/
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
}
@@ -69,7 +69,7 @@
<el-col :span="24">
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
<span v-if="infoSourcesLength < 1">{{ '-' }}</span>
<span v-for="item in rh_pageData.infoSources" :key="item.id">
<span v-for="item in rh_pageData.infoSources" :key="item.id" @click="previews(item.id)">
{{ item.name }} {{ ';' }}
</span>
</el-form-item>
@@ -250,11 +250,11 @@ export default {
// this.rh_pageData.comityFileNum = this.fileTextList
})
},
/** 点击对应附件进行下载*/
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
selectedDelete(val) {
@@ -208,7 +208,7 @@ export default {
handleOnPreview(file) {
let attId = file.id
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
this.$preview(attId)
}
},
// 提交按钮