[参数项列表] 导入

This commit is contained in:
zhaomeijing
2022-04-29 17:14:00 +08:00
parent 608176f4fd
commit c17be85e14
2 changed files with 7 additions and 1 deletions
@@ -40,6 +40,10 @@
dummyInventoryBaseId: { dummyInventoryBaseId: {
type: String, type: String,
default: '' default: ''
},
paramsTemplateId: {
type: String,
default: ''
} }
}, },
data() { data() {
@@ -54,6 +58,8 @@
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectId=' + this.projectId return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectId=' + this.projectId
} else if (this.dummyInventoryBaseId) { } else if (this.dummyInventoryBaseId) {
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) {
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&paramsTemplateId=' + this.paramsTemplateId
} }
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
} }
@@ -53,7 +53,7 @@
{{$t('templateDownload')}} {{$t('templateDownload')}}
</div> </div>
<div class="operator-text" v-has="'document:importZip'"> <div class="operator-text" v-has="'document:importZip'">
<ImportFile :url="url" :isTrue="false" :accept="'.zip'"/> <ImportFile :url="url" :isTrue="false" :accept="'.zip'" :paramsTemplateId='this.$route.query.id'/>
</div> </div>
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'"> <div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
<a-icon type="delete"/> <a-icon type="delete"/>