标准清单的下载回显,上传,导出
This commit is contained in:
+2
-1
@@ -345,7 +345,8 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ListOfStandardsAndRegulationsDetails",
|
name: "ListOfStandardsAndRegulationsDetails",
|
||||||
query: {
|
query: {
|
||||||
id: item.id
|
id: item.id,
|
||||||
|
fileIds: item.fileIds
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -532,6 +532,7 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
sortKey: 1,
|
sortKey: 1,
|
||||||
countryArea: '',
|
countryArea: '',
|
||||||
|
fileIds: '',
|
||||||
detailedListName: '',
|
detailedListName: '',
|
||||||
energyKind: '',
|
energyKind: '',
|
||||||
type: '',
|
type: '',
|
||||||
@@ -846,7 +847,6 @@ export default {
|
|||||||
uploadBackSuccess (res, file, fileList) {
|
uploadBackSuccess (res, file, fileList) {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.fileInfoList = fileList
|
this.fileInfoList = fileList
|
||||||
console.log(this.fileInfoList)
|
|
||||||
this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
|
this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
|
||||||
this.$message.success('上传成功')
|
this.$message.success('上传成功')
|
||||||
} else {
|
} else {
|
||||||
@@ -1186,8 +1186,7 @@ export default {
|
|||||||
this.fileInfoList.map(item => {
|
this.fileInfoList.map(item => {
|
||||||
relateFile.push(item.id)
|
relateFile.push(item.id)
|
||||||
})
|
})
|
||||||
sarAccessEO.relateFile = relateFile.join(',')
|
sarAccessEO.fileIds = relateFile.join(',')
|
||||||
console.log(sarAccessEO.relateFile)
|
|
||||||
}
|
}
|
||||||
if (!sarAccessEO.id) {
|
if (!sarAccessEO.id) {
|
||||||
// 新增
|
// 新增
|
||||||
@@ -1201,12 +1200,8 @@ export default {
|
|||||||
this.$message.success('新增成功')
|
this.$message.success('新增成功')
|
||||||
this.isNext = true
|
this.isNext = true
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'AccessStandardsAndRegulations',
|
name: 'AccessStandardsAndRegulations'
|
||||||
query: {
|
|
||||||
relateFile: sarAccessEO.relateFile
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
console.log(sarAccessEO)
|
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -1604,7 +1599,7 @@ export default {
|
|||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo () {
|
getFileInfo () {
|
||||||
this.$http.get('att/attFile/getMultiFileInfos', {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.$route.query.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<label class="transition-box-label">附件:</label>
|
<label class="transition-box-label">附件:</label>
|
||||||
<div class="file-box" v-if="fileInfoList.length > 0">
|
<div class="file-box" v-if="fileInfoList.length > 0">
|
||||||
<p v-for="item in fileInfoList"
|
<p v-for="item in fileInfoList"
|
||||||
:key="item.id">
|
:key="item.id"> {{ item.name }}
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(item.id)"
|
@click="downloadFile(item.id)"
|
||||||
@@ -251,6 +251,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { interfaceUrl } from "@/sysConfig";
|
import { interfaceUrl } from "@/sysConfig";
|
||||||
|
import { exportFile } from '@/api/unqualProcess'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AccessStandardDetails",
|
name: "AccessStandardDetails",
|
||||||
@@ -452,9 +453,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo() {
|
getFileInfo() {
|
||||||
console.log(this.sarAccessEO)
|
|
||||||
this.$http.get("att/attFile/getMultiFileInfos", {
|
this.$http.get("att/attFile/getMultiFileInfos", {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.sarAccessEO.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -474,7 +474,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 附件下载事件
|
// 附件下载事件
|
||||||
fileDownLoad(attId) {
|
fileDownLoad(attId) {
|
||||||
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId;
|
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user