rxswin导入对接
This commit is contained in:
@@ -50,6 +50,10 @@
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
version: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
paramsTemplateId: {
|
||||
type: String,
|
||||
default: ''
|
||||
@@ -73,6 +77,9 @@
|
||||
computed: {
|
||||
importUrl() {
|
||||
if (this.projectId) {
|
||||
if(this.version){
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectId=' + this.projectId +'&version=' + this.version
|
||||
}
|
||||
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
|
||||
|
||||
@@ -100,8 +100,9 @@
|
||||
<!-- 导入-->
|
||||
<div v-show="staFlag != '1'" class="operator-text"
|
||||
v-has="'rxswin:Import'">
|
||||
<ImportFile :url="url" :accept="'.xls'"
|
||||
@getList="getPersonnelList"/>
|
||||
<ImportFile :url="url" :projectId="$route.query.id" :version="$route.query.projectVersion" :accept="'.xls'"
|
||||
:isTrue="true"
|
||||
@getList="getList"/>
|
||||
</div>
|
||||
<!-- 批量删除-->
|
||||
<div v-show="staFlag != '1'" class="operator-text"
|
||||
@@ -333,7 +334,7 @@
|
||||
page: '/project/projectRxswinEO/page',
|
||||
edit: '/project/projectRelatedPersonnel/edit',
|
||||
exportData: '/project/projectRxswinEO/exportXls',
|
||||
importZipUrl: '/project/projectRelatedPersonnel/importExcel',
|
||||
importZipUrl: '/project/projectRxswinEO/importExcel',
|
||||
queryCertificationEngineer: '/project/projectRelatedPersonnel/queryCertificationEngineer'
|
||||
},
|
||||
selectedRowKeys: [],
|
||||
|
||||
Reference in New Issue
Block a user