对接法规清单的导入导出模板下载
This commit is contained in:
@@ -44,6 +44,10 @@
|
|||||||
paramsTemplateId: {
|
paramsTemplateId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
|
},
|
||||||
|
projectLibraryId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -60,6 +64,8 @@
|
|||||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&dummyInventoryBaseId=' + this.dummyInventoryBaseId
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&dummyInventoryBaseId=' + this.dummyInventoryBaseId
|
||||||
} else if (this.paramsTemplateId) {
|
} else if (this.paramsTemplateId) {
|
||||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId
|
||||||
|
} else if (this.projectLibraryId) {
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectLibraryId=' + this.projectLibraryId
|
||||||
}
|
}
|
||||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -575,6 +575,7 @@
|
|||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
let query = {
|
let query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
|
...this.queryParamQuery,
|
||||||
ids: selectedRowKeys.join(','),
|
ids: selectedRowKeys.join(','),
|
||||||
dummyInventoryBaseId: this.$route.query.id
|
dummyInventoryBaseId: this.$route.query.id
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,8 @@
|
|||||||
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight">
|
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight">
|
||||||
<template slot="title" id="popconfirm">
|
<template slot="title" id="popconfirm">
|
||||||
<div class="operator-text-title">
|
<div class="operator-text-title">
|
||||||
<ImportFile :url="url" :isTrue="true" :accept="'.xls'" @getList="getPersonnelList"/>
|
<ImportFile :url="url" :projectLibraryId=$route.query.id :isTrue="true" :accept="'.zip'"
|
||||||
|
@getList="getPersonnelList"/>
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleModule" class="operator-text-title">
|
<div @click="handleModule" class="operator-text-title">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
@@ -531,6 +532,9 @@
|
|||||||
updateStatusBatch: '/project/projectLawsInventoryEO/updateStatusBatch',
|
updateStatusBatch: '/project/projectLawsInventoryEO/updateStatusBatch',
|
||||||
matchRelevantPeople: '/project/projectLawsInventoryEO/matchRelevantPeople',
|
matchRelevantPeople: '/project/projectLawsInventoryEO/matchRelevantPeople',
|
||||||
queryPersonByProject: '/project/projectRelatedPersonnel/queryPersonByProjectId',
|
queryPersonByProject: '/project/projectRelatedPersonnel/queryPersonByProjectId',
|
||||||
|
importZipUrl: '/project/projectLawsInventoryEO/importData',
|
||||||
|
exportTemplate: '/project/projectLawsInventoryEO/exportTemplate',
|
||||||
|
exportData: '/project/projectLawsInventoryEO/exportData',
|
||||||
setBatch: '/project/projectLawsInventoryEO/setBatch',//批量设置
|
setBatch: '/project/projectLawsInventoryEO/setBatch',//批量设置
|
||||||
copyUrl: '/project/projectLawsInventoryEO/copyInfoByIds',//复制
|
copyUrl: '/project/projectLawsInventoryEO/copyInfoByIds',//复制
|
||||||
transferUrl: '/project/projectLawsInventoryEO/getPageInfoDummy'//调取
|
transferUrl: '/project/projectLawsInventoryEO/getPageInfoDummy'//调取
|
||||||
@@ -599,10 +603,17 @@
|
|||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
handleModule() {
|
handleModule() {
|
||||||
|
downloadFile(this.url.exportTemplate, '模板下载.xls', {})
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
let query = {
|
||||||
|
...this.queryParam,
|
||||||
|
ids: selectedRowKeys.join(','),
|
||||||
|
...this.queryParamQuery,
|
||||||
|
projectLibraryId: this.$route.query.id
|
||||||
|
}
|
||||||
|
downloadFile(this.url.exportData, this.$route.query.projectName + '法规清单.zip', query, this.Deselect)
|
||||||
},
|
},
|
||||||
//复制
|
//复制
|
||||||
copyClick() {
|
copyClick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user