修改虚拟清单的导出及新增的传参

This commit is contained in:
qq787203167
2022-04-22 17:40:35 +08:00
parent 901aceeb39
commit 6d646459c5
2 changed files with 32 additions and 25 deletions
+8 -2
View File
@@ -37,20 +37,26 @@
type: String, type: String,
default: '' default: ''
}, },
dummyInventoryBaseId: {
type: String,
default: ''
}
}, },
data() { data() {
return { return {
tokenHeader: { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) }, tokenHeader: { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) },
cut: '', cut: ''
} }
}, },
computed: { computed: {
importUrl() { importUrl() {
if (this.projectId) { if (this.projectId) {
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) {
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&dummyInventoryBaseId=' + this.dummyInventoryBaseId
} }
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
}, }
}, },
mounted() { mounted() {
let long = localStorage.getItem('language') let long = localStorage.getItem('language')
@@ -88,7 +88,7 @@
{{$t('DocumentStandard')}} {{$t('DocumentStandard')}}
</div> </div>
<div class="operator-text" v-has="'document:importZip'" v-if="isTrue"> <div class="operator-text" v-has="'document:importZip'" v-if="isTrue">
<ImportFile :url="url" :isTrue="true" @getList="getPersonnelList" :accept="'.zip'"/> <ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList" :accept="'.zip'"/>
</div> </div>
<!-- 模板下载--> <!-- 模板下载-->
<div @click="handleModule" class="operator-text" v-if="isTrue"> <div @click="handleModule" class="operator-text" v-if="isTrue">
@@ -611,7 +611,8 @@
getList() { getList() {
let query = { let query = {
...this.queryParam, ...this.queryParam,
...this.queryParamQuery ...this.queryParamQuery,
dummyInventoryBaseId: this.$route.query.id
} }
this.loading = true this.loading = true
getAction(this.url.list, query).then((res) => { getAction(this.url.list, query).then((res) => {