手机端去除附件下载
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
||||||
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -275,7 +275,7 @@ export default {
|
|||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
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-col :span="12">
|
||||||
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
||||||
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -268,11 +268,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行预览 */
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
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-col :span="12">
|
||||||
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
||||||
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -331,11 +331,11 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== "") {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -248,14 +248,14 @@ export default {
|
|||||||
handleOnPreview(file) {
|
handleOnPreview(file) {
|
||||||
let attId = file.id
|
let attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== "") {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 点击上传的文件进行下载
|
// 点击上传的文件进行预览
|
||||||
onPreviewTheme(file) {
|
onPreviewTheme(file) {
|
||||||
let attId = file.id
|
let attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
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-col :span="24">
|
||||||
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
||||||
<span v-if="infoSourcesLength === 0">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -230,11 +230,11 @@ export default {
|
|||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
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-col :span="24">
|
||||||
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
||||||
<span v-if="infoSourcesLength === 0">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
<el-table-column prop="fillFile" align="center" label="资料">
|
<el-table-column prop="fillFile" align="center" label="资料">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.fillFile.length === 0">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -310,11 +310,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
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-col :span="24">
|
||||||
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
<el-form-item class="add-form-item" label="信息来源:" prop="infoSources">
|
||||||
<span v-if="infoSourcesLength < 1">{{ '-' }}</span>
|
<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 }} {{ ';' }}
|
{{ item.name }} {{ ';' }}
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -250,11 +250,11 @@ export default {
|
|||||||
// this.rh_pageData.comityFileNum = this.fileTextList
|
// this.rh_pageData.comityFileNum = this.fileTextList
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
let attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== "") {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectedDelete(val) {
|
selectedDelete(val) {
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
handleOnPreview(file) {
|
handleOnPreview(file) {
|
||||||
let attId = file.id
|
let attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== "") {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
|
|||||||
Reference in New Issue
Block a user